|
|
|
|
@ -126,6 +126,27 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText('Update',
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 10,),
|
|
|
|
|
Container(
|
|
|
|
|
color:Colors.red[600],
|
|
|
|
|
child: AppText('Canceled',
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 10,),
|
|
|
|
|
AppText('Verify',
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 10,)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
@ -189,6 +210,72 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => UpdateNoteOrder(
|
|
|
|
|
note: notesList[index],
|
|
|
|
|
patientModel: model,
|
|
|
|
|
patient: patient,
|
|
|
|
|
visitType: widget.visitType,
|
|
|
|
|
isUpdate: true,
|
|
|
|
|
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: Icon(
|
|
|
|
|
DoctorApp.edit,
|
|
|
|
|
size: 18,
|
|
|
|
|
)),
|
|
|
|
|
SizedBox(width: 10,),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
UpdateNoteReqModel reqModel = UpdateNoteReqModel(
|
|
|
|
|
admissionNo: int.parse(patient.admissionNo),
|
|
|
|
|
cancelledNote: true,
|
|
|
|
|
lineItemNo: notesList[index].lineItemNo,
|
|
|
|
|
createdBy: notesList[index].createdBy,
|
|
|
|
|
notes: notesList[index].notes,
|
|
|
|
|
verifiedNote: false,
|
|
|
|
|
patientTypeID: patient.patientType,
|
|
|
|
|
patientOutSA: false,
|
|
|
|
|
);
|
|
|
|
|
await model.updatePatientProgressNote(reqModel);
|
|
|
|
|
await getProgressNoteList(context,model);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
child: Icon(
|
|
|
|
|
FontAwesomeIcons.trash,
|
|
|
|
|
size: 18,
|
|
|
|
|
)),
|
|
|
|
|
SizedBox(width: 10,),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
UpdateNoteReqModel reqModel = UpdateNoteReqModel(
|
|
|
|
|
admissionNo: int.parse(patient.admissionNo),
|
|
|
|
|
cancelledNote: false,
|
|
|
|
|
lineItemNo: notesList[index].lineItemNo,
|
|
|
|
|
createdBy: notesList[index].createdBy,
|
|
|
|
|
notes: notesList[index].notes,
|
|
|
|
|
verifiedNote: true,
|
|
|
|
|
patientTypeID: patient.patientType,
|
|
|
|
|
patientOutSA: false,
|
|
|
|
|
);
|
|
|
|
|
await model.updatePatientProgressNote(reqModel);
|
|
|
|
|
await getProgressNoteList(context,model);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
child: Icon(
|
|
|
|
|
FontAwesomeIcons.check,
|
|
|
|
|
size: 18,
|
|
|
|
|
))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
@ -227,40 +314,5 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// searchData(String str, PatientViewModel model) {
|
|
|
|
|
// var strExist = str.length > 0 ? true : false;
|
|
|
|
|
//
|
|
|
|
|
// if (strExist) {
|
|
|
|
|
// filteredNotesList = null;
|
|
|
|
|
// filteredNotesList = model.patientProgressNoteList
|
|
|
|
|
// .where((note) =>
|
|
|
|
|
// note["DoctorName"].toString().contains(str.toUpperCase()))
|
|
|
|
|
// .toList();
|
|
|
|
|
// setState(() {
|
|
|
|
|
// notesList = filteredNotesList;
|
|
|
|
|
// });
|
|
|
|
|
// } else {
|
|
|
|
|
// setState(() {
|
|
|
|
|
// notesList = model.patientProgressNoteList;
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
convertDateFormat(String str) {
|
|
|
|
|
const start = "/Date(";
|
|
|
|
|
const end = "+0300)";
|
|
|
|
|
|
|
|
|
|
final startIndex = str.indexOf(start);
|
|
|
|
|
final endIndex = str.indexOf(end, startIndex + start.length);
|
|
|
|
|
|
|
|
|
|
var date = new DateTime.fromMillisecondsSinceEpoch(
|
|
|
|
|
int.parse(str.substring(startIndex + start.length, endIndex)));
|
|
|
|
|
String newDate = date.year.toString() +
|
|
|
|
|
"-" +
|
|
|
|
|
date.month.toString().padLeft(2, '0') +
|
|
|
|
|
"-" +
|
|
|
|
|
date.day.toString().padLeft(2, '0');
|
|
|
|
|
|
|
|
|
|
return newDate.toString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|