package com.openhis.web.document.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 org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Accessors(chain = true)
public class DocStatisticsDto {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 记录ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long recordId;
    /**
     * 统计项定义ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long statisticDefinitionId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long encounterId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long patientId;
    /**
     * 统计项编码
     */
    private String statisticDefinitionCode;
    /**
     * 记录科室ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long organizationId;
    /**
     * 统计值
     */

    private String value;
    /**
     * 记录时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;
    /**
     * 记录来源
     */
    private String source;

}
