using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CmdjyHisFront.Dal.Tables
{
///
/// HIS发送的处方信息
///
[Table("DjyPrescriptionInfo")]
public class DjyPrescriptionInfo
{
///
/// 主键,处方流水号
///
[Key]
public int Id { get; set; }
///
/// 记录创建时间
///
public DateTime CreateDatetime { get; set; }
///
/// 发送请求的原始IP地址
///
public string RawAddress { get; set; }
///
/// 处方类型
///
public PrescriptionType Type { get; set; }
///
/// 如果为退方,这里传要退的处方流水号。此编号在下单应答消息中提供
///
public string RawRecordId { get; set; }
///
/// 药品明细数量
///
public string DrugCount { get; set; }
///
/// 处方备注
///
public string Remark { get; set; }
///
/// 带回病房 否
///
public string TakeBack { get; set; }
///
/// "操作类型": "煎药自取", or "操作类型": "煎药快递", or "操作类型": "配药快递"
///
public string OpType { get; set; }
///
/// 操作员
///
public string OpUser { get; set; }
///
/// 病区
///
public string Area { get; set; }
///
/// 病床号
///
public string Bed { get; set; }
///
/// 操作时间
///
public string OpDatatime { get; set; }
///
/// 处方号
///
public string PrescriptionNo { get; set; }
///
/// 处方日期
///
public string PrescriptionDatatime { get; set; }
///
/// 单位编号 医疗机构编号
///
public string HosNo { get; set; }
///
/// 医疗机构名称
///
public string HosName { get; set; }
///
/// 发票号
///
public string InvoiceNo { get; set; }
///
/// 病人编号
///
public string PatientNo { get; set; }
///
/// 病人卡号
///
public string CardNo { get; set; }
///
/// 科室名称
///
public string DepName { get; set; }
///
/// 病人年龄
///
public string PatientAge { get; set; }
///
/// 病人生日
///
public string PatientBrithday { get; set; }
///
/// 病人手机号码
///
public string PatientMobile { get; set; }
///
/// 病人电话
///
public string PatientPhone { get; set; }
///
/// 所在区县街道
///
public string District { get; set; }
///
/// 送货地址
///
public string PostAddress { get; set; }
///
/// 送货时间
///
public string PostDatatime { get; set; }
///
/// 贴数
///
public string UseCount { get; set; }
///
/// 病人性别
///
public string PatientSex { get; set; }
///
/// 病人姓名
///
public string PatientName { get; set; }
///
/// 医生姓名
///
public string DoctorName { get; set; }
///
/// 诊断
///
public string Diagnosis { get; set; }
///
/// 用法
///
public string Usage { get; set; }
///
/// 治疗号
///
public string Zlh { get; set; }
///
/// 收费序号
///
public int Sfxh { get; set; }
///
/// 收费费用序号
///
public string Sffyxh { get; set; }
///
/// 代煎药厂商代码
///
public string CompanyCode { get; set; }
///
/// 代煎药厂商名称
///
public string CompanyName { get; set; }
///
/// 上传状态
///
public EnumPrescriptionPostStatus PostStatus { get; set; }
}
///
/// 处方类型
///
[Flags]
public enum PrescriptionType
{
///
/// 订单
///
Order = 1,
///
/// 撤销订单,退单
///
CancelOrder = 2,
///
/// 测试方。测试处方不会发送给第三方
///
TestOrder = 4,
}
///
/// 处方信息上传状态
///
[Flags]
public enum EnumPrescriptionPostStatus
{
///
/// 新处方,未上传
///
NewOrder = 0,
///
/// 成功上传
///
Sucess = 1,
///
/// 上传异常
///
Exception = 2,
///
/// 取消上传
///
Cancel = 4
}
}