his_summary_models.go 32KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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. }
  204. func (VmHisPrescriptionProject) TableName() string {
  205. return "his_prescription_project"
  206. }
  207. type VmHisDoctorAdviceInfo struct {
  208. ID int64 `gorm:"column:id" json:"id" form:"id"`
  209. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  210. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  211. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  212. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  213. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  214. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  215. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  216. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  217. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  218. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  219. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  220. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  221. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  222. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  223. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  224. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  225. Status int64 `gorm:"column:status" json:"status" form:"status"`
  226. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  227. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  228. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  229. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  230. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  231. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  232. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  233. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  234. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  235. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  236. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  237. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  238. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  239. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  240. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  241. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  242. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  243. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  244. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  245. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  246. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  247. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  248. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  249. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  250. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  251. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  252. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  253. Price float64 `gorm:"column:price" json:"price" form:"price"`
  254. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  255. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  256. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  257. Day int64 `gorm:"column:day" json:"day" form:"day"`
  258. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  259. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  260. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  261. Way int64 `gorm:"column:way" json:"way" form:"way"`
  262. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  263. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  264. }
  265. func (VmHisDoctorAdviceInfo) TableName() string {
  266. return "his_doctor_advice_info"
  267. }
  268. type GatherHisOrder struct {
  269. ID int64 `gorm:"column:id" json:"id" form:"id"`
  270. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  271. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  272. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  273. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  274. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  275. Status int64 `gorm:"column:status" json:"status" form:"status"`
  276. Number string `gorm:"column:number" json:"number" form:"number"`
  277. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  278. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  279. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  280. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  281. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  282. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  283. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  284. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  285. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  286. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  287. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  288. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  289. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  290. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  291. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  292. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  293. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  294. Age float64 `gorm:"column:age" json:"age" form:"age"`
  295. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  296. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  297. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  298. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  299. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  300. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  301. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  302. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  303. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  304. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  305. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  306. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  307. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  308. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  309. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  310. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  311. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  312. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  313. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  314. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  315. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  316. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  317. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  318. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  319. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  320. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  321. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  322. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  323. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  324. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  325. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  326. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  327. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  328. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  329. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  330. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  331. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  332. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  333. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  334. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  335. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  336. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  337. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  338. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  339. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  340. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  341. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  342. SzChargeInfo string `gorm:"column:sz_charge_info" json:"sz_charge_info" form:"sz_charge_info"`
  343. SzProjectInfo string `gorm:"column:sz_project_info" json:"sz_project_info" form:"sz_project_info"`
  344. SzMedicineInsuranceInfo string `gorm:"column:sz_medicine_insurance_info" json:"sz_medicine_insurance_info" form:"sz_medicine_insurance_info"`
  345. AccountPrice float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
  346. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  347. OrgSetlNumber string `gorm:"column:org_setl_number" json:"org_setl_number" form:"org_setl_number"`
  348. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  349. RefundLog string `gorm:"column:refund_log" json:"refund_log" form:"refund_log"`
  350. DetailLog string `gorm:"column:detail_log" json:"detail_log" form:"detail_log"`
  351. RequestLog string `gorm:"column:request_log" json:"request_log" form:"request_log"`
  352. RefundRequestLog string `gorm:"column:refund_request_log" json:"refund_request_log" form:"refund_request_log"`
  353. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  354. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  355. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  356. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  357. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  358. FaPiaoBatchnumberId int64 `gorm:"column:fa_piao_batchnumber_id" json:"fa_piao_batchnumber_id" form:"fa_piao_batchnumber_id"`
  359. Decimal float64 `gorm:"column:decimal" json:"decimal" form:"decimal"`
  360. }
  361. func (GatherHisOrder) TableName() string {
  362. return "his_order"
  363. }