|
|
|
@ -132,7 +132,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
if(widget.patientProgressNote==null)
|
|
|
|
|
if(widget.patientProgressNote.planNote == null)
|
|
|
|
|
Container(
|
|
|
|
|
margin:
|
|
|
|
|
EdgeInsets.only(left: 10, right: 10, top: 15),
|
|
|
|
@ -161,7 +161,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
if (progressNoteController.text !='')
|
|
|
|
|
if ( widget.patientProgressNote.planNote != null)
|
|
|
|
|
Container(
|
|
|
|
|
margin:
|
|
|
|
|
EdgeInsets.only(left: 5, right: 5, top: 15),
|
|
|
|
@ -308,12 +308,16 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
patientMRN: widget.patientInfo.patientMRN,
|
|
|
|
|
episodeId: widget.patientInfo.episodeNo,
|
|
|
|
|
appointmentNo: widget.patientInfo.appointmentNo,
|
|
|
|
|
planNote: progressNoteController.text, doctorID: '', editedBy: '');
|
|
|
|
|
planNote: widget.patientProgressNote.planNote, doctorID: '', editedBy: '');
|
|
|
|
|
|
|
|
|
|
if(model.patientProgressNoteList.isEmpty){
|
|
|
|
|
await model.postProgressNote(postProgressNoteRequestModel);
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
|
|
|
|
|
|
|
|
|
|
DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile);
|
|
|
|
|
postProgressNoteRequestModel.editedBy =doctorProfile.doctorID;
|
|
|
|
|
await model.patchProgressNote(postProgressNoteRequestModel);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -335,12 +339,12 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
context: context,
|
|
|
|
|
builder: (context) {
|
|
|
|
|
return FractionallySizedBox(
|
|
|
|
|
heightFactor: 0.5,
|
|
|
|
|
heightFactor: 0.6,
|
|
|
|
|
child: Container(
|
|
|
|
|
child: FractionallySizedBox(
|
|
|
|
|
widthFactor: 0.9,
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
child: ListView(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 16,
|
|
|
|
@ -355,6 +359,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 0, right: 0, top: 15),
|
|
|
|
|
|
|
|
|
|
child: TextFields(
|
|
|
|
|
hintText: TranslationBase.of(context).addProgressNote,
|
|
|
|
|
fontSize: 13.5,
|
|
|
|
@ -383,6 +388,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
widget.patientProgressNote.createdByName = widget.patientProgressNote.createdByName??doctorProfile.doctorName;
|
|
|
|
|
widget.patientProgressNote.editedByName=doctorProfile.doctorName;
|
|
|
|
|
widget.patientProgressNote.createdOn= DateTime.now().toString() ;
|
|
|
|
|
widget.patientProgressNote.planNote = progressNoteController.text;
|
|
|
|
|
setState(() {
|
|
|
|
|
print(progressNoteController.text);
|
|
|
|
|
});
|
|
|
|
|