Merge branch 'tasks-translation' into 'development'

medical dile & Order Procedure translation

See merge request Cloud_Solution/doctor_app_flutter!256
merge-requests/254/merge
Mohammad Aljammal 5 years ago
commit 9147cde86e

@ -587,14 +587,8 @@ const Map<String, Map<String, String>> localizedValues = {
'en': "There is no detail for this patient", 'en': "There is no detail for this patient",
'ar': "لا توجد تفاصيل لهذا المريض" 'ar': "لا توجد تفاصيل لهذا المريض"
}, },
"systolic-lng": { "systolic-lng": {"en": "Systolic", "ar": "الإنقباض"},
"en": "Systolic", "diastolic-lng": {"en": "Diastolic", "ar": "الإنبساط"},
"ar": "الإنقباض"
},
"diastolic-lng": {
"en": "Diastolic",
"ar": "الإنبساط"
},
"mass": {"en": "Mass", "ar": "كتلة"}, "mass": {"en": "Mass", "ar": "كتلة"},
"temp-c": {"en": "°C", "ar": "°س"}, "temp-c": {"en": "°C", "ar": "°س"},
"bpm": {"en": "bpm", "ar": "نبضة"}, "bpm": {"en": "bpm", "ar": "نبضة"},
@ -603,4 +597,24 @@ const Map<String, Map<String, String>> localizedValues = {
"body": {"en": "Body \n Mass", "ar": "كتلة\nالجسم"}, "body": {"en": "Body \n Mass", "ar": "كتلة\nالجسم"},
'respirationRate': {'en': 'Respiration Rate', 'ar': 'معدل التنفس'}, 'respirationRate': {'en': 'Respiration Rate', 'ar': 'معدل التنفس'},
'heart': {'en': 'Heart', 'ar': 'قلب'}, 'heart': {'en': 'Heart', 'ar': 'قلب'},
'medicalReport': {'en': "medical Report", 'ar': "تقرير طبي"},
'visitDate': {'en': "Visit Date", 'ar': "تاريخ الزيارة"},
'test': {'en': "Procedures/Test", 'ar': "عمليات/تحاليل"},
'regular': {'en': "Regular", 'ar': "اعتيادي"},
'addMoreProcedure': {
'en': "Add More Procedures",
'ar': "اضف المزيد من العمليات"
},
'searchProcedures': {'en': "Search Procedures", 'ar': "البحث في العمليات"},
'selectProcedures': {'en': "Select procedure", 'ar': "اختر العملية"},
'procedureCategorise': {
'en': "Select Procedure Category",
'ar': "اختر صنف العمليات "
},
'addSelectedProcedures': {
'en': "add Selected Procedures",
'ar': "اضافة العمليات المختارة "
},
'updateProcedure': {'en': "Update Procedure", 'ar': "تحديث العملية"},
'orderProcedure': {'en': "order procedure", 'ar': "طلب العمليات"},
}; };

@ -116,7 +116,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
IsLoginForDoctorApp: true, IsLoginForDoctorApp: true,
PatientOutSA: false); PatientOutSA: false);
return BaseView<DashboardViewModel>( return BaseView<DashboardViewModel>(
onModelReady: (model) => model.getDashboard(), //onModelReady: (model) => model.getDashboard(),
builder: (_, model, w) => AppScaffold( builder: (_, model, w) => AppScaffold(
baseViewModel: model, baseViewModel: model,
isShowAppBar: false, isShowAppBar: false,

@ -66,7 +66,7 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
(BuildContext context, MedicalFileViewModel model, Widget child) => (BuildContext context, MedicalFileViewModel model, Widget child) =>
AppScaffold( AppScaffold(
isShowAppBar: true, isShowAppBar: true,
appBarTitle: 'medical file'.toUpperCase(), appBarTitle: TranslationBase.of(context).medicalReport.toUpperCase(),
body: NetworkBaseView( body: NetworkBaseView(
baseViewModel: model, baseViewModel: model,
child: SingleChildScrollView( child: SingleChildScrollView(
@ -141,7 +141,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
Row( Row(
children: [ children: [
AppText( AppText(
'Visit Date : ', TranslationBase.of(context).visitDate +
": ",
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
), ),
if (model.medicalFileList.length != 0 && if (model.medicalFileList.length != 0 &&
@ -174,7 +175,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
Row( Row(
children: [ children: [
AppText( AppText(
'Doctor : '.toUpperCase(), TranslationBase.of(context).doctorName +
": ".toUpperCase(),
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
), ),
if (model.medicalFileList.length != 0 && if (model.medicalFileList.length != 0 &&
@ -203,7 +205,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
Row( Row(
children: [ children: [
AppText( AppText(
'Clinic : ', TranslationBase.of(context).clinicName +
": ",
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
), ),
if (model.medicalFileList.length != 0 && if (model.medicalFileList.length != 0 &&
@ -229,7 +232,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
Row( Row(
children: [ children: [
AppText( AppText(
'Episode Number : ', TranslationBase.of(context).episode +
": ",
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
), ),
if (model.medicalFileList.length != 0 && if (model.medicalFileList.length != 0 &&
@ -277,7 +281,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
Row( Row(
children: [ children: [
Texts( Texts(
'History of present illness' TranslationBase.of(context)
.historyOfPresentIllness
.toUpperCase(), .toUpperCase(),
variant: isHistoryExpand variant: isHistoryExpand
? "bodyText" ? "bodyText"
@ -376,7 +381,10 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
children: [ children: [
Row( Row(
children: [ children: [
Texts('assessment'.toUpperCase(), Texts(
TranslationBase.of(context)
.assessment
.toUpperCase(),
variant: isAssessmentExpand variant: isAssessmentExpand
? "bodyText" ? "bodyText"
: '', : '',
@ -554,7 +562,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
Row( Row(
children: [ children: [
Texts( Texts(
'Test / procedures' TranslationBase.of(context)
.test
.toUpperCase(), .toUpperCase(),
variant: isProcedureExpand variant: isProcedureExpand
? "bodyText" ? "bodyText"
@ -638,18 +647,22 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
), ),
Row( Row(
children: [ children: [
AppText( Expanded(
model child: AppText(
.medicalFileList[0] model
.entityList[0] .medicalFileList[
.timelines[ 0]
encounterNumber] .entityList[0]
.timeLineEvents[0] .timelines[
.consulations[0] encounterNumber]
.lstProcedure[index] .timeLineEvents[0]
.procName, .consulations[0]
fontWeight: .lstProcedure[
FontWeight.w700, index]
.procName,
fontWeight:
FontWeight.w700,
),
) )
], ],
), ),
@ -717,7 +730,10 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
children: [ children: [
Row( Row(
children: [ children: [
Texts('physical exam'.toUpperCase(), Texts(
TranslationBase.of(context)
.physicalSystemExamination
.toUpperCase(),
variant: isPhysicalExam variant: isPhysicalExam
? "bodyText" ? "bodyText"
: '', : '',

@ -27,7 +27,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
(BuildContext context, MedicalFileViewModel model, Widget child) => (BuildContext context, MedicalFileViewModel model, Widget child) =>
AppScaffold( AppScaffold(
isShowAppBar: true, isShowAppBar: true,
appBarTitle: 'medical Report'.toUpperCase(), appBarTitle: TranslationBase.of(context).medicalReport.toUpperCase(),
body: NetworkBaseView( body: NetworkBaseView(
baseViewModel: model, baseViewModel: model,
child: SingleChildScrollView( child: SingleChildScrollView(
@ -93,6 +93,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
if (model.medicalFileList.length != 0) if (model.medicalFileList.length != 0)
ListView.builder( ListView.builder(
//physics: , //physics: ,
physics: NeverScrollableScrollPhysics(),
scrollDirection: Axis.vertical, scrollDirection: Axis.vertical,
shrinkWrap: true, shrinkWrap: true,
itemCount: model itemCount: model
@ -108,7 +109,8 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
Row( Row(
children: [ children: [
AppText( AppText(
'Branch : ', TranslationBase.of(context).branch +
": ",
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
), ),
AppText(model AppText(model
@ -121,13 +123,19 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
Row( Row(
children: [ children: [
AppText( AppText(
'Doctor : '.toUpperCase(), TranslationBase.of(context)
.doctorName
.toUpperCase() +
": ",
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
), ),
Expanded( Expanded(
child: AppText( child: AppText(
model.medicalFileList[0].entityList[0] model
.timelines[index].doctorName, .medicalFileList[0]
.entityList[0]
.timelines[index]
.doctorName,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
), ),
), ),
@ -136,7 +144,9 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
Row( Row(
children: [ children: [
AppText( AppText(
'Clinic : ', TranslationBase.of(context)
.clinicName +
": ",
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
), ),
AppText( AppText(

@ -93,6 +93,7 @@ class PrescriptionFormWidget extends StatefulWidget {
} }
class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> { class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
int selectedType;
TextEditingController durationController = TextEditingController(); TextEditingController durationController = TextEditingController();
TextEditingController strengthController = TextEditingController(); TextEditingController strengthController = TextEditingController();
TextEditingController routeController = TextEditingController(); TextEditingController routeController = TextEditingController();
@ -127,6 +128,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
@override @override
void initState() { void initState() {
super.initState(); super.initState();
selectedType = 1;
referToList = List(); referToList = List();
strengthList = List(); strengthList = List();
routeList = List(); routeList = List();
@ -252,6 +254,12 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
referToList.add(urgentOrder); referToList.add(urgentOrder);
} }
setSelectedType(int val) {
setState(() {
selectedType = val;
});
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final screenSize = MediaQuery.of(context).size; final screenSize = MediaQuery.of(context).size;
@ -344,10 +352,22 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
child: Row( child: Row(
children: [ children: [
AppText('Order Type'), AppText('Order Type'),
Radio(), Radio(
activeColor: Color(0xFFB9382C),
value: 0,
groupValue: selectedType,
onChanged: (value) {
setSelectedType(value);
},
),
Text('Regular'), Text('Regular'),
Radio( Radio(
activeColor: Color(0xFFB9382C),
groupValue: selectedType,
value: 1, value: 1,
onChanged: (value) {
setSelectedType(value);
},
), ),
Text('Urgent'), Text('Urgent'),
], ],

@ -1,6 +1,7 @@
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/procedure/categories_procedure.dart'; import 'package:doctor_app_flutter/core/model/procedure/categories_procedure.dart';
import 'package:doctor_app_flutter/core/viewModel/procedure_View_model.dart'; import 'package:doctor_app_flutter/core/viewModel/procedure_View_model.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/shared/Text.dart'; import 'package:doctor_app_flutter/widgets/shared/Text.dart';
import 'package:doctor_app_flutter/widgets/shared/TextFields.dart'; import 'package:doctor_app_flutter/widgets/shared/TextFields.dart';
import 'package:doctor_app_flutter/widgets/shared/app_buttons_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_buttons_widget.dart';
@ -61,7 +62,7 @@ class _EntityListCheckboxSearchWidgetState
child: ListView( child: ListView(
children: [ children: [
TextFields( TextFields(
hintText: 'Search Procedure', hintText: TranslationBase.of(context).searchProcedures,
suffixIcon: EvaIcons.search, suffixIcon: EvaIcons.search,
onChanged: (value) { onChanged: (value) {
filterSearchResults(value); filterSearchResults(value);

@ -33,8 +33,15 @@ class ProcedureScreen extends StatefulWidget {
} }
class _ProcedureScreenState extends State<ProcedureScreen> { class _ProcedureScreenState extends State<ProcedureScreen> {
int selectedType = 0;
int testNum = 1; int testNum = 1;
PatiantInformtion patient; PatiantInformtion patient;
setSelectedType(int val) {
setState(() {
selectedType = val;
});
}
TextEditingController procedureController = TextEditingController(); TextEditingController procedureController = TextEditingController();
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -45,7 +52,7 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
builder: (BuildContext context, ProcedureViewModel model, Widget child) => builder: (BuildContext context, ProcedureViewModel model, Widget child) =>
AppScaffold( AppScaffold(
isShowAppBar: true, isShowAppBar: true,
appBarTitle: 'ORDER PROCEDURE', appBarTitle: TranslationBase.of(context).orderProcedure,
body: NetworkBaseView( body: NetworkBaseView(
baseViewModel: model, baseViewModel: model,
child: SingleChildScrollView( child: SingleChildScrollView(
@ -199,7 +206,8 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
.spaceBetween, .spaceBetween,
children: [ children: [
AppText( AppText(
' Add more procedure', TranslationBase.of(context)
.addMoreProcedure,
fontWeight: FontWeight.w100, fontWeight: FontWeight.w100,
fontSize: 12.5, fontSize: 12.5,
), ),
@ -275,7 +283,10 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
Row( Row(
children: [ children: [
AppText( AppText(
'Code #: ', TranslationBase.of(
context)
.codeNo +
" : ",
fontWeight: fontWeight:
FontWeight FontWeight
.w700, .w700,
@ -297,7 +308,10 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
width: 12.0, width: 12.0,
), ),
AppText( AppText(
'Order Type: ', TranslationBase.of(
context)
.orderType +
" : ",
fontWeight: fontWeight:
FontWeight FontWeight
.w700, .w700,
@ -312,8 +326,8 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
: 'Urgent', : 'Urgent',
fontSize: fontSize:
13.0, 13.0,
color: Colors color: Color(
.red, 0xFFB9382C),
), ),
], ],
), ),
@ -342,7 +356,10 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
Row( Row(
children: [ children: [
AppText( AppText(
'Price: ', TranslationBase.of(
context)
.price +
" : ",
fontWeight: fontWeight:
FontWeight FontWeight
.w700, .w700,
@ -409,6 +426,12 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
onTap: () { onTap: () {
updateProcedureForm( updateProcedureForm(
context, context,
remarks: model
.procedureList[
0]
.entityList[
index]
.remarks,
procedureName: model procedureName: model
.procedureList[ .procedureList[
0] 0]
@ -452,6 +475,109 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
)), )),
); );
} }
void updateProcedureForm(context,
{String procedureName,
PatiantInformtion patient,
String procedureId,
String remarks,
String categoreId}) {
ProcedureViewModel model = ProcedureViewModel();
TextEditingController remarksController = TextEditingController();
TextEditingController orderController = TextEditingController();
showModalBottomSheet(
context: context,
isScrollControlled: true,
builder: (BuildContext bc) {
return Container(
height: MediaQuery.of(context).size.height * 0.55,
child: Form(
child: Padding(
padding:
EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
AppText(
procedureName.toUpperCase(),
fontWeight: FontWeight.w700,
),
SizedBox(
height: 30.0,
),
Container(
child: Row(
children: [
AppText(TranslationBase.of(context).orderType),
Radio(
activeColor: Color(0xFFB9382C),
value: 0,
groupValue: selectedType,
onChanged: (value) {
setSelectedType(value);
},
),
Text(TranslationBase.of(context).regular),
Radio(
activeColor: Color(0xFFB9382C),
groupValue: selectedType,
value: 1,
onChanged: (value) {
setSelectedType(value);
},
),
Text(TranslationBase.of(context).urgent),
],
),
),
SizedBox(
height: 12.0,
),
Container(
decoration: BoxDecoration(
borderRadius:
BorderRadius.all(Radius.circular(6.0)),
border: Border.all(
width: 1.0, color: HexColor("#CCCCCC"))),
child: TextFields(
hintText: remarks,
controller: remarksController,
maxLines: 5,
minLines: 3,
),
),
SizedBox(
height: 100.0,
),
Container(
margin: EdgeInsets.all(SizeConfig.widthMultiplier * 2),
child: Wrap(
alignment: WrapAlignment.center,
children: <Widget>[
AppButton(
title: TranslationBase.of(context)
.updateProcedure
.toUpperCase(),
onPressed: () {
Navigator.pop(context);
updateProcedure(
categorieId: categoreId,
procedureId: procedureId,
patient: patient,
model: model,
remarks: remarksController.text);
// authorizationForm(context);
},
),
],
),
),
],
),
),
));
});
}
} }
postProcedure( postProcedure(
@ -553,6 +679,7 @@ class AddSelectedProcedure extends StatefulWidget {
} }
class _AddSelectedProcedureState extends State<AddSelectedProcedure> { class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
int selectedType;
ProcedureViewModel model; ProcedureViewModel model;
PatiantInformtion patient; PatiantInformtion patient;
_AddSelectedProcedureState({this.patient, this.model}); _AddSelectedProcedureState({this.patient, this.model});
@ -560,6 +687,12 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
TextEditingController remarksController = TextEditingController(); TextEditingController remarksController = TextEditingController();
List<EntityList> entityList = List(); List<EntityList> entityList = List();
dynamic selectedCategory; dynamic selectedCategory;
setSelectedType(int val) {
setState(() {
selectedType = val;
});
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final screenSize = MediaQuery.of(context).size; final screenSize = MediaQuery.of(context).size;
@ -582,11 +715,13 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
AppText( AppText(
'Search Procedure Category'.toUpperCase(), TranslationBase.of(context)
.selectProcedures
.toUpperCase(),
fontWeight: FontWeight.w900, fontWeight: FontWeight.w900,
), ),
SizedBox( SizedBox(
height: 5.0, height: 10.0,
), ),
Container( Container(
height: screenSize.height * 0.070, height: screenSize.height * 0.070,
@ -620,7 +755,8 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
: null, : null,
child: TextField( child: TextField(
decoration: textFieldSelectorDecoration( decoration: textFieldSelectorDecoration(
'Procedure Categorey', TranslationBase.of(context)
.procedureCategorise,
selectedCategory != null selectedCategory != null
? selectedCategory['categoryName'] ? selectedCategory['categoryName']
: null, : null,
@ -665,21 +801,36 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Container( Container(
decoration: BoxDecoration( child: Row(
borderRadius: children: [
BorderRadius.all(Radius.circular(6.0)), AppText(
border: Border.all( TranslationBase.of(context).orderType),
width: 1.0, color: HexColor("#CCCCCC"))), Radio(
child: TextFields( activeColor: Color(0xFFB9382C),
hintText: 'Order Type'.toUpperCase(), value: 0,
controller: procedureController, groupValue: selectedType,
onChanged: (value) {
setSelectedType(value);
},
),
Text(TranslationBase.of(context).regular),
Radio(
activeColor: Color(0xFFB9382C),
groupValue: selectedType,
value: 1,
onChanged: (value) {
setSelectedType(value);
},
),
Text(TranslationBase.of(context).urgent),
],
), ),
), ),
SizedBox( SizedBox(
height: 15.0, height: 15.0,
), ),
TextFields( TextFields(
hintText: 'Remarks', hintText: TranslationBase.of(context).remarks,
controller: remarksController, controller: remarksController,
minLines: 3, minLines: 3,
maxLines: 5, maxLines: 5,
@ -694,8 +845,8 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
alignment: WrapAlignment.center, alignment: WrapAlignment.center,
children: <Widget>[ children: <Widget>[
AppButton( AppButton(
title: title: TranslationBase.of(context)
'add Selected Procedures'.toUpperCase(), .addSelectedProcedures,
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
postProcedure( postProcedure(
@ -761,86 +912,3 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
); );
} }
} }
void updateProcedureForm(context,
{String procedureName,
PatiantInformtion patient,
String procedureId,
String categoreId}) {
ProcedureViewModel model = ProcedureViewModel();
TextEditingController remarksController = TextEditingController();
TextEditingController orderController = TextEditingController();
showModalBottomSheet(
context: context,
isScrollControlled: true,
builder: (BuildContext bc) {
return Container(
height: MediaQuery.of(context).size.height * 0.55,
child: Form(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
AppText(
procedureName.toUpperCase(),
fontWeight: FontWeight.w700,
),
SizedBox(
height: 30.0,
),
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(6.0)),
border: Border.all(
width: 1.0, color: HexColor("#CCCCCC"))),
child: TextFields(
hintText: 'Order ',
controller: orderController,
),
),
SizedBox(
height: 12.0,
),
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(6.0)),
border: Border.all(
width: 1.0, color: HexColor("#CCCCCC"))),
child: TextFields(
hintText: 'Remarks',
controller: remarksController,
maxLines: 5,
minLines: 3,
),
),
SizedBox(
height: 100.0,
),
Container(
margin: EdgeInsets.all(SizeConfig.widthMultiplier * 2),
child: Wrap(
alignment: WrapAlignment.center,
children: <Widget>[
AppButton(
title: 'Update procedure'.toUpperCase(),
onPressed: () {
Navigator.pop(context);
updateProcedure(
categorieId: categoreId,
procedureId: procedureId,
patient: patient,
model: model,
remarks: remarksController.text);
// authorizationForm(context);
},
),
],
),
),
],
),
),
));
});
}

@ -612,8 +612,10 @@ class TranslationBase {
String get doc => localizedValues['doc'][locale.languageCode]; String get doc => localizedValues['doc'][locale.languageCode];
String get patientNoDetailErrMsg => String get patientNoDetailErrMsg =>
localizedValues['patientNoDetailErrMsg'][locale.languageCode]; localizedValues['patientNoDetailErrMsg'][locale.languageCode];
String get systolicLng => localizedValues['systolic-lng'][locale.languageCode]; String get systolicLng =>
String get diastolicLng => localizedValues['diastolic-lng'][locale.languageCode]; localizedValues['systolic-lng'][locale.languageCode];
String get diastolicLng =>
localizedValues['diastolic-lng'][locale.languageCode];
String get mass => localizedValues['mass'][locale.languageCode]; String get mass => localizedValues['mass'][locale.languageCode];
String get tempC => localizedValues['temp-c'][locale.languageCode]; String get tempC => localizedValues['temp-c'][locale.languageCode];
String get bpm => localizedValues['bpm'][locale.languageCode]; String get bpm => localizedValues['bpm'][locale.languageCode];
@ -624,6 +626,26 @@ class TranslationBase {
String get respirationRate => String get respirationRate =>
localizedValues['respirationRate'][locale.languageCode]; localizedValues['respirationRate'][locale.languageCode];
String get heart => localizedValues['heart'][locale.languageCode]; String get heart => localizedValues['heart'][locale.languageCode];
String get medicalReport =>
localizedValues['medicalReport'][locale.languageCode];
String get visitDate => localizedValues['visitDate'][locale.languageCode];
String get test => localizedValues['test'][locale.languageCode];
String get addMoreProcedure =>
localizedValues['addMoreProcedure'][locale.languageCode];
String get regular => localizedValues['regular'][locale.languageCode];
String get searchProcedures =>
localizedValues['searchProcedures'][locale.languageCode];
String get procedureCategorise =>
localizedValues['procedureCategorise'][locale.languageCode];
String get selectProcedures =>
localizedValues['selectProcedures'][locale.languageCode];
String get addSelectedProcedures =>
localizedValues['addSelectedProcedures'][locale.languageCode];
String get updateProcedure =>
localizedValues['updateProcedure'][locale.languageCode];
String get orderProcedure =>
localizedValues['orderProcedure'][locale.languageCode];
} }
class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> { class TranslationBaseDelegate extends LocalizationsDelegate<TranslationBase> {

@ -27,11 +27,11 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
ProfileMedicalInfoWidget( ProfileMedicalInfoWidget(
{Key key, this.patient, this.patientType, this.from, this.to}); {Key key, this.patient, this.patientType, this.from, this.to});
PatiantInformtion patient;
String patientType;
String from; String from;
String to; String to;
PatiantInformtion patient;
String patientType;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BaseView<SOAPViewModel>( return BaseView<SOAPViewModel>(
@ -78,7 +78,10 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
to: to, to: to,
nameLine1: TranslationBase.of(context).vital, nameLine1: TranslationBase.of(context).vital,
nameLine2: TranslationBase.of(context).signs, nameLine2: TranslationBase.of(context).signs,
route: VITAL_SIGN_DETAILS /*PATIENT_VITAL_SIGN*/, route:
VITAL_SIGN_DETAILS /* PATIENT_VITAL_SIGN
*/
,
icon: 'heartbeat.png'), icon: 'heartbeat.png'),
if (selectedPatientType != 7) if (selectedPatientType != 7)
PatientProfileButton( PatientProfileButton(
@ -117,15 +120,15 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
key: key, key: key,
patient: patient, patient: patient,
route: ORDER_PRESCRIPTION, route: ORDER_PRESCRIPTION,
nameLine1: 'Order', nameLine1: TranslationBase.of(context).orders,
nameLine2: 'Prescription', nameLine2: TranslationBase.of(context).prescription,
icon: 'lab.png'), icon: 'lab.png'),
PatientProfileButton( PatientProfileButton(
key: key, key: key,
patient: patient, patient: patient,
route: ORDER_PROCEDURE, route: ORDER_PROCEDURE,
nameLine1: 'Order Test', nameLine1: TranslationBase.of(context).orders,
nameLine2: 'Or Procedures', nameLine2: TranslationBase.of(context).procedures,
icon: 'lab.png'), icon: 'lab.png'),
if (selectedPatientType == 7) if (selectedPatientType == 7)
PatientProfileButton( PatientProfileButton(

@ -510,7 +510,7 @@ packages:
name: js name: js
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.6.2" version: "0.6.3-nullsafety.1"
json_annotation: json_annotation:
dependency: transitive dependency: transitive
description: description:

Loading…
Cancel
Save