|
|
|
|
@ -33,6 +33,8 @@ class PatientsScreenNew extends StatefulWidget {
|
|
|
|
|
final bool isSearchWithKeyInfo;
|
|
|
|
|
final bool isSearch;
|
|
|
|
|
final bool isInpatient;
|
|
|
|
|
final String searchKey;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PatientsScreenNew(
|
|
|
|
|
{this.patientSearchForm,
|
|
|
|
|
@ -44,24 +46,16 @@ class PatientsScreenNew extends StatefulWidget {
|
|
|
|
|
this.patientSearchRequestModel,
|
|
|
|
|
this.isSearchWithKeyInfo = true,
|
|
|
|
|
this.isSearch = false,
|
|
|
|
|
this.isInpatient = false});
|
|
|
|
|
this.isInpatient = false, this.searchKey});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
_PatientsScreenNewState createState() => _PatientsScreenNewState();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _PatientsScreenNewState extends State<PatientsScreenNew> {
|
|
|
|
|
List<dynamic> lItems;
|
|
|
|
|
|
|
|
|
|
List parsed;
|
|
|
|
|
|
|
|
|
|
List date;
|
|
|
|
|
List unFilterDate;
|
|
|
|
|
|
|
|
|
|
int clinicId;
|
|
|
|
|
AuthViewModel authProvider;
|
|
|
|
|
|
|
|
|
|
Color sideColor = Colors.black;
|
|
|
|
|
List<String> _locations = []; //['All', 'Today', 'Tomorrow', 'Next Week'];
|
|
|
|
|
|
|
|
|
|
int _activeLocation = 0;
|
|
|
|
|
@ -84,10 +78,6 @@ class _PatientsScreenNewState extends State<PatientsScreenNew> {
|
|
|
|
|
TranslationBase.of(context).tomorrow,
|
|
|
|
|
TranslationBase.of(context).nextWeek,
|
|
|
|
|
];
|
|
|
|
|
List<String> _tabs = [
|
|
|
|
|
TranslationBase.of(context).inPatientAll.toUpperCase(),
|
|
|
|
|
TranslationBase.of(context).inPatient.toUpperCase(),
|
|
|
|
|
];
|
|
|
|
|
final screenSize = MediaQuery.of(context).size;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -115,7 +105,7 @@ class _PatientsScreenNewState extends State<PatientsScreenNew> {
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
if(widget.isSearch)
|
|
|
|
|
HeaderInSearch(
|
|
|
|
|
title: "Search for 1111",
|
|
|
|
|
title: "Search for ${widget.searchKey}",
|
|
|
|
|
),
|
|
|
|
|
if(!widget.isSearch && !widget.isInpatient)
|
|
|
|
|
HeaderInSearch(
|
|
|
|
|
|