|
|
|
|
@ -20,12 +20,12 @@ import '../DischargedPatientPage.dart';
|
|
|
|
|
import 'in_patient_list_page.dart';
|
|
|
|
|
|
|
|
|
|
class InPatientScreen extends StatefulWidget {
|
|
|
|
|
GetSpecialClinicalCareListResponseModel specialClinic;
|
|
|
|
|
GetSpecialClinicalCareListResponseModel? specialClinic;
|
|
|
|
|
|
|
|
|
|
bool isAllClinic = true;
|
|
|
|
|
bool showBottomSheet = false;
|
|
|
|
|
late String selectedClinicName;
|
|
|
|
|
InPatientScreen({Key? key, required this.specialClinic});
|
|
|
|
|
String ?selectedClinicName;
|
|
|
|
|
InPatientScreen({Key? key, this.specialClinic});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
_InPatientScreenState createState() => _InPatientScreenState();
|
|
|
|
|
@ -35,7 +35,7 @@ class _InPatientScreenState extends State<InPatientScreen>
|
|
|
|
|
with SingleTickerProviderStateMixin {
|
|
|
|
|
late TabController _tabController;
|
|
|
|
|
int _activeTab = 0;
|
|
|
|
|
late int selectedMapId;
|
|
|
|
|
int ? selectedMapId;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void initState() {
|
|
|
|
|
@ -69,7 +69,7 @@ class _InPatientScreenState extends State<InPatientScreen>
|
|
|
|
|
model.clearPatientList();
|
|
|
|
|
if (widget.specialClinic != null) {
|
|
|
|
|
await model
|
|
|
|
|
.getSpecialClinicalCareMappingList(widget.specialClinic.clinicID);
|
|
|
|
|
.getSpecialClinicalCareMappingList(widget.specialClinic!.clinicID);
|
|
|
|
|
// requestModel.nursingStationID =
|
|
|
|
|
// model.specialClinicalCareMappingList[0].nursingStationID;
|
|
|
|
|
}
|
|
|
|
|
@ -160,14 +160,14 @@ class _InPatientScreenState extends State<InPatientScreen>
|
|
|
|
|
patientSearchViewModel: model,
|
|
|
|
|
isAllClinic: widget.isAllClinic,
|
|
|
|
|
showBottomSheet: widget.showBottomSheet,
|
|
|
|
|
selectedClinicName: widget.selectedClinicName,
|
|
|
|
|
selectedClinicName: widget.selectedClinicName??'',
|
|
|
|
|
onChangeValue: onChangeState),
|
|
|
|
|
InPatientListPage(
|
|
|
|
|
isMyInPatient: true,
|
|
|
|
|
patientSearchViewModel: model,
|
|
|
|
|
isAllClinic: widget.isAllClinic,
|
|
|
|
|
showBottomSheet: widget.showBottomSheet,
|
|
|
|
|
selectedClinicName: widget.selectedClinicName,
|
|
|
|
|
selectedClinicName: widget.selectedClinicName??"",
|
|
|
|
|
onChangeValue: onChangeState),
|
|
|
|
|
DischargedPatient(),
|
|
|
|
|
],
|
|
|
|
|
|