package com.emoon.chat.domain.dto;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class PatientRecordWithQCResultDTO {
    // patient_record 表
    private String recordId;     // patient_record.id
    private String patientId;    // 病历记录ID
    private String admissionNo;  // 入院编号
    private String patientName;  // 患者姓名
    private Integer status;      // 状态（0 删除 1 未质控 2 已质控）
    private LocalDateTime createDate;     // 入库时间

    private String gender;
    private Integer age;
    private LocalDateTime admissionDate;
    private LocalDateTime dischargeDate;
    private String admissionDept;
    private String dischargeDept;
    private String attendingDoctor;
    private String nurse;

    /**
     * 当前病历的质控结果数量
     */
    private Integer qcResultCount;

    /**
     * 最近一次质控完成时间
     */
    private LocalDateTime latestQcEndTime;

    /**
     * 当前用户是否已查看
     */
    private Boolean viewed;
}

