package com.openhis.web.regdoctorstation.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.openhis.common.annotation.Dict;
import com.openhis.web.doctorstation.dto.RequestBaseDto;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 住院医嘱请求基础 dto
 */
@Data
@Accessors(chain = true)
public class RegRequestBaseDto extends RequestBaseDto {

    /** 治疗类型 */
    private Integer therapyEnum;
    private String therapyEnum_enumText;

    /**
     * 请求人id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Dict(dictTable = "adm_practitioner", dictCode = "id", dictText = "name")
    private Long requesterId;
    private String requesterId_dictText;

    /** 请求单位编码 */
    @Dict(dictCode = "unit_code")
    private String unitCode;
    private String unitCode_dictText;

    /**
     * 用法
     */
    @Dict(dictCode = "method_code")
    private String methodCode;
    private String methodCode_dictText;

    /**
     * 使用频次
     */
    @Dict(dictCode = "rate_code")
    private String rateCode;
    private String rateCode_dictText;

    /** 剂量单位 */
    @Dict(dictCode = "unit_code")
    private String doseUnitCode;
    private String doseUnitCode_dictText;

}
