diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index f8d6a510..6c0e0d83 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -997,4 +997,5 @@ const Map> localizedValues = { "impressionRecommendation": {"en": "Impression and Recommendation", "ar": "الانطباع والتوصية"}, "onHold": {"en": "'On Hold'", "ar": "قيد الانتظار"}, "verified": {"en": "'Verified'", "ar": "Verified"}, + "endCall": {"en": "'End'", "ar": "انهاء"}, }; diff --git a/lib/models/patient/patiant_info_model.dart b/lib/models/patient/patiant_info_model.dart index 0c189b86..fc77af66 100644 --- a/lib/models/patient/patiant_info_model.dart +++ b/lib/models/patient/patiant_info_model.dart @@ -62,6 +62,8 @@ class PatiantInformtion { String startTimes; String dischargeDate; int status; + int vcId; + PatiantInformtion( {this.patientDetails, this.projectId, @@ -121,7 +123,7 @@ class PatiantInformtion { this.nationalityFlagURL, this.patientStatusType, this.visitTypeId, - this.startTimes,this.dischargeDate,this.status}); + this.startTimes,this.dischargeDate,this.status, this.vcId}); factory PatiantInformtion.fromJson(Map json) => PatiantInformtion( @@ -199,5 +201,6 @@ class PatiantInformtion { startTimes: json['StartTime'] ?? json['StartTime'], dischargeDate: json['DischargeDate'] , status: json['Status'] , + vcId: json['VC_ID'] , ); } diff --git a/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart b/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart index a2aa07e3..138fc840 100644 --- a/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart +++ b/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart @@ -273,7 +273,9 @@ class _PatientProfileScreenState extends State child: AppButton( fontWeight: FontWeight.w700, color: model.isFinished?Colors.red[600]:Colors.green[600], - title: model.isFinished?"End":TranslationBase + title: model.isFinished?TranslationBase + .of(context) + .endCall:TranslationBase .of(context) .initiateCall, onPressed: () async { diff --git a/lib/util/translations_delegate_base.dart b/lib/util/translations_delegate_base.dart index 4f5a128b..a4ecc977 100644 --- a/lib/util/translations_delegate_base.dart +++ b/lib/util/translations_delegate_base.dart @@ -1339,6 +1339,8 @@ class TranslationBase { String get medicalReportVerify => localizedValues['medicalReportVerify'][locale.languageCode]; String get comments => localizedValues['comments'][locale.languageCode]; String get initiateCall => localizedValues['initiateCall '][locale.languageCode]; + String get endCall => localizedValues['endCall '][locale.languageCode]; + String get transferTo => localizedValues['transferTo'][locale.languageCode]; String get admin => localizedValues['admin'][locale.languageCode]; String get instructions => localizedValues['instructions'][locale.languageCode];