his_models.go 50KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. package models
  2. import "time"
  3. type XtHisProject struct {
  4. ID int64 `gorm:"column:id" json:"id" form:"id"`
  5. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  6. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  7. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  8. Price float64 `gorm:"column:price" json:"price" form:"price"`
  9. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  10. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  11. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  12. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  13. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  14. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  15. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  16. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  17. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  18. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  19. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  20. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  21. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  22. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  23. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  24. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  25. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  26. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  27. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  28. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  29. Status int64 `gorm:"column:status" json:"status" form:"status"`
  30. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  31. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  32. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  33. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  34. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  35. NumberDays string `gorm:"column:number_days" json:"number_days" form:"number_days"`
  36. Total string `gorm:"column:total" json:"total" form:"total"`
  37. }
  38. func (XtHisProject) TableName() string {
  39. return "xt_his_project"
  40. }
  41. type XtHisProjectTeam struct {
  42. ID int64 `gorm:"column:id" json:"id" form:"id"`
  43. ProjectTeam string `gorm:"column:project_team" json:"project_team" form:"project_team"`
  44. Price float64 `gorm:"column:price" json:"price" form:"price"`
  45. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  46. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  47. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  48. TeamType int64 `gorm:"column:team_type" json:"team_type" form:"team_type"`
  49. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  50. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  51. Status int64 `gorm:"column:status" json:"status" form:"status"`
  52. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  53. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  54. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  55. }
  56. func (XtHisProjectTeam) TableName() string {
  57. return "xt_his_project_team"
  58. }
  59. type XtHisDepartment struct {
  60. ID int64 `gorm:"column:id" json:"id" form:"id"`
  61. Name string `gorm:"column:name" json:"name" form:"name"`
  62. Number string `gorm:"column:number" json:"number" form:"number"`
  63. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  64. Status int64 `gorm:"column:status" json:"status" form:"status"`
  65. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  66. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  67. }
  68. func (XtHisDepartment) TableName() string {
  69. return "xt_his_department"
  70. }
  71. type HisPatient struct {
  72. ID int64 `gorm:"column:id" json:"id" form:"id"`
  73. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  74. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  75. Name string `gorm:"column:name" json:"name" form:"name"`
  76. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  77. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  78. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  79. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  80. Age float64 `gorm:"column:age" json:"age" form:"age"`
  81. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  82. IdNumber string `gorm:"column:id_number" json:"id_number" form:"id_number"`
  83. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  84. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  85. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  86. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  87. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  88. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  89. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  90. Total float64 `gorm:"column:total" json:"total" form:"total"`
  91. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  92. Status int64 `gorm:"column:status" json:"status" form:"status"`
  93. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  94. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  95. }
  96. func (HisPatient) TableName() string {
  97. return "his_patient"
  98. }
  99. type HisPrescriptionVm struct {
  100. ID int64 `gorm:"column:id" json:"id" form:"id"`
  101. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  102. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  103. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  104. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  105. Status int64 `gorm:"column:status" json:"status" form:"status"`
  106. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  107. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  108. Number string `gorm:"column:number" json:"number" form:"number"`
  109. Type int64 `gorm:"column:type" json:"type" form:"type"`
  110. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  111. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  112. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  113. Name string
  114. }
  115. type HisCaseHistoryTemplate struct {
  116. ID int64 `gorm:"column:id" json:"id" form:"id"`
  117. HistoryOfPresentIllness string `gorm:"column:history_of_present_illness" json:"history_of_present_illness" form:"history_of_present_illness"`
  118. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  119. ChiefConplaint string `gorm:"column:chief_conplaint" json:"chief_conplaint" form:"chief_conplaint"`
  120. PersonalHistory string `gorm:"column:personal_history" json:"personal_history" form:"personal_history"`
  121. FamilyHistory string `gorm:"column:family_history" json:"family_history" form:"family_history"`
  122. Diagnostic string `gorm:"column:diagnostic" json:"diagnostic" form:"diagnostic"`
  123. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  124. Status int64 `gorm:"column:status" json:"status" form:"status"`
  125. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  126. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  127. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  128. TemplateName string `gorm:"column:template_name" json:"template_name" form:"template_name"`
  129. TemplateRemark string `gorm:"column:template_remark" json:"template_remark" form:"template_remark"`
  130. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  131. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  132. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  133. }
  134. func (HisCaseHistoryTemplate) TableName() string {
  135. return "his_case_history_template"
  136. }
  137. type HisDoctorAdviceInfo struct {
  138. ID int64 `gorm:"column:id" json:"id" form:"id"`
  139. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  140. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  141. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  142. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  143. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  144. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  145. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  146. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  147. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  148. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  149. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  150. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  151. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  152. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  153. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  154. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  155. Status int64 `gorm:"column:status" json:"status" form:"status"`
  156. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  157. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  158. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  159. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  160. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  161. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  162. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  163. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  164. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  165. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  166. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  167. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  168. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  169. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  170. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  171. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  172. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  173. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  174. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  175. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  176. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  177. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  178. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  179. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  180. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  181. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  182. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  183. Price float64 `gorm:"column:price" json:"price" form:"price"`
  184. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  185. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  186. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  187. }
  188. func (HisDoctorAdviceInfo) TableName() string {
  189. return "his_doctor_advice_info"
  190. }
  191. type HisGroupAdvice struct {
  192. HisDoctorAdviceInfo
  193. Children []*HisGroupAdvice
  194. }
  195. type HisPatientCaseHistory struct {
  196. ID int64 `gorm:"column:id" json:"id" form:"id"`
  197. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  198. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  199. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  200. BloodSugar float64 `gorm:"column:blood_sugar" json:"blood_sugar" form:"blood_sugar"`
  201. Pulse float64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  202. Sbp float64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  203. Dbp float64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  204. Height float64 `gorm:"column:height" json:"height" form:"height"`
  205. BloodFat float64 `gorm:"column:blood_fat" json:"blood_fat" form:"blood_fat"`
  206. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  207. Symptom string `gorm:"column:symptom" json:"symptom" form:"symptom"`
  208. SickDate int64 `gorm:"column:sick_date" json:"sick_date" form:"sick_date"`
  209. IsInfect int64 `gorm:"column:is_infect" json:"is_infect" form:"is_infect"`
  210. HistoryOfPresentIllness string `gorm:"column:history_of_present_illness" json:"history_of_present_illness" form:"history_of_present_illness"`
  211. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  212. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  213. ChiefConplaint string `gorm:"column:chief_conplaint" json:"chief_conplaint" form:"chief_conplaint"`
  214. PersonalHistory string `gorm:"column:personal_history" json:"personal_history" form:"personal_history"`
  215. FamilyHistory string `gorm:"column:family_history" json:"family_history" form:"family_history"`
  216. Diagnostic string `gorm:"column:diagnostic" json:"diagnostic" form:"diagnostic"`
  217. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  218. Status int64 `gorm:"column:status" json:"status" form:"status"`
  219. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  220. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  221. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  222. DeliveryWay int64 `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  223. Breathing float64 `gorm:"column:breathing" json:"breathing" form:"breathing"`
  224. DoctorAdvice string `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  225. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  226. }
  227. func (HisPatientCaseHistory) TableName() string {
  228. return "his_patient_case_history"
  229. }
  230. type HisPrescriptionInfo struct {
  231. ID int64 `gorm:"column:id" json:"id" form:"id"`
  232. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  233. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  234. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  235. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  236. Status int64 `gorm:"column:status" json:"status" form:"status"`
  237. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  238. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  239. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  240. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  241. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  242. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  243. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  244. Departments string `gorm:"column:departments" json:"departments" form:"departments"`
  245. SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
  246. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  247. }
  248. func (HisPrescriptionInfo) TableName() string {
  249. return "his_prescription_info"
  250. }
  251. type HisPrescription struct {
  252. ID int64 `gorm:"column:id" json:"id" form:"id"`
  253. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  254. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  255. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  256. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  257. Status int64 `gorm:"column:status" json:"status" form:"status"`
  258. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  259. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  260. Number string `gorm:"column:number" json:"number" form:"number"`
  261. Type int64 `gorm:"column:type" json:"type" form:"type"`
  262. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  263. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  264. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  265. IsFinish int64 `gorm:"column:is_finish" json:"is_finish" form:"is_finish"`
  266. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  267. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"advices"`
  268. HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"project"`
  269. }
  270. func (HisPrescription) TableName() string {
  271. return "his_prescription"
  272. }
  273. type HisProject struct {
  274. ID int64 `gorm:"column:id" json:"id" form:"id"`
  275. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  276. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  277. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  278. Price float64 `gorm:"column:price" json:"price" form:"price"`
  279. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  280. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  281. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  282. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  283. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  284. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  285. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  286. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  287. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  288. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  289. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  290. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  291. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  292. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  293. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  294. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  295. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  296. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  297. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  298. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  299. Status int64 `gorm:"column:status" json:"status" form:"status"`
  300. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  301. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  302. }
  303. func (HisProject) TableName() string {
  304. return "xt_his_project"
  305. }
  306. type HisProjectTeam struct {
  307. ID int64 `gorm:"column:id" json:"id" form:"id"`
  308. ProjectTeam string `gorm:"column:project_team" json:"project_team" form:"project_team"`
  309. Price float64 `gorm:"column:price" json:"price" form:"price"`
  310. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  311. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  312. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  313. TeamType int64 `gorm:"column:team_type" json:"team_type" form:"team_type"`
  314. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  315. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  316. Status int64 `gorm:"column:status" json:"status" form:"status"`
  317. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  318. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  319. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  320. }
  321. func (HisProjectTeam) TableName() string {
  322. return "xt_his_project_team"
  323. }
  324. type HisAdditionalCharge struct {
  325. ID int64 `gorm:"column:id" json:"id" form:"id"`
  326. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  327. Price float64 `gorm:"column:price" json:"price" form:"price"`
  328. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  329. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  330. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  331. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  332. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  333. Status int64 `gorm:"column:status" json:"status" form:"status"`
  334. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  335. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  336. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  337. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  338. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  339. }
  340. func (HisAdditionalCharge) TableName() string {
  341. return "his_additional_charge"
  342. }
  343. type HisDoctorAdviceParentTemplate struct {
  344. ID int64 `gorm:"column:id" json:"id" form:"id"`
  345. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  346. Name string `gorm:"column:name" json:"name" form:"name"`
  347. Status int64 `gorm:"column:status" json:"status" form:"status"`
  348. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  349. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  350. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  351. HisDoctorAdviceTemplate []*HisDoctorAdviceTemplate `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID" json:"advices"`
  352. }
  353. func (HisDoctorAdviceParentTemplate) TableName() string {
  354. return "his_doctor_advice_parent_template"
  355. }
  356. type HisDoctorAdviceTemplate struct {
  357. ID int64 `gorm:"column:id" json:"id" form:"id"`
  358. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  359. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  360. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  361. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  362. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  363. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  364. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  365. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  366. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  367. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  368. Status int64 `gorm:"column:status" json:"status" form:"status"`
  369. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  370. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  371. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  372. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  373. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  374. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  375. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  376. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  377. WeekDays string `gorm:"column:week_days" json:"week_days" form:"week_days"`
  378. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  379. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  380. Way int64 `gorm:"column:way" json:"way" form:"way"`
  381. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  382. }
  383. func (HisDoctorAdviceTemplate) TableName() string {
  384. return "his_doctor_advice_template"
  385. }
  386. type HisPrescriptionProject struct {
  387. ID int64 `gorm:"column:id" json:"id" form:"id"`
  388. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  389. Price float64 `gorm:"column:price" json:"price" form:"price"`
  390. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  391. Status int64 `gorm:"column:status" json:"status" form:"status"`
  392. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  393. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  394. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  395. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  396. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  397. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  398. Count int64 `gorm:"column:count" json:"count" form:"count"`
  399. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  400. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  401. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  402. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  403. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  404. Day string `gorm:"column:day" json:"day" form:"day"`
  405. HisProject HisProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  406. }
  407. func (HisPrescriptionProject) TableName() string {
  408. return "his_prescription_project"
  409. }
  410. type SchedulesVm struct {
  411. ID int64 `gorm:"column:id" json:"id" form:"id"`
  412. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  413. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  414. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  415. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  416. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  417. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  418. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  419. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  420. Status int64 `gorm:"column:status" json:"status" form:"status"`
  421. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  422. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  423. Name string `gorm:"column:name" json:"name" form:"name"`
  424. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  425. }
  426. type HisProjectListVm struct {
  427. ID int64 `gorm:"column:id" json:"id" form:"id"`
  428. Number int64 `gorm:"column:number" json:"number" form:"number"`
  429. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  430. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  431. Status int64 `gorm:"column:status" json:"status" form:"status"`
  432. Price float64 `gorm:"column:price" json:"price" form:"price"`
  433. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  434. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  435. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  436. }
  437. type XtHisProjectList struct {
  438. ID int64 `gorm:"column:id" json:"id" form:"id"`
  439. Number int64 `gorm:"column:number" json:"number" form:"number"`
  440. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  441. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  442. Status int64 `gorm:"column:status" json:"status" form:"status"`
  443. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  444. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  445. }
  446. func (XtHisProjectList) TableName() string {
  447. return "xt_his_project_list"
  448. }
  449. type XtHisPatient struct {
  450. ID int64 `gorm:"column:id" json:"id" form:"id"`
  451. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  452. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  453. Name string `gorm:"column:name" json:"name" form:"name"`
  454. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  455. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  456. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  457. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  458. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  459. Age int64 `gorm:"column:age" json:"age" form:"age"`
  460. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  461. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  462. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  463. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  464. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  465. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  466. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  467. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  468. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  469. Total float64 `gorm:"column:total" json:"total" form:"total"`
  470. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  471. Status int64 `gorm:"column:status" json:"status" form:"status"`
  472. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  473. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  474. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  475. Number string `gorm:"column:number" json:"number" form:"number"`
  476. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  477. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  478. }
  479. func (XtHisPatient) TableName() string {
  480. return "his_patient"
  481. }
  482. type HisOrder struct {
  483. ID int64 `gorm:"column:id" json:"id" form:"id"`
  484. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  485. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  486. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  487. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  488. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  489. Status int64 `gorm:"column:status" json:"status" form:"status"`
  490. Number string `gorm:"column:number" json:"number" form:"number"`
  491. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  492. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  493. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  494. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  495. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  496. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  497. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  498. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  499. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  500. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  501. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  502. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  503. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  504. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  505. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  506. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  507. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  508. Age float64 `gorm:"column:age" json:"age" form:"age"`
  509. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  510. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  511. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  512. SetlTime time.Time `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  513. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  514. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  515. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  516. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  517. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  518. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  519. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  520. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  521. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  522. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  523. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  524. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  525. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  526. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  527. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  528. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  529. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  530. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  531. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  532. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  533. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  534. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  535. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  536. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  537. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  538. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  539. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  540. FundPayType string `gorm:"column:fund_pay_type" json:"fund_pay_type" form:"fund_pay_type"`
  541. CrtPaybLmtAmt float64 `gorm:"column:crt_payb_lmt_amt" json:"crt_payb_lmt_amt" form:"crt_payb_lmt_amt"`
  542. FundPayamt float64 `gorm:"column:fund_payamt" json:"fund_payamt" form:"fund_payamt"`
  543. FundPayTypeName string `gorm:"column:fund_pay_type_name" json:"fund_pay_type_name" form:"fund_pay_type_name"`
  544. SetlProcInfo string `gorm:"column:setl_proc_info" json:"setl_proc_info" form:"setl_proc_info"`
  545. HisOrderInfo HisOrderInfo `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order_info"`
  546. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  547. HisPatient HisPatient `gorm:"ForeignKey:HisPatientId;AssociationForeignKey:ID" json:"his_patient"`
  548. HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId,SettleAccountsDate;AssociationForeignKey:PatientId,RecordDate" json:"p_info"`
  549. }
  550. func (HisOrder) TableName() string {
  551. return "his_order"
  552. }
  553. type HisOrderInfo struct {
  554. ID int64 `gorm:"column:id" json:"id" form:"id"`
  555. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  556. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  557. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  558. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  559. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  560. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  561. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  562. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  563. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  564. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  565. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  566. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  567. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  568. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  569. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  570. Status int64 `gorm:"column:status" json:"status" form:"status"`
  571. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  572. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  573. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  574. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  575. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  576. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  577. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  578. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  579. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  580. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  581. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  582. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  583. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  584. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  585. Type int64 `gorm:"column:type" json:"type" form:"type"`
  586. }
  587. func (HisOrderInfo) TableName() string {
  588. return "his_order_info"
  589. }
  590. type VMHisPatient struct {
  591. ID int64 `gorm:"column:id" json:"id" form:"id"`
  592. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  593. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  594. Name string `gorm:"column:name" json:"name" form:"name"`
  595. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  596. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  597. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  598. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  599. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  600. Age float64 `gorm:"column:age" json:"age" form:"age"`
  601. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  602. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  603. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  604. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  605. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  606. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  607. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  608. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  609. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  610. Total float64 `gorm:"column:total" json:"total" form:"total"`
  611. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  612. Status int64 `gorm:"column:status" json:"status" form:"status"`
  613. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  614. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  615. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  616. Number string `gorm:"column:number" json:"number" form:"number"`
  617. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  618. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  619. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  620. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  621. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  622. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  623. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  624. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  625. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  626. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  627. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  628. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  629. }
  630. func (VMHisPatient) TableName() string {
  631. return "his_patient"
  632. }