You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
188 lines
6.9 KiB
188 lines
6.9 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Shentun.Peis.Enums;
|
|
using Volo.Abp.Domain.Entities;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
namespace Shentun.Peis.Models
|
|
{
|
|
/// <summary>
|
|
/// 登记检查单
|
|
/// </summary>
|
|
[Table("register_check")]
|
|
[Index(nameof(CheckRequestNo), Name = "ix_register_check_1")]
|
|
public class RegisterCheck: AuditedEntity<Guid>, IHasConcurrencyStamp
|
|
{
|
|
public RegisterCheck()
|
|
{
|
|
RegisterCheckAsbitems = new HashSet<RegisterCheckAsbitem>();
|
|
RegisterCheckItems = new HashSet<RegisterCheckItem>();
|
|
RegisterCheckPictures = new HashSet<RegisterCheckPicture>();
|
|
RegisterCheckSuggestions = new HashSet<RegisterCheckSuggestion>();
|
|
RegisterCheckSummaries = new HashSet<RegisterCheckSummary>();
|
|
}
|
|
public RegisterCheck(Guid id):base(id)
|
|
{
|
|
RegisterCheckAsbitems = new HashSet<RegisterCheckAsbitem>();
|
|
RegisterCheckItems = new HashSet<RegisterCheckItem>();
|
|
RegisterCheckPictures = new HashSet<RegisterCheckPicture>();
|
|
RegisterCheckSuggestions = new HashSet<RegisterCheckSuggestion>();
|
|
RegisterCheckSummaries = new HashSet<RegisterCheckSummary>();
|
|
|
|
IsLock = 'N';
|
|
CompleteFlag = RegisterCheckCompleteFlag.UnChecked;
|
|
CriticalValueFlag = '0';
|
|
CriticalValueProcessFlag = '0';
|
|
IsAudit = 'N';
|
|
}
|
|
/// <summary>
|
|
/// 登记流水号
|
|
/// </summary>
|
|
[Column("patient_register_id")]
|
|
public Guid PatientRegisterId { get; set; }
|
|
/// <summary>
|
|
/// 检查单号
|
|
/// </summary>
|
|
[Column("check_request_no")]
|
|
[StringLength(20)]
|
|
public string? CheckRequestNo { get; set; }
|
|
/// <summary>
|
|
/// 第三方信息
|
|
/// </summary>
|
|
[Column("third_info")]
|
|
[StringLength(80)]
|
|
public string? ThirdInfo { get; set; }
|
|
/// <summary>
|
|
/// 是否锁住
|
|
/// </summary>
|
|
[Column("is_lock")]
|
|
[MaxLength(1)]
|
|
public char IsLock { get; set; }
|
|
/// <summary>
|
|
/// 完成标志 0(为未检), 1(已检), 2(弃检)
|
|
/// </summary>
|
|
[Column("complete_flag")]
|
|
[MaxLength(1)]
|
|
public char CompleteFlag { get; set; }
|
|
/// <summary>
|
|
/// 检查申请单打印次数
|
|
/// </summary>
|
|
[Column("check_request_print_times")]
|
|
public short CheckRequestPrintTimes { get; set; }
|
|
/// <summary>
|
|
/// 危急值
|
|
/// </summary>
|
|
[Column("critical_value")]
|
|
[StringLength(100)]
|
|
public string? CriticalValue { get; set; }
|
|
/// <summary>
|
|
/// 危急值标志
|
|
/// </summary>
|
|
[Column("critical_value_flag")]
|
|
[MaxLength(1)]
|
|
public char? CriticalValueFlag { get; set; }
|
|
/// <summary>
|
|
/// 危急值处理内容
|
|
/// </summary>
|
|
[Column("critical_value_process_content")]
|
|
[StringLength(100)]
|
|
public string? CriticalValueProcessContent { get; set; }
|
|
/// <summary>
|
|
/// 危急值处理标志
|
|
/// </summary>
|
|
[Column("critical_value_process_flag")]
|
|
[MaxLength(1)]
|
|
public char? CriticalValueProcessFlag { get; set; }
|
|
/// <summary>
|
|
/// 危急值处理医生
|
|
/// </summary>
|
|
[Column("critical_value_process_doctor")]
|
|
[StringLength(16)]
|
|
public string? CriticalValueProcessDoctor { get; set; }
|
|
/// <summary>
|
|
/// 危急值处理日期
|
|
/// </summary>
|
|
[Column("critical_value_process_date")]
|
|
public DateTime? CriticalValueProcessDate { get; set; }
|
|
/// <summary>
|
|
/// 危急值创建日期
|
|
/// </summary>
|
|
[Column("critical_value_create_date")]
|
|
public DateTime? CriticalValueCreateDate { get; set; }
|
|
/// <summary>
|
|
/// 检查医生(内部传ID,外部医生存名字)
|
|
/// </summary>
|
|
[Column("check_doctor_id")]
|
|
[StringLength(50)]
|
|
public string? CheckDoctorId { get; set; }
|
|
/// <summary>
|
|
/// 检查日期
|
|
/// </summary>
|
|
[Column("check_date")]
|
|
public DateTime? CheckDate { get; set; }
|
|
/// <summary>
|
|
/// 是否审核
|
|
/// </summary>
|
|
[Column("is_audit")]
|
|
[MaxLength(1)]
|
|
public char IsAudit { get; set; }
|
|
/// <summary>
|
|
/// 审核医生ID
|
|
/// </summary>
|
|
[Column("auditor_user_id")]
|
|
public Guid? AuditorUserId { get; set; }
|
|
/// <summary>
|
|
/// 审核时间
|
|
/// </summary>
|
|
[Column("audit_time", TypeName = "timestamp without time zone")]
|
|
public DateTime? AuditTime { get; set; }
|
|
|
|
|
|
///// <summary>
|
|
///// 检查组合项目记录ID
|
|
///// </summary>
|
|
//[Column("register_asbitem_id")]
|
|
//public Guid RegisterAsbitemId { get; set; }
|
|
|
|
[Column("concurrency_stamp")]
|
|
public string ConcurrencyStamp { get; set; }
|
|
|
|
//[Column("last_modifier_id")]
|
|
//public Guid LastModifierId { get; set; }
|
|
//[Column("last_modification_time", TypeName = "timestamp without time zone")]
|
|
//public DateTime LastModificationTime { get; set; }
|
|
//[Column("check_doctor_name")]
|
|
//[StringLength(16)]
|
|
//public string? CheckDoctorName { get; set; }
|
|
//[Column("concurrency_stamp")]
|
|
//[StringLength(40)]
|
|
//public string ConcurrencyStamp { get; set; } = null!;
|
|
|
|
//[InverseProperty(nameof(RegisterAsbitem.RegisterCheck))]
|
|
//public virtual ICollection<RegisterAsbitem> RegisterAsbitems { get; set; }
|
|
[InverseProperty(nameof(RegisterCheckItem.RegisterCheck))]
|
|
public virtual ICollection<RegisterCheckItem> RegisterCheckItems { get; set; }
|
|
[InverseProperty(nameof(RegisterCheckPicture.RegisterCheck))]
|
|
public virtual ICollection<RegisterCheckPicture> RegisterCheckPictures { get; set; }
|
|
[InverseProperty(nameof(RegisterCheckSuggestion.RegisterCheck))]
|
|
public virtual ICollection<RegisterCheckSuggestion> RegisterCheckSuggestions { get; set; }
|
|
[InverseProperty(nameof(RegisterCheckSummary.RegisterCheck))]
|
|
public virtual ICollection<RegisterCheckSummary> RegisterCheckSummaries { get; set; }
|
|
|
|
|
|
[InverseProperty(nameof(RegisterCheckAsbitem.RegisterCheck))]
|
|
public virtual ICollection<RegisterCheckAsbitem> RegisterCheckAsbitems { get; set; }
|
|
|
|
//[ForeignKey(nameof(RegisterAsbitemId))]
|
|
//[InverseProperty("RegisterChecks")]
|
|
//public virtual RegisterAsbitem RegisterAsbitem { get; set; } = null!;
|
|
|
|
//public override object[] GetKeys()
|
|
//{
|
|
// return new object[] { RegisterCheckId };
|
|
//}
|
|
}
|
|
}
|