|
|
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
import './Profile_general_info_Widget.dart';
|
|
|
|
|
import './profile_header_widget.dart';
|
|
|
|
|
import './profile_medical_info_widget.dart';
|
|
|
|
|
import './profile_status_info_widget.dart';
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
*@author: Elham Rababah
|
|
|
|
|
*@Date:22/4/2020
|
|
|
|
|
*@param:
|
|
|
|
|
*@return:PatientProfileWidget
|
|
|
|
|
*@desc: Patient Profile Widget
|
|
|
|
|
*/
|
|
|
|
|
class PatientProfileWidget extends StatelessWidget {
|
|
|
|
|
// Map patient = {
|
|
|
|
|
// "ProjectID": 15,
|
|
|
|
|
// "ClinicID": null,
|
|
|
|
|
// "DoctorID": 70907,
|
|
|
|
|
// "PatientID": 3315674,
|
|
|
|
|
// "DoctorName": "MOQBIL ABDULLAH AL HODAITHY",
|
|
|
|
|
// "DoctorNameN": null,
|
|
|
|
|
// "FirstName": "WALEED",
|
|
|
|
|
// "MiddleName": "ALI",
|
|
|
|
|
// "LastName": "AL-YAZIDI",
|
|
|
|
|
// "FirstNameN": null,
|
|
|
|
|
// "MiddleNameN": null,
|
|
|
|
|
// "LastNameN": null,
|
|
|
|
|
// "Gender": 1,
|
|
|
|
|
// "DateofBirth": "/Date(534286800000+0300)/",
|
|
|
|
|
// "NationalityID": null,
|
|
|
|
|
// "MobileNumber": "0500014559",
|
|
|
|
|
// "EmailAddress": "unknown@unknown.com",
|
|
|
|
|
// "PatientIdentificationNo": "1063236754",
|
|
|
|
|
// "NationalityName": "Saudi",
|
|
|
|
|
// "NationalityNameN": null,
|
|
|
|
|
// "PatientStatusType": null,
|
|
|
|
|
// "PatientType": 1,
|
|
|
|
|
// "AppointmentDate": "/Date(1587848400000+0300)/",
|
|
|
|
|
// "StartTime": "13:00:00",
|
|
|
|
|
// "Age": "34 Yr",
|
|
|
|
|
// "ClinicDescription": "INTERNAL MEDICINE CLINIC",
|
|
|
|
|
// "GenderDescription": "Male",
|
|
|
|
|
// "AdmissionDate": "/Date(1587848400000+0300)/",
|
|
|
|
|
// "AdmissionNo": "2020008652"
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
PatiantInformtion patient;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
final routeArgs =ModalRoute.of(context).settings.arguments as Map;
|
|
|
|
|
patient = routeArgs['patient'];
|
|
|
|
|
return ListView(padding: EdgeInsets.zero, children: <Widget>[
|
|
|
|
|
ProfileHeaderWidget(patient: patient),
|
|
|
|
|
ProfileGeneralInfoWidget(patient: patient),
|
|
|
|
|
ProfileMedicalInfoWidget(patient: patient),
|
|
|
|
|
ProfileStatusInfoWidget()
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
}
|