package com.openhis.web.inhospitalnursestation.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 lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 入院床位 Dto
 *
 * @author zwh
 * @date 2025/7/29
 */
@Data
@Accessors(chain = true)
public class AdmissionBedPageDto {

    /**
     * 入院ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long encounterId;

    /**
     * 住院号
     */
    private String busNo;

    /**
     * 住院状态
     */
    private Integer encounterStatus;
    private String encounterStatus_enumText;

    /**
     * 入院科室
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long organizationId;

    /** 患者姓名 */
    private String patientName;

    /** 病区ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long wardId;

    /**
     * 病区名称
     */
    private String wardName;

    /** 病房ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long houseId;

    /**
     * 病房名称
     */
    private String houseName;

    /** 病床ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long bedId;

    /**
     * 病床名称
     */
    private String bedName;

    /** 床位状态 */
    private Integer bedStatus;
    private String bedStatus_enumText;

    /** 余额 */
    private BigDecimal balanceAmount;

    /** 总额 */
    private BigDecimal totalAmount;

    /** 性别编码 */
    private Integer genderEnum;
    private String genderEnum_enumText;

    /** 生日 */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthDate;

    /** 病人年龄 */
    private String age;
}
