Merge branch 'Amjad_search' into 'master'
Patient search See merge request Cloud_Solution/doctor_app_flutter!30merge-requests/31/head
commit
8ca37c6b34
@ -0,0 +1,31 @@
|
||||
|
||||
/*
|
||||
*@author: Amjad Amireh
|
||||
*@Date:27/4/2020
|
||||
*@param:
|
||||
*@return:pass a List<dynamic> to a List<MyModel> from a JSON
|
||||
|
||||
*@desc:
|
||||
*/
|
||||
import 'package:doctor_app_flutter/screens/patients/patiant_info_model.dart';
|
||||
class TopTenUsersModelResponse {
|
||||
final List<PatiantInformtion> list;
|
||||
String firstName;
|
||||
TopTenUsersModelResponse({
|
||||
this.list,
|
||||
this.firstName,
|
||||
});
|
||||
|
||||
factory TopTenUsersModelResponse.fromJson(List<dynamic> parsedJson) {
|
||||
|
||||
// List<PatientModel> list = new List<PatientModel>();
|
||||
List<PatiantInformtion> list = new List<PatiantInformtion>();
|
||||
//PatiantInformtion
|
||||
list = parsedJson.map((i) => PatiantInformtion.fromJson(i)).toList();
|
||||
|
||||
return new TopTenUsersModelResponse(list: list);
|
||||
}
|
||||
}
|
||||
|
||||
class PatiantInformtionl {
|
||||
}
|
@ -0,0 +1,131 @@
|
||||
import 'dart:convert';
|
||||
|
||||
//PatiantInformtion patiantInformtionFromJson(String str) => PatiantInformtion.fromJson(json.decode(str));
|
||||
|
||||
////String patiantInformtionToJson(PatiantInformtion data) => json.encode(data.toJson());
|
||||
//****************************** */
|
||||
|
||||
/*
|
||||
*@author: Amjad Amireh
|
||||
*@Date:27/4/2020
|
||||
*@param:
|
||||
*@return:Patian information Model
|
||||
|
||||
*@desc:
|
||||
*/
|
||||
|
||||
|
||||
|
||||
class PatiantInformtion {
|
||||
final List<PatiantInformtion> list;
|
||||
int projectId;
|
||||
int clinicId;
|
||||
int doctorId;
|
||||
int patientId;
|
||||
String doctorName;
|
||||
String doctorNameN;
|
||||
String firstName;
|
||||
String middleName;
|
||||
String lastName;
|
||||
String firstNameN;
|
||||
String middleNameN;
|
||||
String lastNameN;
|
||||
int gender;
|
||||
String dateofBirth;
|
||||
String nationalityId;
|
||||
String mobileNumber;
|
||||
String emailAddress;
|
||||
String patientIdentificationNo;
|
||||
int patientType;
|
||||
String admissionNo;
|
||||
String admissionDate;
|
||||
String roomId;
|
||||
String bedId;
|
||||
String nursingStationId;
|
||||
String description;
|
||||
String clinicDescription;
|
||||
String clinicDescriptionN;
|
||||
String nationalityName;
|
||||
String nationalityNameN;
|
||||
String age;
|
||||
String genderDescription;
|
||||
String nursingStationName;
|
||||
|
||||
PatiantInformtion({
|
||||
this.list,
|
||||
this.projectId,
|
||||
this.clinicId,
|
||||
this.doctorId,
|
||||
this.patientId,
|
||||
this.doctorName,
|
||||
this.doctorNameN,
|
||||
this.firstName,
|
||||
this.middleName,
|
||||
this.lastName,
|
||||
this.firstNameN,
|
||||
this.middleNameN,
|
||||
this.lastNameN,
|
||||
this.gender,
|
||||
this.dateofBirth,
|
||||
this.nationalityId,
|
||||
this.mobileNumber,
|
||||
this.emailAddress,
|
||||
this.patientIdentificationNo,
|
||||
this.patientType,
|
||||
this.admissionNo,
|
||||
this.admissionDate,
|
||||
this.roomId,
|
||||
this.bedId,
|
||||
this.nursingStationId,
|
||||
this.description,
|
||||
this.clinicDescription,
|
||||
this.clinicDescriptionN,
|
||||
this.nationalityName,
|
||||
this.nationalityNameN,
|
||||
this.age,
|
||||
this.genderDescription,
|
||||
this.nursingStationName,
|
||||
});
|
||||
|
||||
factory PatiantInformtion.fromJson(Map<String, dynamic> json) => PatiantInformtion(
|
||||
projectId: json["ProjectID"],
|
||||
clinicId: json["ClinicID"],
|
||||
doctorId: json["DoctorID"],
|
||||
patientId: json["PatientID"],
|
||||
doctorName: json["DoctorName"],
|
||||
doctorNameN: json["DoctorNameN"],
|
||||
firstName: json["FirstName"],
|
||||
middleName: json["MiddleName"],
|
||||
lastName: json["LastName"],
|
||||
firstNameN: json["FirstNameN"],
|
||||
middleNameN: json["MiddleNameN"],
|
||||
lastNameN: json["LastNameN"],
|
||||
gender: json["Gender"],
|
||||
dateofBirth: json["DateofBirth"],
|
||||
nationalityId: json["NationalityID"],
|
||||
mobileNumber: json["MobileNumber"],
|
||||
emailAddress: json["EmailAddress"],
|
||||
patientIdentificationNo: json["PatientIdentificationNo"],
|
||||
patientType: json["PatientType"],
|
||||
admissionNo: json["AdmissionNo"],
|
||||
admissionDate: json["AdmissionDate"],
|
||||
roomId: json["RoomID"],
|
||||
bedId: json["BedID"],
|
||||
nursingStationId: json["NursingStationID"],
|
||||
description: json["Description"],
|
||||
clinicDescription: json["ClinicDescription"],
|
||||
clinicDescriptionN: json["ClinicDescriptionN"],
|
||||
nationalityName: json["NationalityName"],
|
||||
nationalityNameN: json["NationalityNameN"],
|
||||
age: json["Age"],
|
||||
genderDescription: json["GenderDescription"],
|
||||
nursingStationName: json["NursingStationName"],
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue