package com.openhis.web.doctorstation.dto;

import java.util.Date;

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;

/**
 * 预约记录 dto
 */
@Data
@Accessors(chain = true)
public class ReservationRecordDto {

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

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

    /**
     * 患者联系方式
     */
    private String patientTel;

    /**
     * 主诉
     */
    private String chiefComplaint;

    /**
     * 就诊预约时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reservationTime;

    /**
     * 预约科室id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orgId;
    private String orgName;

    /**
     * 预约医生id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long practitionerId;
    private String practitionerName;

    /**
     * 备注
     */
    private String remark;

    /**
     * 牙位
     */
    private String toothPosition;

}