| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import 'package:json_annotation/json_annotation.dart';
- part 'today_patient_model.g.dart';
- /// 今日患者模型
- @JsonSerializable()
- class TodayPatientModel {
- @JsonKey(name: 'appointment_uuid')
- final String appointmentUUID; // 门诊uuid
- final String gender; // 0:未知 1:男 2:女
- @JsonKey(name: 'serial_number')
- final String serialNumber; // 预约时间段对应的序号
- final int action; // 1:预约 2:挂号 3:加号
- @JsonKey(name: 'patient_name')
- final String patientName; // 患者名称
- @JsonKey(name: 'patient_phone')
- final String? patientPhone; // 患者手机号
- @JsonKey(name: 'doctor_name')
- final String? doctorName; // 医生名称
- @JsonKey(name: 'his_dept_name')
- final String? hisDeptName; // 医生科室
- @JsonKey(name: 'day_part')
- final String dayPart; // 挂号一天,上午:morning 下午:afternoon 晚上:evening
- @JsonKey(name: 'appointment_status')
- final int appointmentStatus; // 挂号状态
- @JsonKey(name: 'institution_patient_uuid')
- final String? institutionPatientUUID; // 机构患者uuid
- @JsonKey(name: 'see_doctor_time')
- final String? seeDoctorTime; // 就诊时间
- @JsonKey(name: 'created_time')
- final String createdTime; // 创建时间
- @JsonKey(name: 'status_weight')
- // 10:待诊 20:待收费 30:待发药 40:已诊 50:已收费 60:已发药 70:已退药 80:已退费 90:已退珍
- final int statusWeight;
- @JsonKey(name: 'payment_receipt_uuid')
- final String paymentReceiptUUID; // 收费和药房的uuid
- @JsonKey(name: 'payment_receipt_status')
- final int paymentReceiptStatus; // 收费状态
- @JsonKey(name: 'prescribes_receipt_status')
- final int? prescribesReceiptStatus; // 发药状态
- @JsonKey(name: 'is_retail')
- final bool isRetail; // 是否零售
- @JsonKey(name: 'temporary_reception_status')
- // 1:非临时接诊 2:临时接诊 3:临时接诊-已诊
- final String temporaryReceptionStatus;
- TodayPatientModel({
- required this.appointmentUUID,
- required this.gender,
- required this.serialNumber,
- required this.action,
- required this.patientName,
- this.patientPhone,
- this.doctorName,
- this.hisDeptName,
- required this.dayPart,
- required this.appointmentStatus,
- this.institutionPatientUUID,
- this.seeDoctorTime,
- required this.createdTime,
- required this.statusWeight,
- required this.paymentReceiptUUID,
- required this.paymentReceiptStatus,
- this.prescribesReceiptStatus,
- required this.isRetail,
- required this.temporaryReceptionStatus,
- });
- /// 从 JSON 创建 TodayPatientModel
- factory TodayPatientModel.fromJson(Map<String, dynamic> json) =>
- _$TodayPatientModelFromJson(json);
- /// 转换为 JSON
- Map<String, dynamic> toJson() => _$TodayPatientModelToJson(this);
- }
|