diff --git a/lib/models/models.init b/lib/models/models.init deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/models/patient_model.dart b/lib/models/patient_model.dart new file mode 100644 index 00000000..eb1b3016 --- /dev/null +++ b/lib/models/patient_model.dart @@ -0,0 +1,44 @@ +class PatientModel { + int ProjectID; + int ClinicID; + int DoctorID; + String FirstName; + String MiddleName; + String LastName; + String PatientMobileNumber; + String PatientIdentificationID; + int PatientID; + String From; + String To; + int LanguageID; + String stamp; + String IPAdress; + double VersionID; + int Channel; + String TokenID; + String SessionID; + bool IsLoginForDoctorApp; + bool PatientOutSA; + + PatientModel( + {this.ProjectID, + this.ClinicID, + this.DoctorID, + this.FirstName, + this.MiddleName, + this.LastName, + this.PatientMobileNumber, + this.PatientIdentificationID, + this.PatientID, + this.From, + this.To, + this.LanguageID, + this.stamp, + this.IPAdress, + this.VersionID, + this.Channel, + this.TokenID, + this.SessionID, + this.IsLoginForDoctorApp, + this.PatientOutSA}); +} diff --git a/lib/screens/patients/patient_search_screen.dart b/lib/screens/patients/patient_search_screen.dart index 0b05d37a..3c8fb992 100644 --- a/lib/screens/patients/patient_search_screen.dart +++ b/lib/screens/patients/patient_search_screen.dart @@ -1,55 +1,8 @@ -import 'dart:convert'; - +import '../../models/patient_model.dart'; import 'package:doctor_app_flutter/routes.dart'; -import 'package:doctor_app_flutter/screens/patients/patients_list_screen.dart'; -import 'package:dson/dson.dart'; import 'package:flutter/material.dart'; import 'package:hexcolor/hexcolor.dart'; -class PatientModel { - int ProjectID; - int ClinicID; - int DoctorID; - String FirstName; - String MiddleName; - String LastName; - String PatientMobileNumber; - String PatientIdentificationID; - int PatientID; - String From; - String To; - int LanguageID; - String stamp; - String IPAdress; - double VersionID; - int Channel; - String TokenID; - String SessionID; - bool IsLoginForDoctorApp; - bool PatientOutSA; - - PatientModel( - {this.ProjectID, - this.ClinicID, - this.DoctorID, - this.FirstName, - this.MiddleName, - this.LastName, - this.PatientMobileNumber, - this.PatientIdentificationID, - this.PatientID, - this.From, - this.To, - this.LanguageID, - this.stamp, - this.IPAdress, - this.VersionID, - this.Channel, - this.TokenID, - this.SessionID, - this.IsLoginForDoctorApp, - this.PatientOutSA}); -} class PatientSearch extends StatefulWidget { @override