package com.openhis.web.regdoctorstation.dto;

import java.math.BigDecimal;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.openhis.common.enums.ChargeItemContext;

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

/**
 * 诊疗保存dto
 */
@Data
@Accessors(chain = true)
public class ActivitySaveDto {

    /** 诊疗定义id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long adviceDefinitionId;

    /**
     * 诊疗定义名称
     */
    private String adviceDefinitionName;

    /** 请求数量 */
    private BigDecimal quantity;

    /** 请求单位编码 */
    private String unitCode;

    /** 单价 */
    private BigDecimal unitPrice;

    /** 总价 */
    private BigDecimal totalPrice;

    /**
     * 执行科室id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long positionId;

    /**
     * 类别医保编码
     */
    private Integer ybClassEnum;

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

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

    /** 医嘱类型 */
    private Integer adviceType;

    /** 费用定价主表ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long definitionId;

    /** 费用定价子表ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long definitionDetailId;

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

    /**
     * 构造函数设置默认值
     */
    public ActivitySaveDto() {
        this.adviceType = ChargeItemContext.ACTIVITY.getValue();
    }

}
