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 =
patientID: patient.patientId, InsuranceAprovalsRequest(
projectID: patient.projectId, patientID: patient.patientId,
tokenID: token, projectID: patient.projectId,
patientTypeID: patient.patientType, tokenID: token,
languageID: 2); patientTypeID: patient.patientType,
patientsProv.getPatientInsuranceApprovals(insuranceApprovalsRequest.toJson()); languageID: 2);
patientsProv
.getPatientInsuranceApprovals(insuranceApprovalsRequest.toJson());
} }
@override @override
@ -61,8 +69,9 @@ 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
@ -75,62 +84,320 @@ 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(
margin: EdgeInsets.fromLTRB( children: <Widget>[
SizeConfig.realScreenWidth * 0.05, Container(
0, margin: EdgeInsets.all(10),
SizeConfig.realScreenWidth * 0.05, width: SizeConfig.screenWidth * 0.80,
0), child: TextField(
child: ListView.builder( controller: _controller,
itemCount: onChanged: (String str) {
patientsProv.insuranceApporvalsList.length, this.searchData(str);
itemBuilder: (BuildContext ctxt, int index) { },
return RoundedContainer( decoration: buildInputDecoration(
backgroundColor: Colors.yellow[200], context, 'Search Insurance Approvals'),
child: Column( ),
crossAxisAlignment: CrossAxisAlignment.start, ),
children: <Widget>[ Expanded(
AppText( child: Container(
patientsProv margin: EdgeInsets.fromLTRB(
.insuranceApporvalsList[index] SizeConfig.realScreenWidth * 0.05,
["ClinicName"]+"-"+patientsProv 0,
.insuranceApporvalsList[index] SizeConfig.realScreenWidth * 0.05,
["DoctorName"], 0),
marginTop: 10, child: ListView.builder(
marginLeft: 10, itemCount: approvalsList.length,
marginBottom: 5, itemBuilder: (BuildContext ctxt, int index) {
fontWeight: FontWeight.bold, return RoundedContainer(
), child: Column(
AppText( crossAxisAlignment:
convertDateFormat(patientsProv CrossAxisAlignment.start,
.insuranceApporvalsList[index] children: <Widget>[
["ApprovalDate"]), ExpansionTile(
marginLeft: 10, title: Row(
color: Colors.grey[600], children: <Widget>[
), Icon(
Divider( approvalsList[index][
color: Colors.black, "ApprovalStatusDescption"]
height: 20, .toString()
thickness: 1, .contains("Approved")
indent: 0, ? Icons.check_circle_outline
endIndent: 0, : approvalsList[index][
), "ApprovalStatusDescption"]
AppText( .toString()
patientsProv .contains("Cancelled")
.insuranceApporvalsList[index] ? Icons.highlight_off
["CompanyName"], : Icons.history,
margin: 10, 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>[
AppText(
approvalsList[index]
["ClinicName"],
marginTop: 10,
marginLeft: 10,
marginBottom: 5,
fontWeight: FontWeight.bold,
),
AppText(
approvalsList[index]
["DoctorName"],
marginLeft: 10,
marginTop: 1,
),
AppText(
convertDateFormat(
approvalsList[index]
["ApprovalDate"]),
marginLeft: 10,
marginBottom: 5,
color: Colors.grey[600],
),
],
),
)
],
),
children: <Widget>[
Divider(
color: Colors.black,
height: 20,
thickness: 1,
indent: 0,
endIndent: 0,
),
RoundedContainer(
backgroundColor:
Color(PRIMARY_COLOR),
child: Column(
children: <Widget>[
Row(
children: <Widget>[
AppText(
"Approval No:",
color: Colors.white,
fontSize: 16,
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;
/* /*
@ -47,7 +52,7 @@ class _PatientsOrdersState extends State<PatientsOrdersScreen> {
print(type); print(type);
ProgressNoteRequest progressNoteRequest = ProgressNoteRequest( ProgressNoteRequest progressNoteRequest = ProgressNoteRequest(
visitType: 3, // if equal 3 then this will return orders visitType: 3, // if equal 3 then this will return orders
admissionNo: int.parse(patient.admissionNo), admissionNo: int.parse(patient.admissionNo),
projectID: patient.projectId, projectID: patient.projectId,
tokenID: token, tokenID: token,
@ -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,60 +82,122 @@ 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(
margin: EdgeInsets.fromLTRB( children: <Widget>[
SizeConfig.realScreenWidth * 0.05, Container(
0, margin: EdgeInsets.all(10),
SizeConfig.realScreenWidth * 0.05, width: SizeConfig.screenWidth * 0.80,
0), child: TextField(
child: ListView.builder( controller: _controller,
itemCount: onChanged: (String str) {
patientsProv.patientProgressNoteList.length, this.searchData(str);
itemBuilder: (BuildContext ctxt, int index) { },
return RoundedContainer( decoration:
buildInputDecoration(context, 'Search Orders'),
child: Column( ),
crossAxisAlignment: CrossAxisAlignment.start, ),
children: <Widget>[ Expanded(
AppText( child: Container(
patientsProv margin: EdgeInsets.fromLTRB(
.patientProgressNoteList[index] SizeConfig.realScreenWidth * 0.05,
["DoctorName"], 0,
marginTop: 10, SizeConfig.realScreenWidth * 0.05,
marginLeft: 10, 0),
marginBottom: 5, child: ListView.builder(
fontWeight: FontWeight.bold, itemCount: notesList.length,
), itemBuilder: (BuildContext ctxt, int index) {
AppText( return RoundedContainer(
convertDateFormat(patientsProv backgroundColor: Colors.white,
.patientProgressNoteList[index] child: Column(
["AssessmentDate"]), crossAxisAlignment:
marginLeft: 10, CrossAxisAlignment.start,
color: Colors.grey[600], children: <Widget>[
), ExpansionTile(
Divider( title: Container(
color: Colors.black, child: Column(
height: 20, crossAxisAlignment: CrossAxisAlignment.start,
thickness: 1, children: <Widget>[
indent: 0, AppText(
endIndent: 0, notesList[index]
), ["DoctorName"],
AppText( marginTop: 10,
patientsProv marginLeft: 10,
.patientProgressNoteList[index] marginBottom: 5,
["Notes"], fontWeight: FontWeight.bold,
margin: 10, ),
) AppText(
], convertDateFormat(
)); notesList[index]
}), ["AssessmentDate"]),
marginLeft: 10,
color: Colors.grey[600],
),
],
),
),
children: <Widget>[
Divider(
color: Colors.black,
height: 20,
thickness: 1,
indent: 0,
endIndent: 0,
),
AppText(
notesList[index]["Notes"],
margin: 5,
)
],
),
],
));
}),
),
),
],
), ),
); );
} }
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)";

@ -86,20 +86,20 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
? DrAppEmbeddedError( ? DrAppEmbeddedError(
error: 'You don\'t have any Progress Note') error: 'You don\'t have any Progress Note')
: Column( : Column(
children: <Widget>[ children: <Widget>[
Container( Container(
width: SizeConfig.screenWidth * 0.80, margin: EdgeInsets.all(10),
margin: EdgeInsets.all(20), width: SizeConfig.screenWidth * 0.80,
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(
child: Container( child: Container(
margin: EdgeInsets.fromLTRB( margin: EdgeInsets.fromLTRB(
SizeConfig.realScreenWidth * 0.05, SizeConfig.realScreenWidth * 0.05,
@ -107,82 +107,95 @@ 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( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment:
CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
AppText( ExpansionTile(
notesList[index] title: Container(
["DoctorName"], child: Column(
marginTop: 10, crossAxisAlignment: CrossAxisAlignment.start,
marginLeft: 10, children: <Widget>[
marginBottom: 5, AppText(
fontWeight: FontWeight.bold, notesList[index]
), ["DoctorName"],
AppText( marginTop: 10,
convertDateFormat(notesList[index] marginLeft: 10,
["AssessmentDate"]), marginBottom: 5,
marginLeft: 10, fontWeight: FontWeight.bold,
color: Colors.grey[600], ),
AppText(
convertDateFormat(
notesList[index]
["AssessmentDate"]),
marginLeft: 10,
color: Colors.grey[600],
),
],
),
),
children: <Widget>[
Divider(
color: Colors.black,
height: 20,
thickness: 1,
indent: 0,
endIndent: 0,
),
AppText(
notesList[index]["Notes"],
margin: 5,
)
],
), ),
Divider(
color: Colors.black,
height: 20,
thickness: 1,
indent: 0,
endIndent: 0,
),
AppText(
notesList[index]
["Notes"],
margin: 10,
)
], ],
)); ));
}), }),
), ),
), ),
], ],
), ),
); );
} }
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
filteredNotesList = notesList.where((note) => note["DoctorName"].toString().contains(str.toUpperCase())).toList(); .where((note) =>
setState(() { note["DoctorName"].toString().contains(str.toUpperCase()))
notesList = filteredNotesList; .toList();
}); setState(() {
}else{ notesList = filteredNotesList;
setState(() { });
notesList = patientsProv.patientProgressNoteList; } else {
}); setState(() {
} notesList = patientsProv.patientProgressNoteList;
});
}
} }
convertDateFormat(String str) { convertDateFormat(String str) {

Loading…
Cancel
Save