Merge branch 'in-patient-changes' into 'development'

In patient changes

See merge request Cloud_Solution/doctor_app_flutter!536
merge-requests/537/merge
Mohammad Aljammal 5 years ago
commit e4aae762cc

@ -47,10 +47,10 @@ class LabResult {
lineItemNo = json['LineItemNo']; lineItemNo = json['LineItemNo'];
maleInterpretativeData = json['MaleInterpretativeData']; maleInterpretativeData = json['MaleInterpretativeData'];
notes = json['Notes']; notes = json['Notes'];
packageID = json['PackageID']; packageID = json['PackageID'].toString();
patientID = json['PatientID']; patientID = json['PatientID'];
projectID = json['ProjectID']; projectID = json['ProjectID'].toString();
referanceRange = json['ReferanceRange']; referanceRange = json['ReferenceRange'] ?? json['ReferanceRange'];
resultValue = json['ResultValue']; resultValue = json['ResultValue'];
sampleCollectedOn = json['SampleCollectedOn']; sampleCollectedOn = json['SampleCollectedOn'];
sampleReceivedOn = json['SampleReceivedOn']; sampleReceivedOn = json['SampleReceivedOn'];

@ -85,7 +85,7 @@ class PatientLabOrders {
doctorTitle = json['DoctorTitle']; doctorTitle = json['DoctorTitle'];
gender = json['Gender']; gender = json['Gender'];
genderDescription = json['GenderDescription']; genderDescription = json['GenderDescription'];
invoiceNo = json['InvoiceNo']; invoiceNo = json['InvoiceNo'].toString();
isActiveDoctorProfile = json['IsActiveDoctorProfile']; isActiveDoctorProfile = json['IsActiveDoctorProfile'];
isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall']; isDoctorAllowVedioCall = json['IsDoctorAllowVedioCall'];
isExecludeDoctor = json['IsExecludeDoctor']; isExecludeDoctor = json['IsExecludeDoctor'];
@ -96,9 +96,9 @@ class PatientLabOrders {
nationalityFlagURL = json['NationalityFlagURL']; nationalityFlagURL = json['NationalityFlagURL'];
noOfPatientsRate = json['NoOfPatientsRate']; noOfPatientsRate = json['NoOfPatientsRate'];
orderDate = DateUtils.convertStringToDate(json['OrderDate']); orderDate = DateUtils.convertStringToDate(json['OrderDate']);
orderNo = json['OrderNo']; orderNo = json['OrderNo'].toString();
patientID = json['PatientID']; patientID = json['PatientID'].toString();
projectID = json['ProjectID']; projectID = json['ProjectID'].toString();
projectName = json['ProjectName']; projectName = json['ProjectName'];
projectNameN = json['ProjectNameN']; projectNameN = json['ProjectNameN'];
qR = json['QR']; qR = json['QR'];

@ -65,7 +65,7 @@ class RequestPatientLabSpecialResult {
data['OrderNo'] = this.orderNo; data['OrderNo'] = this.orderNo;
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
data['ProjectID'] = this.projectID; data['ProjectID'] = this.projectID;
data['ClinicID'] = this.clinicID; data['ClinicID'] = this.clinicID ?? 0;
data['VersionID'] = this.versionID; data['VersionID'] = this.versionID;
data['Channel'] = this.channel; data['Channel'] = this.channel;
data['LanguageID'] = this.languageID; data['LanguageID'] = this.languageID;

@ -12,16 +12,30 @@ import 'base/base_service.dart';
class LabsService extends BaseService { class LabsService extends BaseService {
List<PatientLabOrders> patientLabOrdersList = List(); List<PatientLabOrders> patientLabOrdersList = List();
Future getPatientLabOrdersList(PatiantInformtion patient) async { Future getPatientLabOrdersList(
PatiantInformtion patient, bool isArrived) async {
hasError = false; hasError = false;
Map<String, dynamic> body = Map(); Map<String, dynamic> body = Map();
body['isDentalAllowedBackend'] = false; String url = "";
await baseAppClient.postPatient(GET_Patient_LAB_ORDERS, patient: patient, if (isArrived) {
body['isDentalAllowedBackend'] = false;
url = GET_Patient_LAB_ORDERS;
} else {
url = GET_PATIENT_LAB_OREDERS;
}
await baseAppClient.postPatient(url, patient: patient,
onSuccess: (dynamic response, int statusCode) { onSuccess: (dynamic response, int statusCode) {
patientLabOrdersList.clear(); patientLabOrdersList.clear();
response['ListPLO'].forEach((hospital) { if (isArrived) {
patientLabOrdersList.add(PatientLabOrders.fromJson(hospital)); response['ListPLO'].forEach((hospital) {
}); patientLabOrdersList.add(PatientLabOrders.fromJson(hospital));
});
} else {
response['List_GetLabOreders'].forEach((hospital) {
patientLabOrdersList.add(PatientLabOrders.fromJson(hospital));
});
}
}, onFailure: (String error, int statusCode) { }, onFailure: (String error, int statusCode) {
hasError = true; hasError = true;
super.error = error; super.error = error;
@ -40,42 +54,65 @@ class LabsService extends BaseService {
int clinicID, int clinicID,
String invoiceNo, String invoiceNo,
String orderNo, String orderNo,
PatiantInformtion patient}) async { PatiantInformtion patient,
bool isInpatient = false}) async {
hasError = false; hasError = false;
Map<String, dynamic> body = Map();
_requestPatientLabSpecialResult.projectID = projectID; _requestPatientLabSpecialResult.projectID = projectID;
_requestPatientLabSpecialResult.clinicID = clinicID; _requestPatientLabSpecialResult.clinicID = clinicID;
_requestPatientLabSpecialResult.invoiceNo = invoiceNo; _requestPatientLabSpecialResult.invoiceNo = invoiceNo;
_requestPatientLabSpecialResult.orderNo = orderNo; _requestPatientLabSpecialResult.orderNo = orderNo;
body = _requestPatientLabSpecialResult.toJson();
await baseAppClient.postPatient(GET_Patient_LAB_SPECIAL_RESULT, await baseAppClient.postPatient(GET_Patient_LAB_SPECIAL_RESULT, patient: patient,
patient: patient, onSuccess: (dynamic response, int statusCode) { onSuccess: (dynamic response, int statusCode) {
patientLabSpecialResult.clear(); patientLabSpecialResult.clear();
response['ListPLSR'].forEach((hospital) { response['ListPLSR'].forEach((hospital) {
patientLabSpecialResult.add(PatientLabSpecialResult.fromJson(hospital)); patientLabSpecialResult.add(PatientLabSpecialResult.fromJson(hospital));
}); });
}, onFailure: (String error, int statusCode) { }, onFailure: (String error, int statusCode) {
hasError = true; hasError = true;
super.error = error; super.error = error;
}, body: _requestPatientLabSpecialResult.toJson()); }, body: body);
} }
Future getPatientLabResult( Future getPatientLabResult(
{PatientLabOrders patientLabOrder, PatiantInformtion patient}) async { {PatientLabOrders patientLabOrder, PatiantInformtion patient, bool isInpatient}) async {
hasError = false; hasError = false;
String url = "";
if (isInpatient) {
url = GET_PATIENT_LAB_RESULTS;
} else {
url = GET_Patient_LAB_RESULT;
}
Map<String, dynamic> body = Map(); Map<String, dynamic> body = Map();
body['InvoiceNo'] = patientLabOrder.invoiceNo; body['InvoiceNo'] = patientLabOrder.invoiceNo;
body['OrderNo'] = patientLabOrder.orderNo; body['OrderNo'] = patientLabOrder.orderNo;
body['isDentalAllowedBackend'] = false; body['isDentalAllowedBackend'] = false;
body['SetupID'] = patientLabOrder.setupID; body['SetupID'] = patientLabOrder.setupID;
body['ProjectID'] = patientLabOrder.projectID; body['ProjectID'] = patientLabOrder.projectID;
body['ClinicID'] = patientLabOrder.clinicID; body['ClinicID'] = patientLabOrder.clinicID ?? 0;
await baseAppClient.postPatient(GET_Patient_LAB_RESULT, patient: patient,
await baseAppClient.postPatient(url, patient: patient,
onSuccess: (dynamic response, int statusCode) { onSuccess: (dynamic response, int statusCode) {
patientLabSpecialResult.clear(); patientLabSpecialResult.clear();
labResultList.clear(); labResultList.clear();
response['ListPLR'].forEach((lab) {
labResultList.add(LabResult.fromJson(lab)); if(isInpatient){
}); response['List_GetLabNormal'].forEach((hospital) {
labResultList.add(LabResult.fromJson(hospital));
});
}else {
response['ListPLR'].forEach((lab) {
labResultList.add(LabResult.fromJson(lab));
});
}
}, onFailure: (String error, int statusCode) { }, onFailure: (String error, int statusCode) {
hasError = true; hasError = true;
super.error = error; super.error = error;

@ -28,7 +28,7 @@ class LabsViewModel extends BaseViewModel {
void getLabs(PatiantInformtion patient) async { void getLabs(PatiantInformtion patient) async {
setState(ViewState.Busy); setState(ViewState.Busy);
await _labsService.getPatientLabOrdersList(patient); await _labsService.getPatientLabOrdersList(patient, true);
if (_labsService.hasError) { if (_labsService.hasError) {
error = _labsService.error; error = _labsService.error;
setState(ViewState.Error); setState(ViewState.Error);
@ -89,7 +89,6 @@ class LabsViewModel extends BaseViewModel {
List<LabResultList> labResultLists = List(); List<LabResultList> labResultLists = List();
List<LabResultList> get labResultListsCoustom { List<LabResultList> get labResultListsCoustom {
return labResultLists; return labResultLists;
} }
@ -98,14 +97,16 @@ class LabsViewModel extends BaseViewModel {
int clinicID, int clinicID,
String invoiceNo, String invoiceNo,
String orderNo, String orderNo,
PatiantInformtion patient}) async { PatiantInformtion patient,
bool isInpatient}) async {
setState(ViewState.Busy); setState(ViewState.Busy);
await _labsService.getLaboratoryResult( await _labsService.getLaboratoryResult(
invoiceNo: invoiceNo, invoiceNo: invoiceNo,
orderNo: orderNo, orderNo: orderNo,
projectID: projectID, projectID: projectID,
clinicID: clinicID, clinicID: clinicID,
patient: patient); patient: patient,
isInpatient: isInpatient);
if (_labsService.hasError) { if (_labsService.hasError) {
error = _labsService.error; error = _labsService.error;
setState(ViewState.Error); setState(ViewState.Error);
@ -114,9 +115,11 @@ class LabsViewModel extends BaseViewModel {
} }
} }
getPatientLabResult({PatientLabOrders patientLabOrder,PatiantInformtion patient}) async { getPatientLabResult(
{PatientLabOrders patientLabOrder, PatiantInformtion patient, bool isInpatient}) async {
setState(ViewState.Busy); setState(ViewState.Busy);
await _labsService.getPatientLabResult(patientLabOrder: patientLabOrder,patient: patient); await _labsService.getPatientLabResult(
patientLabOrder: patientLabOrder, patient: patient, isInpatient: isInpatient);
if (_labsService.hasError) { if (_labsService.hasError) {
error = _labsService.error; error = _labsService.error;
setState(ViewState.Error); setState(ViewState.Error);
@ -149,10 +152,14 @@ class LabsViewModel extends BaseViewModel {
} }
getPatientLabOrdersResults( getPatientLabOrdersResults(
{PatientLabOrders patientLabOrder, String procedure,PatiantInformtion patient}) async { {PatientLabOrders patientLabOrder,
String procedure,
PatiantInformtion patient}) async {
setState(ViewState.Busy); setState(ViewState.Busy);
await _labsService.getPatientLabOrdersResults( await _labsService.getPatientLabOrdersResults(
patientLabOrder: patientLabOrder, procedure: procedure,patient: patient); patientLabOrder: patientLabOrder,
procedure: procedure,
patient: patient);
if (_labsService.hasError) { if (_labsService.hasError) {
error = _labsService.error; error = _labsService.error;
setState(ViewState.Error); setState(ViewState.Error);

@ -228,7 +228,7 @@ class ProcedureViewModel extends BaseViewModel {
void getLabs(PatiantInformtion patient,{bool isArrived}) async { void getLabs(PatiantInformtion patient,{bool isArrived}) async {
setState(ViewState.Busy); setState(ViewState.Busy);
await _labsService.getPatientLabOrdersList(patient); await _labsService.getPatientLabOrdersList(patient, isArrived);
if (_labsService.hasError) { if (_labsService.hasError) {
error = _labsService.error; error = _labsService.error;
if(isArrived) if(isArrived)

@ -11,15 +11,23 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
class LabResultWidget extends StatelessWidget { class LabResultWidget extends StatelessWidget {
final String filterName; final String filterName;
final List<LabResult> patientLabResultList; final List<LabResult> patientLabResultList;
final PatientLabOrders patientLabOrder; final PatientLabOrders patientLabOrder;
final PatiantInformtion patient; final PatiantInformtion patient;
LabResultWidget({Key key, this.filterName, this.patientLabResultList, this.patientLabOrder, this.patient}) : super(key: key); final bool isInpatient;
LabResultWidget(
{Key key,
this.filterName,
this.patientLabResultList,
this.patientLabOrder,
this.patient,
this.isInpatient})
: super(key: key);
ProjectViewModel projectViewModel; ProjectViewModel projectViewModel;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
projectViewModel = Provider.of(context); projectViewModel = Provider.of(context);
@ -29,31 +37,32 @@ class LabResultWidget extends StatelessWidget {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Row( if (!isInpatient)
mainAxisAlignment: MainAxisAlignment.spaceBetween, Row(
children: [ mainAxisAlignment: MainAxisAlignment.spaceBetween,
AppText(filterName), children: [
InkWell( AppText(filterName),
onTap: () { InkWell(
Navigator.push( onTap: () {
context, Navigator.push(
FadePage( context,
page: FlowChartPage( FadePage(
filterName: filterName, page: FlowChartPage(
patientLabOrder: patientLabOrder, filterName: filterName,
patient: patient, patientLabOrder: patientLabOrder,
patient: patient,
),
), ),
), );
); },
}, child: AppText(
child: AppText( TranslationBase.of(context).showMoreBtn,
TranslationBase.of(context).showMoreBtn, textDecoration: TextDecoration.underline,
textDecoration: TextDecoration.underline, color: Colors.blue,
color: Colors.blue, ),
), ),
), ],
], ),
),
Row( Row(
children: [ children: [
Expanded( Expanded(
@ -61,7 +70,8 @@ class LabResultWidget extends StatelessWidget {
child: Center( child: Center(
child: AppText( child: AppText(
TranslationBase.of(context).description, TranslationBase.of(context).description,
color: Colors.black,bold: true, color: Colors.black,
bold: true,
), ),
), ),
), ),
@ -69,68 +79,87 @@ class LabResultWidget extends StatelessWidget {
Expanded( Expanded(
child: Container( child: Container(
child: Center( child: Center(
child: AppText(TranslationBase.of(context).value, color: Colors.black,bold: true,), child: AppText(
TranslationBase.of(context).value,
color: Colors.black,
bold: true,
),
), ),
), ),
), ),
Expanded( Expanded(
child: Container( child: Container(
child: Center( child: Center(
child: AppText(TranslationBase.of(context).range, color: Colors.black,bold: true,), child: AppText(
TranslationBase.of(context).range,
color: Colors.black,
bold: true,
),
), ),
), ),
) )
], ],
), ),
SizedBox(height: 7,), SizedBox(
Divider(color: Colors.black,thickness: 1,), height: 7,
SizedBox(height: 12,), ),
...List.generate(patientLabResultList.length, (index) => Column( Divider(
children: [ color: Colors.black,
Row( thickness: 1,
children: [ ),
Expanded( SizedBox(
child: Container( height: 12,
padding: EdgeInsets.all(10), ),
color: Colors.white, ...List.generate(
child: Center( patientLabResultList.length,
child: AppText( (index) => Column(
'${patientLabResultList[index].testCode}\n'+ children: [
patientLabResultList[index].description, Row(
textAlign: TextAlign.center, children: [
), Expanded(
), child: Container(
), padding: EdgeInsets.all(10),
), color: Colors.white,
Expanded( child: Center(
child: Container( child: AppText(
padding: EdgeInsets.all(10), '${patientLabResultList[index].testCode}\n' +
color: Colors.white, patientLabResultList[index].description,
child: Center( textAlign: TextAlign.center,
child: AppText( ),
patientLabResultList[index].resultValue+" "+patientLabResultList[index].uOM, ),
textAlign: TextAlign.center, ),
), ),
), Expanded(
), child: Container(
), padding: EdgeInsets.all(10),
Expanded( color: Colors.white,
child: Container( child: Center(
padding: EdgeInsets.all(10), child: AppText(
color: Colors.white, patientLabResultList[index].resultValue +
child: Center( " " +
child: AppText( "${patientLabResultList[index].uOM ?? ""}",
patientLabResultList[index].referanceRange, textAlign: TextAlign.center,
textAlign: TextAlign.center, ),
), ),
),
),
Expanded(
child: Container(
padding: EdgeInsets.all(10),
color: Colors.white,
child: Center(
child: AppText(
patientLabResultList[index].referanceRange,
textAlign: TextAlign.center,
),
),
),
),
],
), ),
), Divider(),
), ],
], ))
),
Divider(),
],
))
// Table( // Table(
// border: TableBorder.symmetric( // border: TableBorder.symmetric(
// inside: BorderSide(width: 2.0, color: Colors.grey[300],style: BorderStyle.solid), // inside: BorderSide(width: 2.0, color: Colors.grey[300],style: BorderStyle.solid),
@ -141,7 +170,8 @@ class LabResultWidget extends StatelessWidget {
), ),
); );
} }
List<TableRow> fullData(List<LabResult> labResultList,context) {
List<TableRow> fullData(List<LabResult> labResultList, context) {
List<TableRow> tableRow = []; List<TableRow> tableRow = [];
tableRow.add( tableRow.add(
TableRow( TableRow(
@ -150,18 +180,27 @@ class LabResultWidget extends StatelessWidget {
child: Center( child: Center(
child: AppText( child: AppText(
TranslationBase.of(context).description, TranslationBase.of(context).description,
color: Colors.black,bold: true, color: Colors.black,
bold: true,
), ),
), ),
), ),
Container( Container(
child: Center( child: Center(
child: AppText(TranslationBase.of(context).value, color: Colors.black,bold: true,), child: AppText(
TranslationBase.of(context).value,
color: Colors.black,
bold: true,
),
), ),
), ),
Container( Container(
child: Center( child: Center(
child: AppText(TranslationBase.of(context).range, color: Colors.black,bold: true,), child: AppText(
TranslationBase.of(context).range,
color: Colors.black,
bold: true,
),
), ),
), ),
], ],
@ -189,7 +228,7 @@ class LabResultWidget extends StatelessWidget {
color: Colors.white, color: Colors.white,
child: Center( child: Center(
child: AppText( child: AppText(
lab.resultValue+" "+lab.uOM, lab.resultValue + " " + lab.uOM,
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
), ),
@ -213,7 +252,4 @@ class LabResultWidget extends StatelessWidget {
}); });
return tableRow; return tableRow;
} }
} }

@ -18,7 +18,13 @@ class LaboratoryResultPage extends StatefulWidget {
final PatiantInformtion patient; final PatiantInformtion patient;
final String patientType; final String patientType;
final String arrivalType; final String arrivalType;
LaboratoryResultPage({Key key, this.patientLabOrders, this.patient, this.patientType, this.arrivalType});
LaboratoryResultPage(
{Key key,
this.patientLabOrders,
this.patient,
this.patientType,
this.arrivalType});
@override @override
_LaboratoryResultPageState createState() => _LaboratoryResultPageState(); _LaboratoryResultPageState createState() => _LaboratoryResultPageState();
@ -33,15 +39,16 @@ class _LaboratoryResultPageState extends State<LaboratoryResultPage> {
clinicID: widget.patientLabOrders.clinicID, clinicID: widget.patientLabOrders.clinicID,
projectID: widget.patientLabOrders.projectID, projectID: widget.patientLabOrders.projectID,
orderNo: widget.patientLabOrders.orderNo, orderNo: widget.patientLabOrders.orderNo,
patient: widget.patient), patient: widget.patient,
isInpatient: widget.patientType == "1"),
builder: (_, model, w) => AppScaffold( builder: (_, model, w) => AppScaffold(
isShowAppBar: true, isShowAppBar: true,
appBar: PatientProfileHeaderWhitAppointmentAppBar( appBar: PatientProfileHeaderWhitAppointmentAppBar(
patient: widget.patient, patient: widget.patient,
patientType: widget.patientType??"0", patientType: widget.patientType ?? "0",
arrivalType: widget.arrivalType??"0", arrivalType: widget.arrivalType ?? "0",
orderNo: widget.patientLabOrders.orderNo, orderNo: widget.patientLabOrders.orderNo,
appointmentDate:widget.patientLabOrders.orderDate, appointmentDate: widget.patientLabOrders.orderDate,
doctorName: widget.patientLabOrders.doctorName, doctorName: widget.patientLabOrders.doctorName,
branch: widget.patientLabOrders.projectName, branch: widget.patientLabOrders.projectName,
clinic: widget.patientLabOrders.clinicDescription, clinic: widget.patientLabOrders.clinicDescription,
@ -53,17 +60,18 @@ class _LaboratoryResultPageState extends State<LaboratoryResultPage> {
body: SingleChildScrollView( body: SingleChildScrollView(
child: Column( child: Column(
children: [ children: [
...List.generate(model.patientLabSpecialResult.length, (index) => LaboratoryResultWidget( ...List.generate(
onTap: () async { model.patientLabSpecialResult.length,
(index) => LaboratoryResultWidget(
}, onTap: () async {},
billNo: widget.patientLabOrders.invoiceNo, billNo: widget.patientLabOrders.invoiceNo,
details: model.patientLabSpecialResult[index].resultDataHTML, details: model
orderNo: widget.patientLabOrders.orderNo, .patientLabSpecialResult[index].resultDataHTML,
patientLabOrder: widget.patientLabOrders, orderNo: widget.patientLabOrders.orderNo,
patient: widget.patient, patientLabOrder: widget.patientLabOrders,
)), patient: widget.patient,
isInpatient: widget.patientType == "1",
)),
], ],
), ),
), ),

@ -20,13 +20,17 @@ class LaboratoryResultWidget extends StatefulWidget {
final String orderNo; final String orderNo;
final PatientLabOrders patientLabOrder; final PatientLabOrders patientLabOrder;
final PatiantInformtion patient; final PatiantInformtion patient;
final bool isInpatient;
const LaboratoryResultWidget( const LaboratoryResultWidget(
{Key key, {Key key,
this.onTap, this.onTap,
this.billNo, this.billNo,
this.details, this.details,
this.orderNo, this.orderNo,
this.patientLabOrder, this.patient}) this.patientLabOrder,
this.patient,
this.isInpatient})
: super(key: key); : super(key: key);
@override @override
@ -41,7 +45,10 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
projectViewModel = Provider.of(context); projectViewModel = Provider.of(context);
return BaseView<LabsViewModel>( return BaseView<LabsViewModel>(
onModelReady: (model) => model.getPatientLabResult(patientLabOrder: widget.patientLabOrder,patient: widget.patient), onModelReady: (model) => model.getPatientLabResult(
patientLabOrder: widget.patientLabOrder,
patient: widget.patient,
isInpatient: widget.isInpatient),
builder: (_, model, w) => NetworkBaseView( builder: (_, model, w) => NetworkBaseView(
baseViewModel: model, baseViewModel: model,
child: Container( child: Container(
@ -77,9 +84,15 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
)), )),
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Expanded(child: Container( Expanded(
margin: EdgeInsets.only(left: 10, right: 10), child: Container(
child: AppText(TranslationBase.of(context).generalResult,bold: true,))), margin: EdgeInsets.only(
left: 10, right: 10),
child: AppText(
TranslationBase.of(context)
.generalResult,
bold: true,
))),
Container( Container(
width: 25, width: 25,
height: 25, height: 25,
@ -115,14 +128,15 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
children: <Widget>[ children: <Widget>[
...List.generate( ...List.generate(
model.labResultLists.length, model.labResultLists.length,
(index) => LabResultWidget( (index) => LabResultWidget(
patientLabOrder: widget.patientLabOrder, patientLabOrder: widget.patientLabOrder,
filterName: model filterName: model
.labResultLists[index].filterName, .labResultLists[index].filterName,
patientLabResultList: model patientLabResultList: model
.labResultLists[index] .labResultLists[index]
.patientLabResultList, .patientLabResultList,
patient:widget.patient, patient: widget.patient,
isInpatient: widget.isInpatient,
), ),
) )
], ],
@ -135,7 +149,6 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
SizedBox( SizedBox(
height: 10, height: 10,
), ),
], ],
), ),
], ],

@ -13,14 +13,11 @@ import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-head
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/app_expandable_notifier_new.dart'; import 'package:doctor_app_flutter/widgets/shared/app_expandable_notifier_new.dart';
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_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/doctor_card.dart'; import 'package:doctor_app_flutter/widgets/shared/doctor_card.dart';
import 'package:doctor_app_flutter/widgets/transitions/fade_page.dart'; import 'package:doctor_app_flutter/widgets/transitions/fade_page.dart';
import 'package:doctor_app_flutter/util/date-utils.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
class LabsHomePage extends StatelessWidget { class LabsHomePage extends StatelessWidget {
String patientType; String patientType;

@ -9,6 +9,7 @@ import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart'; import 'package:hexcolor/hexcolor.dart';
import 'package:intl/intl.dart'; import 'package:intl/intl.dart';
import 'package:url_launcher/url_launcher.dart';
class PatientProfileHeaderNewDesignInPatient extends StatelessWidget { class PatientProfileHeaderNewDesignInPatient extends StatelessWidget {
final PatiantInformtion patient; final PatiantInformtion patient;
@ -77,7 +78,7 @@ class PatientProfileHeaderNewDesignInPatient extends StatelessWidget {
margin: EdgeInsets.symmetric(horizontal: 4), margin: EdgeInsets.symmetric(horizontal: 4),
child: InkWell( child: InkWell(
onTap: () { onTap: () {
// should call patient or show mobile number : patient.mobileNumber launch("tel://" + patient.mobileNumber);
}, },
child: Icon( child: Icon(
Icons.phone, Icons.phone,

@ -124,7 +124,7 @@ class ProfileMedicalInfoWidgetInPatient extends StatelessWidget {
patient: patient, patient: patient,
patientType: patientType, patientType: patientType,
arrivalType: arrivalType, arrivalType: arrivalType,
route: null, route: MEDICAL_FILE,
nameLine1: "Health", nameLine1: "Health",
//TranslationBase.of(context).medicalReport, //TranslationBase.of(context).medicalReport,
nameLine2: "Summery", nameLine2: "Summery",
@ -135,7 +135,7 @@ class ProfileMedicalInfoWidgetInPatient extends StatelessWidget {
patient: patient, patient: patient,
patientType: patientType, patientType: patientType,
arrivalType: arrivalType, arrivalType: arrivalType,
route: null, route: REFER_PATIENT_TO_DOCTOR,
nameLine1: TranslationBase.of(context).referral, nameLine1: TranslationBase.of(context).referral,
nameLine2: TranslationBase.of(context).patient, nameLine2: TranslationBase.of(context).patient,
icon: 'patient/refer_patient.png'), icon: 'patient/refer_patient.png'),
@ -144,7 +144,7 @@ class ProfileMedicalInfoWidgetInPatient extends StatelessWidget {
patient: patient, patient: patient,
patientType: patientType, patientType: patientType,
arrivalType: arrivalType, arrivalType: arrivalType,
route: null, route: PATIENT_INSURANCE_APPROVALS_NEW,
nameLine1: TranslationBase.of(context).insurance, nameLine1: TranslationBase.of(context).insurance,
nameLine2: TranslationBase.of(context).approvals, nameLine2: TranslationBase.of(context).approvals,
icon: 'patient/vital_signs.png'), icon: 'patient/vital_signs.png'),
@ -153,6 +153,7 @@ class ProfileMedicalInfoWidgetInPatient extends StatelessWidget {
patient: patient, patient: patient,
patientType: patientType, patientType: patientType,
arrivalType: arrivalType, arrivalType: arrivalType,
isDisable: true,
route: null, route: null,
nameLine1: "Discharge", nameLine1: "Discharge",
nameLine2: "Summery", nameLine2: "Summery",

Loading…
Cancel
Save