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;
    String appointmentDate;
    String startTime;

    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,
        this.appointmentDate,
         this.startTime,

    });

    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"],
        appointmentDate: json["AppointmentDate"]?? '',
        startTime: json["StartTime"],
    );

   

 



}
