|
|
|
|
@ -39,12 +39,12 @@ import 'package:speech_to_text/speech_to_text.dart' as stt;
|
|
|
|
|
import 'CustomEditableText.dart';
|
|
|
|
|
|
|
|
|
|
class RegisterConfirmationPatientPage extends StatefulWidget {
|
|
|
|
|
final OperationReportViewModel operationReportViewModel;
|
|
|
|
|
final PatiantInformtion patient;
|
|
|
|
|
final OperationReportViewModel? operationReportViewModel;
|
|
|
|
|
final PatiantInformtion? patient;
|
|
|
|
|
final PatientRegistrationViewModel model;
|
|
|
|
|
|
|
|
|
|
const RegisterConfirmationPatientPage(
|
|
|
|
|
{Key? key, this.operationReportViewModel, this.patient, this.model})
|
|
|
|
|
{Key? key, this.operationReportViewModel, this.patient, required this.model})
|
|
|
|
|
: super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -55,15 +55,15 @@ class RegisterConfirmationPatientPage extends StatefulWidget {
|
|
|
|
|
class _RegisterConfirmationPatientPageState
|
|
|
|
|
extends State<RegisterConfirmationPatientPage> {
|
|
|
|
|
bool isSubmitted = false;
|
|
|
|
|
ProjectViewModel projectViewModel;
|
|
|
|
|
TextEditingController firstNameN;
|
|
|
|
|
TextEditingController middleNameN;
|
|
|
|
|
TextEditingController lastNameN;
|
|
|
|
|
TextEditingController firstNameAr;
|
|
|
|
|
TextEditingController middleNameAr;
|
|
|
|
|
TextEditingController lastNameAr;
|
|
|
|
|
TextEditingController emailAddressController;
|
|
|
|
|
TextEditingController langController = TextEditingController(text: "English");
|
|
|
|
|
late ProjectViewModel projectViewModel;
|
|
|
|
|
late TextEditingController firstNameN;
|
|
|
|
|
late TextEditingController middleNameN;
|
|
|
|
|
late TextEditingController lastNameN;
|
|
|
|
|
late TextEditingController firstNameAr;
|
|
|
|
|
late TextEditingController middleNameAr;
|
|
|
|
|
late TextEditingController lastNameAr;
|
|
|
|
|
late TextEditingController emailAddressController;
|
|
|
|
|
late TextEditingController langController = TextEditingController(text: "English");
|
|
|
|
|
int selectedLang = 1;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -393,7 +393,7 @@ class _RegisterConfirmationPatientPageState
|
|
|
|
|
widget.model.getPatientInfoResponseModel.dateOfBirth);
|
|
|
|
|
|
|
|
|
|
var dateFormat = DateFormat('MM/dd/yyyy').parse(
|
|
|
|
|
widget.model.getPatientInfoResponseModel.dateOfBirth);
|
|
|
|
|
widget.model.getPatientInfoResponseModel.dateOfBirth!);
|
|
|
|
|
String wellFormat =
|
|
|
|
|
"${dateFormat.day}\/${dateFormat.month}\/${dateFormat.year}";
|
|
|
|
|
print(
|
|
|
|
|
@ -425,7 +425,7 @@ class _RegisterConfirmationPatientPageState
|
|
|
|
|
strDateofBirth: dateFormat.toUtc().toString(),
|
|
|
|
|
dateofBirth: AppDateUtils.convertToServerFormat(
|
|
|
|
|
widget.model.getPatientInfoResponseModel
|
|
|
|
|
.dateOfBirth,
|
|
|
|
|
.dateOfBirth!,
|
|
|
|
|
'MM/dd/yyyy'),
|
|
|
|
|
dateofBirthN: '$hijriDate',
|
|
|
|
|
gender: (widget.model.getPatientInfoResponseModel.gender == "M")
|
|
|
|
|
|