patient.dart 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import 'package:fis_jsonrpc/services/vitalPatient.m.dart';
  2. class PatientFullInfoModel extends PatientDTO {
  3. // PatientDetailInfoModel? detailInfo;
  4. // PatientHealthInfoModel? healthInfo;
  5. Map<String, dynamic>? extJsonMap;
  6. PatientFullInfoModel fromJson(Map<String, dynamic> map) {
  7. final baseDto = PatientDTO.fromJson(map);
  8. code = baseDto.code;
  9. recordNo = baseDto.recordNo;
  10. patientName = baseDto.patientName;
  11. phone = baseDto.phone;
  12. emergencyName = baseDto.emergencyName;
  13. emergencyPhone = baseDto.emergencyPhone;
  14. cardNo = baseDto.cardNo;
  15. nationality = baseDto.nationality;
  16. birthday = baseDto.birthday;
  17. crowdLabels = baseDto.crowdLabels;
  18. cardType = baseDto.cardType;
  19. patientGender = baseDto.patientGender;
  20. patientAddress = baseDto.patientAddress;
  21. permanentResidenceAddress = baseDto.permanentResidenceAddress;
  22. teamRegionCode = baseDto.teamRegionCode;
  23. createdDoctor = baseDto.createdDoctor;
  24. contractedDoctor = baseDto.contractedDoctor;
  25. labelNames = baseDto.labelNames;
  26. createdDoctorName = baseDto.createdDoctorName;
  27. createdOrgName = baseDto.createdOrgName;
  28. createdTeamName = baseDto.createdTeamName;
  29. status = baseDto.status;
  30. createdOrgCode = baseDto.createdOrgCode;
  31. createdTeamCode = baseDto.createdTeamCode;
  32. currentTeamCode = baseDto.currentTeamCode;
  33. currentOrgCode = baseDto.currentOrgCode;
  34. contractedDoctorName = baseDto.contractedDoctorName;
  35. contractState = baseDto.contractState;
  36. photos = baseDto.photos;
  37. createTime = baseDto.createTime;
  38. updateTime = baseDto.updateTime;
  39. return this;
  40. }
  41. }