Merge branch 'development' of https://gitlab.com/Cloud_Solution/doctor_app_flutter into prescription_changes
Conflicts: lib/core/service/patient_medical_file/prescription/prescription_service.dart lib/core/viewModel/prescription_view_model.dart lib/screens/prescription/add_prescription_form.dartmerge-requests/655/head
commit
c50a483663
@ -1,29 +0,0 @@
|
|||||||
import 'package:doctor_app_flutter/config/config.dart';
|
|
||||||
import 'package:doctor_app_flutter/core/model/PatientMuseResultsModel.dart';
|
|
||||||
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
|
||||||
|
|
||||||
class PatientMuseService extends BaseService {
|
|
||||||
List<PatientMuseResultsModel> patientMuseResultsModelList = List();
|
|
||||||
|
|
||||||
getECGPatient({int patientType, int patientOutSA,int patientID}) async {
|
|
||||||
Map<String,dynamic> body = Map();
|
|
||||||
body['PatientType'] = patientType==7 ? 1: patientType;
|
|
||||||
body['PatientOutSA'] = patientOutSA;
|
|
||||||
body['PatientID'] = patientID;
|
|
||||||
hasError = false;
|
|
||||||
await baseAppClient.post(
|
|
||||||
GET_ECG,
|
|
||||||
onSuccess: (dynamic response, int statusCode) {
|
|
||||||
patientMuseResultsModelList.clear();
|
|
||||||
response['HIS_GetPatientMuseResultsList'].forEach((v) {
|
|
||||||
patientMuseResultsModelList.add(PatientMuseResultsModel.fromJson(v));
|
|
||||||
});
|
|
||||||
},
|
|
||||||
onFailure: (String error, int statusCode) {
|
|
||||||
hasError = true;
|
|
||||||
super.error = error;
|
|
||||||
},
|
|
||||||
body: body
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
import 'package:doctor_app_flutter/config/config.dart';
|
import 'package:doctor_app_flutter/config/config.dart';
|
||||||
import 'package:doctor_app_flutter/core/model/imei_details.dart';
|
import 'package:doctor_app_flutter/core/model/auth/imei_details.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/doctor/user_model.dart';
|
import 'package:doctor_app_flutter/models/doctor/user_model.dart';
|
||||||
|
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/model/patient_muse/PatientMuseResultsModel.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||||
|
|
||||||
|
class PatientMuseService extends BaseService {
|
||||||
|
List<PatientMuseResultsModel> patientMuseResultsModelList = List();
|
||||||
|
|
||||||
|
getECGPatient({int patientType, int patientOutSA, int patientID}) async {
|
||||||
|
Map<String, dynamic> body = Map();
|
||||||
|
body['PatientType'] = patientType == 7 ? 1 : patientType;
|
||||||
|
body['PatientOutSA'] = patientOutSA;
|
||||||
|
body['PatientID'] = patientID;
|
||||||
|
hasError = false;
|
||||||
|
await baseAppClient.post(GET_ECG,
|
||||||
|
onSuccess: (dynamic response, int statusCode) {
|
||||||
|
patientMuseResultsModelList.clear();
|
||||||
|
response['HIS_GetPatientMuseResultsList'].forEach((v) {
|
||||||
|
patientMuseResultsModelList.add(PatientMuseResultsModel.fromJson(v));
|
||||||
|
});
|
||||||
|
}, onFailure: (String error, int statusCode) {
|
||||||
|
hasError = true;
|
||||||
|
super.error = error;
|
||||||
|
}, body: body);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,9 +1,8 @@
|
|||||||
import 'package:doctor_app_flutter/config/config.dart';
|
import 'package:doctor_app_flutter/config/config.dart';
|
||||||
import 'package:doctor_app_flutter/core/model/ReferralRequest.dart';
|
import 'package:doctor_app_flutter/core/model/referral/ReferralRequest.dart';
|
||||||
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||||
|
|
||||||
class ReferralService extends BaseService {
|
class ReferralService extends BaseService {
|
||||||
|
|
||||||
Future referralPatient(
|
Future referralPatient(
|
||||||
{int admissionNo,
|
{int admissionNo,
|
||||||
String roomID,
|
String roomID,
|
||||||
@ -1,7 +1,7 @@
|
|||||||
import 'package:doctor_app_flutter/config/config.dart';
|
import 'package:doctor_app_flutter/config/config.dart';
|
||||||
import 'package:doctor_app_flutter/core/insurance_approval_request_model.dart';
|
import 'package:doctor_app_flutter/core/insurance_approval_request_model.dart';
|
||||||
import 'package:doctor_app_flutter/core/model/insurance_approval.dart';
|
import 'package:doctor_app_flutter/core/model/insurance/insurance_approval.dart';
|
||||||
import 'package:doctor_app_flutter/core/model/insurance_approval_in_patient_model.dart';
|
import 'package:doctor_app_flutter/core/model/insurance/insurance_approval_in_patient_model.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/patient/patiant_info_model.dart';
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
import 'package:doctor_app_flutter/config/config.dart';
|
import 'package:doctor_app_flutter/config/config.dart';
|
||||||
import 'package:doctor_app_flutter/core/model/medical_file_model.dart';
|
import 'package:doctor_app_flutter/core/model/medical_report/medical_file_model.dart';
|
||||||
import 'package:doctor_app_flutter/core/model/medical_file_request_model.dart';
|
import 'package:doctor_app_flutter/core/model/medical_report/medical_file_request_model.dart';
|
||||||
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||||
|
|
||||||
class MedicalFileService extends BaseService {
|
class MedicalFileService extends BaseService {
|
||||||
@ -0,0 +1,57 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/model/radiology/final_radiology.dart';
|
||||||
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
|
||||||
|
import '../../base/base_service.dart';
|
||||||
|
|
||||||
|
class RadiologyService extends BaseService {
|
||||||
|
List<FinalRadiology> finalRadiologyList = List();
|
||||||
|
String url = '';
|
||||||
|
|
||||||
|
Future getRadImageURL(
|
||||||
|
{int invoiceNo,
|
||||||
|
int lineItem,
|
||||||
|
int projectId,
|
||||||
|
@required PatiantInformtion patient}) async {
|
||||||
|
hasError = false;
|
||||||
|
final Map<String, dynamic> body = new Map<String, dynamic>();
|
||||||
|
body['InvoiceNo'] = invoiceNo;
|
||||||
|
body['LineItemNo'] = lineItem;
|
||||||
|
body['ProjectID'] = projectId;
|
||||||
|
|
||||||
|
await baseAppClient.postPatient(GET_RAD_IMAGE_URL, patient: patient,
|
||||||
|
onSuccess: (dynamic response, int statusCode) {
|
||||||
|
url = response['Data'];
|
||||||
|
}, onFailure: (String error, int statusCode) {
|
||||||
|
hasError = true;
|
||||||
|
super.error = error;
|
||||||
|
}, body: body);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future getPatientRadOrders(PatiantInformtion patient,
|
||||||
|
{isInPatient = false}) async {
|
||||||
|
String url = GET_PATIENT_ORDERS;
|
||||||
|
final Map<String, dynamic> body = new Map<String, dynamic>();
|
||||||
|
if (isInPatient) {
|
||||||
|
url = GET_IN_PATIENT_ORDERS;
|
||||||
|
body['ProjectID'] = patient.projectId;
|
||||||
|
}
|
||||||
|
|
||||||
|
hasError = false;
|
||||||
|
await baseAppClient.postPatient(url, patient: patient,
|
||||||
|
onSuccess: (dynamic response, int statusCode) {
|
||||||
|
finalRadiologyList = [];
|
||||||
|
String label = "ListRAD";
|
||||||
|
if (isInPatient) {
|
||||||
|
label = "List_GetRadOreders";
|
||||||
|
}
|
||||||
|
response[label].forEach((radiology) {
|
||||||
|
finalRadiologyList.add(FinalRadiology.fromJson(radiology));
|
||||||
|
});
|
||||||
|
}, onFailure: (String error, int statusCode) {
|
||||||
|
hasError = true;
|
||||||
|
super.error = error;
|
||||||
|
}, body: body);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,59 +0,0 @@
|
|||||||
import 'package:doctor_app_flutter/config/config.dart';
|
|
||||||
import 'package:doctor_app_flutter/core/model/radiology/final_radiology.dart';
|
|
||||||
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
||||||
import 'package:flutter/cupertino.dart';
|
|
||||||
|
|
||||||
import 'base/base_service.dart';
|
|
||||||
|
|
||||||
class RadiologyService extends BaseService {
|
|
||||||
List<FinalRadiology> finalRadiologyList = List();
|
|
||||||
String url = '';
|
|
||||||
|
|
||||||
Future getRadImageURL({int invoiceNo, int lineItem, int projectId,@required PatiantInformtion patient}) async {
|
|
||||||
hasError = false;
|
|
||||||
final Map<String, dynamic> body = new Map<String, dynamic>();
|
|
||||||
body['InvoiceNo'] = invoiceNo;
|
|
||||||
body['LineItemNo'] = lineItem;
|
|
||||||
body['ProjectID'] = projectId;
|
|
||||||
|
|
||||||
await baseAppClient.postPatient(GET_RAD_IMAGE_URL,
|
|
||||||
patient: patient,
|
|
||||||
onSuccess: (dynamic response, int statusCode) {
|
|
||||||
url = response['Data'];
|
|
||||||
}, onFailure: (String error, int statusCode) {
|
|
||||||
hasError = true;
|
|
||||||
super.error = error;
|
|
||||||
}, body: body);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future getPatientRadOrders(PatiantInformtion patient , {isInPatient = false}) async {
|
|
||||||
String url = GET_PATIENT_ORDERS;
|
|
||||||
final Map<String, dynamic> body = new Map<String, dynamic>();
|
|
||||||
if(isInPatient) {
|
|
||||||
url = GET_IN_PATIENT_ORDERS;
|
|
||||||
body['ProjectID'] = patient.projectId;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
hasError = false;
|
|
||||||
await baseAppClient.postPatient(url,
|
|
||||||
patient: patient,
|
|
||||||
onSuccess: (dynamic response, int statusCode) {
|
|
||||||
finalRadiologyList = [];
|
|
||||||
String label = "ListRAD";
|
|
||||||
if(isInPatient) {
|
|
||||||
label ="List_GetRadOreders";
|
|
||||||
}
|
|
||||||
response[label].forEach((radiology) {
|
|
||||||
finalRadiologyList.add(FinalRadiology.fromJson(radiology));
|
|
||||||
});
|
|
||||||
}, onFailure: (String error, int statusCode) {
|
|
||||||
hasError = true;
|
|
||||||
super.error = error;
|
|
||||||
}, body:body);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -0,0 +1,186 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/provider/robot_provider.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/viewModel/base_view_model.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.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/shared/app_scaffold_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/buttons/app_buttons_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/speech-text-popup.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/text_fields/app-textfield-custom.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:permission_handler/permission_handler.dart';
|
||||||
|
import 'package:provider/provider.dart';
|
||||||
|
import 'package:speech_to_text/speech_recognition_error.dart';
|
||||||
|
import 'package:speech_to_text/speech_to_text.dart' as stt;
|
||||||
|
|
||||||
|
class AddVerifyMedicalReport extends StatefulWidget {
|
||||||
|
final MedicalReportStatus status;
|
||||||
|
|
||||||
|
AddVerifyMedicalReport(this.status);
|
||||||
|
|
||||||
|
@override
|
||||||
|
_AddVerifyMedicalReportState createState() => _AddVerifyMedicalReportState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _AddVerifyMedicalReportState extends State<AddVerifyMedicalReport> {
|
||||||
|
stt.SpeechToText speech = stt.SpeechToText();
|
||||||
|
var reconizedWord;
|
||||||
|
var event = RobotProvider();
|
||||||
|
|
||||||
|
TextEditingController commentController = TextEditingController();
|
||||||
|
String commentsError;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
requestPermissions();
|
||||||
|
event.controller.stream.listen((p) {
|
||||||
|
if (p['startPopUp'] == 'true') {
|
||||||
|
if (this.mounted) {
|
||||||
|
initSpeechState().then((value) => {onVoiceText()});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
super.initState();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
ProjectViewModel projectViewModel = Provider.of<ProjectViewModel>(context);
|
||||||
|
|
||||||
|
return BaseView<BaseViewModel>(
|
||||||
|
builder: (_, model, w) => AppScaffold(
|
||||||
|
baseViewModel: model,
|
||||||
|
isShowAppBar: true,
|
||||||
|
appBarTitle: widget.status == MedicalReportStatus.ADD
|
||||||
|
? TranslationBase.of(context).medicalReportAdd
|
||||||
|
: TranslationBase.of(context).medicalReportVerify,
|
||||||
|
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||||
|
body: Column(
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: SingleChildScrollView(
|
||||||
|
child: Container(
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Stack(
|
||||||
|
children: [
|
||||||
|
AppTextFieldCustom(
|
||||||
|
hintText: TranslationBase.of(context)
|
||||||
|
.sickLeaveComments,
|
||||||
|
controller: commentController,
|
||||||
|
maxLines: 30,
|
||||||
|
minLines: 20,
|
||||||
|
hasBorder: true,
|
||||||
|
validationError: commentsError,
|
||||||
|
),
|
||||||
|
Positioned(
|
||||||
|
top: -2,
|
||||||
|
//MediaQuery.of(context).size.height * 0,
|
||||||
|
right: projectViewModel.isArabic
|
||||||
|
? MediaQuery.of(context).size.width *
|
||||||
|
0.75
|
||||||
|
: 15,
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
IconButton(
|
||||||
|
icon: Icon(DoctorApp.speechtotext,
|
||||||
|
color: Colors.black, size: 35),
|
||||||
|
onPressed: () {
|
||||||
|
initSpeechState().then(
|
||||||
|
(value) => {onVoiceText()});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
margin: EdgeInsets.all(16.0),
|
||||||
|
child: AppButton(
|
||||||
|
title: widget.status == MedicalReportStatus.ADD
|
||||||
|
? TranslationBase.of(context).medicalReportAdd
|
||||||
|
: TranslationBase.of(context).medicalReportVerify,
|
||||||
|
color: Color(0xff359846),
|
||||||
|
// disabled: progressNoteController.text.isEmpty,
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
onPressed: () {
|
||||||
|
setState(() {
|
||||||
|
if (commentController.text == "") {
|
||||||
|
commentsError =
|
||||||
|
TranslationBase.of(context).fieldRequired;
|
||||||
|
} else {
|
||||||
|
commentsError = null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
onVoiceText() async {
|
||||||
|
new SpeechToText(context: context).showAlertDialog(context);
|
||||||
|
var lang = TranslationBase.of(AppGlobal.CONTEX).locale.languageCode;
|
||||||
|
bool available = await speech.initialize(
|
||||||
|
onStatus: statusListener, onError: errorListener);
|
||||||
|
if (available) {
|
||||||
|
speech.listen(
|
||||||
|
onResult: resultListener,
|
||||||
|
listenMode: stt.ListenMode.confirmation,
|
||||||
|
localeId: lang == 'en' ? 'en-US' : 'ar-SA',
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
print("The user has denied the use of speech recognition.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void errorListener(SpeechRecognitionError error) {
|
||||||
|
event.setValue({"searchText": 'null'});
|
||||||
|
//SpeechToText.closeAlertDialog(context);
|
||||||
|
print(error);
|
||||||
|
}
|
||||||
|
|
||||||
|
void statusListener(String status) {
|
||||||
|
reconizedWord = status == 'listening' ? 'Lisening...' : 'Sorry....';
|
||||||
|
}
|
||||||
|
|
||||||
|
void requestPermissions() async {
|
||||||
|
Map<Permission, PermissionStatus> statuses = await [
|
||||||
|
Permission.microphone,
|
||||||
|
].request();
|
||||||
|
}
|
||||||
|
|
||||||
|
void resultListener(result) {
|
||||||
|
reconizedWord = result.recognizedWords;
|
||||||
|
event.setValue({"searchText": reconizedWord});
|
||||||
|
|
||||||
|
if (result.finalResult == true) {
|
||||||
|
setState(() {
|
||||||
|
SpeechToText.closeAlertDialog(context);
|
||||||
|
speech.stop();
|
||||||
|
commentController.text += reconizedWord + '\n';
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
print(result.finalResult);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> initSpeechState() async {
|
||||||
|
bool hasSpeech = await speech.initialize(
|
||||||
|
onError: errorListener, onStatus: statusListener);
|
||||||
|
print(hasSpeech);
|
||||||
|
if (!mounted) return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
enum MedicalReportStatus { ADD, VERIFY }
|
||||||
@ -0,0 +1,162 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/viewModel/base_view_model.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/viewModel/project_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/large_avatar.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design-app-bar.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';
|
||||||
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
|
class MedicalReportDetailPage extends StatelessWidget {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
ProjectViewModel projectViewModel = Provider.of(context);
|
||||||
|
final routeArgs = ModalRoute.of(context).settings.arguments as Map;
|
||||||
|
PatiantInformtion patient = routeArgs['patient'];
|
||||||
|
String patientType = routeArgs['patientType'];
|
||||||
|
String arrivalType = routeArgs['arrivalType'];
|
||||||
|
|
||||||
|
return BaseView<BaseViewModel>(
|
||||||
|
builder: (_, model, w) => AppScaffold(
|
||||||
|
baseViewModel: model,
|
||||||
|
isShowAppBar: true,
|
||||||
|
appBar: PatientProfileHeaderNewDesignAppBar(
|
||||||
|
patient,
|
||||||
|
patientType,
|
||||||
|
arrivalType,
|
||||||
|
),
|
||||||
|
body: Container(
|
||||||
|
child: SingleChildScrollView(
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
margin: EdgeInsets.all(16.0),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"${TranslationBase.of(context).medical}",
|
||||||
|
fontSize: SizeConfig.textMultiplier * 1.6,
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
color: Color(0xFF2E303A),
|
||||||
|
),
|
||||||
|
AppText(
|
||||||
|
TranslationBase.of(context).report,
|
||||||
|
fontSize: SizeConfig.textMultiplier * 3,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
color: Color(0xFF2E303A),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
width: double.infinity,
|
||||||
|
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
||||||
|
padding: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.white,
|
||||||
|
shape: BoxShape.rectangle,
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(8)),
|
||||||
|
border: Border.fromBorderSide(
|
||||||
|
BorderSide(
|
||||||
|
color: Colors.white,
|
||||||
|
width: 1.0,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
TranslationBase.of(context).chiefComplaints,
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize: 2.4 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
AppText(
|
||||||
|
"chief complaints data",
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 1.8 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 8,
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
width: 30,
|
||||||
|
height: 30,
|
||||||
|
margin: EdgeInsets.only(
|
||||||
|
left: projectViewModel.isArabic ? 10 : 85,
|
||||||
|
right: projectViewModel.isArabic ? 85 : 10,
|
||||||
|
top: 5),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.rectangle,
|
||||||
|
border: Border(
|
||||||
|
bottom: BorderSide(
|
||||||
|
color: Colors.grey[400], width: 2.5),
|
||||||
|
left: BorderSide(
|
||||||
|
color: Colors.grey[400], width: 2.5),
|
||||||
|
)),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: Container(
|
||||||
|
margin: EdgeInsets.only(top: 10),
|
||||||
|
child: Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
child: LargeAvatar(
|
||||||
|
name: "doctorName",
|
||||||
|
url: "doctor avatar",
|
||||||
|
),
|
||||||
|
width: 25,
|
||||||
|
height: 25,
|
||||||
|
margin: EdgeInsets.only(top: 10),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
flex: 4,
|
||||||
|
child: Container(
|
||||||
|
margin: EdgeInsets.all(10),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
'${TranslationBase.of(context).dr}. replace with doctor name',
|
||||||
|
fontWeight: FontWeight.w800,
|
||||||
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
||||||
|
color: Colors.black,
|
||||||
|
),
|
||||||
|
AppText(
|
||||||
|
'replace clinic Description',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
fontSize: 1.4 * SizeConfig.textMultiplier,
|
||||||
|
color: Color(0XFF2E303A),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
|
||||||
|
class MedicalReportPage extends StatelessWidget {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Container();
|
||||||
|
}
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue