Livecare Terms & conditions, PayTabs Tamara fixes

pull/363/head
haroon amjad 1 month ago
parent 7c3d6de8a8
commit 3bf5ca98d5

@ -1969,5 +1969,86 @@
"hide": "إخفاء",
"viewPatientQR": "عرض رمز الاستجابة السريعة للمريض",
"patientQR": "رمز الاستجابة السريعة للمريض",
"forText": "عن"
"forText": "عن",
"liveCareTermsHeading": "شروط خدمات الرعاية الصحية عن بُعد",
"liveCareTermsIntroHeading": "مقدمة",
"liveCareTermsConditions1": "تعتبر شركة مجموعة الدكتور سليمان الحبيب للخدمات الطبية ('المجموعة') واحدة من الشركات الرائدة في قطاع الرعاية الصحية في المملكة العربية السعودية والتي تسعى دائمًا لتحسين خدماتها في المنطقة، وكخطوة لنقل خدماتنا إلى مستوى آخر ولتسهيل عملية تلقي خدمات الرعاية الصحية، فقد اعتمدنا نهج تقديم بعض خدماتنا عن بُعد للمرضى. تنطبق هذه الشروط على خدمات الرعاية الصحية عن بُعد التي نقدمها، والتي تتيح إجراء الاستشارات بين الطبيب والمريض عبر الإنترنت، باستخدام تقنية الاتصالات الصوتية أو المرئية (يشار إليها غالباً باسم 'خدمات الرعاية الصحية عن بُعد').",
"liveCareTermsConditions2": "الغرض من خدمات الرعاية الصحية عن بعد هو تسهيل الاتصالات بين الممارسين الصحيين والمرضى لتقديم خدمات الرعاية الصحية من خلال وسائل الاتصال الإلكترونية المتقدمة، والتي تتيح للممارسين الصحيين تقييم وتشخيص وعلاج ومتابعة المرضى عن بُعد دون الحاجة إلى حضور المرضى شخصياً.",
"liveCareTermsHeading2": "الاتفاقية",
"liveCareTermsConditions3": "يتم تقديم خدمات الرعاية الصحية عن بُعد عبر تطبيق الهاتف المحمول أو الموقع الإلكتروني للمجموعة. تنطبق الشروط التالية على خدمات الرعاية الصحية عن بُعد: ",
"liveCareTermsConditions3a": "شروط استخدام الموقع الالكتروني - ",
"liveCareTermsConditions3b": "تفاقية مستخدم التطبيق - ",
"liveCareTermsConditions3c": "روط استخدام الخدمات الإلكترونية - ",
"liveCareTermsConditions3d": "شروط خدمات الرعاية الصحية عن بُعد هذه - ",
"liveCareTermsConditions4": "بالموافقة على الاستمرار في خدمات الرعاية الصحية عن بُعد وقبول هذه الشروط، فإنك تدخل في اتفاقية مع المجموعة تتضمن جميع الشروط المذكورة أعلاه (اتفاقية خدمات الرعاية الصحية عن بُعد).",
"liveCareTermsConditions5": "يتعين عليك أيضاً قراءة سياسة الخصوصية الخاصة بنا حيث تحتوي سياسة الخصوصية على تفاصيل حول كيفية استخدامنا لمعلوماتك الشخصية وحقوقك بشأنها. من خلال متابعة استخدام خدمات الرعاية الصحية عن بُعد، فإنك توافق على استخدامنا لمعلوماتك الشخصية وفقاً لسياسة الخصوصية الخاصة بنا وتوافق صراحةً على استخدامنا لمعلوماتك الشخصية لأداء خدمات الرعاية الصحية عن بُعد وأداء واجباتنا المهنية كمقدم لخدمات الرعاية الطبية.",
"liveCareTermsConditions6": "يتعين عليك أيضاً قراءة سياسة الخصوصية الخاصة بنا حيث تحتوي سياسة الخصوصية على تفاصيل حول كيفية استخدامنا لمعلوماتك الشخصية وحقوقك بشأنها. من خلال متابعة استخدام خدمات الرعاية الصحية عن بُعد، فإنك توافق على استخدامنا لمعلوماتك الشخصية وفقاً لسياسة الخصوصية الخاصة بنا وتوافق صراحةً على استخدامنا لمعلوماتك الشخصية لأداء خدمات الرعاية الصحية عن بُعد وأداء واجباتنا المهنية كمقدم لخدمات الرعاية الطبية.",
"liveCareTermsHeading3": "1.\tالتعاريف",
"liveCareTermsConditions7": "المجموعة تعني شركة مجموعة الدكتور سليمان الحبيب للخدمات الطبية والشركات التابعة لها.",
"liveCareTermsConditions8": "خدمات الرعاية الصحية عن بُعد تعني خدمة الرعاية الصحية عن بُعد التي تقدمها المجموعة، والتي تتيح الاستشارة والتشخيص والمتابعة عن بُعد بين المريض والطبيب، باستخدام التطبيق و/أو موقع الويب.",
"liveCareTermsConditions9": "خدماتنا تعني بعض الخدمات التي تقدمها المجموعة والتي تغطي استعراض السجلات الطبية للمرضى ونتائج الفحوصات الطبية، وتوفير التشخيصات الطبية بالإضافة إلى توفر خدمة الرعاية الصحية عن بعد بالصوت والفيديو بين ممارسي الرعاية الصحية والمرضى.",
"liveCareTermsConditions10": "التطبيق يعني تطبيق (Dr. ALHABIB) وهو عبارة عن منصة يتم من خلالها تقديم خدماتنا ويمكن للمستخدمين الولوج إليها.",
"liveCareTermsConditions11": "موقع الويب يعني موقع الويب الخاص بالمجموعة وهو عبارة عن منصة يتم من خلالها تقديم خدماتنا ويمكن للمستخدمين الدخول إليها.",
"liveCareTermsConditions12": "الشروط والأحكام تعني شروط خدمات الرعاية الصحية عن بُعد هذه.",
"liveCareTermsConditions13": "المحتوى يعني أي رسالة أو بيانات أو معلومات أو نص أو صوت أو صور أو فيديو أو رسومات أو رمز أو أي مادة أخرى واردة في التطبيق أو موقع الويب أو يتم نقلها عبر التطبيق أو موقع الويب.",
"liveCareTermsHeading4": "2.\tتعهدات المستخدم",
"liveCareTermsConditions14": "2-1\tمن خلال دخولك إلى خدمات الرعاية الصحية عن بُعد واستخدامها، فإنك توافق على هذه الشروط والأحكام ويتعين عليك ألا تحاول الدخول إلى خدماتنا إذا كنت لا توافق عليها.",
"liveCareTermsConditions15": "2-2\tأنت تضمن وتقر وتتعهد بأن جميع المعلومات التي تقدمها عن نفسك وعن أي شخص آخر صحيحة ودقيقة.",
"liveCareTermsConditions16": "2-3\tخدمات الرعاية الصحية عن بعد مخصصة للاستخدام من قبل المرضى الموجودين فعلياً في المملكة العربية السعودية (المنطقة المسموح بها) ولا ينبغي استخدامها من قبل المرضى خارج المنطقة المسموح بها. بالموافقة على هذه الشروط والأحكام والدخول إلى خدمات الرعاية الصحية عن بُعد عبر التطبيق أو موقع الويب، فإنك تقر وتضمن لنا أنك موجود فعلياً في إحدى المناطق المسموح بها.",
"liveCareTermsHeading5": "3.\tالقيود على خدمات الرعاية الصحية عن بعد والمخاطر المرتبطة بها",
"liveCareTermsConditions17": "3-1\tلا تستخدم التطبيق أو موقع الويب أو خدمات الرعاية الصحية عن بُعد للتواصل بشأن الحالات الطبية الطارئة أو علاجها. لا التطبيق ولا موقع الويب ولا خدمات الرعاية الصحية عن بُعد توفر الرعاية في الحالات الطبية الطارئة. إذا كانت هناك حالة طبية طارئة عاجلة أو كانت هناك حاجة إلى استجابة سريعة فيما يتعلق بصحتك، فانتقل إلى أقرب مركز/مستشفى طوارئ أو اتصل على الفور بأي رقم هاتف للطوارئ.",
"liveCareTermsConditions18": "3-2\tخدمات الرعاية الصحية عن بعد ليست مناسبة للحالات الطبية الطارئة وقد تكون هناك بعض العلاجات أو الأدوية التي لا يمكن تقديمها دون استشارة متابعة في حضور المريض شخصياً. إذا كنت تعتقد أن لديك حالة طبية خطيرة، فعليك طلب استشارة شخصية مع أخصائي طبي مرخص.",
"liveCareTermsConditions19": "3-3\tتهدف خدمات الرعاية الصحية عن بُعد إلى توفير مزايا تشمل راحة المريض. لذلك، فهو قد يكون الأنسب كبديل للاستشارة الشخصية للأمور الطبية الروتينية. ومع ذلك، هناك مخاطر محتملة مرتبطة باستخدام أي خدمة للرعاية الصحية عن بُعد، بما في ذلك خدمات الرعاية الصحية عن بُعد، وقد تشمل هذه المخاطر على سبيل المثال لا الحصر ما يلي:",
"liveCareTermsConditions19a": "(1) المعلومات المنقولة قد لا تكون كافية (مثل ضعف دقة الصور) للسماح باتخاذ القرار الطبي المناسب من قبل الممارسين الصحيين",
"liveCareTermsConditions19b": "(2) قد يقرر الممارسين الصحيين أن المعلومات المنقولة ليست ذات جودة كافية، مما يستلزم مقابلة المريض وجهاً لوجه، أو على الأقل إعادة جدولة استشارة طبية صوتية ومرئية في وقت لاحق",
"liveCareTermsConditions19c": "(3) يمكن أن يحدث تأخير في تقديم الرعاية الطبية بسبب أوجه القصور أو الأعطال في الأجهزة الإلكترونية",
"liveCareTermsConditions19d": "(4) يعتمد الممارس الصحي على المريض لتقديم جميع المعلومات ذات الصلة شفوياً وعبر الاستخدام المناسب لجهاز الكاميرا الخاص بالمريض. من الممكن ألا يتم تقديم المعلومات إلى الممارس أو قد لا تكون واضحة بقدر الوضوح الذي يتوفر للممارس الصحي أثناء إجراء الفحص البدني الشخصي",
"liveCareTermsConditions19e": "(5) قد تفشل البروتوكولات الأمنية، مما يتسبب في انتهاك خصوصية المعلومات الطبية الشخصية. على الرغم من أننا نتخذ تدابير معقولة لحماية أمن المعلومات المنقولة عبر التطبيق و/أو الموقع الإلكتروني، إلا أنه لا يمكن أبدًا ضمان أن تكون عمليات الإرسال هذه آمنة تماماً، والمعلومات المنقولة عبر شبكات الاتصالات العامة خارجة عن سيطرتنا ولا يمكننا تأمينها.",
"liveCareTermsConditions20": "3-4\tفي حال كنت تستخدم خدمات الرعاية الصحية عن بُعد ولكنك تواجه أي حالة أو مخاوف مستمرة، فإننا نوصيك بحجز استشارة شخصية.",
"liveCareTermsHeading6": "4.\tإخلاء المسؤولية عن الضمان",
"liveCareTermsConditions21": "4-1\tنحن لا نضمن ولا نقر أو نتعهد بأن خدمات الرعاية الصحية عن بُعد ستلبي احتياجاتك، أو أنها ستكون مستمرة دون انقطاع أو سيتم توفيرها في الوقت المناسب أو أنها آمنة أو خالية من الأخطاء أو خالية من الفيروسات. لن نتحمل أي مسؤولية تجاهك في حالة تعذر حدوث جلسة خدمات الرعاية الصحية عن بُعد أو تمت مقاطعتها أو التخلي عنها بسبب عدم توفر منصتنا عبر الإنترنت ومع ذلك، في حالة تعذر علينا إجراء جلسة خدمات الرعاية الصحية عن بُعد بالكامل بسبب تعطل منصتنا، فلن نتقاضى منك أي أجور عن جلسة الاستشارة البديلة.",
"liveCareTermsConditions22": "4-2\tتُستثنى جميع الضمانات الصريحة أو الضمنية بموجب النظام، باستثناء تلك التي لا يمكن استثناؤها بشكل قانوني.",
"liveCareTermsConditions23": "4-3\tلا يوجد في هذا القسم 4 أي نص يُقصد منه استبعاد أو تقييد مسؤوليتنا عن أي مطالبة تتعلق بالإهمال الطبي، إلى الحد الذي لا يسمح لنا فيه النظام المعمول به في المنطقة المسموح بها ذات الصلة بالقيام بذلك.",
"liveCareTermsHeading7": "5.\tالأهلية والتسجيل والاستخدام",
"liveCareTermsConditions24": "5-1\tمن أجل الدخول إلى خدمات الرعاية الصحية عن بُعد، يتعين عليك أن تفي بمتطلبات الحد الأدنى للسن وهو 18 عاماً (يتم احتسابها وفقاً للتقويم الميلادي) وأن تتمتع بالأهلية القانونية الكاملة.",
"liveCareTermsConditions25": "5-2\tيجب أن يحصل أي شخص يقل عمره عن 18 عاماً (يتم احتسابها وفقاً للتقويم الميلادي) يقوم بالدخول إلى خدمات الرعاية الصحية عن بُعد على إذن من أحد الوالدين أو الوصي للقيام بذلك.",
"liveCareTermsConditions26": "5-3\tأنت تضمن وتقر وتتعهد بأن لديك الحق القانوني والقدرة على الدخول إلى التطبيق و/أو موقع الويب وفقاً لهذه الشروط والأحكام و، عند الاقتضاء، إجراء الحجوزات والمدفوعات من خلال التطبيق أو موقع الويب.",
"liveCareTermsConditions27": "5-4\tتتم عملية التسجيل وفق ما ورد في شروط استخدام الخدمات الإلكترونية",
"liveCareTermsConditions28": "5-5\tخدمات الرعاية الصحية عن بُعد مخصصة فقط لاستخدامك الشخصي واستخدام أطفالك تحت إشرافك. يتعين عليك ألا تشارك بيانات تسجيل الدخول الخاصة بك (اسم المستخدم وكلمة المرور وما إلى ذلك) مع أي شخص آخر ويجب أن تتخذ خطوات معقولة للحفاظ على أمان هذه البيانات. يتم تقديم خدماتنا على أساس أن لدينا معلومات معينة حول المستخدم، والتي قد تكون مرتبطة أو تم الحصول عليها من تفاصيل حسابك (العمر والجنس والتاريخ الطبي وما إلى ذلك). نحن لا نتحمل أي مسؤولية من أي نوع تجاهك أو تجاه أي شخص آخر إذا تم تقديم خدماتنا عبر حساب مستخدم إلى شخص آخر غير المستخدم المسجل. هذا مهم بشكل خاص لخدمات الرعاية الصحية عن بعد، حيث سيحتاج الممارس الصحي إلى تقييم المعلومات التي يقدمها المريض أثناء الاستشارة في سياق الملف الطبي للمريض وتاريخه.",
"liveCareTermsConditions29": "5-6\tأنت مسؤول عن التأكد من أن لديك جهازاً متصلاً بالإنترنت وقادراً على إرسال واستقبال الفيديو والصوت. نحن لسنا مسؤولين عن أي انقطاع في جلسة خدمات الرعاية الصحية عن بعد بسبب ناجم عن جهازك أو اتصالك بالإنترنت. أنت مسؤول عن جميع التكاليف المرتبطة باتصالك بالإنترنت واستخدامك لها.",
"liveCareTermsConditions30": "5-7\tقد نقوم من وقت لآخر بإصدار تحديثات لتطبيقنا و/أو موقع الويب الخاص بنا. يجب عليك التأكد من أنك تقوم بتشغيل أحدث إصدار من التطبيق. قد يؤدي استخدام الإصدارات القديمة من التطبيق إلى حدوث أخطاء فنية أثناء استخدامك لخدمات الرعاية الصحية عن بُعد وقد يعرضك ذلك لمخاطر أمنية إضافية.",
"liveCareTermsHeading8": "6.\tخدمات الرعاية الصحية عن بُعد",
"liveCareTermsConditions31": "خدمات الرعاية الصحية عن بُعد الخاصة بنا سوف تكون لتخصصات طبية محددة أو لمواعيد المتابعة أو إعادة صرف الدواء. ",
"liveCareTermsHeading9": "7.\tالأجور والسداد",
"liveCareTermsConditions32": "خدمات الرعاية الصحية عن بُعد الخاصة بنا سوف تكون لتخصصات طبية محددة أو لمواعيد المتابعة أو إعادة صرف الدواء. ",
"liveCareTermsConditions33": "7-1\tستتم الإشارة إلى أجور استشارة خدمات الرعاية الصحية عن بُعد قبل أن تختار المتابعة. بمجرد المتابعة، فإنك توافق على سداد الأجور. لا تشمل تلك الأجور الأولية أي أجور لاحقة مثل أجور الوصفات الطبية والاختبارات المعملية واستشارات المتابعة وما إلى ذلك من أجور وسيتم إبلاغك بها بعد الاستشارة الأولية.",
"liveCareTermsConditions34": "7-2\tيتم تحديد شروط وطرق السداد المعمول بها في شروط استخدام الخدمات عبر الإنترنت الخاصة بنا.",
"liveCareTermsConditions35": "7-3\tقد يكون من الممكن فرض أجور خدمات الرعاية الصحية عن بُعد مباشرة على مزود التأمين الطبي، على الرغم من أننا لا نقدم أي تعهد أو ضمان بأن هذا سيكون ممكناً في أي وقت. تضمنت شروط استخدام الخدمات عبر الإنترنت الخاصة بنا مزيد من التفاصيل حول ذلك. إذا كان هذا التسهيل الخدمي متاحاً واخترت استخدامه، فستحتاج إلى تزويدنا بتفاصيل شركة التأمين الطبي وتغطية وثيقة التأمين، ما لم تكن قد قمت بذلك مسبقاً وربطتها بحسابك. أنت تفوضنا بموجب هذا بالتواصل مع أي شركة تأمين وفق التفاصيل التي تقدمها لنا في وقت الشراء أو المرتبطة بحسابك من أجل الحصول على الموافقة على تكلفة الخدمات المقدمة لك. أنت تقر بأنه قد يُطلب منا تقديم تفاصيل محددة عن الخدمات الطبية التي تطلبها من أجل القيام بذلك وتوافق صراحة على هذا الإفصاح.",
"liveCareTermsHeading10": "8.\tالاتصالات و/أو الاستفسارات",
"liveCareTermsConditions36": "في حال وجود أي أسئلة و/أو استفسارات بخصوص استخدام خدمات الرعاية الصحية عن بُعد، يرجى التواصل معنا على: EServices.HMG@drsulaimanalhabib.com أو الاتصال على الرقم: 9553 525 011",
"liveCareTermsHeading11": "9.\tحدود المسؤولية",
"liveCareTermsConditions37": "9-1\tمع مراعاة أي مسؤوليات ينص عليها النظام والتي لا يمكن استبعادها بموجبه، لا تتحمل المجموعة أو أي من مديرينا أو موظفينا أو وكلائنا أو مقاولينا المسؤولية تجاهك عن أي خسائر وأضرار ومسؤوليات ومطالبات ونفقات (بما في ذلك على سبيل المثال لا الحصر الأتعاب القانونية وتكاليف الدفاع أو التسوية) أيا كانت، سواء كانت مباشرة أو غير مباشرة أو تبعية، ناشئة عن أو متعلقة باستخدامك لخدمات الرعاية الصحية عن بُعد، أياً كان سبب نشوئها، سواء كان ذلك بموجب عقد أو المسؤولية التقصيرية (بما في ذلك الإهمال) أو النظام أو غير ذلك.",
"liveCareTermsConditions38": "9-2\tلن نكون مسؤولين تجاهك أو تجاه أي شخص آخر عن أي خسارة ناتجة عن سبب خارج عن سيطرتنا. يتضمن ذلك تعطل المعدات الإلكترونية أو الميكانيكية أو خطوط الاتصالات (بما في ذلك الهاتف والكابل والإنترنت)، أو الدخول غير المصرح به، أو أفعال أو إغفالات الأطراف الثالثة، أو الفيروسات، أو السرقة، أو أخطاء المشغل، أو الطقس القاسي أو غير العادي (بما في ذلك الفيضانات، أو الزلازل، أو أي من أفعال القضاء والقدر الأخرى)، أو الحرائق والحروب والتمرد والأعمال الإرهابية وأعمال شغب والنزاع العمالي أو المشاكل العمالية الأخرى أو الحوادث أو الطوارئ أو التأخير أو الحجز الزائد أو الإلغاء، أو الزوال الملكي أو أي إجراء حكومي.",
"liveCareTermsHeading12": "10.\tإنهاء الاستخدام",
"liveCareTermsConditions39": "10-1\tيجوز لنا التوقف عن توفير خدمات الرعاية الصحية عن بُعد في أي وقت ولأي سبب. لن نتحمل أي مسؤولية عن أي توقف، بما في ذلك عندما تكون خلال الاستشارات أو دورات العلاج باستخدام خدمات الرعاية الصحية عن بُعد. سنساعدك للتمكن من حجز الاستشارات الشخصية بدلاً من ذلك أو في نقل المعلومات ذات الصلة إلى مزود طبي بديل لتمكينك من مواصلة العلاج (مع مراعاة أنظمة حماية البيانات والسرية والممارسات الطبية والممارسات الطبية الجيدة السائدة).",
"liveCareTermsConditions40": "10-2\tيجوز لنا إنهاء استخدامك ودخولك إلى خدمات الرعاية الصحية عن بُعد لأي سبب أو بدون سبب، في أي وقت، سواء بإشعارك أو بدونه ودون تحمل أي مسؤولية تجاهك، ومع ذلك قد تنشأ هذه المسؤولية (على الرغم من أننا سنأخذ واجباتنا الطبية تجاهك بعين الاعتبار في حالة القيام بذلك).",
"liveCareTermsConditions41": "10-3\tستظل جميع القيود وجميع إخلاءات الطرف من المسؤولية والاستثناءات والقيود الخاصة بمسؤوليتنا سارية بعد أي إنهاء. عند الإنهاء، يتعين عليك عدم الدخول إلى أو استخدام التطبيق و/أو موقع الويب بشكل مباشر أو غير مباشر.",
"liveCareTermsHeading13": "11.\tالقانون الحاكم والاختصاص القضائي",
"liveCareTermsConditions42": "النظام المعمول به على التطبيق و/أو شروط وأحكام مستخدم موقع الويب والنزاعات الناشئة عنها أو المتعلقة بها هي أنظمة المملكة العربية السعودية. وأنت تخضع بشكل لا رجوع فيه للاختصاص القضائي الحصري لمحاكم المملكة العربية السعودية.",
"liveCareTermsHeading14": "12.\tالإقرارات",
"liveCareTermsConditions43": "12-1\tباستثناء ما هو منصوص عليه صراحةً في هذه الشروط والأحكام أو ما يسمح به أي نظام معمول به، فإنك توافق على ما يلي:",
"liveCareTermsConditions43a": "(1) أنك قد قرأت وفهمت هذه الشروط والأحكام والبنود الأخرى التي تشكل جزءاً من اتفاقيتك معنا",
"liveCareTermsConditions43b": "(2) أنك قد قرأت سياسة الخصوصية الخاصة بنا وتوافق بموجبه صراحة على استخدامنا لمعلوماتك الشخصية كما هو موضح فيها. بالإضافة إلى ذلك، أنت تدرك أن رقم الاتصال أو عنوان البريد الإلكتروني الذي زودتنا به عند التسجيل سيتم استخدامه للاتصالات من قبل المجموعة من خلال الرسائل القصيرة أو البريد الإلكتروني أو أي طريقة أخرى فيما يتعلق بخدمات الرعاية الصحية عن بُعد، بما في ذلك إشعارات المواعيد والخدمات الطبية الحالية.",
"liveCareTermsConditions43c": "(3) أنت تدرك أن لديك الحق في حجب أو سحب موافقتك بشأن استخدام التطبيق و/أو موقع الويب في سياق رعايتك في أي وقت، دون التأثير على حقك في تلقي الرعاية أو العلاج في المستقبل؛",
"liveCareTermsConditions43d": "(4) أنت تدرك أنك قد تتوقع الحصول على مزايا من استخدام التطبيق و/أو موقع الويب فيما يتعلق برعايتك الصحية، ولكن لا يمكن ضمان أي نتائج أو تأكيدها؛",
"liveCareTermsConditions43e": "(5) أنت تدرك أنه قد تتم مشاركة معلومات الرعاية الصحية الخاصة بك مع موظفين آخرين في المجموعة لأغراض جدولة المواعيد والفواتير؛",
"liveCareTermsConditions43f": "(6) أنت تدرك أن صور الفيديو والتسجيلات الصوتية الخاصة بك قد يتم التقاطها وتخزينها إلكترونياً. وأنت تدرك كذلك أنه يمكن استخدام هذه التسجيلات لاحقاً فيما يتعلق بالإجراءات النظامية إذا لزم الأمر ولكن لن يتم استخدامها لأي غرض بخلاف توفير خدمات الرعاية الصحية عن بُعد وخدمات المتابعة الطبية لك. أنت تقر وتوافق على استخدام هذه الصور والتسجيلات الصوتية من قبلنا للأغراض الموضحة؛",
"liveCareTermsConditions43g": "(7) أنك تدرك مخاطر الاتصال عبر البريد الإلكتروني والرسائل النصية، ولا سيما مخاطر الخصوصية. أنت تدرك أن المجموعة لا يمكنها ضمان أمان وسرية البريد الإلكتروني أو الاتصالات النصية. لن تكون المجموعة مسؤولة عن الرسائل التي لم يتم استلامها أو تسليمها بسبب عطل فني أو الكشف عن معلومات سرية ما لم يكن ذلك بسبب سوء سلوك متعمد.",
"liveCareTermsHeading15": "13.\tشروط وأحكام عامة",
"liveCareTermsConditions44": "13-1\tيجوز لنا في أي وقت تغيير هذه الشروط والأحكام لأسباب أمنية أو نظامية أو تنظيمية ، أو لتعكس التحديثات أو التغييرات التي تطرأ على خدمات أو وظائف خدمات الرعاية الصحية عن بُعد أو التطبيق، عن طريق نشر الشروط والأحكام المتنوعة على التطبيق. سنخطرك في التطبيق بأن هذه الشروط والأحكام قد تغيرت قبل استخدامك التالي لخدمات الرعاية الصحية عن بُعد وستتاح لك الفرصة للموافقة على الشروط المعدلة قبل استخدام الخدمة مرة أخرى.",
"liveCareTermsConditions45": "13-2\tيجوز لنا أداء أي من التزاماتنا، وممارسة أي من الحقوق الممنوحة لنا بموجب هذه الشروط والأحكام، من خلال طرف ثالث. يجوز لنا التنازل عن أي من حقوقنا والتزاماتنا أو جميعها بموجب هذه الشروط والأحكام إلى أي طرف ثالث.",
"liveCareTermsConditions46": "13-3\tإذا تبين أن أي بند أو جزء من أي بند من هذه الشروط والأحكام باطل أو غير قابل للإنفاذ أو غير صالح، فسيتم فصله عن هذه الشروط والأحكام، تاركاً باقي الشروط سارية المفعول بكامل الأثر والنفاذ، بشرط ألا يغير فصل ذلك البند من الطبيعة الأساسية لهذه الشروط والأحكام.",
"liveCareTermsHeading16": "14.\tالشكاوى",
"liveCareTermsConditions47": "خدمات الرعاية الصحية عن بُعد الخاصة بنا سوف تكون لتخصصات طبية محددة أو لمواعيد المتابعة أو إعادة صرف الدواء. ",
"liveCareTermsConditions48": "إذا كانت لديك أي شكاوى أو مخاوف بشأن التطبيق و/أو موقع الويب أو خدماتنا أو كيفية تعاملنا مع معلوماتك الشخصية، فيرجى التواصل معنا على: EServices.HMG@drsulaimanalhabib.com أو الاتصال على الرقم: 9553 525 011"
}

@ -1959,7 +1959,88 @@
"hide": "Hide",
"viewPatientQR": "View Patient QR Code",
"patientQR": "Patient QR Code",
"forText": "For"
"forText": "For",
"liveCareTermsHeading": "TELEHEALTH SERVICES TERMS OF USE",
"liveCareTermsIntroHeading": "INTRODUCTION",
"liveCareTermsConditions1": "Dr. Sulaiman Al Habib Medical Services Group Company (the “Group”) is one of the leaders in the healthcare sector in the Kingdom of Saudi Arabia with an aim to always improve its services in the region, and as a step to take our services to another level and to facilitate the process of receiving healthcare services we have adopted the approach of providing some of our services remotely to patients. These terms apply to our Telehealth Services, which enable consultations to occur between a doctor and a patient over the internet, using audio or and video conferencing technology (often referred to as “Telehealth Services”).",
"liveCareTermsConditions2": "The purpose of the Telehealth Services is to facilitate communication between healthcare practitioners and patients to provide healthcare services through advanced electronic communication means, which allows healthcare professionals to evaluate, diagnose, treat and follow-up with patients remotely without the need for patients to attend in person.).",
"liveCareTermsHeading2": "AGREEMENT",
"liveCareTermsConditions3": "Telehealth Services is delivered over the Group’s mobile application or and Website. The following terms apply to the Telehealth Services: ",
"liveCareTermsConditions3a": " - Website Terms of Use",
"liveCareTermsConditions3b": " - App User Agreement",
"liveCareTermsConditions3c": " - Online Services Terms of Use",
"liveCareTermsConditions3d": " - These Telehealth Services User Terms of Use",
"liveCareTermsConditions4": "By agreeing to proceed with the Telehealth Services and accepting these terms, you enter into an agreement with The Group incorporating all the above terms (Telehealth Services Agreement).",
"liveCareTermsConditions5": "Our Privacy Policy should also be read. It contains details about how we use your personal information and your rights. By proceeding with the Telehealth Services, you agree to our use of your personal information in accordance with our Privacy Policy and you expressly consent to our use of your personal information for the performance of the Telehealth Services and the discharge of our professional duties as a medical care provider.",
"liveCareTermsConditions6": "Our Privacy Policy should also be read. It contains details about how we use your personal information and your rights. By proceeding with the Telehealth Services, you agree to our use of your personal information in accordance with our Privacy Policy and you expressly consent to our use of your personal information for the performance of the Telehealth Services and the discharge of our professional duties as a medical care provider.",
"liveCareTermsHeading3": "1. DEFINITIONS",
"liveCareTermsConditions7": "Group means Dr. Sulaiman Al Habib Medical Services Group Company and its subsidiaries. ",
"liveCareTermsConditions8": "Telehealth Services means the Group’s telehealth service, enabling remote consultation, diagnosis and follow-up between the patient and doctor, using the Application and or the Website.",
"liveCareTermsConditions9": "Our Services means certain services provided by the Group which covers viewing patients’ medical records and medical test results, providing medical diagnostics in addition to the availability of voice and video Telehealth Service between healthcare practitioners and patients.",
"liveCareTermsConditions10": "Application means Dr. ALHABIB Application which is a platform where Our Services are provided through and accessible by users. ",
"liveCareTermsConditions11": "Website means the Group internet website which is a platform where Our Services are provided through and accessible by users. ",
"liveCareTermsConditions12": "Terms & Conditions means these Telehealth Services Terms of Use. ",
"liveCareTermsConditions13": "Content means any message, data, information, text, sound, photos, video, graphics, code or any other material contained on the Application and or the Website or transmitted via the Application and or the Website. ",
"liveCareTermsHeading4": "2. USER UNDERTAKINGS",
"liveCareTermsConditions14": "2.1 By accessing and using Telehealth Services, you agree to these Terms & Conditions, and you should not attempt to access Our Services if you do not agree. ",
"liveCareTermsConditions15": "2.2 You warrant, represent and undertake that all information you provide about yourself and about anyone else is true and accurate. ",
"liveCareTermsConditions16": "2.3 Telehealth Services is intended for use by patients physically located in the Kingdom Saudi Arabia (Permitted Territory) and should not be used by patients outside the Permitted Territory. By agreeing to these Terms & Conditions and accessing Telehealth Services via the Application and or the Website, you represent and warrant to us that you are physically located in one of the Permitted Territory. ",
"liveCareTermsHeading5": "3. LIMITATIONS OF TELEHEALTH SERVICES AND ASSOCIATED RISKS",
"liveCareTermsConditions17": "3.1 Do not use the Application and or the Website or the Telehealth Services to communicate or treat medical emergencies. Neither the Application nor the Website nor Telehealth Services are intended for the provision of care in an emergency. IF THERE IS AN URGENT MEDICAL EMERGENCY OR A RESPONSE IS NEEDED QUICKLY REGARDING YOUR HEALTH, GO TO A NEARBY EMERGENCY CENTER/HOSPITAL OR CALL IMMEDIATELY ANY EMERGENCY PHONE NUMBER. ",
"liveCareTermsConditions18": "3.2 Telehealth Services is not appropriate for emergency conditions and there may be some treatments or medicines which cannot be provided without follow-up physical consultation. If you believe you have a serious medical condition, you should seek an in-person consultation with a licensed medical professional.",
"liveCareTermsConditions19": "3.3 Telehealth Services is intended to provide benefits including patient convenience. As such, it is most suitable as an alternative to in-person consultation for routine medical matters. However, there are potential risks associated with the use of any telehealth service, including Telehealth Services, and these risks may include but not be limited to the following: ",
"liveCareTermsConditions19a": "(a) information transmitted may not be sufficient (e.g. poor resolution of images) to allow for appropriate medical decision making by healthcare practitioners.",
"liveCareTermsConditions19b": "(b) healthcare practitioners may determine that the transmitted information is of inadequate quality, thus necessitating a face-to-face meeting with the patient, or at least a rescheduled voice and video medical consult. ",
"liveCareTermsConditions19c": "(c) delays in medical care could occur due to deficiencies or failures of the electronic devices. ",
"liveCareTermsConditions19d": "(d) the practitioner is dependent on the patient to provide all relevant information orally and via the appropriate use of the patient’s own camera device. It is possible that information may not be provided to the practitioner or may not be apparent which would have been apparent to the practitioner during an in-person physical examination. ",
"liveCareTermsConditions19e": "(e) security protocols could fail, causing a breach of privacy of personal medical information. Whilst we take reasonable measures to protect the security of the information transmitted over the Application and or the Website, such transmissions can never be guaranteed to be completely secure and information transmitted over public telecommunications networks is outside our control and cannot be secured by us.",
"liveCareTermsConditions20": "3.4 If you use Telehealth Services but are experiencing any ongoing condition or concerns, we recommend you schedule an in-person consultation. ",
"liveCareTermsHeading6": "4. DISCLAIMER OF WARRANTY ",
"liveCareTermsConditions21": "4.1 We do not warrant, represent or undertake that Telehealth Services will meet your needs, or that it will be uninterrupted, timely, secure, error-free or free from viruses. We shall have no liability to you if a Telehealth Services session cannot occur or is interrupted or abandoned due to any unavailability of our online platform, however, where the Telehealth Services session cannot be delivered fully due to the downtime of our own platform, we will not charge you for a replacement consultation.",
"liveCareTermsConditions22": "4.2 All warranties expressed or implied by law, except those that cannot be lawfully excluded, are excluded. ",
"liveCareTermsConditions23": "4.3 Nothing in this section 4 is intended to exclude or limit our liability for any medical negligence claim, to the extent the applicable law in the relevant Permitted Territory does not permit us to do so.",
"liveCareTermsHeading7": "5. ELIGIBILITY, REGISTRATION AND USE",
"liveCareTermsConditions24": "5.1 To access Telehealth Services, you must satisfy the minimum age requirement of 18 years (measured according to the Gregorian calendar) and have full legal capacity. ",
"liveCareTermsConditions25": "5.2 Any person under the age of 18 years (measured according to the Gregorian calendar) accessing Telehealth Services must have permission from their parent or guardian to do so.",
"liveCareTermsConditions26": "5.3 You warrant, represent and undertake that you possess the legal right and ability to access the Application and or the Website in accordance with these Terms & Conditions and, where relevant, to make bookings and payments through the Application and or the Website.",
"liveCareTermsConditions27": "5.4 The registration process is as provided in the Online Services Terms of Use.",
"liveCareTermsConditions28": "5.5 Telehealth Services is intended only for your own personal use and the use of your children under your supervision. You must not share your user access details (log-in name, password etc.) with any other person and must take reasonable steps to maintain the security of such details. Our services are delivered on the basis that we have certain information about the user, which may be connected to or obtained from your account details (age, gender, medical history etc.). We accept no responsibility whatsoever to you or any other person if our services are delivered via a user account to a person other than the registered user. This is particularly important for telehealth services, where the practitioner will need to assess the information, the patient provides during the consultation in the context of the patient’s medical file and history.",
"liveCareTermsConditions29": "5.6 You are responsible for ensuring you have a device connected to the internet and capable of transmitting and receiving video and sound. We are not responsible for any failure of a Telehealth Services session caused by your device or your internet connection. You are responsible for all costs associated with your own internet connection and use.",
"liveCareTermsConditions30": "5.7 From time to time we may release updates to our Application and or the Website. You should ensure that you are running the latest version of the Application. Use of old versions of the Application may lead to technical errors in your use of the Telehealth Services and may expose you to additional security risks.",
"liveCareTermsHeading8": "6. TELEHEALTH SERVICES",
"liveCareTermsConditions31": "Our Telehealth Services will be for specific medical specialties or follow-up or medication refill appointments.",
"liveCareTermsHeading9": "7. CHARGES AND PAYMENT",
"liveCareTermsConditions32": "Our Telehealth Services will be for specific medical specialties or follow-up or medication refill appointments.",
"liveCareTermsConditions33": "7.1 The charges for a Telehealth Services consultation will be indicated before you choose to proceed. By proceeding, you agree to pay the charges. Any subsequent charges, such as prescription charges, lab tests, follow-up consultations etc. are excluded from the initial charge and will be communicated to you following the initial consultation. ",
"liveCareTermsConditions34": "7.2 The applicable payment terms and methods are set out in our Online Services Terms of Use. ",
"liveCareTermsConditions35": "7.3 It may be possible to charge Telehealth Services directly to a provider of medical insurance, although we give no undertaking or warranty that this shall be possible at any given time. Further details are set out in our Online Services Terms of Use. If such facility is made available and you choose to use it, you will need to provide us with details of your medical insurer and policy coverage, unless you have already done so and linked them to your account. You hereby authorise us to contact any such insurer with the details you provide at the time of purchase, or which are linked to your account to seek approval of the cost of your services. You acknowledge that we may be required to provide specific details of the medical services sought by you to do so and you expressly consent to such disclosure.",
"liveCareTermsHeading10": "8. COMMUNICATION AND/OR INQUIRIES",
"liveCareTermsConditions36": "In case there are any questions and/or inquiries regarding the use of Telehealth Services please contact: EServices.HMG@drsulaimanalhabib.com or call 011 525 9553",
"liveCareTermsHeading11": "9. LIMITATION OF LIABILITY ",
"liveCareTermsConditions37": "9.1 Subject to any responsibilities implied by law and which cannot be excluded, neither the Group nor any of our directors, employees, agents or contractors, are liable to you for any losses, damages, liabilities, claims and expenses (including without limitation but not limited to legal costs and defense or settlement costs) whatsoever, whether direct, indirect or consequential, arising out of or referable to your use of Telehealth Services , however caused, whether in contract, tort (including negligence), statute or otherwise. ",
"liveCareTermsConditions38": "9.2 We will not be liable to you or anyone else for any loss resulting from a cause over which we do not have control. This includes failure of electronic or mechanical equipment or communications lines (including telephone, cable and Internet), unauthorized access, acts or omissions of third parties, viruses, theft, operator errors, severe or extraordinary weather (including flood, earthquake, or other act of God), fire, war, insurrection, terrorist act, riot, labor dispute or other labor problems, accident, emergency, delay, overbooking, cancellation, Royal demise or action of government",
"liveCareTermsHeading12": "10. TERMINATION OF USE",
"liveCareTermsConditions39": "10.1 We may discontinue the provision of Telehealth Services at any time and for any reason. We shall have no liability for any discontinuation, including where you are part-way through a series of consultations or courses of treatment using Telehealth Services. We will assist in enabling you to book in-person consultations instead or in transferring relevant information to an alternative medical provider to enable you to continue treatment (subject to data protection, confidentiality and medical practice laws and to prevailing medical good practice).",
"liveCareTermsConditions40": "10.2 We may terminate your use and access to Telehealth Services for any or no reason, at any time, with or without notice to you and without incurring any liability to you, however that liability may arise (although we will consider our medical duties to you, if doing so). ",
"liveCareTermsConditions41": "10.3 All restrictions and all disclaimers and exclusions and limitations of our liability will survive any termination. Upon termination, you must not directly or indirectly access or use the Application and or the Website.",
"liveCareTermsHeading13": "11. GOVERNING LAW AND JURISDICTION ",
"liveCareTermsConditions42": "The law applicable to the Application and or the Website User Terms and Conditions and to disputes arising out of or in connection with them are the laws of The Kingdom of Saudi Arabia. You irrevocably submit to the exclusive jurisdiction of the courts of the Kingdom of Saudi Arabia. ",
"liveCareTermsHeading14": "12. ACKNOWLEDGEMENTS",
"liveCareTermsConditions43": "12.1 Except as expressly set out in these Terms & Conditions or as permitted by any applicable law, you agree on the following: ",
"liveCareTermsConditions43a": "(a) you have read and understand these Terms & Conditions and the other terms forming part of your Agreement with us; ",
"liveCareTermsConditions43b": "(b) you have read our Privacy Policy and hereby expressly consent to our use of your personal information as described. In addition, you understand that the contact number or email address that you have provided on registration will be used for communications by the Group through SMS, email or any other method in connection with the Telehealth Services, including for appointment notifications and current medical services;",
"liveCareTermsConditions43c": "(c) you understand that you have the right to withhold or withdraw your consent to the use of the Application and or the Website in the course of your care at any time, without affecting your right to future care or treatment; ",
"liveCareTermsConditions43d": "(d) you understand that you may expect to receive benefits from the use of Application and or the Website concerning your healthcare, but that no results can be guaranteed or assured; ",
"liveCareTermsConditions43e": "(e) you understand that your healthcare information may be shared with other employees in the Group for scheduling and billing purposes;",
"liveCareTermsConditions43f": "(f) you understand that video images and audio recordings of you may be captured and stored electronically. You understand that these recordings may be later used in connection with legal proceedings if necessary but will not otherwise be used for any purpose other than providing Telehealth Services and follow-up medical services to you. You acknowledge and consent to the use of these images and audio recordings by us for the purposes described; ",
"liveCareTermsConditions43g": "(g) you understand the risks of communicating by email and text messages, particularly the privacy risks. You understand that the Group cannot guarantee the security and confidentiality of email or text communication. The Group will not be responsible for messages that are not received or delivered due to technical failure, or for disclosure of confidential information unless caused by intentional misconduct.",
"liveCareTermsHeading15": "13. GENERAL TERMS AND CONDITIONS ",
"liveCareTermsConditions44": "13.1 We may at any time vary these Terms & Conditions for security, legal or regulatory reasons, or to reflect updates or changes to the services or functionality of Telehealth Services or the Application, by publishing the varied Terms & Conditions on the Application. We will notify you on the Application that these Terms & Conditions have changed before your next use of the Telehealth Services and you will have the opportunity to agree to the revised terms before using the service again. ",
"liveCareTermsConditions45": "13.2 We may perform any of our obligations, and exercise any of the rights granted to us under these Terms & Conditions, through a third party. We may assign any or all our rights and obligations under these Terms & Conditions to any third party.",
"liveCareTermsConditions46": "13.3 If any clause or part of any clause of these Terms & Conditions is found to be void, unenforceable or invalid, then it will be severed from these Terms & Conditions, leaving the remainder in full force and effect, provided that the severance has not altered the basic nature of these Terms & Conditions. ",
"liveCareTermsHeading16": "14. COMPLAINTS",
"liveCareTermsConditions47": "Our Telehealth Services will be for specific medical specialties or follow-up or medication refill appointments.",
"liveCareTermsConditions48": "If you have any complaints or concerns about the Application and or the Website, Our Services, or how we handle your personal information please contact us on: EServices.HMG@drsulaimanalhabib.com or call 011 525 9553"
}

@ -59,16 +59,25 @@ class ImmediateLiveCareViewModel extends ChangeNotifier {
bool isShowNotEligibleDialog = false;
String notEligibleErrorMsg = "";
bool isTermsAccepted = false;
initImmediateLiveCare() {
_appState = getIt<AppState>();
immediateLiveCareClinicsList = [];
mainLiveCareClinicList = [];
isImmediateLiveCareClinicsLoading = true;
isTermsAccepted = false;
liveCareSelectedCallType = 0; // 1- Video, 2- Audio, 3- Phone
immediateLiveCareSelectedClinic = GetLiveCareClinicListResponseModel();
liveCareImmediateAppointmentFeesList = LiveCareImmediateAppointmentFeesList();
}
onTermsAccepted() {
isTermsAccepted = !isTermsAccepted;
notifyListeners();
}
setLiveCareSelectedCallType(int value) {
liveCareSelectedCallType = value;
notifyListeners();

@ -418,7 +418,7 @@ class PayfortViewModel extends ChangeNotifier {
payfortRequestInsertModel.sHAResponsePhase = payfortProjectDetailsRespModel!.shaResponse;
payfortRequestInsertModel.signature = sdkTokenResponse!.signature;
payfortRequestInsertModel.language = getIt.get<AppState>().isArabic() ? "ar" : "en";
payfortRequestInsertModel.integrationId = "1";
payfortRequestInsertModel.integrationId = "1"; // Payfort integration ID
payfortRequestInsertModel.isSchedule = isScheduleLiveCare;
payfortRequestInsertModel.appointmentDate = appointmentDate;
payfortRequestInsertModel.appointmentNo = appointmentNo;

@ -12,10 +12,12 @@ import 'package:flutter_paytabs_bridge/flutter_paytabs_bridge.dart';
import 'package:hmg_patient_app_new/core/api_consts.dart';
import 'package:hmg_patient_app_new/core/app_state.dart';
import 'package:hmg_patient_app_new/core/cache_consts.dart';
import 'package:hmg_patient_app_new/core/common_models/tamara_request_model.dart';
import 'package:hmg_patient_app_new/core/dependencies.dart';
import 'package:hmg_patient_app_new/core/enums.dart';
import 'package:hmg_patient_app_new/core/paytabs_config.dart';
import 'package:hmg_patient_app_new/core/utils/utils.dart';
import 'package:hmg_patient_app_new/features/payfort/payfort_view_model.dart';
import 'package:hmg_patient_app_new/features/paytabs/models/paytabs_transaction_response_model.dart';
import 'package:hmg_patient_app_new/features/payfort/models/payfort_request_insert_model.dart';
import 'package:hmg_patient_app_new/features/payfort/models/payfort_response_insert_model.dart';
@ -365,7 +367,53 @@ class PayTabsViewModel extends ChangeNotifier {
}
}
startAlternatePayment({Function(PaytabsTransactionResponseModel)? onSuccess, Function(String)? onError}) {
startAlternatePayment(
{required String liveServiceID,
required String appointmentDate,
required String appointmentNo,
required String doctorID,
required String transactionID,
required String amount,
required String fileNumber,
required String serviceID,
required String projectID,
required bool isSchedule,
Function(PaytabsTransactionResponseModel)? onSuccess,
Function(String)? onError}) async {
LoaderBottomSheet.showLoader();
TamaraRequestModel tamaraRequestModel = TamaraRequestModel();
tamaraRequestModel.merchantReference = transactionID;
tamaraRequestModel.merchantIdentifier = "Tamara";
tamaraRequestModel.clientRequestID = transactionID;
tamaraRequestModel.amount = num.parse(amount);
tamaraRequestModel.currency = "SR";
tamaraRequestModel.language = appState.isArabic() ? 'AR' : 'EN';
tamaraRequestModel.commandType = "PURCHASE";
tamaraRequestModel.customerEmail = "CustID_$fileNumber@HMG.com";
tamaraRequestModel.orderDescription = "Ancillary Order Payment";
tamaraRequestModel.isInstallment = true;
tamaraRequestModel.projectID = num.parse(projectID);
tamaraRequestModel.accessCode = getIt.get<AppState>().getAuthenticatedUser()!.mobileNumber!;
tamaraRequestModel.appointmentNo = appointmentNo;
tamaraRequestModel.customerName = "${getIt.get<AppState>().getAuthenticatedUser()!.firstName} ${getIt.get<AppState>().getAuthenticatedUser()!.lastName}";
;
tamaraRequestModel.fileNumber = fileNumber;
tamaraRequestModel.patientOutSA = getIt.get<AppState>().getAuthenticatedUser()!.outSa == 1 ? true : false;
tamaraRequestModel.deviceToken = await Utils.getStringFromPrefs(CacheConst.pushToken);
tamaraRequestModel.latitude = appState.userLat.toString();
tamaraRequestModel.longitude = appState.userLong.toString();
tamaraRequestModel.serviceID = serviceID;
tamaraRequestModel.liveServiceID = liveServiceID;
tamaraRequestModel.doctorID = (doctorID != "") ? doctorID.toString() : "";
tamaraRequestModel.appointmentDate = appointmentDate;
tamaraRequestModel.isSchedule = isSchedule;
await getIt.get<PayfortViewModel>().tamaraRequestInsert(tamaraRequestModel: tamaraRequestModel);
LoaderBottomSheet.hideLoader();
bool _callbackFired = false; // prevent duplicate callback invocations
FlutterPaytabsBridge.startAlternativePaymentMethod(paymentConfiguration, (event) {

@ -1951,5 +1951,86 @@ abstract class LocaleKeys {
static const viewPatientQR = 'viewPatientQR';
static const patientQR = 'patientQR';
static const forText = 'forText';
static const liveCareTermsHeading = 'liveCareTermsHeading';
static const liveCareTermsIntroHeading = 'liveCareTermsIntroHeading';
static const liveCareTermsConditions1 = 'liveCareTermsConditions1';
static const liveCareTermsConditions2 = 'liveCareTermsConditions2';
static const liveCareTermsHeading2 = 'liveCareTermsHeading2';
static const liveCareTermsConditions3 = 'liveCareTermsConditions3';
static const liveCareTermsConditions3a = 'liveCareTermsConditions3a';
static const liveCareTermsConditions3b = 'liveCareTermsConditions3b';
static const liveCareTermsConditions3c = 'liveCareTermsConditions3c';
static const liveCareTermsConditions3d = 'liveCareTermsConditions3d';
static const liveCareTermsConditions4 = 'liveCareTermsConditions4';
static const liveCareTermsConditions5 = 'liveCareTermsConditions5';
static const liveCareTermsConditions6 = 'liveCareTermsConditions6';
static const liveCareTermsHeading3 = 'liveCareTermsHeading3';
static const liveCareTermsConditions7 = 'liveCareTermsConditions7';
static const liveCareTermsConditions8 = 'liveCareTermsConditions8';
static const liveCareTermsConditions9 = 'liveCareTermsConditions9';
static const liveCareTermsConditions10 = 'liveCareTermsConditions10';
static const liveCareTermsConditions11 = 'liveCareTermsConditions11';
static const liveCareTermsConditions12 = 'liveCareTermsConditions12';
static const liveCareTermsConditions13 = 'liveCareTermsConditions13';
static const liveCareTermsHeading4 = 'liveCareTermsHeading4';
static const liveCareTermsConditions14 = 'liveCareTermsConditions14';
static const liveCareTermsConditions15 = 'liveCareTermsConditions15';
static const liveCareTermsConditions16 = 'liveCareTermsConditions16';
static const liveCareTermsHeading5 = 'liveCareTermsHeading5';
static const liveCareTermsConditions17 = 'liveCareTermsConditions17';
static const liveCareTermsConditions18 = 'liveCareTermsConditions18';
static const liveCareTermsConditions19 = 'liveCareTermsConditions19';
static const liveCareTermsConditions19a = 'liveCareTermsConditions19a';
static const liveCareTermsConditions19b = 'liveCareTermsConditions19b';
static const liveCareTermsConditions19c = 'liveCareTermsConditions19c';
static const liveCareTermsConditions19d = 'liveCareTermsConditions19d';
static const liveCareTermsConditions19e = 'liveCareTermsConditions19e';
static const liveCareTermsConditions20 = 'liveCareTermsConditions20';
static const liveCareTermsHeading6 = 'liveCareTermsHeading6';
static const liveCareTermsConditions21 = 'liveCareTermsConditions21';
static const liveCareTermsConditions22 = 'liveCareTermsConditions22';
static const liveCareTermsConditions23 = 'liveCareTermsConditions23';
static const liveCareTermsHeading7 = 'liveCareTermsHeading7';
static const liveCareTermsConditions24 = 'liveCareTermsConditions24';
static const liveCareTermsConditions25 = 'liveCareTermsConditions25';
static const liveCareTermsConditions26 = 'liveCareTermsConditions26';
static const liveCareTermsConditions27 = 'liveCareTermsConditions27';
static const liveCareTermsConditions28 = 'liveCareTermsConditions28';
static const liveCareTermsConditions29 = 'liveCareTermsConditions29';
static const liveCareTermsConditions30 = 'liveCareTermsConditions30';
static const liveCareTermsHeading8 = 'liveCareTermsHeading8';
static const liveCareTermsConditions31 = 'liveCareTermsConditions31';
static const liveCareTermsHeading9 = 'liveCareTermsHeading9';
static const liveCareTermsConditions32 = 'liveCareTermsConditions32';
static const liveCareTermsConditions33 = 'liveCareTermsConditions33';
static const liveCareTermsConditions34 = 'liveCareTermsConditions34';
static const liveCareTermsConditions35 = 'liveCareTermsConditions35';
static const liveCareTermsHeading10 = 'liveCareTermsHeading10';
static const liveCareTermsConditions36 = 'liveCareTermsConditions36';
static const liveCareTermsHeading11 = 'liveCareTermsHeading11';
static const liveCareTermsConditions37 = 'liveCareTermsConditions37';
static const liveCareTermsConditions38 = 'liveCareTermsConditions38';
static const liveCareTermsHeading12 = 'liveCareTermsHeading12';
static const liveCareTermsConditions39 = 'liveCareTermsConditions39';
static const liveCareTermsConditions40 = 'liveCareTermsConditions40';
static const liveCareTermsConditions41 = 'liveCareTermsConditions41';
static const liveCareTermsHeading13 = 'liveCareTermsHeading13';
static const liveCareTermsConditions42 = 'liveCareTermsConditions42';
static const liveCareTermsHeading14 = 'liveCareTermsHeading14';
static const liveCareTermsConditions43 = 'liveCareTermsConditions43';
static const liveCareTermsConditions43a = 'liveCareTermsConditions43a';
static const liveCareTermsConditions43b = 'liveCareTermsConditions43b';
static const liveCareTermsConditions43c = 'liveCareTermsConditions43c';
static const liveCareTermsConditions43d = 'liveCareTermsConditions43d';
static const liveCareTermsConditions43e = 'liveCareTermsConditions43e';
static const liveCareTermsConditions43f = 'liveCareTermsConditions43f';
static const liveCareTermsConditions43g = 'liveCareTermsConditions43g';
static const liveCareTermsHeading15 = 'liveCareTermsHeading15';
static const liveCareTermsConditions44 = 'liveCareTermsConditions44';
static const liveCareTermsConditions45 = 'liveCareTermsConditions45';
static const liveCareTermsConditions46 = 'liveCareTermsConditions46';
static const liveCareTermsHeading16 = 'liveCareTermsHeading16';
static const liveCareTermsConditions47 = 'liveCareTermsConditions47';
static const liveCareTermsConditions48 = 'liveCareTermsConditions48';
}

@ -632,15 +632,33 @@ class _AppointmentPaymentPageState extends State<AppointmentPaymentPage> {
).paddingSymmetrical(16.h, 16.h),
).paddingSymmetrical(24.h, 0.h).onPress(() {
selectedPaymentMethod = "TAMARA";
transID = Utils.getAppointmentTransID(
widget.patientAppointmentHistoryResponseModel.projectID,
widget.patientAppointmentHistoryResponseModel.clinicID,
widget.patientAppointmentHistoryResponseModel.appointmentNo,
);
if (appState.isPaytabsEnabled) {
paytabsViewModel.setAlternatePaymentConfiguration(
"Appointment Payment", num.parse(myAppointmentsViewModel.patientAppointmentShareResponseModel!.patientShareWithTax!.toString()));
paytabsViewModel.startAlternatePayment(onSuccess: (PaytabsTransactionResponseModel transactionData) async {
tamaraOrderID = transactionData.cartID!;
transID = transactionData.transactionReference!;
LoaderBottomSheet.showLoader(loadingText: LocaleKeys.checkingPaymentStatusPleaseWait.tr(context: context));
await payfortViewModel.updateTamaraRequestStatus(responseMessage: "success", status: "14", clientRequestID: transID, tamaraOrderID: tamaraOrderID);
await payfortViewModel.markAppointmentAsTamaraPaid(
paytabsViewModel.startAlternatePayment(
liveServiceID: "0",
appointmentDate: widget.patientAppointmentHistoryResponseModel.appointmentDate!,
appointmentNo: widget.patientAppointmentHistoryResponseModel.appointmentNo.toString(),
doctorID: widget.patientAppointmentHistoryResponseModel.doctorID.toString(),
transactionID: transID,
amount: myAppointmentsViewModel.patientAppointmentShareResponseModel!.patientShareWithTax!.toString(),
fileNumber: widget.patientAppointmentHistoryResponseModel.patientID,
serviceID: "2",
projectID: widget.patientAppointmentHistoryResponseModel.projectID,
isSchedule: widget.patientAppointmentHistoryResponseModel.isLiveCareAppointment ?? false,
onSuccess: (PaytabsTransactionResponseModel transactionData) async {
tamaraOrderID = transactionData.cartID!;
// transID = transactionData.transactionReference!;
LoaderBottomSheet.showLoader(loadingText: LocaleKeys.checkingPaymentStatusPleaseWait.tr(context: context));
await payfortViewModel.updateTamaraRequestStatus(responseMessage: "success", status: "14", clientRequestID: transID, tamaraOrderID: tamaraOrderID);
await payfortViewModel.markAppointmentAsTamaraPaid(
projectID: widget.patientAppointmentHistoryResponseModel.projectID, appointmentNo: widget.patientAppointmentHistoryResponseModel.appointmentNo);
await myAppointmentsViewModel.createAdvancePayment(
paymentMethodName: selectedPaymentMethod,

@ -611,6 +611,7 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
),
);
} else {
immediateLiveCareViewModel.initImmediateLiveCare();
Navigator.of(context).push(
CustomPageRoute(
page: SelectImmediateLiveCareClinicPage(),

@ -2,6 +2,7 @@ import 'dart:io';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:hmg_patient_app_new/core/api_consts.dart';
import 'package:hmg_patient_app_new/core/app_assets.dart';
import 'package:hmg_patient_app_new/core/app_state.dart';
import 'package:hmg_patient_app_new/core/dependencies.dart';
@ -15,6 +16,7 @@ import 'package:hmg_patient_app_new/features/immediate_livecare/immediate_liveca
import 'package:hmg_patient_app_new/generated/locale_keys.g.dart';
import 'package:hmg_patient_app_new/presentation/book_appointment/livecare/immediate_livecare_payment_page.dart';
import 'package:hmg_patient_app_new/presentation/book_appointment/livecare/immediate_livecare_pending_request_page.dart';
import 'package:hmg_patient_app_new/presentation/book_appointment/livecare/livecare_terms_conditions.dart';
import 'package:hmg_patient_app_new/presentation/book_appointment/livecare/widgets/select_livecare_call_type.dart';
import 'package:hmg_patient_app_new/presentation/home/navigation_screen.dart';
import 'package:hmg_patient_app_new/presentation/insurance/insurance_home_page.dart';
@ -286,7 +288,7 @@ class ImmediateLiveCarePaymentDetails extends StatelessWidget {
(immediateLiveCareVM.liveCareImmediateAppointmentFeesList.currency ?? "ريال").toLowerCase() == "ريال")),
],
).paddingSymmetrical(24.h, 0.h),
SizedBox(height: 17.h),
SizedBox(height: 16.h),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
@ -299,18 +301,59 @@ class ImmediateLiveCarePaymentDetails extends StatelessWidget {
(immediateLiveCareVM.liveCareImmediateAppointmentFeesList.currency ?? "ريال").toLowerCase() == "ريال")),
],
).paddingSymmetrical(24.h, 0.h),
SizedBox(height: 16.h),
GestureDetector(
onTap: immediateLiveCareVM.onTermsAccepted,
child: Row(
children: [
Selector<ImmediateLiveCareViewModel, bool>(
selector: (_, viewModel) => viewModel.isTermsAccepted,
shouldRebuild: (previous, next) => previous != next,
builder: (context, isTermsAccepted, child) {
return AnimatedContainer(
duration: const Duration(milliseconds: 200),
height: 24.h,
width: 24.h,
decoration: BoxDecoration(
color: isTermsAccepted ? AppColors.primaryRedColor : Colors.transparent,
borderRadius: BorderRadius.circular(6),
border: Border.all(color: isTermsAccepted ? AppColors.primaryRedBorderColor : AppColors.greyColor, width: 2.h),
),
child: isTermsAccepted ? Icon(Icons.check, size: 16.f, color: Colors.white) : null,
);
},
),
SizedBox(width: 12.h),
Row(
children: [
"${LocaleKeys.iAcceptThe.tr(context: context)} ".toText14(isBold: true),
GestureDetector(
onTap: () {
Navigator.push(
context,
CustomPageRoute(
page: LiveCareTermsConditions(),
),
);
},
child: LocaleKeys.termsConditoins.tr(context: context).toText14(isBold: true, isUnderLine: true, color: AppColors.primaryRedColor)),
],
),
],
),
).paddingSymmetrical(24.h, 0.h),
(immediateLiveCareVM.liveCareImmediateAppointmentFeesList.total == "0" ||
immediateLiveCareVM.liveCareImmediateAppointmentFeesList.total == "0.0")
// (true)
? CustomButton(
isDisabled: !immediateLiveCareVM.isTermsAccepted,
text: LocaleKeys.confirmLiveCare.tr(context: context),
onPressed: () async {
await askVideoCallPermission(context).then((val) async {
if (val) {
LoaderBottomSheet.showLoader(loadingText: LocaleKeys.confirmingLiveCareRequest.tr(context: context));
await immediateLiveCareVM.addNewCallRequestForImmediateLiveCare(
"${appState.getAuthenticatedUser()!.patientId}${DateTime.now().millisecondsSinceEpoch}");
await immediateLiveCareVM.addNewCallRequestForImmediateLiveCare("${appState.getAuthenticatedUser()!.patientId}${DateTime.now().millisecondsSinceEpoch}");
await immediateLiveCareVM.getPatientLiveCareHistory();
LoaderBottomSheet.hideLoader();
if (immediateLiveCareVM.patientHasPendingLiveCareRequest) {
@ -367,6 +410,7 @@ class ImmediateLiveCarePaymentDetails extends StatelessWidget {
iconSize: 18.h,
).paddingSymmetrical(24.h, 24.h)
: CustomButton(
isDisabled: !immediateLiveCareVM.isTermsAccepted,
text: LocaleKeys.payNow.tr(context: context),
onPressed: () async {
await askVideoCallPermission(context).then((val) {

@ -0,0 +1,230 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:hmg_patient_app_new/core/app_state.dart';
import 'package:hmg_patient_app_new/core/dependencies.dart';
import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
import 'package:hmg_patient_app_new/theme/colors.dart';
import 'package:hmg_patient_app_new/widgets/appbar/collapsing_list_view.dart';
import '../../../generated/locale_keys.g.dart';
class LiveCareTermsConditions extends StatelessWidget {
const LiveCareTermsConditions({super.key});
@override
Widget build(BuildContext context) {
final isArabic = getIt.get<AppState>().isArabic();
return Scaffold(
backgroundColor: AppColors.scaffoldBgColor,
body: Column(
children: [
Expanded(
child: CollapsingListView(
title: LocaleKeys.livecare.tr(context: context),
child: SingleChildScrollView(
padding: EdgeInsets.symmetric(horizontal: 24.w, vertical: 16.h),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildHeading(context, LocaleKeys.liveCareTermsHeading.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsIntroHeading.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions1.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions2.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading2.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions3.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions3a.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions3b.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions3c.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions3d.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions4.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions5.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions6.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading3.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions7.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions8.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions9.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions10.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions11.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions12.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions13.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading4.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions14.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions15.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions16.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading5.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions17.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions18.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions19.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions19a.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions19b.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions19c.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions19d.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions19e.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions20.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading6.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions21.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions22.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions23.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading7.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions24.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions25.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions26.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions27.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions28.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions29.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions30.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading8.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions31.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading9.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions32.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions33.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions34.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions35.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading10.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions36.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading11.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions37.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions38.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading12.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions39.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions40.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions41.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading13.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions42.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading14.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions43.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions43a.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions43b.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions43c.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions43d.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions43e.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions43f.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions43g.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading15.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions44.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions45.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions46.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildHeading(context, LocaleKeys.liveCareTermsHeading16.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions47.tr(context: context), isArabic),
SizedBox(height: 12.h),
_buildContent(context, LocaleKeys.liveCareTermsConditions48.tr(context: context), isArabic),
SizedBox(height: 24.h),
],
),
),
),
)
],
),
);
}
/// Helper method to build heading text with consistent styling
Widget _buildHeading(BuildContext context, String text, bool isArabic) {
return Text(
text,
style: TextStyle(
fontSize: 20.f,
fontFamily: isArabic ? 'CairoArabic' : 'Poppins',
fontWeight: FontWeight.w700,
color: AppColors.textColor,
letterSpacing: -0.5,
height: 1.4,
),
);
}
/// Helper method to build content text with consistent styling
Widget _buildContent(BuildContext context, String text, bool isArabic) {
return Text(
text,
style: TextStyle(
fontSize: 16.f,
fontFamily: isArabic ? 'CairoArabic' : 'Poppins',
color: AppColors.textColor,
letterSpacing: -0.3,
height: 1.5,
),
);
}
}

@ -1450,6 +1450,7 @@ class _LandingPageState extends State<LandingPage> {
appointmentNoVida: order.appointmentNo ?? 0,
orderNo: order.orderNo ?? 0,
projectID: order.projectID ?? 0,
clinicID: 0,
projectName: order.projectName ?? "",
setupID: order.setupID ?? "",
),

@ -14,6 +14,8 @@ import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
import 'package:hmg_patient_app_new/core/utils/utils.dart';
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
import 'package:hmg_patient_app_new/features/habib_wallet/habib_wallet_view_model.dart';
import 'package:hmg_patient_app_new/features/my_appointments/my_appointments_view_model.dart';
import 'package:hmg_patient_app_new/features/payfort/models/apple_pay_request_insert_model.dart';
import 'package:hmg_patient_app_new/features/payfort/payfort_view_model.dart';
import 'package:hmg_patient_app_new/features/paytabs/models/paytabs_transaction_response_model.dart';
@ -36,6 +38,7 @@ class AncillaryOrderPaymentPage extends StatefulWidget {
final int appointmentNoVida;
final int orderNo;
final int projectID;
final int clinicID;
final String setupID;
final List<AncillaryOrderProcDetail> selectedProcedures;
final num totalAmount;
@ -46,6 +49,7 @@ class AncillaryOrderPaymentPage extends StatefulWidget {
required this.appointmentNoVida,
required this.orderNo,
required this.projectID,
required this.clinicID,
required this.setupID,
required this.selectedProcedures,
required this.totalAmount,
@ -60,16 +64,38 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
late AppState appState;
late TodoSectionViewModel todoSectionViewModel;
late PayTabsViewModel paytabsViewModel;
late MyAppointmentsViewModel myAppointmentsViewModel;
late HabibWalletViewModel habibWalletVM;
MyInAppBrowser? browser;
String selectedPaymentMethod = "";
String transID = "";
bool isShowTamara = false;
String tamaraPaymentStatus = "";
String tamaraOrderID = "";
@override
void initState() {
scheduleMicrotask(() {
payfortViewModel.initPayfortViewModel();
payfortViewModel.setIsApplePayConfigurationLoading(false);
myAppointmentsViewModel.getTamaraInstallmentsDetails().then((val) {
// if (myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel != null && myAppointmentsViewModel.patientAppointmentShareResponseModel != null) {
if (myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel != null &&
myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel?.minLimit?.amount != null &&
myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel?.maxLimit?.amount != null) {
if (widget.totalAmount >= myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel!.minLimit!.amount! &&
widget.totalAmount <= myAppointmentsViewModel.getTamaraInstallmentsDetailsResponseModel!.maxLimit!.amount!) {
if (mounted) {
setState(() {
isShowTamara = true;
});
}
}
}
});
});
super.initState();
}
@ -80,6 +106,8 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
todoSectionViewModel = Provider.of<TodoSectionViewModel>(context);
payfortViewModel = Provider.of<PayfortViewModel>(context);
paytabsViewModel = Provider.of<PayTabsViewModel>(context, listen: false);
myAppointmentsViewModel = Provider.of<MyAppointmentsViewModel>(context);
habibWalletVM = Provider.of<HabibWalletViewModel>(context, listen: false);
return Scaffold(
backgroundColor: AppColors.bgScaffoldColor,
@ -364,6 +392,85 @@ class _AncillaryOrderPaymentPageState extends State<AncillaryOrderPaymentPage> {
}
}
}),
SizedBox(height: 16.h),
isShowTamara
? Container(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: AppColors.whiteColor,
borderRadius: 20.h,
hasShadow: false,
),
child: Row(
mainAxisSize: MainAxisSize.max,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Utils.buildImgWithAssets(icon: AppAssets.tamaraEng, width: 72.h, height: 25.h).toShimmer2(isShow: false),
SizedBox(height: 16.h),
LocaleKeys.tamara.tr(context: context).toText16(isBold: true).toShimmer2(isShow: false),
],
),
SizedBox(width: 8.h),
const Spacer(),
Transform.flip(
flipX: appState.isArabic(),
child: Utils.buildSvgWithAssets(
icon: AppAssets.forward_arrow_icon_small,
iconColor: AppColors.blackColor,
width: 18.h,
height: 13.h,
fit: BoxFit.contain,
).toShimmer2(isShow: false),
),
],
).paddingSymmetrical(16.h, 16.h),
).paddingSymmetrical(24.h, 0.h).onPress(() {
selectedPaymentMethod = "TAMARA";
transID = Utils.getAppointmentTransID(
widget.projectID,
widget.clinicID,
widget.appointmentNoVida,
);
if (appState.isPaytabsEnabled) {
paytabsViewModel.setAlternatePaymentConfiguration("Ancillary Order Payment", widget.totalAmount);
paytabsViewModel.startAlternatePayment(
liveServiceID: "0",
appointmentDate: DateUtil.convertDateToString(widget.appointmentDate!),
appointmentNo: widget.appointmentNoVida.toString(),
doctorID: "0",
transactionID: transID,
amount: widget.totalAmount.toString(),
fileNumber: appState.getAuthenticatedUser()!.patientId.toString(),
serviceID: "2",
projectID: widget.projectID.toString(),
isSchedule: false,
onSuccess: (PaytabsTransactionResponseModel transactionData) async {
tamaraOrderID = transactionData.cartID!;
// transID = transactionData.transactionReference!;
LoaderBottomSheet.showLoader(loadingText: LocaleKeys.checkingPaymentStatusPleaseWait.tr(context: context));
await payfortViewModel.updateTamaraRequestStatus(responseMessage: "success", status: "14", clientRequestID: transID, tamaraOrderID: tamaraOrderID);
_createAdvancePayment(
paymentAmount: widget.totalAmount,
paymentReference: transactionData.transactionReference!,
paymentMethod: selectedPaymentMethod,
);
},
onError: (err) async {
await payfortViewModel.updateTamaraRequestStatus(responseMessage: "Failed", status: "00", clientRequestID: transID, tamaraOrderID: tamaraOrderID);
showCommonBottomSheetWithoutHeight(
context,
child: Utils.getErrorWidget(loadingText: err.toString()),
callBackFunc: () {},
isFullScreen: false,
isCloseButtonVisible: true,
);
});
} else {
_openPaymentURL("tamara");
}
})
: SizedBox.shrink(),
],
),
),

@ -29,6 +29,7 @@ class AncillaryOrderDetailsList extends StatefulWidget {
final int appointmentNoVida;
final int orderNo;
final int projectID;
final int clinicID;
final String projectName;
final String setupID;
@ -37,6 +38,7 @@ class AncillaryOrderDetailsList extends StatefulWidget {
required this.appointmentNoVida,
required this.orderNo,
required this.projectID,
required this.clinicID,
required this.projectName,
required this.setupID,
});
@ -682,6 +684,7 @@ class _AncillaryOrderDetailsListState extends State<AncillaryOrderDetailsList> {
appointmentNoVida: widget.appointmentNoVida,
orderNo: widget.orderNo,
projectID: widget.projectID,
clinicID: widget.clinicID,
selectedProcedures: selectedProcedures,
totalAmount: _getTotalAmount(),
appointmentDate: orderData.appointmentDate,

@ -83,7 +83,8 @@ class _ToDoPageState extends State<ToDoPage> {
appointmentNoVida: order.appointmentNo ?? 0,
orderNo: order.orderNo ?? 0,
projectID: order.projectID ?? 0,
projectName: order.projectName ?? "",
clinicID: order.clinicID ?? 0,
projectName: order.projectName ?? "",
setupID: order.setupID ?? "0",
),
),

Loading…
Cancel
Save