You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctor_app_flutter/lib/widgets/patients/patient_card/PatientCard.dart

458 lines
24 KiB
Dart

5 years ago
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
import 'package:doctor_app_flutter/util/date-utils.dart';
import 'package:doctor_app_flutter/util/helpers.dart';
5 years ago
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/card_with_bg_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/user-guid/CusomRow.dart';
5 years ago
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:cached_network_image/cached_network_image.dart';
5 years ago
import '../../../util/extenstions.dart';
5 years ago
import 'ShowTimer.dart';
5 years ago
class PatientCard extends StatelessWidget {
final PatiantInformtion patientInfo;
final GestureTapCallback onTap;
5 years ago
final String patientType;
final String arrivalType;
5 years ago
final bool isInpatient;
5 years ago
final bool isMyPatient;
final bool isFromSearch;
final bool isFromLiveCare;
5 years ago
5 years ago
PatientCard(
{Key? key,
required this.patientInfo,
required this.onTap,
required this.patientType,
required this.arrivalType,
required this.isInpatient,
this.isMyPatient = false,
this.isFromSearch = false,
this.isFromLiveCare = false})
: super(key: key);
5 years ago
@override
Widget build(BuildContext context) {
String? nationalityName = patientInfo.nationalityName != null
? patientInfo.nationalityName!.trim()
5 years ago
: patientInfo.nationality != null
? patientInfo.nationality!.trim()
5 years ago
: patientInfo.nationalityId !=
null
? patientInfo.nationalityId
: "";
5 years ago
return Container(
width: SizeConfig.screenWidth * 0.9,
margin: EdgeInsets.all(6),
padding: EdgeInsets.only(left: 0, right: 5, bottom: 0, top: 0),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Colors.white,
),
child: CardWithBgWidget(
padding: 0,
5 years ago
marginLeft: (!isMyPatient && isInpatient) ? 0 : 10,
marginSymmetric: isFromSearch ? 10 : 0.0,
hasBorder: false,
5 years ago
bgColor: isFromLiveCare
? Colors.white
: (isMyPatient && !isFromSearch)
? Colors.green[500]!
5 years ago
: patientInfo.patientStatusType == 43
? Colors.green[500]!
5 years ago
: isMyPatient
? Colors.green[500]!
5 years ago
: isInpatient
? Colors.white
5 years ago
: !isFromSearch
? Colors.red[800]!
: Colors.white,
widget: Container(
5 years ago
color: Colors.white,
// padding: EdgeInsets.only(left: 10, right: 0, bottom: 0),
child: InkWell(
child: Column(
children: [
SizedBox(
height: 10,
),
5 years ago
!(isInpatient && !isFromSearch)
? Padding(
padding: EdgeInsets.only(left: 12.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
patientInfo.patientStatusType == 43
5 years ago
? Row(
5 years ago
children: [
AppText(
TranslationBase.of(context).arrivedP,
5 years ago
color: Colors.green,
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 10,
5 years ago
),
5 years ago
SizedBox(
width: 8,
),
SizedBox(
height: 12,
width: 1.5,
child: Container(
color: Colors.grey,
),
),
SizedBox(
width: 8,
),
AppText(
patientInfo.status == 2 ? 'Confirmed' : 'Booked',
color: patientInfo.status == 2 ? Colors.green : Colors.grey,
5 years ago
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 10,
5 years ago
),
5 years ago
],
)
: patientInfo.patientStatusType == 42
? Row(
children: [
AppText(
TranslationBase.of(context).notArrived,
5 years ago
color: Colors.red[800],
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 10,
),
SizedBox(
width: 8,
),
SizedBox(
height: 12,
width: 1.5,
child: Container(
color: Colors.grey,
),
),
SizedBox(
width: 8,
),
AppText(
patientInfo.status == 2 ? 'Confirmed' : 'Booked',
color: patientInfo.status == 2 ? Colors.green : Colors.grey,
5 years ago
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 10,
),
],
)
: !isFromSearch && !isFromLiveCare && patientInfo.patientStatusType == null
5 years ago
? Row(
children: [
AppText(
TranslationBase.of(context).notArrived,
5 years ago
color: Colors.red[800],
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 12,
),
SizedBox(
width: 8,
),
SizedBox(
height: 12,
width: 1.5,
child: Container(
color: Colors.grey,
),
),
SizedBox(
width: 8,
),
AppText(
patientInfo.status == 2 ? 'Booked' : 'Confirmed',
color: patientInfo.status == 2 ? Colors.grey : Colors.green,
5 years ago
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 12,
)
],
)
: SizedBox(),
this.arrivalType == '1'
? AppText(
patientInfo.startTime != null ? patientInfo.startTime : patientInfo.startTimes,
fontFamily: 'Poppins',
5 years ago
fontWeight: FontWeight.w400,
)
5 years ago
: patientInfo.arrivedOn != null
? AppText(
AppDateUtils.getDayMonthYearDate(AppDateUtils.convertStringToDate(
patientInfo.arrivedOn ?? "",
5 years ago
)) +
" " +
"${AppDateUtils.getStartTime(patientInfo.startTime ?? "")}",
5 years ago
fontFamily: 'Poppins',
5 years ago
fontWeight: FontWeight.w400,
5 years ago
fontSize: 15,
5 years ago
)
: (patientInfo.appointmentDate != null &&
patientInfo.appointmentDate!.isNotEmpty)
5 years ago
? AppText(
"${AppDateUtils.getDayMonthYearDate(AppDateUtils.convertStringToDate(
patientInfo.appointmentDate ?? "",
))} ${AppDateUtils.getStartTime(patientInfo.startTime ?? "")}",
5 years ago
fontFamily: 'Poppins',
fontWeight: FontWeight.w400,
fontSize: 15,
)
: SizedBox()
],
))
: SizedBox(),
5 years ago
if (isInpatient && isMyPatient && !isFromSearch)
5 years ago
Row(
children: [
5 years ago
SizedBox(
width: 12,
),
5 years ago
AppText(
'My Patient',
color: Colors.green,
fontWeight: FontWeight.bold,
fontFamily: 'Poppins',
fontSize: 12,
),
],
),
Padding(
padding: EdgeInsets.only(left: 12.0),
child: Row(
5 years ago
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
5 years ago
flex: 2,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment:
Merge branch 'development' of https://gitlab.com/Cloud_Solution/doctor_app_flutter into flutter_vervion_2_by_elham  Conflicts:  lib/client/base_app_client.dart  lib/config/localized_values.dart  lib/config/size_config.dart  lib/core/model/Prescriptions/prescription_report.dart  lib/core/model/Prescriptions/prescription_report_enh.dart  lib/core/model/auth/activation_Code_req_model.dart  lib/core/model/auth/activation_code_for_verification_screen_model.dart  lib/core/model/auth/check_activation_code_for_doctor_app_response_model.dart  lib/core/model/auth/check_activation_code_request_model.dart  lib/core/model/labs/lab_result.dart  lib/core/model/patient_muse/PatientSearchRequestModel.dart  lib/core/model/procedure/get_ordered_procedure_request_model.dart  lib/core/model/referral/MyReferralPatientModel.dart  lib/core/model/sick_leave/sick_leave_patient_model.dart  lib/core/model/sick_leave/sick_leave_patient_request_model.dart  lib/core/service/VideoCallService.dart  lib/core/service/base/base_service.dart  lib/core/service/home/scan_qr_service.dart  lib/core/service/patient/LiveCarePatientServices.dart  lib/core/service/patient/MyReferralPatientService.dart  lib/core/service/patient/patient-doctor-referral-service.dart  lib/core/service/patient_medical_file/lab_order/labs_service.dart  lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart  lib/core/service/patient_medical_file/prescription/prescriptions_service.dart  lib/core/service/patient_medical_file/procedure/procedure_service.dart  lib/core/service/patient_medical_file/radiology/radiology_service.dart  lib/core/service/patient_medical_file/sick_leave/sickleave_service.dart  lib/core/service/patient_medical_file/soap/SOAP_service.dart  lib/core/service/patient_medical_file/ucaf/patient-ucaf-service.dart  lib/core/viewModel/PatientSearchViewModel.dart  lib/core/viewModel/SOAP_view_model.dart  lib/core/viewModel/authentication_view_model.dart  lib/core/viewModel/base_view_model.dart  lib/core/viewModel/dashboard_view_model.dart  lib/core/viewModel/doctor_replay_view_model.dart  lib/core/viewModel/labs_view_model.dart  lib/core/viewModel/patient-referral-viewmodel.dart  lib/core/viewModel/patient-ucaf-viewmodel.dart  lib/core/viewModel/prescription_view_model.dart  lib/core/viewModel/prescriptions_view_model.dart  lib/core/viewModel/procedure_View_model.dart  lib/core/viewModel/sick_leave_view_model.dart  lib/models/SOAP/ChiefComplaint/GetChiefComplaintReqModel.dart  lib/models/SOAP/GetPhysicalExamReqModel.dart  lib/models/SOAP/my_selected_allergy.dart  lib/models/SOAP/my_selected_assement.dart  lib/models/SOAP/my_selected_examination.dart  lib/models/SOAP/my_selected_history.dart  lib/models/SOAP/post_chief_complaint_request_model.dart  lib/models/SOAP/post_physical_exam_request_model.dart  lib/models/doctor/list_gt_my_patients_question_model.dart  lib/models/doctor/profile_req_Model.dart  lib/models/doctor/replay/request_doctor_reply.dart  lib/models/livecare/start_call_res.dart  lib/models/patient/patiant_info_model.dart  lib/models/patient/progress_note_request.dart  lib/models/patient/vital_sign/vital_sign_req_model.dart  lib/models/pharmacies/pharmacies_items_request_model.dart  lib/screens/auth/verification_methods_screen.dart  lib/screens/doctor/doctor_repaly_chat.dart  lib/screens/doctor/doctor_replay/doctor_reply_widget.dart  lib/screens/doctor/doctor_reply_screen.dart  lib/screens/doctor/my_referral_patient_screen.dart  lib/screens/home/dashboard_swipe_widget.dart  lib/screens/home/home_patient_card.dart  lib/screens/home/home_screen.dart  lib/screens/live_care/end_call_screen.dart  lib/screens/live_care/live_care_patient_screen.dart  lib/screens/live_care/video_call.dart  lib/screens/medical-file/health_summary_page.dart  lib/screens/medicine/medicine_search_screen.dart  lib/screens/patients/DischargedPatientPage.dart  lib/screens/patients/InPatientPage.dart  lib/screens/patients/PatientsInPatientScreen.dart  lib/screens/patients/insurance_approval_screen_patient.dart  lib/screens/patients/out_patient/out_patient_screen.dart  lib/screens/patients/patient_search/patient_search_header.dart  lib/screens/patients/patient_search/patient_search_result_screen.dart  lib/screens/patients/patient_search/patient_search_screen.dart  lib/screens/patients/profile/UCAF/UCAF-detail-screen.dart  lib/screens/patients/profile/UCAF/UCAF-input-screen.dart  lib/screens/patients/profile/UCAF/page-stepper-widget.dart  lib/screens/patients/profile/admission-request/admission-request-first-screen.dart  lib/screens/patients/profile/admission-request/admission-request-third-screen.dart  lib/screens/patients/profile/admission-request/admission-request_second-screen.dart  lib/screens/patients/profile/lab_result/FlowChartPage.dart  lib/screens/patients/profile/lab_result/LabResultWidget.dart  lib/screens/patients/profile/lab_result/laboratory_result_page.dart  lib/screens/patients/profile/lab_result/laboratory_result_widget.dart  lib/screens/patients/profile/lab_result/labs_home_page.dart  lib/screens/patients/profile/medical_report/AddVerifyMedicalReport.dart  lib/screens/patients/profile/medical_report/MedicalReportPage.dart  lib/screens/patients/profile/notes/note/progress_note_screen.dart  lib/screens/patients/profile/profile_screen/patient_profile_screen.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_InPatient.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_other.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_search.dart  lib/screens/patients/profile/radiology/radiology_details_page.dart  lib/screens/patients/profile/radiology/radiology_home_page.dart  lib/screens/patients/profile/referral/my-referral-detail-screen.dart  lib/screens/patients/profile/referral/my-referral-inpatient-screen.dart  lib/screens/patients/profile/referral/refer-patient-screen-in-patient.dart  lib/screens/patients/profile/referral/refer-patient-screen.dart  lib/screens/patients/profile/referral/referral_patient_detail_in-paint.dart  lib/screens/patients/profile/referral/referred-patient-screen.dart  lib/screens/patients/profile/referral/referred_patient_detail_in-paint.dart  lib/screens/patients/profile/soap_update/assessment/add_assessment_details.dart  lib/screens/patients/profile/soap_update/assessment/update_assessment_page.dart  lib/screens/patients/profile/soap_update/objective/add_examination_page.dart  lib/screens/patients/profile/soap_update/objective/add_examination_widget.dart  lib/screens/patients/profile/soap_update/objective/examination_item_card.dart  lib/screens/patients/profile/soap_update/objective/examinations_list_search_widget.dart  lib/screens/patients/profile/soap_update/objective/update_objective_page.dart  lib/screens/patients/profile/soap_update/plan/update_plan_page.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/SOAP_open_items.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/SOAP_step_header.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/bottom_sheet_title.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/expandable_SOAP_widget.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/steps_widget.dart  lib/screens/patients/profile/soap_update/subjective/allergies/add_allergies.dart  lib/screens/patients/profile/soap_update/subjective/allergies/update_allergies_widget.dart  lib/screens/patients/profile/soap_update/subjective/history/add_history_dialog.dart  lib/screens/patients/profile/soap_update/subjective/history/priority_bar.dart  lib/screens/patients/profile/soap_update/subjective/history/update_history_widget.dart  lib/screens/patients/profile/soap_update/subjective/medication/add_medication.dart  lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart  lib/screens/patients/profile/soap_update/update_soap_index.dart  lib/screens/patients/profile/vital_sign/vital_sign_details_screen.dart  lib/screens/prescription/add_prescription_form.dart  lib/screens/prescription/prescription_item_in_patient_page.dart  lib/screens/prescription/prescription_text_filed.dart  lib/screens/prescription/prescriptions_page.dart  lib/screens/procedures/ProcedureCard.dart  lib/screens/procedures/add-favourite-procedure.dart  lib/screens/procedures/procedure_checkout_screen.dart  lib/screens/procedures/procedure_screen.dart  lib/screens/reschedule-leaves/add-rescheduleleave.dart  lib/screens/reschedule-leaves/reschedule_leave.dart  lib/screens/sick-leave/add-sickleave.dart  lib/screens/sick-leave/show-sickleave.dart  lib/screens/sick-leave/sick_leave.dart  lib/util/VideoChannel.dart  lib/util/date-utils.dart  lib/util/translations_delegate_base.dart  lib/widgets/patients/patient-referral-item-widget.dart  lib/widgets/patients/patient_card/PatientCard.dart  lib/widgets/patients/profile/PatientProfileButton.dart  lib/widgets/patients/profile/patient-profile-app-bar.dart  lib/widgets/patients/profile/patient-profile-header-new-design-app-bar.dart  lib/widgets/patients/profile/profile-welcome-widget.dart  lib/widgets/patients/profile/profile_medical_info_widget.dart  lib/widgets/patients/profile/profile_medical_info_widget_search.dart  lib/widgets/patients/profile/profile_status_info_widget.dart  lib/widgets/shared/app_texts_widget.dart  lib/widgets/shared/bottom_nav_bar.dart  lib/widgets/shared/bottom_navigation_item.dart  lib/widgets/shared/buttons/app_buttons_widget.dart  lib/widgets/shared/card_with_bg_widget.dart  lib/widgets/shared/dialogs/dailog-list-select.dart  lib/widgets/shared/dialogs/master_key_dailog.dart  lib/widgets/shared/doctor_card.dart  lib/widgets/shared/doctor_card_insurance.dart  lib/widgets/shared/master_key_checkbox_search_allergies_widget.dart  lib/widgets/shared/master_key_checkbox_search_widget.dart  lib/widgets/shared/rounded_container_widget.dart  lib/widgets/shared/text_fields/app-textfield-custom.dart  lib/widgets/shared/text_fields/text_fields_utils.dart  lib/widgets/shared/user-guid/custom_validation_error.dart  lib/widgets/transitions/fade_page.dart  lib/widgets/transitions/slide_up_page.dart  pubspec.lock  pubspec.yaml
4 years ago
MainAxisAlignment.start,children: [
Expanded(
// width: MediaQuery.of(context).size.width*0.51,
child: AppText(
5 years ago
isFromLiveCare
? Helpers.capitalize(patientInfo.fullName)
: (Helpers.capitalize(patientInfo.firstName) +
5 years ago
" " +
Helpers.capitalize(patientInfo.lastName)),
fontSize: 16,
color: Color(0xff2e303a),
fontWeight: FontWeight.w700,
fontFamily: 'Poppins',
textOverflow: TextOverflow.ellipsis,
),
5 years ago
),
if (patientInfo.gender == 1)
Icon(
5 years ago
DoctorApp.male_2,
color: Colors.blue,
)
else
Icon(
DoctorApp.female_1,
color: Colors.pink,
Merge branch 'development' of https://gitlab.com/Cloud_Solution/doctor_app_flutter into flutter_vervion_2_by_elham  Conflicts:  lib/client/base_app_client.dart  lib/config/localized_values.dart  lib/config/size_config.dart  lib/core/model/Prescriptions/prescription_report.dart  lib/core/model/Prescriptions/prescription_report_enh.dart  lib/core/model/auth/activation_Code_req_model.dart  lib/core/model/auth/activation_code_for_verification_screen_model.dart  lib/core/model/auth/check_activation_code_for_doctor_app_response_model.dart  lib/core/model/auth/check_activation_code_request_model.dart  lib/core/model/labs/lab_result.dart  lib/core/model/patient_muse/PatientSearchRequestModel.dart  lib/core/model/procedure/get_ordered_procedure_request_model.dart  lib/core/model/referral/MyReferralPatientModel.dart  lib/core/model/sick_leave/sick_leave_patient_model.dart  lib/core/model/sick_leave/sick_leave_patient_request_model.dart  lib/core/service/VideoCallService.dart  lib/core/service/base/base_service.dart  lib/core/service/home/scan_qr_service.dart  lib/core/service/patient/LiveCarePatientServices.dart  lib/core/service/patient/MyReferralPatientService.dart  lib/core/service/patient/patient-doctor-referral-service.dart  lib/core/service/patient_medical_file/lab_order/labs_service.dart  lib/core/service/patient_medical_file/medical_report/PatientMedicalReportService.dart  lib/core/service/patient_medical_file/prescription/prescriptions_service.dart  lib/core/service/patient_medical_file/procedure/procedure_service.dart  lib/core/service/patient_medical_file/radiology/radiology_service.dart  lib/core/service/patient_medical_file/sick_leave/sickleave_service.dart  lib/core/service/patient_medical_file/soap/SOAP_service.dart  lib/core/service/patient_medical_file/ucaf/patient-ucaf-service.dart  lib/core/viewModel/PatientSearchViewModel.dart  lib/core/viewModel/SOAP_view_model.dart  lib/core/viewModel/authentication_view_model.dart  lib/core/viewModel/base_view_model.dart  lib/core/viewModel/dashboard_view_model.dart  lib/core/viewModel/doctor_replay_view_model.dart  lib/core/viewModel/labs_view_model.dart  lib/core/viewModel/patient-referral-viewmodel.dart  lib/core/viewModel/patient-ucaf-viewmodel.dart  lib/core/viewModel/prescription_view_model.dart  lib/core/viewModel/prescriptions_view_model.dart  lib/core/viewModel/procedure_View_model.dart  lib/core/viewModel/sick_leave_view_model.dart  lib/models/SOAP/ChiefComplaint/GetChiefComplaintReqModel.dart  lib/models/SOAP/GetPhysicalExamReqModel.dart  lib/models/SOAP/my_selected_allergy.dart  lib/models/SOAP/my_selected_assement.dart  lib/models/SOAP/my_selected_examination.dart  lib/models/SOAP/my_selected_history.dart  lib/models/SOAP/post_chief_complaint_request_model.dart  lib/models/SOAP/post_physical_exam_request_model.dart  lib/models/doctor/list_gt_my_patients_question_model.dart  lib/models/doctor/profile_req_Model.dart  lib/models/doctor/replay/request_doctor_reply.dart  lib/models/livecare/start_call_res.dart  lib/models/patient/patiant_info_model.dart  lib/models/patient/progress_note_request.dart  lib/models/patient/vital_sign/vital_sign_req_model.dart  lib/models/pharmacies/pharmacies_items_request_model.dart  lib/screens/auth/verification_methods_screen.dart  lib/screens/doctor/doctor_repaly_chat.dart  lib/screens/doctor/doctor_replay/doctor_reply_widget.dart  lib/screens/doctor/doctor_reply_screen.dart  lib/screens/doctor/my_referral_patient_screen.dart  lib/screens/home/dashboard_swipe_widget.dart  lib/screens/home/home_patient_card.dart  lib/screens/home/home_screen.dart  lib/screens/live_care/end_call_screen.dart  lib/screens/live_care/live_care_patient_screen.dart  lib/screens/live_care/video_call.dart  lib/screens/medical-file/health_summary_page.dart  lib/screens/medicine/medicine_search_screen.dart  lib/screens/patients/DischargedPatientPage.dart  lib/screens/patients/InPatientPage.dart  lib/screens/patients/PatientsInPatientScreen.dart  lib/screens/patients/insurance_approval_screen_patient.dart  lib/screens/patients/out_patient/out_patient_screen.dart  lib/screens/patients/patient_search/patient_search_header.dart  lib/screens/patients/patient_search/patient_search_result_screen.dart  lib/screens/patients/patient_search/patient_search_screen.dart  lib/screens/patients/profile/UCAF/UCAF-detail-screen.dart  lib/screens/patients/profile/UCAF/UCAF-input-screen.dart  lib/screens/patients/profile/UCAF/page-stepper-widget.dart  lib/screens/patients/profile/admission-request/admission-request-first-screen.dart  lib/screens/patients/profile/admission-request/admission-request-third-screen.dart  lib/screens/patients/profile/admission-request/admission-request_second-screen.dart  lib/screens/patients/profile/lab_result/FlowChartPage.dart  lib/screens/patients/profile/lab_result/LabResultWidget.dart  lib/screens/patients/profile/lab_result/laboratory_result_page.dart  lib/screens/patients/profile/lab_result/laboratory_result_widget.dart  lib/screens/patients/profile/lab_result/labs_home_page.dart  lib/screens/patients/profile/medical_report/AddVerifyMedicalReport.dart  lib/screens/patients/profile/medical_report/MedicalReportPage.dart  lib/screens/patients/profile/notes/note/progress_note_screen.dart  lib/screens/patients/profile/profile_screen/patient_profile_screen.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_InPatient.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_other.dart  lib/screens/patients/profile/profile_screen/profile_gird_for_search.dart  lib/screens/patients/profile/radiology/radiology_details_page.dart  lib/screens/patients/profile/radiology/radiology_home_page.dart  lib/screens/patients/profile/referral/my-referral-detail-screen.dart  lib/screens/patients/profile/referral/my-referral-inpatient-screen.dart  lib/screens/patients/profile/referral/refer-patient-screen-in-patient.dart  lib/screens/patients/profile/referral/refer-patient-screen.dart  lib/screens/patients/profile/referral/referral_patient_detail_in-paint.dart  lib/screens/patients/profile/referral/referred-patient-screen.dart  lib/screens/patients/profile/referral/referred_patient_detail_in-paint.dart  lib/screens/patients/profile/soap_update/assessment/add_assessment_details.dart  lib/screens/patients/profile/soap_update/assessment/update_assessment_page.dart  lib/screens/patients/profile/soap_update/objective/add_examination_page.dart  lib/screens/patients/profile/soap_update/objective/add_examination_widget.dart  lib/screens/patients/profile/soap_update/objective/examination_item_card.dart  lib/screens/patients/profile/soap_update/objective/examinations_list_search_widget.dart  lib/screens/patients/profile/soap_update/objective/update_objective_page.dart  lib/screens/patients/profile/soap_update/plan/update_plan_page.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/SOAP_open_items.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/SOAP_step_header.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/bottom_sheet_title.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/expandable_SOAP_widget.dart  lib/screens/patients/profile/soap_update/shared_soap_widgets/steps_widget.dart  lib/screens/patients/profile/soap_update/subjective/allergies/add_allergies.dart  lib/screens/patients/profile/soap_update/subjective/allergies/update_allergies_widget.dart  lib/screens/patients/profile/soap_update/subjective/history/add_history_dialog.dart  lib/screens/patients/profile/soap_update/subjective/history/priority_bar.dart  lib/screens/patients/profile/soap_update/subjective/history/update_history_widget.dart  lib/screens/patients/profile/soap_update/subjective/medication/add_medication.dart  lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart  lib/screens/patients/profile/soap_update/update_soap_index.dart  lib/screens/patients/profile/vital_sign/vital_sign_details_screen.dart  lib/screens/prescription/add_prescription_form.dart  lib/screens/prescription/prescription_item_in_patient_page.dart  lib/screens/prescription/prescription_text_filed.dart  lib/screens/prescription/prescriptions_page.dart  lib/screens/procedures/ProcedureCard.dart  lib/screens/procedures/add-favourite-procedure.dart  lib/screens/procedures/procedure_checkout_screen.dart  lib/screens/procedures/procedure_screen.dart  lib/screens/reschedule-leaves/add-rescheduleleave.dart  lib/screens/reschedule-leaves/reschedule_leave.dart  lib/screens/sick-leave/add-sickleave.dart  lib/screens/sick-leave/show-sickleave.dart  lib/screens/sick-leave/sick_leave.dart  lib/util/VideoChannel.dart  lib/util/date-utils.dart  lib/util/translations_delegate_base.dart  lib/widgets/patients/patient-referral-item-widget.dart  lib/widgets/patients/patient_card/PatientCard.dart  lib/widgets/patients/profile/PatientProfileButton.dart  lib/widgets/patients/profile/patient-profile-app-bar.dart  lib/widgets/patients/profile/patient-profile-header-new-design-app-bar.dart  lib/widgets/patients/profile/profile-welcome-widget.dart  lib/widgets/patients/profile/profile_medical_info_widget.dart  lib/widgets/patients/profile/profile_medical_info_widget_search.dart  lib/widgets/patients/profile/profile_status_info_widget.dart  lib/widgets/shared/app_texts_widget.dart  lib/widgets/shared/bottom_nav_bar.dart  lib/widgets/shared/bottom_navigation_item.dart  lib/widgets/shared/buttons/app_buttons_widget.dart  lib/widgets/shared/card_with_bg_widget.dart  lib/widgets/shared/dialogs/dailog-list-select.dart  lib/widgets/shared/dialogs/master_key_dailog.dart  lib/widgets/shared/doctor_card.dart  lib/widgets/shared/doctor_card_insurance.dart  lib/widgets/shared/master_key_checkbox_search_allergies_widget.dart  lib/widgets/shared/master_key_checkbox_search_widget.dart  lib/widgets/shared/rounded_container_widget.dart  lib/widgets/shared/text_fields/app-textfield-custom.dart  lib/widgets/shared/text_fields/text_fields_utils.dart  lib/widgets/shared/user-guid/custom_validation_error.dart  lib/widgets/transitions/fade_page.dart  lib/widgets/transitions/slide_up_page.dart  pubspec.lock  pubspec.yaml
4 years ago
), if (isFromLiveCare)
ShowTimer(
patientInfo: patientInfo,
),
]),
),
5 years ago
Expanded(
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: Container(
alignment: Alignment.centerRight,
child: AppText(
nationalityName!.truncate(14),
5 years ago
fontWeight: FontWeight.bold,
fontSize: 14,
textOverflow: TextOverflow.ellipsis,
),
),
),
patientInfo.nationality != null ||
patientInfo.nationalityId != null
? ClipRRect(
borderRadius:
BorderRadius.circular(20.0),
child: CachedNetworkImage(
imageUrl: patientInfo
.nationalityFlagURL !=
null
? patientInfo.nationalityFlagURL
: '',
height: 25,
width: 30,
errorWidget:
(context, url, error) =>
AppText(
5 years ago
'No Image',
fontSize: 10,
5 years ago
),
))
: SizedBox()
],
),
)
],
)),
Row(children: <Widget>[
Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Padding(
padding: EdgeInsets.only(left: 12.0),
child: Container(
width: 60,
height: 60,
child: Image.asset(
patientInfo.gender == 1
? 'assets/images/male_avatar.png'
: 'assets/images/female_avatar.png',
fit: BoxFit.cover,
),
),
5 years ago
),
],
5 years ago
),
SizedBox(
width: 10,
),
Expanded(
child: Row(
children: [
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CustomRow(
label:
TranslationBase.of(context).fileNumber,
value: patientInfo.patientId.toString(),
),
CustomRow(
label:
TranslationBase.of(context).age! + " : ",
value:
"${AppDateUtils.getAgeByBirthday(patientInfo!.dateofBirth!, context, isServerFormat: !isFromLiveCare)}",
),
5 years ago
if (isInpatient)
CustomRow(
label: patientInfo.admissionDate == null
? ""
: TranslationBase.of(context)
.admissionDate! +
5 years ago
" : ",
value: patientInfo.admissionDate == null
? ""
: "${AppDateUtils.convertDateFromServerFormat(patientInfo.admissionDate.toString(), 'yyyy-MM-dd')}",
),
if (patientInfo.admissionDate != null)
CustomRow(
label: TranslationBase.of(context)
.numOfDays! +
" : ",
value:
"${DateTime.now().difference(AppDateUtils.getDateTimeFromServerFormat(patientInfo!.admissionDate!)).inDays + 1}",
),
if (patientInfo.admissionDate != null)
CustomRow(
5 years ago
label: TranslationBase.of(context)
.clinicName! +
5 years ago
" : ",
value: "${patientInfo.clinicDescription}",
),
if (patientInfo.admissionDate != null)
CustomRow(
label:
TranslationBase.of(context).roomNo! +
" : ",
value: "${patientInfo.roomId}",
),
if (isFromLiveCare)
Column(
children: [
CustomRow(
label: TranslationBase.of(context)
.clinic! +
" : ",
value: patientInfo!.clinicName!,
),
],
),
]),
),
Icon(
Icons.arrow_forward,
size: 24,
),
],
))
]),
5 years ago
isFromLiveCare
? Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
5 years ago
Container(
padding: EdgeInsets.all(4),
child: Image.asset(
'assets/images/livecare.png',
height: 25,
width: 35,
color: Colors.grey.shade700,
)),
],
)
: !isInpatient && !isFromSearch
? Row(mainAxisAlignment: MainAxisAlignment.end, children: [
Container(
padding: EdgeInsets.all(4),
child: Image.asset(
patientInfo.appointmentType == 'Regular' && patientInfo.visitTypeId == 100
? 'assets/images/livecare.png'
: patientInfo.appointmentType == 'Walkin'
? 'assets/images/walkin.png'
: 'assets/images/booked.png',
height: 25,
width: 35,
)),
])
: (isInpatient == true)
? Row(mainAxisAlignment: MainAxisAlignment.end, children: [
5 years ago
Container(
padding: EdgeInsets.all(4),
child: Image.asset(
'assets/images/inpatient.png',
5 years ago
height: 25,
width: 35,
)),
])
5 years ago
: SizedBox()
],
),
onTap: onTap,
)),
));
5 years ago
}
}