IOrganizationsManager.cs 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. using System;
  2. using WingServerCommon.Log;
  3. using WingServerCommon.Interfaces.OpLog;
  4. namespace WingServerCommon.Interfaces.Cache
  5. {
  6. public interface IOrganizationsManager : IBaseCacheManager<CacheOrganizationDTO>
  7. {
  8. }
  9. public class OrganizationsManager : CacheManager<CacheOrganizationDTO>, IOrganizationsManager
  10. {
  11. public OrganizationsManager() : base()
  12. {
  13. }
  14. }
  15. public class CacheOrganizationDTO : ICacheObject
  16. {
  17. /// <summary>
  18. /// 组织编码
  19. /// </summary>
  20. /// <value>Test00001</value>
  21. public string Code { get; set; }
  22. /// <summary>
  23. /// 组织名称
  24. /// </summary>
  25. /// <value>门诊部</value>
  26. public string OrganizationName { get; set; }
  27. /// <summary>
  28. /// 备注
  29. /// </summary>
  30. /// <value>机构描述</value>
  31. public string Description { get; set; }
  32. /// <summary>
  33. /// 顶级编码
  34. /// </summary>
  35. /// <value></value>
  36. public string RootCode { get; set; }
  37. /// <summary>
  38. /// 组织类型
  39. /// </summary>
  40. /// <value>0</value>
  41. public int OrganizationType { get; set; }
  42. /// <summary>
  43. /// 所属管理组列表
  44. /// </summary>
  45. /// <value>"",""</value>
  46. public List<string> AuthorityGroups { get; set; } = new();
  47. /// <summary>
  48. /// 经纬度
  49. /// </summary>
  50. /// <value>38.5</value>
  51. public string Nautica { get; set; }
  52. /// <summary>
  53. /// 审核状态
  54. /// </summary>
  55. /// <value>0</value>
  56. public int State { get; set; }
  57. /// <summary>
  58. /// 机构负责人
  59. /// </summary>
  60. /// <value>"user001","user002"</value>
  61. public List<string> Directors { get; set; }
  62. /// <summary>
  63. /// 已分配的管理员列表
  64. /// </summary>
  65. /// <value>"admin001","admin002"</value>
  66. public List<string> AssignedAdmins { get; set; }
  67. /// <summary>
  68. /// 患者配置
  69. /// </summary>
  70. /// <value></value>
  71. public string PatientSettingJson { get; set; }
  72. /// <summary>
  73. /// 检查配置
  74. /// </summary>
  75. /// <value></value>
  76. public string ExamSettingJson { get; set; }
  77. /// <summary>
  78. /// 患者配置版本
  79. /// </summary>
  80. /// <value></value>
  81. public string PatientSettingVersion { get; set; }
  82. /// <summary>
  83. /// 检查配置版本
  84. /// </summary>
  85. /// <value></value>
  86. public string ExamSettingVersion { get; set; }
  87. /// <summary>
  88. /// 最精确地区编码
  89. /// </summary>
  90. /// <value>320500</value>
  91. public string RegionCode { get; set; }
  92. /// <summary>
  93. /// 父级编码
  94. /// </summary>
  95. /// <value>Test0000501_1</value>
  96. public string ParentCode { get; set; }
  97. /// <summary>
  98. /// 短码
  99. /// </summary>
  100. /// <value>TVDSR1</value>
  101. public string ShortCode { get; set; }
  102. /// <summary>
  103. /// logo图片地址
  104. /// </summary>
  105. /// <value>http://192.168.6.66:9001/Storage/B1154C6500E4F174249224B41284498E_7.PNG</value>
  106. public string LogoUrl { get; set; }
  107. /// <summary>
  108. /// 检查服务病人对象类型
  109. /// </summary>
  110. /// <value>0</value>
  111. public int PatientType { get; set; }
  112. /// <summary>
  113. /// 是否是虚拟机构
  114. /// </summary>
  115. /// <value></value>
  116. public bool Isinvented { get; set; } = false;
  117. /// <summary>
  118. /// 配置列表
  119. /// </summary>
  120. /// <value></value>
  121. public List<CacheSettingDTOClass> Settings { get; set; } = new();
  122. /// <summary>
  123. /// AI应用集合
  124. /// </summary>
  125. public List<string> DiagnosisModules { get; set; } = new();
  126. /// <summary>
  127. /// 敏感信息加密显示
  128. /// </summary>
  129. /// <value>true</value>
  130. public bool IsEncryptedShow { get; set; } = true;
  131. /// <summary>
  132. /// 可转诊机构
  133. /// </summary>
  134. /// <value></value>
  135. public List<string> ReferralOrganizationCodes { get; set; } = new List<string>();
  136. /// <summary>
  137. /// 默认词条库编码
  138. /// </summary>
  139. /// <value></value>
  140. public string DefaultThesaurusCode { get; set; }
  141. /// <summary>
  142. /// 默认报告模板编码
  143. /// </summary>
  144. /// <value></value>
  145. public string DefaultReportTemplateCode { get; set; }
  146. /// <summary>
  147. /// 即时会诊是否需要填写病人信息
  148. /// </summary>
  149. /// <value></value>
  150. public bool EmergencyNeedFill { get; set; }
  151. /// <summary>
  152. /// 即时会诊配置版本号
  153. /// </summary>
  154. /// <value></value>
  155. public string EmergencySettingVersion { get; set; }
  156. /// <summary>
  157. /// 即时会诊病人信息
  158. /// </summary>
  159. /// <value></value>
  160. public string EmergencySettingJson { get; set; }
  161. }
  162. public class CacheSettingDTOClass
  163. {
  164. /// <summary>
  165. /// 语言key
  166. /// </summary>
  167. /// <value>en-US</value>
  168. public string LangugeKey { get; set; }
  169. /// <summary>
  170. /// 配置模块
  171. /// </summary>
  172. /// <value>exam.json</value>
  173. public string SettingModule { get; set; }
  174. /// <summary>
  175. /// 自定义内容Json
  176. /// </summary>
  177. /// <value></value>
  178. public string CustomContent { get; set; }
  179. /// <summary>
  180. /// 完整内容(基础配置拼接自定义内容)
  181. /// </summary>
  182. /// <value></value>
  183. public string CompleteContent { get; set; }
  184. /// <summary>
  185. /// 基于哪个版本进行自定义的,对比用
  186. /// </summary>
  187. /// <value></value>
  188. public string BaseConfigVersion { get; set; }
  189. /// <summary>
  190. /// 语言版本
  191. /// </summary>
  192. /// <value></value>
  193. public string Version { get; set; }
  194. }
  195. }