his_summary_models.go 33KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. package models
  2. import "time"
  3. type HisPrescriptionModeTemplate struct {
  4. ID int64 `gorm:"column:id" json:"id" form:"id"`
  5. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  6. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  7. Type int64 `gorm:"column:type" json:"type" form:"type"`
  8. Status int64 `gorm:"column:status" json:"status" form:"status"`
  9. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  10. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  11. Name string `gorm:"column:name" json:"name" form:"name"`
  12. Mode int64 `gorm:"column:mode" json:"mode" form:"mode"`
  13. }
  14. func (HisPrescriptionModeTemplate) TableName() string {
  15. return "his_prescription_mode_template"
  16. }
  17. type HisPrescriptionInfoModeTemplate struct {
  18. ID int64 `gorm:"column:id" json:"id" form:"id"`
  19. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  20. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  21. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  22. Status int64 `gorm:"column:status" json:"status" form:"status"`
  23. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  24. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  25. Type int64 `gorm:"column:type" json:"type" form:"type"`
  26. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  27. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  28. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  29. PTemplateId int64 `gorm:"column:p_template_id" json:"p_template_id" form:"p_template_id"`
  30. HisPrescriptionAdviceTemplate []*HisPrescriptionAdviceModeTemplate `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  31. HisPrescriptionProjectTemplate []*HisPrescriptionProjectModeTemplate `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  32. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  33. }
  34. func (HisPrescriptionInfoModeTemplate) TableName() string {
  35. return "his_prescription_info_mode_template"
  36. }
  37. type HisPrescriptionAdviceModeTemplate struct {
  38. ID int64 `gorm:"column:id" json:"id" form:"id"`
  39. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  40. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  41. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  42. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  43. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  44. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  45. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  46. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  47. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  48. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  49. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  50. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  51. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  52. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  53. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  54. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  55. Status int64 `gorm:"column:status" json:"status" form:"status"`
  56. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  57. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  58. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  59. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  60. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  61. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  62. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  63. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  64. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  65. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  66. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  67. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  68. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  69. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  70. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  71. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  72. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  73. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  74. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  75. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  76. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  77. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  78. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  79. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  80. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  81. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  82. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  83. Price float64 `gorm:"column:price" json:"price" form:"price"`
  84. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  85. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  86. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  87. Day int64 `gorm:"column:day" json:"day" form:"day"`
  88. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  89. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  90. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  91. PrescriptionModeId int64 `gorm:"column:prescription_mode_id" json:"prescription_mode_id" form:"prescription_mode_id"`
  92. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  93. }
  94. func (HisPrescriptionAdviceModeTemplate) TableName() string {
  95. return "his_prescription_advice_mode_template"
  96. }
  97. type HisPrescriptionProjectModeTemplate struct {
  98. ID int64 `gorm:"column:id" json:"id" form:"id"`
  99. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  100. Price float64 `gorm:"column:price" json:"price" form:"price"`
  101. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  102. Status int64 `gorm:"column:status" json:"status" form:"status"`
  103. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  104. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  105. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  106. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  107. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  108. Count string `gorm:"column:count" json:"count" form:"count"`
  109. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  110. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  111. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  112. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  113. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  114. Day string `gorm:"column:day" json:"day" form:"day"`
  115. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  116. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  117. Type int64 `gorm:"column:type" json:"type" form:"type"`
  118. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  119. XtHisProject XtHisProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  120. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"good_info"`
  121. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  122. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  123. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  124. }
  125. func (HisPrescriptionProjectModeTemplate) TableName() string {
  126. return "his_prescription_project_mode_template"
  127. }
  128. type VmHisOrderInfo struct {
  129. ID int64 `gorm:"column:id" json:"id" form:"id"`
  130. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  131. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  132. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  133. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  134. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  135. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  136. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  137. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  138. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  139. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  140. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  141. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  142. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  143. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  144. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  145. Status int64 `gorm:"column:status" json:"status" form:"status"`
  146. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  147. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  148. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  149. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  150. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  151. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  152. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  153. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  154. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  155. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  156. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  157. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  158. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  159. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  160. Type int64 `gorm:"column:type" json:"type" form:"type"`
  161. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  162. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  163. HisPrescriptionProject []*VmHisPrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"vmproject"`
  164. HisDoctorAdviceInfo []*VmHisDoctorAdviceInfo `gorm:"ForeignKey:ID;AssociationForeignKey:AdviceId" json:"vmadvice"`
  165. }
  166. func (VmHisOrderInfo) TableName() string {
  167. return "his_order_info"
  168. }
  169. type VmHisPrescriptionProject struct {
  170. ID int64 `gorm:"column:id" json:"id" form:"id"`
  171. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  172. Price float64 `gorm:"column:price" json:"price" form:"price"`
  173. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  174. Status int64 `gorm:"column:status" json:"status" form:"status"`
  175. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  176. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  177. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  178. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  179. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  180. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  181. Count string `gorm:"column:count" json:"count" form:"count"`
  182. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  183. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  184. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  185. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  186. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  187. Day string `gorm:"column:day" json:"day" form:"day"`
  188. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  189. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  190. Type int64 `gorm:"column:type" json:"type" form:"type"`
  191. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  192. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  193. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  194. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  195. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  196. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  197. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  198. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  199. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  200. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  201. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  202. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  203. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  204. }
  205. func (VmHisPrescriptionProject) TableName() string {
  206. return "his_prescription_project"
  207. }
  208. type VmHisDoctorAdviceInfo struct {
  209. ID int64 `gorm:"column:id" json:"id" form:"id"`
  210. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  211. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  212. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  213. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  214. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  215. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  216. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  217. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  218. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  219. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  220. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  221. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  222. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  223. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  224. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  225. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  226. Status int64 `gorm:"column:status" json:"status" form:"status"`
  227. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  228. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  229. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  230. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  231. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  232. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  233. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  234. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  235. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  236. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  237. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  238. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  239. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  240. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  241. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  242. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  243. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  244. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  245. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  246. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  247. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  248. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  249. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  250. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  251. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  252. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  253. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  254. Price float64 `gorm:"column:price" json:"price" form:"price"`
  255. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  256. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  257. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  258. Day int64 `gorm:"column:day" json:"day" form:"day"`
  259. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  260. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  261. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  262. Way int64 `gorm:"column:way" json:"way" form:"way"`
  263. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  264. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  265. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  266. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  267. }
  268. func (VmHisDoctorAdviceInfo) TableName() string {
  269. return "his_doctor_advice_info"
  270. }
  271. type GatherHisOrder struct {
  272. ID int64 `gorm:"column:id" json:"id" form:"id"`
  273. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  274. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  275. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  276. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  277. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  278. Status int64 `gorm:"column:status" json:"status" form:"status"`
  279. Number string `gorm:"column:number" json:"number" form:"number"`
  280. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  281. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  282. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  283. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  284. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  285. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  286. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  287. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  288. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  289. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  290. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  291. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  292. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  293. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  294. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  295. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  296. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  297. Age float64 `gorm:"column:age" json:"age" form:"age"`
  298. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  299. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  300. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  301. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  302. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  303. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  304. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  305. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  306. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  307. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  308. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  309. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  310. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  311. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  312. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  313. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  314. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  315. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  316. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  317. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  318. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  319. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  320. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  321. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  322. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  323. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  324. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  325. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  326. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  327. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  328. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  329. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  330. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  331. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  332. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  333. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  334. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  335. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  336. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  337. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  338. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  339. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  340. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  341. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  342. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  343. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  344. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  345. SzChargeInfo string `gorm:"column:sz_charge_info" json:"sz_charge_info" form:"sz_charge_info"`
  346. SzProjectInfo string `gorm:"column:sz_project_info" json:"sz_project_info" form:"sz_project_info"`
  347. SzMedicineInsuranceInfo string `gorm:"column:sz_medicine_insurance_info" json:"sz_medicine_insurance_info" form:"sz_medicine_insurance_info"`
  348. AccountPrice float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
  349. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  350. OrgSetlNumber string `gorm:"column:org_setl_number" json:"org_setl_number" form:"org_setl_number"`
  351. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  352. RefundLog string `gorm:"column:refund_log" json:"refund_log" form:"refund_log"`
  353. DetailLog string `gorm:"column:detail_log" json:"detail_log" form:"detail_log"`
  354. RequestLog string `gorm:"column:request_log" json:"request_log" form:"request_log"`
  355. RefundRequestLog string `gorm:"column:refund_request_log" json:"refund_request_log" form:"refund_request_log"`
  356. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  357. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  358. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  359. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  360. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  361. FaPiaoBatchnumberId int64 `gorm:"column:fa_piao_batchnumber_id" json:"fa_piao_batchnumber_id" form:"fa_piao_batchnumber_id"`
  362. Decimal float64 `gorm:"column:decimal" json:"decimal" form:"decimal"`
  363. }
  364. func (GatherHisOrder) TableName() string {
  365. return "his_order"
  366. }