pull/295/head
haroon amjad 13 hours ago
parent 4109df4312
commit e200e84b8e

@ -1289,7 +1289,7 @@
"quickLinks": "روابط سريعة",
"viewMedicalFileLandingPage": "عرض الملف الطبي",
"immediateLiveCareRequest": "طلب لايف كير فوري",
"yourTurnIsAfterPatients": "أمامك {count} مريض. سيقوم الطبيب بالتواصل معكً.",
"yourTurnIsAfterPatients": "أمامك {count} مريض. سيقوم الطبيب بالتواصل معكً.\n",
"dontHaveHHCOrders": "ليس لديك أي أوامر رعاية صحية منزلية حتى الآن.",
"hhcOrders": "أوامر الرعاية الصحية المنزلية",
"requestedServices": "الخدمات المطلوبة",
@ -1714,7 +1714,7 @@
"selectHospitalContinue": "يرجى اختيار المستشفى للمتابعة.",
"year": "سنة",
"notifyPrescription": "تنبيه قبل موعد الجرعة",
"doctorRatingAppointment": "طبيب\nتصنيف",
"doctorRatingAppointment": "تقييم الطبيب",
"ratingSubmitted": "تم إرسال التقييم",
"rateTheDoctor": "يرجى تقييم الطبيب",
"downloadInvoice": "تحميل",
@ -1834,9 +1834,10 @@
"benefit": "الفائدة",
"commonSideEffects": "الآثار الجانبية الشائعة",
"seriousWarnings": "تحذيرات خطيرة",
"storage": "التخزين",
"storage": "طريقة الحفظ",
"aiDisclaimerPrescription": "سيتم مشاركة بيانات نتائج الوصفات الطبية الخاصة بك بشكل آمن مع محلل الذكاء الاصطناعي لدينا لتحليلها. يساعد هذا في توفير رؤى صحية مخصصة. هل ترغب في المتابعة؟",
"generateAiAnalysisPrescription": "تحليل الذكاء الاصطناعي",
"loadingAIAnalysisPrescription": "ٍتحليل الوصفات الطبية بواسطة الذكاء الاصطناعي، يرجى الانتظار...",
"thisAboveInfoPrescription": "تم تحليل الوصفة الطبية هذه بواسطة الذكاء الاصطناعي، وهي لا تُعدّ نصيحة طبية. استشر طبيبك المختص للتشخيص والعلاج."
"thisAboveInfoPrescription": "تم تحليل الوصفة الطبية هذه بواسطة الذكاء الاصطناعي، وهي لا تُعدّ نصيحة طبية. استشر طبيبك المختص للتشخيص والعلاج.",
"liveCareNotificationPermissionsMessage": "يتطلب لايف كير أذونات الإشعارات، يرجى السماح بهذه الأذونات للمتابعة."
}

@ -1705,7 +1705,7 @@
"selectHospitalContinue": "Please select hospital to continue.",
"year": "Year",
"notifyPrescription": "Notify me before the consumption time",
"doctorRatingAppointment": "Doctor\nRating",
"doctorRatingAppointment": "Doctor Rating",
"ratingSubmitted": "Rating Submitted",
"rateTheDoctor": "Please rate the doctor",
"downloadInvoice": "Download Invoice",
@ -1828,7 +1828,8 @@
"aiDisclaimerPrescription": "Your prescription data will be securely shared with our AI Analyzer for analysis. This helps provide personalized health insights. Do you want to proceed?",
"generateAiAnalysisPrescription": "Generate AI analysis",
"loadingAIAnalysisPrescription": "Analysing your prescription, let the AI do the magic, This might take some time.",
"thisAboveInfoPrescription": "This prescription was analyzed by AI, and it is not medical advice. Consult your healthcare provider for diagnosis and treatment."
"thisAboveInfoPrescription": "This prescription was analyzed by AI, and it is not medical advice. Consult your healthcare provider for diagnosis and treatment.",
"liveCareNotificationPermissionsMessage": "LiveCare requires Notifications permission, Please allow to proceed."
}

@ -248,6 +248,7 @@ class ImmediateLiveCareViewModel extends ChangeNotifier {
Future<void> getPatientLiveCareHistory({Function(dynamic)? onSuccess, Function(String)? onError}) async {
patientLiveCareHistoryList = [];
patientHasPendingLiveCareRequest = false;
timer?.cancel();
notifyListeners();
final result = await immediateLiveCareRepo.getPatientLiveCareHistory();

@ -1831,5 +1831,6 @@ abstract class LocaleKeys {
static const generateAiAnalysisPrescription = 'generateAiAnalysisPrescription';
static const loadingAIAnalysisPrescription = 'loadingAIAnalysisPrescription';
static const thisAboveInfoPrescription = 'thisAboveInfoPrescription';
static const liveCareNotificationPermissionsMessage = 'liveCareNotificationPermissionsMessage';
}

@ -384,7 +384,7 @@ class ImmediateLiveCarePaymentDetails extends StatelessWidget {
if (permanent.isNotEmpty) {
final names = permanent.map((p) => LiveCarePermissionService.instance.friendlyName(p)).join(' and ');
// final message = permanent.length == 1 ? '$names permission is permanently denied. Open app settings to allow it.' : '$names permissions are permanently denied. Open app settings to allow them.';
final message = LocaleKeys.liveCarePermissions.tr();
final message = LocaleKeys.liveCareNotificationPermissionsMessage.tr();
await LiveCarePermissionService.instance.showOpenSettingsDialog(
context,
title: LocaleKeys.permissionsProfile.tr(),

@ -41,7 +41,7 @@ class _ImmediateLiveCarePendingRequestPageState extends State<ImmediateLiveCareP
void dispose() {
// Cancel the timer when leaving the page
try {
immediateLiveCareViewModel.stopTimer();
// immediateLiveCareViewModel.stopTimer();
} catch (e) {
// Handle case where viewModel might not be initialized
}

Loading…
Cancel
Save