package com.openhis.document.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.core.common.core.domain.HisBaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

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

/**
 * 申请单管理Entity实体
 *
 * @author system
 * @date 2025-02-21
 */
@Data
@TableName("doc_request_form")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class RequestForm extends HisBaseEntity {

    /** ID */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 处方号
     */
    private String prescriptionNo;

    /**
     * 名称
     */
    private String name;

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

    /**
     * 申请人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long requesterId;

    /**
     * 描述内容
     */
    private String descJson;

    /**
     * 类型编码
     */
    private String typeCode;

}