using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CmdjyHisFront.Dal.Tables
{
///
/// HIS发送的药品信息
///
[Table("DjyDrugInfo")]
public class DjyDrugInfo
{
///
/// 主键,药品流水号
///
[Key]
public int Id { get; set; }
///
/// 记录创建时间
///
public DateTime CreateDatetime { get; set; }
///
/// 处方流水号
///
public int PrescriptionId { get; set; }
///
/// 发送请求的原始IP地址
///
public string RawAddress { get; set; }
///
/// "药品医保代码":"YP0306401000650",
///
public string DrugNo { get; set; }
///
/// 药品单价 0.085
///
public string Price { get; set; }
///
/// 单贴数量
///
public string Count { get; set; }
///
/// 单位 克
///
public string Unit { get; set; }
///
/// 单项总价
///
public string Sum { get; set; }
///
/// 规格 15.00000000
///
public string DrugType { get; set; }
///
/// 药品编码
///
public string DrugLocalNo { get; set; }
///
/// 药品名称
///
public string DrugName { get; set; }
///
/// 特殊要求
///
public string Remark { get; set; }
///
/// 上传状态
///
public EnumDrugPostStatus PostStatus { get; set; }
}
///
/// 处方信息上传状态
///
[Flags]
public enum EnumDrugPostStatus
{
///
/// 新药品,未上传
///
NewOrder = 0,
///
/// 成功上传
///
Sucess = 1,
///
/// 上传异常
///
Exception = 2,
///
/// 取消上传
///
Cancel = 4
}
}