package thyyxxk.webserver.entity.outpatient.thmz.req;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
public class MzEmrAddFileReq extends MzEmrBasicReq {

    @NotNull(message = "document不能为空")
    private JSONObject document;

    @NotNull(message = "emrCategoryCode不能为空")
    @NotBlank(message = "emrCategoryCode不能为空")
    private String emrCategoryCode;

    @NotNull(message = "病历名称不能为空")
    @NotBlank(message = "病历名称不能为空")
    private String name;

    @NotNull(message = "父节点不能为空")
    @NotBlank(message = "父节点不能为空")
    private String parent;
}
