package com.openhis.web.regdoctorstation.dto;

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;

/**
 * 转科参数类
 */
@Data
@Accessors(chain = true)
public class TransferOrganizationParam {

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

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

    /**
     * 诊断ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long conditionId;

    /**
     * 就诊诊断id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long encounterDiagnosisId;

    /**
     * 医嘱开始时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 原科室
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long originalOrganizationId;

    /**
     * 目标科室
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long targetOrganizationId;

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

    /**
     * 目标病区
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long targetLocationId;

    /**
     * 理由
     */
    private String reasonText;

}
