package com.openhis.web.inhospitalcharge.dto;

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

import org.springframework.format.annotation.DateTimeFormat;

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;

/**
 * 预交金信息 dto
 */
@Data
@Accessors(chain = true)
public class AdvancePaymentInfoDto {

    /**
     * 住院就诊id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long encounterId;

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

    /**
     * 患者id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long patientId;

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

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

    /**
     * 生日
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthDate;

    /**
     * 年龄
     */
    private String age;

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

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

    /**
     * 床位
     */
    private String bedName;

    /**
     * 住院科室
     */
    private String inHospitalOrgName;

    /**
     * 账号id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long accountId;

    /**
     * 总额
     */
    private BigDecimal totalAmount;

    /**
     * 余额
     */
    private BigDecimal balanceAmount;

}
