package com.openhis.web.document.dto;

import com.alibaba.fastjson.annotation.JSONField;
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;
import java.util.List;

@Data
@Accessors(chain = true)
public class DocRecordPatientQueryParam {

    /**
     * 书写文书的组织机构ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long organizationId;
    
    /**
     * 文书状态
     */
    private Integer statusEnum;
    /**
     * 对应 EncounterClass 枚举  | 就诊类型, 默认 2:门诊 1住院
     */
    private Integer classEnum;

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


}
