finished new screens

merge-requests/79/head
unknown 6 years ago
parent 8c46c93e86
commit 0c112ebca5

@ -3,7 +3,7 @@ const ONLY_NUMBERS = "[0-9]";
const ONLY_LETTERS = "[a-zA-Z]"; const ONLY_LETTERS = "[a-zA-Z]";
const ONLY_DATE = "[0-9/]"; const ONLY_DATE = "[0-9/]";
const BASE_URL = 'https://hmgwebservices.com/Services/'; const BASE_URL = 'https://uat.hmgwebservices.com/Services/';
const PHARMACY_ITEMS_URL = "Lists.svc/REST/GetPharmcyItems"; const PHARMACY_ITEMS_URL = "Lists.svc/REST/GetPharmcyItems";
const PHARMACY_LIST_URL = "Patients.svc/REST/GetPharmcyList"; const PHARMACY_LIST_URL = "Patients.svc/REST/GetPharmcyList";
const PATIENT_PROGRESS_NOTE_URL = "DoctorApplication.svc/REST/GetProgressNoteForInPatient"; const PATIENT_PROGRESS_NOTE_URL = "DoctorApplication.svc/REST/GetProgressNoteForInPatient";
@ -50,7 +50,7 @@ var SERVICES_PATIANT_HEADER = [
//****************** //******************
// Colors ////// by : ibrahim // Colors ////// by : ibrahim
const PRIMARY_COLOR = 0xf5f5f5; const PRIMARY_COLOR = 0xff515B5D;
const TRANSACTION_NO = 0; const TRANSACTION_NO = 0;
const LANGUAGE_ID = 2; const LANGUAGE_ID = 2;

@ -46,7 +46,7 @@ class InsuranceAprovalsRequest {
this.stamp = '2020-04-23T21:01:21.492Z', this.stamp = '2020-04-23T21:01:21.492Z',
this.ipAdress = '11.11.11.11', this.ipAdress = '11.11.11.11',
this.versionID = 1.2, this.versionID = 1.2,
this.tokenID = '@dm!n', this.tokenID ,
this.sessionID = 'e29zoooEJ4', this.sessionID = 'e29zoooEJ4',
this.isLoginForDoctorApp = true, this.isLoginForDoctorApp = true,
this.patientOutSA = false}); this.patientOutSA = false});

@ -45,7 +45,7 @@ class OrdersRequest {
this.languageID = 2, this.languageID = 2,
this.iPAdress = '11.11.11.11', this.iPAdress = '11.11.11.11',
this.channel = 9, this.channel = 9,
this.tokenID = '@dm!n', this.tokenID ,
this.sessionID = "LlBk8lUEJY", this.sessionID = "LlBk8lUEJY",
this.isLoginForDoctorApp = true, this.isLoginForDoctorApp = true,
this.patientTypeID = 1, this.patientTypeID = 1,

@ -45,7 +45,7 @@ class ProgressNoteRequest {
this.languageID = 2, this.languageID = 2,
this.iPAdress = '11.11.11.11', this.iPAdress = '11.11.11.11',
this.channel = 9, this.channel = 9,
this.tokenID = '@dm!n', this.tokenID ,
this.sessionID = "LlBk8lUEJY", this.sessionID = "LlBk8lUEJY",
this.isLoginForDoctorApp = true, this.isLoginForDoctorApp = true,
this.patientTypeID = 1, this.patientTypeID = 1,

@ -1,7 +1,10 @@
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/models/patient/insurance_aprovals_request.dart'; import 'package:doctor_app_flutter/models/patient/insurance_aprovals_request.dart';
import 'package:doctor_app_flutter/widgets/shared/app_buttons_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/errors/dr_app_embedded_error.dart'; import 'package:doctor_app_flutter/widgets/shared/errors/dr_app_embedded_error.dart';
import 'package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import '../../../config/shared_pref_kay.dart'; import '../../../config/shared_pref_kay.dart';
@ -30,6 +33,9 @@ class InsuranceApprovalsScreen extends StatefulWidget {
class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> { class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
PatientsProvider patientsProv; PatientsProvider patientsProv;
var approvalsList;
var filteredApprovalsList;
final _controller = TextEditingController();
var _isInit = true; var _isInit = true;
/* /*
@ -46,13 +52,15 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
String type = await sharedPref.getString(SLECTED_PATIENT_TYPE); String type = await sharedPref.getString(SLECTED_PATIENT_TYPE);
print(type); print(type);
InsuranceAprovalsRequest insuranceApprovalsRequest = InsuranceAprovalsRequest( InsuranceAprovalsRequest insuranceApprovalsRequest =
InsuranceAprovalsRequest(
patientID: patient.patientId, patientID: patient.patientId,
projectID: patient.projectId, projectID: patient.projectId,
tokenID: token, tokenID: token,
patientTypeID: patient.patientType, patientTypeID: patient.patientType,
languageID: 2); languageID: 2);
patientsProv.getPatientInsuranceApprovals(insuranceApprovalsRequest.toJson()); patientsProv
.getPatientInsuranceApprovals(insuranceApprovalsRequest.toJson());
} }
@override @override
@ -61,9 +69,10 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
if (_isInit) { if (_isInit) {
patientsProv = Provider.of<PatientsProvider>(context); patientsProv = Provider.of<PatientsProvider>(context);
getInsuranceApprovalsList(context); getInsuranceApprovalsList(context);
} approvalsList = patientsProv.insuranceApporvalsList;
_isInit = false; _isInit = false;
} }
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -75,42 +84,100 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
? DrAppCircularProgressIndeicator() ? DrAppCircularProgressIndeicator()
: patientsProv.isError : patientsProv.isError
? DrAppEmbeddedError(error: patientsProv.error) ? DrAppEmbeddedError(error: patientsProv.error)
: patientsProv.insuranceApporvalsList.length == 0 : patientsProv.insuranceApporvalsList == null
? DrAppEmbeddedError( ? DrAppEmbeddedError(
error: 'You don\'t have any Insurance Approvals') error: 'You don\'t have any Insurance Approvals')
: Container( : Column(
children: <Widget>[
Container(
margin: EdgeInsets.all(10),
width: SizeConfig.screenWidth * 0.80,
child: TextField(
controller: _controller,
onChanged: (String str) {
this.searchData(str);
},
decoration: buildInputDecoration(
context, 'Search Insurance Approvals'),
),
),
Expanded(
child: Container(
margin: EdgeInsets.fromLTRB( margin: EdgeInsets.fromLTRB(
SizeConfig.realScreenWidth * 0.05, SizeConfig.realScreenWidth * 0.05,
0, 0,
SizeConfig.realScreenWidth * 0.05, SizeConfig.realScreenWidth * 0.05,
0), 0),
child: ListView.builder( child: ListView.builder(
itemCount: itemCount: approvalsList.length,
patientsProv.insuranceApporvalsList.length,
itemBuilder: (BuildContext ctxt, int index) { itemBuilder: (BuildContext ctxt, int index) {
return RoundedContainer( return RoundedContainer(
backgroundColor: Colors.yellow[200],
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment:
CrossAxisAlignment.start,
children: <Widget>[
ExpansionTile(
title: Row(
children: <Widget>[
Icon(
approvalsList[index][
"ApprovalStatusDescption"]
.toString()
.contains("Approved")
? Icons.check_circle_outline
: approvalsList[index][
"ApprovalStatusDescption"]
.toString()
.contains("Cancelled")
? Icons.highlight_off
: Icons.history,
color: approvalsList[index][
"ApprovalStatusDescption"]
.toString()
.contains("Approved")
? Colors.green
: approvalsList[index][
"ApprovalStatusDescption"]
.toString()
.contains("Cancelled")
? Colors.red
: Colors.yellow,
),
Expanded(
child: Column(
mainAxisAlignment:
MainAxisAlignment.start,
crossAxisAlignment:
CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
AppText( AppText(
patientsProv approvalsList[index]
.insuranceApporvalsList[index] ["ClinicName"],
["ClinicName"]+"-"+patientsProv
.insuranceApporvalsList[index]
["DoctorName"],
marginTop: 10, marginTop: 10,
marginLeft: 10, marginLeft: 10,
marginBottom: 5, marginBottom: 5,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
AppText( AppText(
convertDateFormat(patientsProv approvalsList[index]
.insuranceApporvalsList[index] ["DoctorName"],
marginLeft: 10,
marginTop: 1,
),
AppText(
convertDateFormat(
approvalsList[index]
["ApprovalDate"]), ["ApprovalDate"]),
marginLeft: 10, marginLeft: 10,
marginBottom: 5,
color: Colors.grey[600], color: Colors.grey[600],
), ),
],
),
)
],
),
children: <Widget>[
Divider( Divider(
color: Colors.black, color: Colors.black,
height: 20, height: 20,
@ -118,19 +185,219 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
indent: 0, indent: 0,
endIndent: 0, endIndent: 0,
), ),
RoundedContainer(
backgroundColor:
Color(PRIMARY_COLOR),
child: Column(
children: <Widget>[
Row(
children: <Widget>[
AppText( AppText(
patientsProv "Approval No:",
.insuranceApporvalsList[index] color: Colors.white,
["CompanyName"], fontSize: 16,
margin: 10, margin: 10,
) ),
AppText(
approvalsList[index]
["ApprovalNo"]
.toString(),
color: Colors.white,
fontSize: 19,
fontWeight:
FontWeight.bold,
margin: 5,
),
],
),
Row(
children: <Widget>[
Expanded(
flex: 1,
child: Column(
crossAxisAlignment:
CrossAxisAlignment
.start,
children: <Widget>[
AppText(
"PRODUCER NAME",
fontSize: 10,
color: Colors.white,
marginLeft: SizeConfig
.widthMultiplier *
3,
),
AppText(checkList(approvalsList[index]["ApporvalDetails"])?
approvalsList[index]
[
"ApporvalDetails"][0]
[
"ProcedureName"] : "",
fontSize: 12,
fontWeight: FontWeight.bold,
marginLeft: SizeConfig
.widthMultiplier *
3,
marginTop: 3,
color: Colors.white,
),
],
),
),
Expanded(
flex: 1,
child: Column(
crossAxisAlignment:
CrossAxisAlignment
.start,
children: <Widget>[
AppText(
"STATUS",
fontSize: 10,
color: Colors.white,
marginLeft: SizeConfig
.widthMultiplier *
9,
),
AppText(
approvalsList[index]
[
"ApprovalStatusDescption"],
fontSize: 12,
fontWeight: FontWeight.bold,
marginLeft: SizeConfig
.widthMultiplier *
9,
marginTop: 3,
color: Colors.white,
),
],
),
),
],
),
Row(
children: <Widget>[
Expanded(
flex: 1,
child: Column(
crossAxisAlignment:
CrossAxisAlignment
.start,
children: <Widget>[
AppText(
"RECEIPT ON",
fontSize: 10,
color: Colors.white,
marginLeft: SizeConfig
.widthMultiplier *
3,
marginTop: SizeConfig
.heightMultiplier *
1.5,
),
AppText(
convertDateFormat( approvalsList[index]
["ReceiptOn"]),
fontSize: 12,
fontWeight: FontWeight.bold,
marginLeft: SizeConfig
.widthMultiplier *
3,
marginTop: 3,
marginBottom: SizeConfig.heightMultiplier*2,
color: Colors.white,
),
],
),
),
Expanded(
flex: 1,
child: Column(
crossAxisAlignment:
CrossAxisAlignment
.start,
children: <Widget>[
AppText(
"EXPIRY DATE",
fontSize: 10,
color: Colors.white,
marginTop: SizeConfig
.heightMultiplier *
1.5,
marginLeft: SizeConfig
.widthMultiplier *
9,
),
AppText(
convertDateFormat(
approvalsList[
index][
"ExpiryDate"]),
fontSize: 12,
fontWeight: FontWeight.bold,
marginLeft: SizeConfig
.widthMultiplier *
9,
marginTop: 3,
marginBottom: SizeConfig.heightMultiplier*2,
color: Colors.white,
),
],
),
),
],
),
],
)),
],
),
], ],
)); ));
}), }),
), ),
),
],
),
); );
} }
InputDecoration buildInputDecoration(BuildContext context, hint) {
return InputDecoration(
prefixIcon: Icon(Icons.search, color: Colors.black),
filled: true,
fillColor: Colors.white,
hintText: hint,
hintStyle: TextStyle(fontSize: 2 * SizeConfig.textMultiplier),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(10)),
borderSide: BorderSide(color: Hexcolor('#CCCCCC')),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(10.0)),
borderSide: BorderSide(color: Colors.grey), //),
));
}
searchData(String str) {
var strExist = str.length > 0 ? true : false;
if (strExist) {
filteredApprovalsList = null;
filteredApprovalsList = approvalsList
.where((note) =>
note["ClinicName"].toString().contains(str.toUpperCase()))
.toList();
setState(() {
approvalsList = filteredApprovalsList;
});
} else {
setState(() {
approvalsList = patientsProv.insuranceApporvalsList;
});
}
}
convertDateFormat(String str) { convertDateFormat(String str) {
const start = "/Date("; const start = "/Date(";
const end = "+0300)"; const end = "+0300)";
@ -148,4 +415,7 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
return newDate.toString(); return newDate.toString();
} }
bool checkList(List list){
return list.length > 0 ? true : false;
}
} }

@ -1,7 +1,9 @@
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/models/patient/progress_note_request.dart'; import 'package:doctor_app_flutter/models/patient/progress_note_request.dart';
import 'package:doctor_app_flutter/widgets/shared/errors/dr_app_embedded_error.dart'; import 'package:doctor_app_flutter/widgets/shared/errors/dr_app_embedded_error.dart';
import 'package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import '../../../config/shared_pref_kay.dart'; import '../../../config/shared_pref_kay.dart';
@ -30,6 +32,9 @@ class PatientsOrdersScreen extends StatefulWidget {
class _PatientsOrdersState extends State<PatientsOrdersScreen> { class _PatientsOrdersState extends State<PatientsOrdersScreen> {
PatientsProvider patientsProv; PatientsProvider patientsProv;
var notesList;
var filteredNotesList;
final _controller = TextEditingController();
var _isInit = true; var _isInit = true;
/* /*
@ -62,6 +67,7 @@ class _PatientsOrdersState extends State<PatientsOrdersScreen> {
if (_isInit) { if (_isInit) {
patientsProv = Provider.of<PatientsProvider>(context); patientsProv = Provider.of<PatientsProvider>(context);
getProgressNoteList(context); getProgressNoteList(context);
notesList = patientsProv.patientProgressNoteList;
} }
_isInit = false; _isInit = false;
} }
@ -76,27 +82,46 @@ class _PatientsOrdersState extends State<PatientsOrdersScreen> {
? DrAppCircularProgressIndeicator() ? DrAppCircularProgressIndeicator()
: patientsProv.isError : patientsProv.isError
? DrAppEmbeddedError(error: patientsProv.error) ? DrAppEmbeddedError(error: patientsProv.error)
: patientsProv.patientProgressNoteList.length == 0 : notesList == null
? DrAppEmbeddedError( ? DrAppEmbeddedError(
error: 'You don\'t have any Orders') error: 'You don\'t have any Orders')
: Container( : Column(
children: <Widget>[
Container(
margin: EdgeInsets.all(10),
width: SizeConfig.screenWidth * 0.80,
child: TextField(
controller: _controller,
onChanged: (String str) {
this.searchData(str);
},
decoration:
buildInputDecoration(context, 'Search Orders'),
),
),
Expanded(
child: Container(
margin: EdgeInsets.fromLTRB( margin: EdgeInsets.fromLTRB(
SizeConfig.realScreenWidth * 0.05, SizeConfig.realScreenWidth * 0.05,
0, 0,
SizeConfig.realScreenWidth * 0.05, SizeConfig.realScreenWidth * 0.05,
0), 0),
child: ListView.builder( child: ListView.builder(
itemCount: itemCount: notesList.length,
patientsProv.patientProgressNoteList.length,
itemBuilder: (BuildContext ctxt, int index) { itemBuilder: (BuildContext ctxt, int index) {
return RoundedContainer( return RoundedContainer(
backgroundColor: Colors.white,
child: Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: <Widget>[
ExpansionTile(
title: Container(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
AppText( AppText(
patientsProv notesList[index]
.patientProgressNoteList[index]
["DoctorName"], ["DoctorName"],
marginTop: 10, marginTop: 10,
marginLeft: 10, marginLeft: 10,
@ -104,12 +129,16 @@ class _PatientsOrdersState extends State<PatientsOrdersScreen> {
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
AppText( AppText(
convertDateFormat(patientsProv convertDateFormat(
.patientProgressNoteList[index] notesList[index]
["AssessmentDate"]), ["AssessmentDate"]),
marginLeft: 10, marginLeft: 10,
color: Colors.grey[600], color: Colors.grey[600],
), ),
],
),
),
children: <Widget>[
Divider( Divider(
color: Colors.black, color: Colors.black,
height: 20, height: 20,
@ -118,18 +147,57 @@ class _PatientsOrdersState extends State<PatientsOrdersScreen> {
endIndent: 0, endIndent: 0,
), ),
AppText( AppText(
patientsProv notesList[index]["Notes"],
.patientProgressNoteList[index] margin: 5,
["Notes"],
margin: 10,
) )
], ],
),
],
)); ));
}), }),
), ),
),
],
),
); );
} }
InputDecoration buildInputDecoration(BuildContext context, hint) {
return InputDecoration(
prefixIcon: Icon(Icons.search, color: Colors.black),
filled: true,
fillColor: Colors.white,
hintText: hint,
hintStyle: TextStyle(fontSize: 2 * SizeConfig.textMultiplier),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(20)),
borderSide: BorderSide(color: Hexcolor('#CCCCCC')),
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(50.0)),
borderSide: BorderSide(color: Colors.grey), //),
));
}
searchData(String str) {
var strExist = str.length > 0 ? true : false;
if (strExist) {
filteredNotesList = null;
filteredNotesList = notesList
.where((note) =>
note["DoctorName"].toString().contains(str.toUpperCase()))
.toList();
setState(() {
notesList = filteredNotesList;
});
} else {
setState(() {
notesList = patientsProv.patientProgressNoteList;
});
}
}
convertDateFormat(String str) { convertDateFormat(String str) {
const start = "/Date("; const start = "/Date(";
const end = "+0300)"; const end = "+0300)";

@ -88,15 +88,15 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
: Column( : Column(
children: <Widget>[ children: <Widget>[
Container( Container(
margin: EdgeInsets.all(10),
width: SizeConfig.screenWidth * 0.80, width: SizeConfig.screenWidth * 0.80,
margin: EdgeInsets.all(20),
child: TextField( child: TextField(
controller: _controller, controller: _controller,
onChanged: (String str) { onChanged: (String str) {
this.searchData(str); this.searchData(str);
}, },
decoration: buildInputDecoration( decoration:
context, 'Search Patient'), buildInputDecoration(context, 'Search Note'),
), ),
), ),
Expanded( Expanded(
@ -107,11 +107,16 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
SizeConfig.realScreenWidth * 0.05, SizeConfig.realScreenWidth * 0.05,
0), 0),
child: ListView.builder( child: ListView.builder(
itemCount: itemCount: notesList.length,
notesList.length,
itemBuilder: (BuildContext ctxt, int index) { itemBuilder: (BuildContext ctxt, int index) {
return RoundedContainer( return RoundedContainer(
backgroundColor: Colors.yellow[200], backgroundColor: Colors.white,
child: Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: <Widget>[
ExpansionTile(
title: Container(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
@ -124,11 +129,16 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
AppText( AppText(
convertDateFormat(notesList[index] convertDateFormat(
notesList[index]
["AssessmentDate"]), ["AssessmentDate"]),
marginLeft: 10, marginLeft: 10,
color: Colors.grey[600], color: Colors.grey[600],
), ),
],
),
),
children: <Widget>[
Divider( Divider(
color: Colors.black, color: Colors.black,
height: 20, height: 20,
@ -137,11 +147,12 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
endIndent: 0, endIndent: 0,
), ),
AppText( AppText(
notesList[index] notesList[index]["Notes"],
["Notes"], margin: 5,
margin: 10,
) )
], ],
),
],
)); ));
}), }),
), ),
@ -153,32 +164,34 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
InputDecoration buildInputDecoration(BuildContext context, hint) { InputDecoration buildInputDecoration(BuildContext context, hint) {
return InputDecoration( return InputDecoration(
prefixIcon: Icon(Icons.search, color:Colors.black), prefixIcon: Icon(Icons.search, color: Colors.black),
filled: true, filled: true,
fillColor: Colors.white, fillColor: Colors.white,
hintText: hint, hintText: hint,
hintStyle: TextStyle(fontSize: 2 * SizeConfig.textMultiplier), hintStyle: TextStyle(fontSize: 2 * SizeConfig.textMultiplier),
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(20)), borderRadius: BorderRadius.all(Radius.circular(10)),
borderSide: BorderSide(color: Hexcolor('#CCCCCC')), borderSide: BorderSide(color: Hexcolor('#CCCCCC')),
), ),
focusedBorder: OutlineInputBorder( focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(50.0)), borderRadius: BorderRadius.all(Radius.circular(10.0)),
borderSide: BorderSide(color: Colors.grey), //), borderSide: BorderSide(color: Colors.grey), //),
)); ));
} }
searchData(String str) { searchData(String str) {
var strExist = str.length > 0 ? true : false; var strExist = str.length > 0 ? true : false;
if(strExist){ if (strExist) {
filteredNotesList = null; filteredNotesList = null;
filteredNotesList = notesList.where((note) => note["DoctorName"].toString().contains(str.toUpperCase())).toList(); filteredNotesList = notesList
.where((note) =>
note["DoctorName"].toString().contains(str.toUpperCase()))
.toList();
setState(() { setState(() {
notesList = filteredNotesList; notesList = filteredNotesList;
}); });
}else{ } else {
setState(() { setState(() {
notesList = patientsProv.patientProgressNoteList; notesList = patientsProv.patientProgressNoteList;
}); });

Loading…
Cancel
Save