Merge branch 'development' of https://gitlab.com/Cloud_Solution/doctor_app_flutter into prescription_changes
Conflicts: lib/config/config.dartmerge-requests/688/head
commit
36ce997529
@ -0,0 +1,22 @@
|
|||||||
|
class PendingPatientERForDoctorAppRequestModel {
|
||||||
|
bool outSA;
|
||||||
|
int doctorID;
|
||||||
|
String sErServiceID;
|
||||||
|
|
||||||
|
PendingPatientERForDoctorAppRequestModel(
|
||||||
|
{this.outSA, this.doctorID, this.sErServiceID});
|
||||||
|
|
||||||
|
PendingPatientERForDoctorAppRequestModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
outSA = json['OutSA'];
|
||||||
|
doctorID = json['DoctorID'];
|
||||||
|
sErServiceID = json['SErServiceID'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['OutSA'] = this.outSA;
|
||||||
|
data['DoctorID'] = this.doctorID;
|
||||||
|
data['SErServiceID'] = this.sErServiceID;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,5 +1,45 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/model/live_care/PendingPatientERForDoctorAppRequestModel.dart';
|
||||||
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||||
|
import 'package:doctor_app_flutter/models/livecare/end_call_req.dart';
|
||||||
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||||
|
|
||||||
class LiveCarePatientServices extends BaseService{
|
class LiveCarePatientServices extends BaseService{
|
||||||
|
List<PatiantInformtion> _patientList = [];
|
||||||
|
List<PatiantInformtion> get patientList => _patientList;
|
||||||
|
|
||||||
|
bool _isFinished = false;
|
||||||
|
bool get isFinished => _isFinished;
|
||||||
|
|
||||||
|
var endCallResponse = {};
|
||||||
|
|
||||||
|
Future getPendingPatientERForDoctorApp(PendingPatientERForDoctorAppRequestModel pendingPatientERForDoctorAppRequestModel) async{
|
||||||
|
hasError = false;
|
||||||
|
await baseAppClient.post(
|
||||||
|
GET_PENDING_PATIENT_ER_FOR_DOCTOR_APP,
|
||||||
|
onSuccess: (dynamic response, int statusCode) {
|
||||||
|
_patientList.clear();
|
||||||
|
response['List_PendingPatientList'].forEach((v) {
|
||||||
|
_patientList.add(PatiantInformtion.fromJson(v));
|
||||||
|
});
|
||||||
|
},
|
||||||
|
onFailure: (String error, int statusCode) {
|
||||||
|
hasError = true;
|
||||||
|
super.error = error;
|
||||||
|
},
|
||||||
|
body: pendingPatientERForDoctorAppRequestModel.toJson(),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future endCall(EndCallReq endCallReq) async {
|
||||||
|
|
||||||
|
await baseAppClient.post(END_CALL, onSuccess: (response, statusCode) async {
|
||||||
|
_isFinished = true;
|
||||||
|
endCallResponse = response;
|
||||||
|
}, onFailure: (String error, int statusCode) {
|
||||||
|
_isFinished = true;
|
||||||
|
throw error;
|
||||||
|
}, body: endCallReq.toJson());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1,6 +1,83 @@
|
|||||||
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/model/live_care/PendingPatientERForDoctorAppRequestModel.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/service/home/dasboard_service.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/service/patient/LiveCarePatientServices.dart';
|
||||||
import 'package:doctor_app_flutter/core/viewModel/base_view_model.dart';
|
import 'package:doctor_app_flutter/core/viewModel/base_view_model.dart';
|
||||||
|
import 'package:doctor_app_flutter/models/livecare/end_call_req.dart';
|
||||||
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||||
|
|
||||||
|
import '../../locator.dart';
|
||||||
|
|
||||||
class LiveCarePatientViewModel extends BaseViewModel {
|
class LiveCarePatientViewModel extends BaseViewModel {
|
||||||
getPendingPatientERForDoctorApp() async {}
|
List<PatiantInformtion> filterData = [];
|
||||||
|
|
||||||
|
LiveCarePatientServices _liveCarePatientServices =
|
||||||
|
locator<LiveCarePatientServices>();
|
||||||
|
|
||||||
|
bool get isFinished => _liveCarePatientServices.isFinished;
|
||||||
|
|
||||||
|
DashboardService _dashboardService =
|
||||||
|
locator<DashboardService>();
|
||||||
|
|
||||||
|
getPendingPatientERForDoctorApp() async {
|
||||||
|
setState(ViewState.BusyLocal);
|
||||||
|
PendingPatientERForDoctorAppRequestModel
|
||||||
|
pendingPatientERForDoctorAppRequestModel =
|
||||||
|
PendingPatientERForDoctorAppRequestModel(sErServiceID:_dashboardService.sServiceID, outSA: false);
|
||||||
|
await _liveCarePatientServices
|
||||||
|
.getPendingPatientERForDoctorApp(pendingPatientERForDoctorAppRequestModel);
|
||||||
|
if (_liveCarePatientServices.hasError) {
|
||||||
|
error = _liveCarePatientServices.error;
|
||||||
|
|
||||||
|
setState(ViewState.ErrorLocal);
|
||||||
|
} else {
|
||||||
|
filterData = _liveCarePatientServices.patientList;
|
||||||
|
setState(ViewState.Idle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future endCall(request, isPatient, doctorID) async {
|
||||||
|
|
||||||
|
EndCallReq endCallReq = new EndCallReq();
|
||||||
|
endCallReq.doctorId = doctorID; //profile["DoctorID"];
|
||||||
|
endCallReq.generalid = 'Cs2020@2016\$2958';
|
||||||
|
endCallReq.vCID = request.vCID; //["VC_ID"];
|
||||||
|
endCallReq.isDestroy = isPatient;
|
||||||
|
|
||||||
|
setState(ViewState.BusyLocal);
|
||||||
|
await _liveCarePatientServices
|
||||||
|
.endCall(endCallReq);
|
||||||
|
if (_liveCarePatientServices.hasError) {
|
||||||
|
error = _liveCarePatientServices.error;
|
||||||
|
|
||||||
|
setState(ViewState.ErrorLocal);
|
||||||
|
} else {
|
||||||
|
filterData = _liveCarePatientServices.patientList;
|
||||||
|
setState(ViewState.Idle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
searchData(String str) {
|
||||||
|
var strExist= str.length > 0 ? true : false;
|
||||||
|
if (strExist) {
|
||||||
|
filterData = [];
|
||||||
|
for (var i = 0; i < _liveCarePatientServices.patientList.length; i++) {
|
||||||
|
String fullName =
|
||||||
|
_liveCarePatientServices.patientList[i].fullName.toUpperCase();
|
||||||
|
String patientID =
|
||||||
|
_liveCarePatientServices.patientList[i].patientId.toString();
|
||||||
|
String mobile =
|
||||||
|
_liveCarePatientServices.patientList[i].mobileNumber.toUpperCase();
|
||||||
|
|
||||||
|
if (fullName.contains(str.toUpperCase()) ||
|
||||||
|
patientID.contains(str)|| mobile.contains(str)) {
|
||||||
|
filterData.add(_liveCarePatientServices.patientList[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
notifyListeners();
|
||||||
|
} else {
|
||||||
|
filterData = _liveCarePatientServices.patientList;
|
||||||
|
notifyListeners();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,59 +0,0 @@
|
|||||||
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
||||||
import 'package:doctor_app_flutter/core/viewModel/LiveCarePatientViewModel.dart';
|
|
||||||
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
||||||
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
||||||
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
class LiveCarePatientScreen extends StatefulWidget {
|
|
||||||
@override
|
|
||||||
_LiveCarePatientScreenState createState() => _LiveCarePatientScreenState();
|
|
||||||
}
|
|
||||||
|
|
||||||
class _LiveCarePatientScreenState extends State<LiveCarePatientScreen> {
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return BaseView<LiveCarePatientViewModel>(
|
|
||||||
onModelReady: (model) async {},
|
|
||||||
builder: (_, model, w) => AppScaffold(
|
|
||||||
baseViewModel: model,
|
|
||||||
isShowAppBar: false,
|
|
||||||
body: Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Container(
|
|
||||||
padding: EdgeInsets.only(left: 0, right: 5, bottom: 5, top: 5),
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Colors.white,
|
|
||||||
),
|
|
||||||
child: Container(
|
|
||||||
padding: EdgeInsets.only(left: 10, right: 10, bottom: 10),
|
|
||||||
margin: EdgeInsets.only(top: 50),
|
|
||||||
child: Row(children: [
|
|
||||||
IconButton(
|
|
||||||
icon: Icon(Icons.arrow_back_ios),
|
|
||||||
color: Colors.black, //Colors.black,
|
|
||||||
onPressed: () => Navigator.pop(context),
|
|
||||||
),
|
|
||||||
Expanded(
|
|
||||||
child: AppText(
|
|
||||||
"Live Care Patients",
|
|
||||||
fontSize: SizeConfig.textMultiplier * 2.8,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
color: Color(0xFF2B353E),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
]),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Expanded(
|
|
||||||
child: Column(
|
|
||||||
children: [],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -0,0 +1,160 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/viewModel/LiveCarePatientViewModel.dart';
|
||||||
|
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
||||||
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/patients/PatientCard.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_loader_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/errors/error_message.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/text_fields/app_text_form_field.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import '../../routes.dart';
|
||||||
|
|
||||||
|
class LiveCarePatientScreen extends StatefulWidget {
|
||||||
|
@override
|
||||||
|
_LiveCarePatientScreenState createState() => _LiveCarePatientScreenState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _LiveCarePatientScreenState extends State<LiveCarePatientScreen> {
|
||||||
|
final _controller = TextEditingController();
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return BaseView<LiveCarePatientViewModel>(
|
||||||
|
onModelReady: (model) async {
|
||||||
|
await model.getPendingPatientERForDoctorApp();
|
||||||
|
|
||||||
|
},
|
||||||
|
builder: (_, model, w) => AppScaffold(
|
||||||
|
baseViewModel: model,
|
||||||
|
isShowAppBar: false,
|
||||||
|
body: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
padding: EdgeInsets.only(left: 0, right: 5, bottom: 5, top: 5),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
child: Container(
|
||||||
|
padding: EdgeInsets.only(left: 10, right: 10, bottom: 10),
|
||||||
|
margin: EdgeInsets.only(top: 50),
|
||||||
|
child: Row(children: [
|
||||||
|
IconButton(
|
||||||
|
icon: Icon(Icons.arrow_back_ios),
|
||||||
|
color: Colors.black, //Colors.black,
|
||||||
|
onPressed: () => Navigator.pop(context),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: AppText(
|
||||||
|
"Live Care Patients",
|
||||||
|
fontSize: SizeConfig.textMultiplier * 2.8,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
color: Color(0xFF2B353E),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
SizedBox(height: 20,),
|
||||||
|
Center(
|
||||||
|
child: FractionallySizedBox(
|
||||||
|
widthFactor: .9,
|
||||||
|
child: Container(
|
||||||
|
width: double.maxFinite,
|
||||||
|
height: 75,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.all(
|
||||||
|
Radius.circular(6.0)),
|
||||||
|
border: Border.all(
|
||||||
|
width: 1.0,
|
||||||
|
color: Color(0xffCCCCCC),
|
||||||
|
),
|
||||||
|
color: Colors.white),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment:
|
||||||
|
CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
left: 10, top: 10),
|
||||||
|
child: AppText(
|
||||||
|
TranslationBase.of(
|
||||||
|
context)
|
||||||
|
.searchPatientName,
|
||||||
|
fontSize: 13,
|
||||||
|
)),
|
||||||
|
AppTextFormField(
|
||||||
|
// focusNode: focusProject,
|
||||||
|
controller: _controller,
|
||||||
|
borderColor: Colors.white,
|
||||||
|
prefix: IconButton(
|
||||||
|
icon: Icon(
|
||||||
|
DoctorApp.filter_1,
|
||||||
|
color: Colors.black,
|
||||||
|
),
|
||||||
|
iconSize: 20,
|
||||||
|
padding:
|
||||||
|
EdgeInsets.only(
|
||||||
|
bottom: 30),
|
||||||
|
),
|
||||||
|
onChanged: (String str) {
|
||||||
|
model.searchData(str);
|
||||||
|
}),
|
||||||
|
])),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
model.state == ViewState.Idle
|
||||||
|
? Expanded(
|
||||||
|
child: Container(
|
||||||
|
child: model.filterData.isEmpty
|
||||||
|
? Center(
|
||||||
|
child: ErrorMessage(
|
||||||
|
error: TranslationBase.of(context)
|
||||||
|
.youDontHaveAnyPatient,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
: ListView.builder(
|
||||||
|
scrollDirection: Axis.vertical,
|
||||||
|
shrinkWrap: true,
|
||||||
|
itemCount: model.filterData.length,
|
||||||
|
itemBuilder: (BuildContext ctxt, int index) {
|
||||||
|
return Padding(
|
||||||
|
padding: EdgeInsets.all(8.0),
|
||||||
|
child: PatientCard(
|
||||||
|
patientInfo: model.filterData[index],
|
||||||
|
patientType: "0",
|
||||||
|
arrivalType: "0",
|
||||||
|
isFromSearch: false,
|
||||||
|
isInpatient: false,
|
||||||
|
isFromLiveCare:true,
|
||||||
|
onTap: () {
|
||||||
|
// TODO change the parameter to daynamic
|
||||||
|
Navigator.of(context).pushNamed(
|
||||||
|
PATIENTS_PROFILE,
|
||||||
|
arguments: {
|
||||||
|
"patient": model.filterData[index],
|
||||||
|
"patientType": "0",
|
||||||
|
"isSearch": false,
|
||||||
|
"isInpatient": false,
|
||||||
|
"arrivalType": "0",
|
||||||
|
"isSearchAndOut": false,
|
||||||
|
"isFromLiveCare":true
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// isFromSearch: widget.isSearch,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
})),
|
||||||
|
) : Expanded(
|
||||||
|
child: AppLoaderWidget(containerColor: Colors.transparent,)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,227 +0,0 @@
|
|||||||
import 'package:doctor_app_flutter/core/viewModel/patient_view_model.dart';
|
|
||||||
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
||||||
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
||||||
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
||||||
import 'package:doctor_app_flutter/widgets/patients/profile/PatientProfileButton.dart';
|
|
||||||
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design-app-bar.dart';
|
|
||||||
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design.dart';
|
|
||||||
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design_in_patient.dart';
|
|
||||||
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import '../../../routes.dart';
|
|
||||||
|
|
||||||
|
|
||||||
class InPatientProfileScreen extends StatefulWidget {
|
|
||||||
@override
|
|
||||||
_InPatientProfileScreenState createState() => _InPatientProfileScreenState();
|
|
||||||
}
|
|
||||||
|
|
||||||
class _InPatientProfileScreenState extends State<InPatientProfileScreen>with SingleTickerProviderStateMixin {
|
|
||||||
PatiantInformtion patient;
|
|
||||||
|
|
||||||
bool isFromSearch = false;
|
|
||||||
|
|
||||||
bool isInpatient = false;
|
|
||||||
|
|
||||||
bool isDischargedPatient = false;
|
|
||||||
String patientType;
|
|
||||||
String arrivalType;
|
|
||||||
String from;
|
|
||||||
String to;
|
|
||||||
|
|
||||||
|
|
||||||
@override
|
|
||||||
void didChangeDependencies() {
|
|
||||||
super.didChangeDependencies();
|
|
||||||
final routeArgs = ModalRoute.of(context).settings.arguments as Map;
|
|
||||||
patient = routeArgs['patient'];
|
|
||||||
patientType = routeArgs['patientType'];
|
|
||||||
arrivalType = routeArgs['arrivalType'];
|
|
||||||
from = routeArgs['from'];
|
|
||||||
to = routeArgs['to'];
|
|
||||||
if (routeArgs.containsKey("isSearch")) {
|
|
||||||
isFromSearch = routeArgs['isSearch'];
|
|
||||||
}
|
|
||||||
if (routeArgs.containsKey("isInpatient")) {
|
|
||||||
isInpatient = routeArgs['isInpatient'];
|
|
||||||
}
|
|
||||||
if (routeArgs.containsKey("isDischargedPatient")) {
|
|
||||||
isDischargedPatient = routeArgs['isDischargedPatient'];
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return BaseView<PatientViewModel>(
|
|
||||||
builder: (_, patientViewModel, w) => AppScaffold(
|
|
||||||
baseViewModel: patientViewModel,
|
|
||||||
appBarTitle: TranslationBase.of(context).patientProfile,
|
|
||||||
isShowAppBar: true,
|
|
||||||
appBar: PatientProfileHeaderNewDesignAppBar(patient,arrivalType??'0',patientType),
|
|
||||||
body: SingleChildScrollView(
|
|
||||||
child: Container(
|
|
||||||
margin: EdgeInsets.only(top: 10),
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.symmetric(vertical: 15.0,horizontal: 15),
|
|
||||||
child: GridView.count(
|
|
||||||
shrinkWrap: true,
|
|
||||||
physics: NeverScrollableScrollPhysics(),
|
|
||||||
crossAxisSpacing: 10,
|
|
||||||
mainAxisSpacing: 10,
|
|
||||||
childAspectRatio: 1 / 1.0,
|
|
||||||
crossAxisCount: 3,
|
|
||||||
children: [
|
|
||||||
PatientProfileButton(
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
from: from,
|
|
||||||
to: to,
|
|
||||||
nameLine1: TranslationBase.of(context).vital,
|
|
||||||
nameLine2: TranslationBase.of(context).signs,
|
|
||||||
route: VITAL_SIGN_DETAILS,
|
|
||||||
isInPatient: true,
|
|
||||||
icon: 'patient/vital_signs.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
route: LAB_RESULT,
|
|
||||||
isInPatient: true,
|
|
||||||
nameLine1: TranslationBase.of(context).lab,
|
|
||||||
nameLine2: TranslationBase.of(context).result,
|
|
||||||
icon: 'patient/lab_results.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
isInPatient: isInpatient,
|
|
||||||
route: RADIOLOGY_PATIENT,
|
|
||||||
nameLine1: TranslationBase.of(context).radiology,
|
|
||||||
nameLine2: TranslationBase.of(context).result,
|
|
||||||
icon: 'patient/health_summary.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
route: ORDER_PRESCRIPTION_NEW,
|
|
||||||
nameLine1: TranslationBase.of(context).patient,
|
|
||||||
nameLine2: TranslationBase.of(context).prescription,
|
|
||||||
icon: 'patient/order_prescription.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
route: PROGRESS_NOTE,
|
|
||||||
isDischargedPatient: isDischargedPatient,
|
|
||||||
nameLine1: TranslationBase.of(context).progress,
|
|
||||||
nameLine2: TranslationBase.of(context).note,
|
|
||||||
icon: 'patient/Progress_notes.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
route: ORDER_NOTE,
|
|
||||||
isDischargedPatient: isDischargedPatient,
|
|
||||||
nameLine1: "Order", //"Text",
|
|
||||||
nameLine2:
|
|
||||||
"Sheet", //TranslationBase.of(context).orders,
|
|
||||||
icon: 'patient/Progress_notes.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
route: ORDER_PROCEDURE,
|
|
||||||
nameLine1: TranslationBase.of(context).orders,
|
|
||||||
nameLine2: TranslationBase.of(context).procedures,
|
|
||||||
icon: 'patient/Order_Procedures.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
route: HEALTH_SUMMARY,
|
|
||||||
nameLine1: "Health",
|
|
||||||
//TranslationBase.of(context).medicalReport,
|
|
||||||
nameLine2: "Summary",
|
|
||||||
//TranslationBase.of(context).summaryReport,
|
|
||||||
icon: 'patient/health_summary.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
isDisable: true,
|
|
||||||
route: HEALTH_SUMMARY,
|
|
||||||
nameLine1: "Medical", //Health
|
|
||||||
//TranslationBase.of(context).medicalReport,
|
|
||||||
nameLine2: "Report", //Report
|
|
||||||
//TranslationBase.of(context).summaryReport,
|
|
||||||
icon: 'patient/health_summary.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
route: REFER_IN_PATIENT_TO_DOCTOR,
|
|
||||||
isInPatient: true,
|
|
||||||
nameLine1: TranslationBase.of(context).referral,
|
|
||||||
nameLine2: TranslationBase.of(context).patient,
|
|
||||||
icon: 'patient/refer_patient.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
route: PATIENT_INSURANCE_APPROVALS_NEW,
|
|
||||||
nameLine1: TranslationBase.of(context).insurance,
|
|
||||||
nameLine2: TranslationBase.of(context).approvals,
|
|
||||||
icon: 'patient/vital_signs.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
isDisable: true,
|
|
||||||
route: null,
|
|
||||||
nameLine1: "Discharge",
|
|
||||||
nameLine2: "Summery",
|
|
||||||
icon: 'patient/patient_sick_leave.png'),
|
|
||||||
PatientProfileButton(
|
|
||||||
|
|
||||||
patient: patient,
|
|
||||||
patientType: patientType,
|
|
||||||
arrivalType: arrivalType,
|
|
||||||
route: ADD_SICKLEAVE,
|
|
||||||
nameLine1: TranslationBase.of(context).patientSick,
|
|
||||||
nameLine2: TranslationBase.of(context).leave,
|
|
||||||
icon: 'patient/patient_sick_leave.png'),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class AvatarWidget extends StatelessWidget {
|
|
||||||
final Widget avatarIcon;
|
|
||||||
|
|
||||||
AvatarWidget(this.avatarIcon);
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Container(
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
boxShadow: [
|
|
||||||
BoxShadow(
|
|
||||||
color: Color.fromRGBO(0, 0, 0, 0.08),
|
|
||||||
offset: Offset(0.0, 5.0),
|
|
||||||
blurRadius: 16.0)
|
|
||||||
],
|
|
||||||
borderRadius: BorderRadius.all(Radius.circular(35.0)),
|
|
||||||
color: Color(0xffCCCCCC),
|
|
||||||
),
|
|
||||||
child: avatarIcon,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue