his_summary_models.go 33KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  268. }
  269. func (VmHisDoctorAdviceInfo) TableName() string {
  270. return "his_doctor_advice_info"
  271. }
  272. type GatherHisOrder struct {
  273. ID int64 `gorm:"column:id" json:"id" form:"id"`
  274. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  275. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  276. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  277. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  278. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  279. Status int64 `gorm:"column:status" json:"status" form:"status"`
  280. Number string `gorm:"column:number" json:"number" form:"number"`
  281. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  282. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  283. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  284. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  285. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  286. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  287. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  288. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  289. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  290. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  291. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  292. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  293. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  294. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  295. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  296. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  297. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  298. Age float64 `gorm:"column:age" json:"age" form:"age"`
  299. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  300. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  301. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  302. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  303. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  304. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  305. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  306. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  307. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  308. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  309. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  310. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  311. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  312. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  313. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  314. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  315. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  316. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  317. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  318. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  319. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  320. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  321. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  322. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  323. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  324. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  325. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  326. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  327. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  328. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  329. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  330. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  331. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  332. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  333. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  334. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  335. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  336. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  337. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  338. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  339. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  340. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  341. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  342. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  343. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  344. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  345. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  346. SzChargeInfo string `gorm:"column:sz_charge_info" json:"sz_charge_info" form:"sz_charge_info"`
  347. SzProjectInfo string `gorm:"column:sz_project_info" json:"sz_project_info" form:"sz_project_info"`
  348. SzMedicineInsuranceInfo string `gorm:"column:sz_medicine_insurance_info" json:"sz_medicine_insurance_info" form:"sz_medicine_insurance_info"`
  349. AccountPrice float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
  350. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  351. OrgSetlNumber string `gorm:"column:org_setl_number" json:"org_setl_number" form:"org_setl_number"`
  352. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  353. RefundLog string `gorm:"column:refund_log" json:"refund_log" form:"refund_log"`
  354. DetailLog string `gorm:"column:detail_log" json:"detail_log" form:"detail_log"`
  355. RequestLog string `gorm:"column:request_log" json:"request_log" form:"request_log"`
  356. RefundRequestLog string `gorm:"column:refund_request_log" json:"refund_request_log" form:"refund_request_log"`
  357. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  358. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  359. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  360. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  361. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  362. FaPiaoBatchnumberId int64 `gorm:"column:fa_piao_batchnumber_id" json:"fa_piao_batchnumber_id" form:"fa_piao_batchnumber_id"`
  363. Decimal float64 `gorm:"column:decimal" json:"decimal" form:"decimal"`
  364. OthDesc string `gorm:"oth_desc" json:"oth_desc" form:"oth_desc"`
  365. PayWays string `gorm:"pay_ways" json:"pay_ways" form:"pay_ways"`
  366. }
  367. func (GatherHisOrder) TableName() string {
  368. return "his_order"
  369. }