|
|
|
@ -115,227 +115,273 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
),
|
|
|
|
|
if (model.procedureList.length != 0)
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: model.procedureList[0].rowcount == 0
|
|
|
|
|
? 200.0
|
|
|
|
|
: 10.0),
|
|
|
|
|
(model.procedureList.length != 0)
|
|
|
|
|
? SizedBox(
|
|
|
|
|
height: model.procedureList[0].rowcount == 0
|
|
|
|
|
? 200.0
|
|
|
|
|
: 10.0)
|
|
|
|
|
: SizedBox(height: 200.0),
|
|
|
|
|
//model.prescriptionList == null
|
|
|
|
|
if (model.procedureList.length != 0)
|
|
|
|
|
model.procedureList[0].rowcount == 0
|
|
|
|
|
? Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.stretch,
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
model
|
|
|
|
|
.getProcedureCategory()
|
|
|
|
|
.then((value) {
|
|
|
|
|
addSelectedProcedure(
|
|
|
|
|
context, model, patient);
|
|
|
|
|
});
|
|
|
|
|
(model.procedureList.length != 0)
|
|
|
|
|
? model.procedureList[0].rowcount == 0
|
|
|
|
|
? Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.stretch,
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
model
|
|
|
|
|
.getProcedureCategory()
|
|
|
|
|
.then((value) {
|
|
|
|
|
addSelectedProcedure(
|
|
|
|
|
context, model, patient);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//model.postPrescription();
|
|
|
|
|
},
|
|
|
|
|
child: CircleAvatar(
|
|
|
|
|
radius: 65,
|
|
|
|
|
backgroundColor: Color(0XFFB8382C),
|
|
|
|
|
//model.postPrescription();
|
|
|
|
|
},
|
|
|
|
|
child: CircleAvatar(
|
|
|
|
|
radius: 60,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
child: Icon(
|
|
|
|
|
Icons.add,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
size: 45.0,
|
|
|
|
|
radius: 65,
|
|
|
|
|
backgroundColor: Color(0XFFB8382C),
|
|
|
|
|
child: CircleAvatar(
|
|
|
|
|
radius: 60,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
child: Icon(
|
|
|
|
|
Icons.add,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
size: 45.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15.0,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'NO ORDER FOR PROCEDURE LISTED',
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontWeight: FontWeight.w900,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).addNow,
|
|
|
|
|
color: Color(0XFFB8382C),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Padding(
|
|
|
|
|
padding: EdgeInsets.all(16.0),
|
|
|
|
|
child: NetworkBaseView(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 50.0,
|
|
|
|
|
width: 450.0,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: Colors.grey),
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.circular(10.0),
|
|
|
|
|
),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment
|
|
|
|
|
.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.addMoreProcedure,
|
|
|
|
|
fontWeight: FontWeight.w100,
|
|
|
|
|
fontSize: 12.5,
|
|
|
|
|
),
|
|
|
|
|
Icon(
|
|
|
|
|
Icons.add,
|
|
|
|
|
color: Color(0XFFB8382C),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15.0,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'NO ORDER FOR PROCEDURE LISTED',
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontWeight: FontWeight.w900,
|
|
|
|
|
),
|
|
|
|
|
onTap: () {
|
|
|
|
|
model
|
|
|
|
|
.getProcedureCategory()
|
|
|
|
|
.then((value) {
|
|
|
|
|
addSelectedProcedure(
|
|
|
|
|
context, model, patient);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//model.postPrescription();
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
// Container(
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// borderRadius: BorderRadius.all(
|
|
|
|
|
// Radius.circular(6.0)),
|
|
|
|
|
// border: Border.all(
|
|
|
|
|
// width: 1.0,
|
|
|
|
|
// color: HexColor("#CCCCCC"))),
|
|
|
|
|
// child: AppTextFormField(
|
|
|
|
|
// labelText: 'Add more procedure',
|
|
|
|
|
// borderColor: Colors.white,
|
|
|
|
|
// //suffixIcon: Icons.search,
|
|
|
|
|
//
|
|
|
|
|
// //textInputType: TextInputType.number,
|
|
|
|
|
// inputFormatter: ONLY_NUMBERS,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// addSelectedProcedure(context);
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 35.0,
|
|
|
|
|
),
|
|
|
|
|
...List.generate(
|
|
|
|
|
model.procedureList[0].rowcount,
|
|
|
|
|
(index) => Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).addNow,
|
|
|
|
|
color: Color(0XFFB8382C),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Padding(
|
|
|
|
|
padding: EdgeInsets.all(16.0),
|
|
|
|
|
child: NetworkBaseView(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 50.0,
|
|
|
|
|
width: 450.0,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: Colors.grey),
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.circular(10.0),
|
|
|
|
|
),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment
|
|
|
|
|
.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: 120.0,
|
|
|
|
|
width: 45.0,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'8\nDEC',
|
|
|
|
|
color: Colors.green,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.addMoreProcedure,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.w100,
|
|
|
|
|
fontSize: 12.5,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 120,
|
|
|
|
|
width: 325.0,
|
|
|
|
|
Icon(
|
|
|
|
|
Icons.add,
|
|
|
|
|
color: Color(0XFFB8382C),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
onTap: () {
|
|
|
|
|
model
|
|
|
|
|
.getProcedureCategory()
|
|
|
|
|
.then((value) {
|
|
|
|
|
addSelectedProcedure(
|
|
|
|
|
context, model, patient);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//model.postPrescription();
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
// Container(
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// borderRadius: BorderRadius.all(
|
|
|
|
|
// Radius.circular(6.0)),
|
|
|
|
|
// border: Border.all(
|
|
|
|
|
// width: 1.0,
|
|
|
|
|
// color: HexColor("#CCCCCC"))),
|
|
|
|
|
// child: AppTextFormField(
|
|
|
|
|
// labelText: 'Add more procedure',
|
|
|
|
|
// borderColor: Colors.white,
|
|
|
|
|
// //suffixIcon: Icons.search,
|
|
|
|
|
//
|
|
|
|
|
// //textInputType: TextInputType.number,
|
|
|
|
|
// inputFormatter: ONLY_NUMBERS,
|
|
|
|
|
// onTap: () {
|
|
|
|
|
// addSelectedProcedure(context);
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 35.0,
|
|
|
|
|
),
|
|
|
|
|
...List.generate(
|
|
|
|
|
model.procedureList[0].rowcount,
|
|
|
|
|
(index) => Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
MainAxisAlignment
|
|
|
|
|
.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: 120.0,
|
|
|
|
|
width: 45.0,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.codeNo +
|
|
|
|
|
" : ",
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w700,
|
|
|
|
|
fontSize:
|
|
|
|
|
15.0,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.procedureList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.procedureId
|
|
|
|
|
.toString(),
|
|
|
|
|
fontSize:
|
|
|
|
|
13.0,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 12.0,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.orderType +
|
|
|
|
|
" : ",
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w700,
|
|
|
|
|
fontSize:
|
|
|
|
|
15.0,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
model.procedureList[0].entityList[index]
|
|
|
|
|
.orderType ==
|
|
|
|
|
1
|
|
|
|
|
? 'Regular'
|
|
|
|
|
: 'Urgent',
|
|
|
|
|
fontSize:
|
|
|
|
|
13.0,
|
|
|
|
|
color: Color(
|
|
|
|
|
0xFFB9382C),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
child:
|
|
|
|
|
Expanded(
|
|
|
|
|
AppText(
|
|
|
|
|
'8\nDEC',
|
|
|
|
|
color:
|
|
|
|
|
Colors.green,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 120,
|
|
|
|
|
width: 325.0,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.codeNo +
|
|
|
|
|
" : ",
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w700,
|
|
|
|
|
fontSize:
|
|
|
|
|
15.0,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.procedureList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.procedureId
|
|
|
|
|
.toString(),
|
|
|
|
|
fontSize:
|
|
|
|
|
13.0,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 12.0,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.orderType +
|
|
|
|
|
" : ",
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w700,
|
|
|
|
|
fontSize:
|
|
|
|
|
15.0,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
model.procedureList[0].entityList[index].orderType ==
|
|
|
|
|
1
|
|
|
|
|
? 'Regular'
|
|
|
|
|
: 'Urgent',
|
|
|
|
|
fontSize:
|
|
|
|
|
13.0,
|
|
|
|
|
color: Color(
|
|
|
|
|
0xFFB9382C),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
child:
|
|
|
|
|
Expanded(
|
|
|
|
|
child:
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.procedureList[0]
|
|
|
|
|
.entityList[index]
|
|
|
|
|
.procedureName,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.w800,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.price +
|
|
|
|
|
" : ",
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w700,
|
|
|
|
|
),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: AppText(
|
|
|
|
|
// model
|
|
|
|
|
// .procedureList[
|
|
|
|
|
// 0]
|
|
|
|
|
// .entityList[
|
|
|
|
|
// index]
|
|
|
|
|
// .price
|
|
|
|
|
// .toString(),
|
|
|
|
|
// fontSize:
|
|
|
|
|
// 13.0),
|
|
|
|
|
// )
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10.0,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child:
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
@ -343,131 +389,136 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.procedureName,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w800,
|
|
|
|
|
.remarks
|
|
|
|
|
.toString(),
|
|
|
|
|
fontSize:
|
|
|
|
|
13.5,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10.0,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.price +
|
|
|
|
|
" : ",
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w700,
|
|
|
|
|
),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: AppText(
|
|
|
|
|
// model
|
|
|
|
|
// .procedureList[
|
|
|
|
|
// 0]
|
|
|
|
|
// .entityList[
|
|
|
|
|
// index]
|
|
|
|
|
// .price
|
|
|
|
|
// .toString(),
|
|
|
|
|
// fontSize:
|
|
|
|
|
// 13.0),
|
|
|
|
|
// )
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10.0,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child:
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
Divider(
|
|
|
|
|
height: 5.0,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color:
|
|
|
|
|
Colors.grey,
|
|
|
|
|
)
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 40,
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
child: Icon(
|
|
|
|
|
Icons.edit),
|
|
|
|
|
onTap: () {
|
|
|
|
|
updateProcedureForm(
|
|
|
|
|
context,
|
|
|
|
|
remarks: model
|
|
|
|
|
.procedureList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.remarks
|
|
|
|
|
.toString(),
|
|
|
|
|
fontSize:
|
|
|
|
|
13.5,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10.0,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
Divider(
|
|
|
|
|
height: 5.0,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color:
|
|
|
|
|
Colors.grey,
|
|
|
|
|
.remarks,
|
|
|
|
|
procedureName: model
|
|
|
|
|
.procedureList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.procedureName,
|
|
|
|
|
patient:
|
|
|
|
|
patient,
|
|
|
|
|
procedureId: model
|
|
|
|
|
.procedureList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.procedureId,
|
|
|
|
|
categoreId: model
|
|
|
|
|
.procedureList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.categoryID
|
|
|
|
|
.toString());
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 40,
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
child: Icon(
|
|
|
|
|
Icons.edit),
|
|
|
|
|
onTap: () {
|
|
|
|
|
updateProcedureForm(
|
|
|
|
|
context,
|
|
|
|
|
remarks: model
|
|
|
|
|
.procedureList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.remarks,
|
|
|
|
|
procedureName: model
|
|
|
|
|
.procedureList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.procedureName,
|
|
|
|
|
patient:
|
|
|
|
|
patient,
|
|
|
|
|
procedureId: model
|
|
|
|
|
.procedureList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.procedureId,
|
|
|
|
|
categoreId: model
|
|
|
|
|
.procedureList[
|
|
|
|
|
0]
|
|
|
|
|
.entityList[
|
|
|
|
|
index]
|
|
|
|
|
.categoryID
|
|
|
|
|
.toString());
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
model
|
|
|
|
|
.getProcedureCategory()
|
|
|
|
|
.then((value) {
|
|
|
|
|
addSelectedProcedure(
|
|
|
|
|
context, model, patient);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//model.postPrescription();
|
|
|
|
|
},
|
|
|
|
|
child: CircleAvatar(
|
|
|
|
|
radius: 65,
|
|
|
|
|
backgroundColor: Color(0XFFB8382C),
|
|
|
|
|
child: CircleAvatar(
|
|
|
|
|
radius: 60,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
child: Icon(
|
|
|
|
|
Icons.add,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
size: 45.0,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 15.0,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'NO ORDER FOR PROCEDURE LISTED',
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontWeight: FontWeight.w900,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).addNow,
|
|
|
|
|
color: Color(0XFFB8382C),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
@ -593,8 +644,6 @@ postProcedure(
|
|
|
|
|
|
|
|
|
|
postProcedureReqModel.episodeID = patient.episodeNo;
|
|
|
|
|
postProcedureReqModel.patientMRN = patient.patientMRN;
|
|
|
|
|
postProcedureReqModel.vidaAuthTokenID =
|
|
|
|
|
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxNDg1IiwianRpIjoiZjQ4YTk0OTQtYTczZS00MDI3LWI2MjgtNzc4MjAwMzUyYWEzIiwiZW1haWwiOiJNb2hhbWVkLlJlc3dhbkBjbG91ZHNvbHV0aW9uLXNhLmNvbSIsImlkIjoiMTQ4NSIsIk5hbWUiOiJTSEFLRVJBIFBBUlZFRU4gKFVTRUQgQlkgRVNFUlZJQ0VTKSIsIkVtcGxveWVlSWQiOiIxNDg1IiwiRmFjaWxpdHlHcm91cElkIjoiMDEwMjY2IiwiRmFjaWxpdHlJZCI6IjE1IiwiUGhhcmFtY3lGYWNpbGl0eUlkIjoiNTUiLCJJU19QSEFSTUFDWV9DT05ORUNURUQiOiJUcnVlIiwiRG9jdG9ySWQiOiIxNDg1IiwiU0VTU0lPTklEIjoiMjE1ODUyMTAiLCJDbGluaWNJZCI6IjMiLCJyb2xlIjoiRE9DVE9SUyIsIm5iZiI6MTYwODM2NDU2OCwiZXhwIjoxNjA5MjI4NTY4LCJpYXQiOjE2MDgzNjQ1Njh9.YLbvq5nxPn8o9ZYkcbc5YAX7Jy23Mm0s33oRmE8GHDI';
|
|
|
|
|
|
|
|
|
|
controls.add(
|
|
|
|
|
Controls(
|
|
|
|
@ -632,8 +681,6 @@ updateProcedure(
|
|
|
|
|
|
|
|
|
|
updateProcedureReqModel.episodeID = patient.episodeNo;
|
|
|
|
|
updateProcedureReqModel.patientMRN = patient.patientMRN;
|
|
|
|
|
updateProcedureReqModel.vidaAuthTokenID =
|
|
|
|
|
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxNDg1IiwianRpIjoiZjQ4YTk0OTQtYTczZS00MDI3LWI2MjgtNzc4MjAwMzUyYWEzIiwiZW1haWwiOiJNb2hhbWVkLlJlc3dhbkBjbG91ZHNvbHV0aW9uLXNhLmNvbSIsImlkIjoiMTQ4NSIsIk5hbWUiOiJTSEFLRVJBIFBBUlZFRU4gKFVTRUQgQlkgRVNFUlZJQ0VTKSIsIkVtcGxveWVlSWQiOiIxNDg1IiwiRmFjaWxpdHlHcm91cElkIjoiMDEwMjY2IiwiRmFjaWxpdHlJZCI6IjE1IiwiUGhhcmFtY3lGYWNpbGl0eUlkIjoiNTUiLCJJU19QSEFSTUFDWV9DT05ORUNURUQiOiJUcnVlIiwiRG9jdG9ySWQiOiIxNDg1IiwiU0VTU0lPTklEIjoiMjE1ODUyMTAiLCJDbGluaWNJZCI6IjMiLCJyb2xlIjoiRE9DVE9SUyIsIm5iZiI6MTYwODM2NDU2OCwiZXhwIjoxNjA5MjI4NTY4LCJpYXQiOjE2MDgzNjQ1Njh9.YLbvq5nxPn8o9ZYkcbc5YAX7Jy23Mm0s33oRmE8GHDI';
|
|
|
|
|
|
|
|
|
|
controls.add(
|
|
|
|
|
Controls(
|
|
|
|
|