package com.openhis.administration.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * @ClassName PatientBedInfoDto
 * @Description 患者详细信息
 * @Author raymond
 * @Date 2025/10/30 08:10
 * @Version 1.0
 **/
@Data
public class PatientBedInfoDto {

    /**
     * 床位
     */
    private String bedName;
    /**
     * 患者姓名
     */
    private String patientName;
    /**
     * 患者编号ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long patientId;
    /**
     * 患者性别
     */
    private String patientGenderText;
    /**
     * 患者编号
     */
    private String patientNumber;
    /**
     * 就诊号ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long encounterId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long locationId;
    /**
     * 床位ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long bedLocationId;
    /** 生日 */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthDate;
    private String patientAgeText;
}
