his_models.go 116KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549
  1. package models
  2. import (
  3. "time"
  4. )
  5. type XtHisProject struct {
  6. ID int64 `gorm:"column:id" json:"id" form:"id"`
  7. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  8. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  9. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  10. Price float64 `gorm:"column:price" json:"price" form:"price"`
  11. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  12. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  13. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  14. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  15. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  16. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  17. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  18. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  19. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  20. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  21. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  22. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  23. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  24. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  25. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  26. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  27. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  28. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  29. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  30. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  31. Status int64 `gorm:"column:status" json:"status" form:"status"`
  32. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  33. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  34. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  35. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  36. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  37. NumberDays string `gorm:"column:number_days" json:"number_days" form:"number_days"`
  38. Total string `gorm:"column:total" json:"total" form:"total"`
  39. Category int64 `gorm:"column:category" json:"category" form:"category"`
  40. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  41. SpecailProject int64 `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
  42. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  43. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  44. }
  45. func (XtHisProject) TableName() string {
  46. return "xt_his_project"
  47. }
  48. type XtHisProjectTeam struct {
  49. ID int64 `gorm:"column:id" json:"id" form:"id"`
  50. ProjectTeam string `gorm:"column:project_team" json:"project_team" form:"project_team"`
  51. Price float64 `gorm:"column:price" json:"price" form:"price"`
  52. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  53. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  54. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  55. TeamType int64 `gorm:"column:team_type" json:"team_type" form:"team_type"`
  56. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  57. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  58. Status int64 `gorm:"column:status" json:"status" form:"status"`
  59. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  60. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  61. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  62. ItemId string `gorm:"column:item_id" json:"item_id" form:"item_id"`
  63. }
  64. func (XtHisProjectTeam) TableName() string {
  65. return "xt_his_project_team"
  66. }
  67. type XtHisDepartment struct {
  68. ID int64 `gorm:"column:id" json:"id" form:"id"`
  69. Name string `gorm:"column:name" json:"name" form:"name"`
  70. Number string `gorm:"column:number" json:"number" form:"number"`
  71. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  72. Status int64 `gorm:"column:status" json:"status" form:"status"`
  73. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  74. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  75. }
  76. func (XtHisDepartment) TableName() string {
  77. return "xt_his_department"
  78. }
  79. type HisPatient struct {
  80. ID int64 `gorm:"column:id" json:"id" form:"id"`
  81. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  82. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  83. Name string `gorm:"column:name" json:"name" form:"name"`
  84. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  85. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  86. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  87. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  88. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  89. Age int64 `gorm:"column:age" json:"age" form:"age"`
  90. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  91. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  92. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  93. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  94. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  95. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  96. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  97. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  98. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  99. Total float64 `gorm:"column:total" json:"total" form:"total"`
  100. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  101. Status int64 `gorm:"column:status" json:"status" form:"status"`
  102. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  103. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  104. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  105. Number string `gorm:"column:number" json:"number" form:"number"`
  106. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  107. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  108. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  109. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  110. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  111. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  112. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  113. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  114. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  115. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  116. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  117. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  118. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  119. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  120. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  121. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  122. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  123. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  124. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  125. }
  126. func (HisPatient) TableName() string {
  127. return "his_patient"
  128. }
  129. type HisPrescriptionVm struct {
  130. ID int64 `gorm:"column:id" json:"id" form:"id"`
  131. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  132. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  133. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  134. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  135. Status int64 `gorm:"column:status" json:"status" form:"status"`
  136. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  137. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  138. Number string `gorm:"column:number" json:"number" form:"number"`
  139. Type int64 `gorm:"column:type" json:"type" form:"type"`
  140. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  141. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  142. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  143. Name string
  144. }
  145. type HisCaseHistoryTemplate struct {
  146. ID int64 `gorm:"column:id" json:"id" form:"id"`
  147. HistoryOfPresentIllness string `gorm:"column:history_of_present_illness" json:"history_of_present_illness" form:"history_of_present_illness"`
  148. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  149. ChiefConplaint string `gorm:"column:chief_conplaint" json:"chief_conplaint" form:"chief_conplaint"`
  150. PersonalHistory string `gorm:"column:personal_history" json:"personal_history" form:"personal_history"`
  151. FamilyHistory string `gorm:"column:family_history" json:"family_history" form:"family_history"`
  152. Diagnostic string `gorm:"column:diagnostic" json:"diagnostic" form:"diagnostic"`
  153. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  154. Status int64 `gorm:"column:status" json:"status" form:"status"`
  155. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  156. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  157. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  158. TemplateName string `gorm:"column:template_name" json:"template_name" form:"template_name"`
  159. TemplateRemark string `gorm:"column:template_remark" json:"template_remark" form:"template_remark"`
  160. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  161. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  162. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  163. DoctorAdvice string `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  164. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  165. }
  166. func (HisCaseHistoryTemplate) TableName() string {
  167. return "his_case_history_template"
  168. }
  169. type HisDoctorAdviceInfo struct {
  170. ID int64 `gorm:"column:id" json:"id" form:"id"`
  171. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  172. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  173. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  174. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  175. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  176. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  177. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  178. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  179. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  180. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  181. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  182. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  183. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  184. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  185. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  186. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  187. Status int64 `gorm:"column:status" json:"status" form:"status"`
  188. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  189. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  190. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  191. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  192. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  193. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  194. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  195. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  196. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  197. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  198. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  199. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  200. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  201. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  202. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  203. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  204. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  205. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  206. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  207. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  208. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  209. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  210. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  211. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  212. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  213. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  214. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  215. Price float64 `gorm:"column:price" json:"price" form:"price"`
  216. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  217. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  218. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  219. Day int64 `gorm:"column:day" json:"day" form:"day"`
  220. ChildDoctorAdvice []*HisDoctorAdviceInfo `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  221. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  222. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  223. Way int64 `gorm:"column:way" json:"way" form:"way"`
  224. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  225. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  226. }
  227. func (HisDoctorAdviceInfo) TableName() string {
  228. return "his_doctor_advice_info"
  229. }
  230. type Drug struct {
  231. ID int64 `gorm:"column:id" json:"id" form:"id"`
  232. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  233. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  234. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  235. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  236. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  237. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  238. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  239. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  240. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  241. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  242. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  243. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  244. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  245. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  246. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  247. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  248. Dose float64 `gorm:"column:dose" json:"dose" form:"dose"`
  249. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  250. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  251. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  252. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  253. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  254. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  255. Number string `gorm:"column:number" json:"number" form:"number"`
  256. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  257. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  258. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  259. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  260. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  261. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  262. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  263. Code string `gorm:"column:code" json:"code" form:"code"`
  264. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  265. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  266. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  267. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  268. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  269. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  270. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  271. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  272. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  273. Label int64 `gorm:"column:label" json:"label" form:"label"`
  274. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  275. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  276. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  277. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  278. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  279. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  280. Status int64 `gorm:"column:status" json:"status" form:"status"`
  281. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  282. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  283. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  284. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  285. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  286. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  287. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  288. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  289. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  290. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  291. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  292. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  293. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  294. Dosage string `gorm:"column:dosage" json:"dosage" form:"dosage"`
  295. Unval string `gorm:"column:unval" json:"unval" form:"unval"`
  296. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  297. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  298. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  299. Total float64 `gorm:"column:total" json:"total" form:"total"`
  300. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  301. }
  302. func (Drug) TableName() string {
  303. return "xt_base_drug"
  304. }
  305. type HisGroupAdvice struct {
  306. HisDoctorAdviceInfo
  307. Children []*HisGroupAdvice
  308. }
  309. type HisPatientCaseHistory struct {
  310. ID int64 `gorm:"column:id" json:"id" form:"id"`
  311. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  312. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  313. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  314. BloodSugar float64 `gorm:"column:blood_sugar" json:"blood_sugar" form:"blood_sugar"`
  315. Pulse float64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  316. Sbp float64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  317. Dbp float64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  318. Height float64 `gorm:"column:height" json:"height" form:"height"`
  319. BloodFat float64 `gorm:"column:blood_fat" json:"blood_fat" form:"blood_fat"`
  320. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  321. Symptom string `gorm:"column:symptom" json:"symptom" form:"symptom"`
  322. SickDate int64 `gorm:"column:sick_date" json:"sick_date" form:"sick_date"`
  323. IsInfect int64 `gorm:"column:is_infect" json:"is_infect" form:"is_infect"`
  324. HistoryOfPresentIllness string `gorm:"column:history_of_present_illness" json:"history_of_present_illness" form:"history_of_present_illness"`
  325. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  326. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  327. ChiefConplaint string `gorm:"column:chief_conplaint" json:"chief_conplaint" form:"chief_conplaint"`
  328. PersonalHistory string `gorm:"column:personal_history" json:"personal_history" form:"personal_history"`
  329. FamilyHistory string `gorm:"column:family_history" json:"family_history" form:"family_history"`
  330. Diagnostic string `gorm:"column:diagnostic" json:"diagnostic" form:"diagnostic"`
  331. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  332. Status int64 `gorm:"column:status" json:"status" form:"status"`
  333. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  334. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  335. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  336. DeliveryWay int64 `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  337. Breathing float64 `gorm:"column:breathing" json:"breathing" form:"breathing"`
  338. DoctorAdvice string `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  339. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  340. Sick int64 `gorm:"column:sick" json:"sick" form:"sick"`
  341. Diagnose int64 `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  342. AllergicHistory string `gorm:"column:allergic_history" json:"allergic_history" form:"allergic_history"`
  343. }
  344. func (HisPatientCaseHistory) TableName() string {
  345. return "his_patient_case_history"
  346. }
  347. type HisPrescriptionInfo struct {
  348. ID int64 `gorm:"column:id" json:"id" form:"id"`
  349. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  350. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  351. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  352. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  353. Status int64 `gorm:"column:status" json:"status" form:"status"`
  354. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  355. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  356. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  357. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  358. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  359. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  360. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  361. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  362. SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
  363. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  364. PrescriptionStatus int64 `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
  365. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  366. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  367. XtHisDepartment XtHisDepartment `gorm:"ForeignKey:ID;AssociationForeignKey:Departments" json:"department"`
  368. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  369. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  370. }
  371. func (HisPrescriptionInfo) TableName() string {
  372. return "his_prescription_info"
  373. }
  374. type TempHisOrder struct {
  375. ID int64 `gorm:"column:id" json:"id" form:"id"`
  376. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  377. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  378. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  379. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  380. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  381. Status int64 `gorm:"column:status" json:"status" form:"status"`
  382. Number string `gorm:"column:number" json:"number" form:"number"`
  383. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  384. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  385. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  386. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  387. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  388. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  389. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  390. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  391. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  392. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  393. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  394. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  395. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  396. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  397. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  398. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  399. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  400. Age float64 `gorm:"column:age" json:"age" form:"age"`
  401. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  402. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  403. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  404. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  405. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  406. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  407. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  408. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  409. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  410. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  411. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  412. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  413. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  414. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  415. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  416. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  417. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  418. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  419. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  420. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  421. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  422. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  423. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  424. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  425. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  426. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  427. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  428. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  429. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  430. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  431. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  432. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  433. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  434. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  435. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  436. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  437. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  438. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  439. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  440. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  441. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  442. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  443. DepartmentName string `gorm:"-" json:"department_name" form:"department_name"`
  444. DoctorName string `gorm:"-" json:"doctor_name" form:"doctor_name"`
  445. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  446. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  447. AccountPrice float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
  448. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  449. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  450. AdminUser AdminUser `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order_info"`
  451. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  452. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  453. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  454. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  455. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  456. }
  457. func (TempHisOrder) TableName() string {
  458. return "his_order"
  459. }
  460. type HisPrescription struct {
  461. ID int64 `gorm:"column:id" json:"id" form:"id"`
  462. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  463. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  464. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  465. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  466. Status int64 `gorm:"column:status" json:"status" form:"status"`
  467. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  468. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  469. Number string `gorm:"column:number" json:"number" form:"number"`
  470. Type int64 `gorm:"column:type" json:"type" form:"type"`
  471. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  472. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  473. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  474. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  475. PreTime int64 `gorm:"column:pre_time" json:"pre_time" form:"pre_time"`
  476. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  477. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  478. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  479. HisPatient VMHisPatient `gorm:"ForeignKey:PatientId;AssociationForeignKey:patient_id" json:"hisPatient"`
  480. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  481. HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  482. HisAdditionalCharge []*HisAdditionalCharge `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
  483. HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,ScheduleDate" json:"info"`
  484. Total string `gorm:"-" json:"total" form:"total"`
  485. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  486. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  487. TempHisOrder TempHisOrder `gorm:"ForeignKey:Number,MedType;AssociationForeignKey:BatchNumber,MedType" json:"order"`
  488. }
  489. func (HisPrescription) TableName() string {
  490. return "his_prescription"
  491. }
  492. type HisProject struct {
  493. ID int64 `gorm:"column:id" json:"id" form:"id"`
  494. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  495. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  496. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  497. Price float64 `gorm:"column:price" json:"price" form:"price"`
  498. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  499. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  500. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  501. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  502. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  503. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  504. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  505. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  506. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  507. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  508. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  509. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  510. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  511. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  512. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  513. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  514. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  515. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  516. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  517. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  518. Status int64 `gorm:"column:status" json:"status" form:"status"`
  519. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  520. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  521. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  522. NumberDays string `gorm:"column:number_days" json:"number_days" form:"number_days"`
  523. Total string `gorm:"column:total" json:"total" form:"total"`
  524. Category int64 `gorm:"column:category" json:"category" form:"category"`
  525. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  526. SpecailProject int64 `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
  527. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  528. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  529. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  530. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  531. }
  532. func (HisProject) TableName() string {
  533. return "xt_his_project"
  534. }
  535. type HisProjectTeam struct {
  536. ID int64 `gorm:"column:id" json:"id" form:"id"`
  537. ProjectTeam string `gorm:"column:project_team" json:"project_team" form:"project_team"`
  538. Price float64 `gorm:"column:price" json:"price" form:"price"`
  539. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  540. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  541. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  542. TeamType int64 `gorm:"column:team_type" json:"team_type" form:"team_type"`
  543. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  544. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  545. Status int64 `gorm:"column:status" json:"status" form:"status"`
  546. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  547. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  548. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  549. }
  550. func (HisProjectTeam) TableName() string {
  551. return "xt_his_project_team"
  552. }
  553. type HisAdditionalCharge struct {
  554. ID int64 `gorm:"column:id" json:"id" form:"id"`
  555. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  556. Price float64 `gorm:"column:price" json:"price" form:"price"`
  557. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  558. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  559. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  560. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  561. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  562. Status int64 `gorm:"column:status" json:"status" form:"status"`
  563. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  564. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  565. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  566. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  567. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  568. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  569. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  570. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  571. XtHisAddtionConfig XtHisAddtionConfig `gorm:"ForeignKey:ID;AssociationForeignKey:ItemId" json:"config"`
  572. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  573. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  574. Count int64 `gorm:"column:count" json:"count" form:"count"`
  575. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  576. }
  577. func (HisAdditionalCharge) TableName() string {
  578. return "his_additional_charge"
  579. }
  580. type HisDoctorAdviceParentTemplate struct {
  581. ID int64 `gorm:"column:id" json:"id" form:"id"`
  582. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  583. Name string `gorm:"column:name" json:"name" form:"name"`
  584. Status int64 `gorm:"column:status" json:"status" form:"status"`
  585. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  586. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  587. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  588. HisDoctorAdviceTemplate []*HisDoctorAdviceTemplate `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID" json:"advices"`
  589. }
  590. func (HisDoctorAdviceParentTemplate) TableName() string {
  591. return "his_doctor_advice_parent_template"
  592. }
  593. type VMDrug struct {
  594. ID int64 `gorm:"column:id" json:"id" form:"id"`
  595. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  596. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  597. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  598. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  599. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  600. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  601. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  602. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  603. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  604. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  605. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  606. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  607. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  608. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  609. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  610. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  611. Dose float64 `gorm:"column:dose" json:"dose" form:"dose"`
  612. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  613. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  614. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  615. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  616. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  617. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  618. Number string `gorm:"column:number" json:"number" form:"number"`
  619. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  620. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  621. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  622. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  623. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  624. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  625. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  626. Code string `gorm:"column:code" json:"code" form:"code"`
  627. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  628. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  629. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  630. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  631. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  632. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  633. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  634. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  635. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  636. Label int64 `gorm:"column:label" json:"label" form:"label"`
  637. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  638. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  639. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  640. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  641. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  642. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  643. Status int64 `gorm:"column:status" json:"status" form:"status"`
  644. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  645. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  646. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  647. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  648. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  649. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  650. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  651. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  652. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  653. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  654. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  655. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  656. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  657. Dosage string `gorm:"column:dosage" json:"dosage" form:"dosage"`
  658. Unval string `gorm:"column:unval" json:"unval" form:"unval"`
  659. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  660. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  661. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  662. Total float64 `gorm:"column:total" json:"total" form:"total"`
  663. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  664. }
  665. func (VMDrug) TableName() string {
  666. return "xt_base_drug"
  667. }
  668. type HisDoctorAdviceTemplate struct {
  669. ID int64 `gorm:"column:id" json:"id" form:"id"`
  670. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  671. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  672. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  673. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  674. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  675. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  676. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  677. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  678. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  679. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  680. Status int64 `gorm:"column:status" json:"status" form:"status"`
  681. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  682. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  683. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  684. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  685. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  686. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  687. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  688. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  689. WeekDays string `gorm:"column:week_days" json:"week_days" form:"week_days"`
  690. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  691. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  692. Way int64 `gorm:"column:way" json:"way" form:"way"`
  693. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  694. VMDrug VMDrug `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID" json:"advices"`
  695. }
  696. func (HisDoctorAdviceTemplate) TableName() string {
  697. return "his_doctor_advice_template"
  698. }
  699. type HisPrescriptionProject struct {
  700. ID int64 `gorm:"column:id" json:"id" form:"id"`
  701. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  702. Price float64 `gorm:"column:price" json:"price" form:"price"`
  703. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  704. Status int64 `gorm:"column:status" json:"status" form:"status"`
  705. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  706. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  707. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  708. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  709. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  710. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  711. Count int64 `gorm:"column:count" json:"count" form:"count"`
  712. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  713. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  714. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  715. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  716. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  717. Day string `gorm:"column:day" json:"day" form:"day"`
  718. HisProject HisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
  719. GoodInfo GoodInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
  720. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  721. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  722. Type int64 `gorm:"column:type" json:"type" form:"type"`
  723. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  724. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  725. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  726. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  727. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  728. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  729. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  730. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  731. }
  732. func (HisPrescriptionProject) TableName() string {
  733. return "his_prescription_project"
  734. }
  735. type SchedulesVm struct {
  736. ID int64 `gorm:"column:id" json:"id" form:"id"`
  737. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  738. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  739. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  740. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  741. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  742. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  743. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  744. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  745. Status int64 `gorm:"column:status" json:"status" form:"status"`
  746. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  747. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  748. Name string `gorm:"column:name" json:"name" form:"name"`
  749. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  750. }
  751. type HisProjectListVm struct {
  752. ID int64 `gorm:"column:id" json:"id" form:"id"`
  753. Number int64 `gorm:"column:number" json:"number" form:"number"`
  754. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  755. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  756. Status int64 `gorm:"column:status" json:"status" form:"status"`
  757. Price float64 `gorm:"column:price" json:"price" form:"price"`
  758. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  759. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  760. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  761. }
  762. type XtHisProjectList struct {
  763. ID int64 `gorm:"column:id" json:"id" form:"id"`
  764. Number int64 `gorm:"column:number" json:"number" form:"number"`
  765. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  766. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  767. Status int64 `gorm:"column:status" json:"status" form:"status"`
  768. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  769. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  770. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  771. Type int64 `gorm:"column:type" json:"type" form:"type"`
  772. XtHisProject XtHisProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  773. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"good_info"`
  774. }
  775. func (XtHisProjectList) TableName() string {
  776. return "xt_his_project_list"
  777. }
  778. type XtHisPatient struct {
  779. ID int64 `gorm:"column:id" json:"id" form:"id"`
  780. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  781. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  782. Name string `gorm:"column:name" json:"name" form:"name"`
  783. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  784. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  785. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  786. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  787. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  788. Age int64 `gorm:"column:age" json:"age" form:"age"`
  789. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  790. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  791. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  792. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  793. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  794. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  795. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  796. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  797. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  798. Total float64 `gorm:"column:total" json:"total" form:"total"`
  799. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  800. Status int64 `gorm:"column:status" json:"status" form:"status"`
  801. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  802. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  803. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  804. Number string `gorm:"column:number" json:"number" form:"number"`
  805. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  806. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  807. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  808. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  809. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  810. PType string `gorm:"column:p_type" json:"p_type" form:"p_type"`
  811. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  812. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  813. //HisOrder models.HisOrder `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,SettleAccountsDate" json:"order"`
  814. }
  815. func (XtHisPatient) TableName() string {
  816. return "his_patient"
  817. }
  818. type HisOrder struct {
  819. ID int64 `gorm:"column:id" json:"id" form:"id"`
  820. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  821. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  822. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  823. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  824. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  825. Status int64 `gorm:"column:status" json:"status" form:"status"`
  826. Number string `gorm:"column:number" json:"number" form:"number"`
  827. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  828. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  829. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  830. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  831. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  832. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  833. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  834. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  835. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  836. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  837. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  838. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  839. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  840. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  841. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  842. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  843. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  844. Age float64 `gorm:"column:age" json:"age" form:"age"`
  845. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  846. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  847. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  848. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  849. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  850. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  851. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  852. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  853. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  854. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  855. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  856. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  857. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  858. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  859. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  860. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  861. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  862. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  863. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  864. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  865. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  866. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  867. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  868. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  869. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  870. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  871. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  872. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  873. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  874. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  875. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  876. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  877. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  878. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  879. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  880. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  881. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  882. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  883. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  884. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  885. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  886. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  887. DepartmentName string `gorm:"-" json:"department_name" form:"department_name"`
  888. DoctorName string `gorm:"-" json:"doctor_name" form:"doctor_name"`
  889. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  890. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  891. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  892. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  893. AdminUser AdminUser `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order_info"`
  894. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  895. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  896. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  897. HisOrderInfo HisOrderInfo `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order_info"`
  898. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  899. HisPatient HisPatient `gorm:"ForeignKey:MdtrtId,PatientId;AssociationForeignKey:Number,PatientId" json:"his_patient"`
  900. HisHospitalCheckRecord HisHospitalCheckRecord `gorm:"ForeignKey:MdtrtId,PatientId;AssociationForeignKey:Number,PatientId" json:"his_hospital_patient"`
  901. HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"p_info"`
  902. HisFundSettleListResult HisFundSettleListResult `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"result"`
  903. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  904. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  905. }
  906. func (HisOrder) TableName() string {
  907. return "his_order"
  908. }
  909. type HisOrderInfo struct {
  910. ID int64 `gorm:"column:id" json:"id" form:"id"`
  911. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  912. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  913. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  914. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  915. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  916. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  917. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  918. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  919. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  920. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  921. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  922. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  923. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  924. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  925. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  926. Status int64 `gorm:"column:status" json:"status" form:"status"`
  927. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  928. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  929. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  930. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  931. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  932. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  933. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  934. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  935. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  936. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  937. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  938. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  939. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  940. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  941. Type int64 `gorm:"column:type" json:"type" form:"type"`
  942. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  943. }
  944. func (HisOrderInfo) TableName() string {
  945. return "his_order_info"
  946. }
  947. type VMHisPatient struct {
  948. ID int64 `gorm:"column:id" json:"id" form:"id"`
  949. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  950. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  951. Name string `gorm:"column:name" json:"name" form:"name"`
  952. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  953. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  954. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  955. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  956. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  957. Age float64 `gorm:"column:age" json:"age" form:"age"`
  958. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  959. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  960. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  961. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  962. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  963. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  964. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  965. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  966. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  967. Total float64 `gorm:"column:total" json:"total" form:"total"`
  968. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  969. Status int64 `gorm:"column:status" json:"status" form:"status"`
  970. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  971. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  972. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  973. Number string `gorm:"column:number" json:"number" form:"number"`
  974. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  975. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  976. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  977. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  978. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  979. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  980. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  981. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  982. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  983. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  984. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  985. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  986. PType string `gorm:"column:p_type" json:"p_type" form:"p_type"`
  987. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  988. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  989. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  990. }
  991. func (VMHisPatient) TableName() string {
  992. return "his_patient"
  993. }
  994. type MedicalInsuranceConfig struct {
  995. ID int64 `gorm:"column:id" json:"id" form:"id"`
  996. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  997. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  998. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  999. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1000. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1001. }
  1002. func (MedicalInsuranceConfig) TableName() string {
  1003. return "medical_insurance_config"
  1004. }
  1005. type HisOrderError struct {
  1006. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1007. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1008. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1009. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1010. Number string `gorm:"column:number" json:"number" form:"number"`
  1011. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  1012. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1013. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1014. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  1015. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  1016. }
  1017. func (HisOrderError) TableName() string {
  1018. return "his_order_error"
  1019. }
  1020. type MedicalInsuranceOrgConfig struct {
  1021. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1022. Code string `gorm:"column:code" json:"code" form:"code"`
  1023. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  1024. Vpn string `gorm:"column:vpn" json:"vpn" form:"vpn"`
  1025. EleCardId string `gorm:"column:ele_card_id" json:"ele_card_id" form:"ele_card_id"`
  1026. EleCardKey string `gorm:"column:ele_card_key" json:"ele_card_key" form:"ele_card_key"`
  1027. ChannelNumber string `gorm:"column:channel_number" json:"channel_number" form:"channel_number"`
  1028. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1029. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1030. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1031. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1032. MdtrtareaAdmvs string `gorm:"column:mdtrtarea_admvs" json:"mdtrtarea_admvs" form:"mdtrtarea_admvs"`
  1033. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  1034. SecretKey string `gorm:"column:secret_key" json:"secret_key" form:"secret_key"`
  1035. }
  1036. func (MedicalInsuranceOrgConfig) TableName() string {
  1037. return "medical_insurance_org_config"
  1038. }
  1039. type XtHisConfig struct {
  1040. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1041. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1042. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1043. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1044. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1045. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1046. }
  1047. func (XtHisConfig) TableName() string {
  1048. return "xt_his_config"
  1049. }
  1050. type XtHisProjectConfig struct {
  1051. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1052. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1053. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1054. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1055. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1056. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1057. }
  1058. func (XtHisProjectConfig) TableName() string {
  1059. return "xt_his_project_config"
  1060. }
  1061. type XtHisTemplate struct {
  1062. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1063. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1064. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1065. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1066. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1067. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1068. }
  1069. func (XtHisTemplate) TableName() string {
  1070. return "xt_his_template"
  1071. }
  1072. type XtHisAdviceTemplate struct {
  1073. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1074. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1075. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1076. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1077. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1078. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1079. }
  1080. func (XtHisAdviceTemplate) TableName() string {
  1081. return "xt_his_advice_template"
  1082. }
  1083. type XtHisChargeTemplate struct {
  1084. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1085. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1086. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1087. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1088. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1089. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1090. }
  1091. func (XtHisChargeTemplate) TableName() string {
  1092. return "xt_his_charge_template"
  1093. }
  1094. type XtHisTreatmentTemplate struct {
  1095. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1096. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1097. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1098. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1099. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1100. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1101. }
  1102. func (XtHisTreatmentTemplate) TableName() string {
  1103. return "xt_his_treatment_template"
  1104. }
  1105. type XtHisAdditionalCharge struct {
  1106. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1107. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1108. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1109. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1110. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1111. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1112. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1113. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1114. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1115. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  1116. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1117. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  1118. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1119. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1120. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1121. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1122. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  1123. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1124. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1125. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1126. }
  1127. func (XtHisAdditionalCharge) TableName() string {
  1128. return "his_additional_charge"
  1129. }
  1130. type XtHisMedicalTemplate struct {
  1131. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1132. Title string `gorm:"column:title" json:"title" form:"title"`
  1133. Content string `gorm:"column:content" json:"content" form:"content"`
  1134. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1135. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1136. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1137. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1138. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1139. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1140. }
  1141. func (XtHisMedicalTemplate) TableName() string {
  1142. return "xt_his_medical_template"
  1143. }
  1144. type HisXtDiagnoseConfig struct {
  1145. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1146. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  1147. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1148. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1149. ContentCode string `gorm:"column:content_code" json:"content_code" form:"content_code"`
  1150. CountryCode string `gorm:"column:country_code" json:"country_code" form:"country_code"`
  1151. CountryContentName string `gorm:"column:country_content_name" json:"country_content_name" form:"country_content_name"`
  1152. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1153. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1154. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1155. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1156. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1157. }
  1158. func (HisXtDiagnoseConfig) TableName() string {
  1159. return "his_xt_diagnose_config"
  1160. }
  1161. type BaseParams struct {
  1162. SecretKey string
  1163. FixmedinsCode string
  1164. InsuplcAdmdvs string
  1165. MdtrtareaAdmvs string
  1166. OrgName string
  1167. Doctor string
  1168. }
  1169. type BusinessParams struct {
  1170. Insutype string
  1171. ClrType string
  1172. SetlOptins string
  1173. MdtrtareaAdmvs string
  1174. StmtBegndate string
  1175. StmtEnddate string
  1176. MedfeeSumamt float64
  1177. FundPaySumamt float64
  1178. AcctPay float64
  1179. FixmedinsSetlCnt int64
  1180. FileQuryNo string
  1181. CashPayamt float64
  1182. PsnNo string
  1183. MdtrtId string
  1184. SetlId string
  1185. }
  1186. type HisFundSettleListResult struct {
  1187. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1188. Number string `gorm:"column:number" json:"number" form:"number"`
  1189. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1190. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1191. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1192. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1193. IsUpload int64 `gorm:"column:is_upload" json:"is_upload" form:"is_upload"`
  1194. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1195. }
  1196. func (HisFundSettleListResult) TableName() string {
  1197. return "his_fund_settle_list_result"
  1198. }
  1199. type HisPrescriptionTemplate struct {
  1200. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1201. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1202. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1203. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1204. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1205. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1206. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1207. Name string `gorm:"column:name" json:"name" form:"name"`
  1208. Mode int64 `gorm:"column:mode" json:"mode" form:"mode"`
  1209. }
  1210. func (HisPrescriptionTemplate) TableName() string {
  1211. return "his_prescription_template"
  1212. }
  1213. type HisPrescriptionAdviceTemplate struct {
  1214. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1215. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1216. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1217. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1218. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1219. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1220. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1221. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1222. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1223. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1224. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1225. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1226. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1227. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1228. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1229. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1230. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1231. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1232. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1233. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1234. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1235. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1236. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1237. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1238. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1239. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1240. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1241. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1242. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1243. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1244. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1245. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1246. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1247. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1248. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1249. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1250. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1251. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1252. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1253. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1254. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1255. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1256. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1257. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1258. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1259. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1260. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1261. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1262. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1263. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1264. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1265. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1266. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1267. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  1268. }
  1269. func (HisPrescriptionAdviceTemplate) TableName() string {
  1270. return "his_prescription_advice_template"
  1271. }
  1272. type HisPrescriptionProjectTemplate struct {
  1273. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1274. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1275. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1276. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1277. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1278. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1279. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1280. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1281. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1282. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1283. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1284. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1285. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1286. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1287. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1288. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1289. Day string `gorm:"column:day" json:"day" form:"day"`
  1290. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1291. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1292. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1293. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1294. XtHisProject XtHisProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  1295. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"good_info"`
  1296. }
  1297. func (HisPrescriptionProjectTemplate) TableName() string {
  1298. return "his_prescription_project_template"
  1299. }
  1300. type HisPrescriptionInfoTemplate struct {
  1301. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1302. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1303. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1304. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1305. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1306. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1307. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1308. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1309. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1310. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1311. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  1312. PTemplateId int64 `gorm:"column:p_template_id" json:"p_template_id" form:"p_template_id"`
  1313. HisPrescriptionAdviceTemplate []*HisPrescriptionAdviceTemplate `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  1314. HisPrescriptionProjectTemplate []*HisPrescriptionProjectTemplate `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  1315. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  1316. }
  1317. func (HisPrescriptionInfoTemplate) TableName() string {
  1318. return "his_prescription_info_template"
  1319. }
  1320. type XcxSgjUserAdminRole struct {
  1321. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1322. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1323. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1324. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  1325. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  1326. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1327. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  1328. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  1329. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  1330. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  1331. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1332. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1333. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1334. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  1335. Message string `gorm:"column:message" json:"message" form:"message"`
  1336. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  1337. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1338. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1339. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1340. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  1341. Department string `gorm:"column:department" json:"department" form:"department"`
  1342. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  1343. Age int64 `gorm:"column:age" json:"age" form:"age"`
  1344. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  1345. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  1346. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  1347. Education int64 `gorm:"column:education" json:"education" form:"education"`
  1348. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  1349. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  1350. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  1351. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1352. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  1353. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  1354. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  1355. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  1356. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  1357. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1358. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  1359. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  1360. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  1361. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  1362. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  1363. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  1364. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  1365. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  1366. OutpatientIllnessCategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  1367. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  1368. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  1369. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1370. }
  1371. func (XcxSgjUserAdminRole) TableName() string {
  1372. return "sgj_user_admin_role"
  1373. }
  1374. type XcxFiledConfig struct {
  1375. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1376. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1377. Module int64 `gorm:"column:module" json:"module" form:"module"`
  1378. FiledName string `gorm:"column:filed_name" json:"filed_name" form:"filed_name"`
  1379. FiledNameCn string `gorm:"column:filed_name_cn" json:"filed_name_cn" form:"filed_name_cn"`
  1380. IsShow int64 `gorm:"column:is_show" json:"is_show" form:"is_show"`
  1381. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  1382. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  1383. SysModule int64 `gorm:"column:sys_module" json:"sys_module" form:"sys_module"`
  1384. }
  1385. func (XcxFiledConfig) TableName() string {
  1386. return "xt_filed_config"
  1387. }
  1388. type XcxDataConfig struct {
  1389. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1390. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1391. Module string `gorm:"column:module" json:"module" form:"module"`
  1392. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1393. Name string `gorm:"column:name" json:"name" form:"name"`
  1394. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  1395. Value int64 `gorm:"column:value" json:"value" form:"value"`
  1396. CreateTime time.Time `gorm:"column:create_time" json:"create_time" form:"create_time"`
  1397. UpdateTime time.Time `gorm:"column:update_time" json:"update_time" form:"update_time"`
  1398. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  1399. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1400. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1401. DeleteIdSystem int64 `gorm:"column:delete_id_system" json:"delete_id_system" form:"delete_id_system"`
  1402. Title string `gorm:"column:title" json:"title" form:"title"`
  1403. Content string `gorm:"column:content" json:"content" form:"content"`
  1404. Orders int64 `gorm:"column:orders" json:"orders" form:"orders"`
  1405. FieldType int64 `gorm:"column:field_type" json:"field_type" form:"field_type"`
  1406. Code string `gorm:"column:code" json:"code" form:"code"`
  1407. }
  1408. func (XcxDataConfig) TableName() string {
  1409. return "xt_data_config"
  1410. }
  1411. // 故事表
  1412. type SybStory struct {
  1413. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1414. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  1415. ActivityId int64 `gorm:"column:activity_id" json:"activity_id" form:"activity_id"`
  1416. Theme int64 `gorm:"column:theme" json:"theme" form:"theme"`
  1417. Title string `gorm:"column:title" json:"title" form:"title"`
  1418. Image string `gorm:"column:image" json:"image" form:"image"`
  1419. Content string `gorm:"column:content" json:"content" form:"content"`
  1420. FirstVoteCount int64 `gorm:"column:first_vote_count" json:"first_vote_count" form:"first_vote_count"`
  1421. SecondVoteCount int64 `gorm:"column:second_vote_count" json:"second_vote_count" form:"second_vote_count"`
  1422. FirstScore int64 `gorm:"column:first_score" json:"first_score" form:"first_score"`
  1423. SecondScore int64 `gorm:"column:second_score" json:"second_score" form:"second_score"`
  1424. Score float64 `gorm:"column:score" json:"score" form:"score"`
  1425. RoseCount int64 `gorm:"column:rose_count" json:"rose_count" form:"rose_count"`
  1426. CommentCount int64 `gorm:"column:comment_count" json:"comment_count" form:"comment_count"`
  1427. AuditStatus int64 `gorm:"column:audit_status" json:"audit_status" form:"audit_status"`
  1428. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1429. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1430. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1431. StoryNo int64 `gorm:"column:story_no" json:"story_no" form:"story_no"`
  1432. Round int64 `gorm:"column:round" json:"round" form:"round"`
  1433. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  1434. ReadWx int64 `gorm:"column:read_wx" json:"read_wx" form:"read_wx"`
  1435. ReadApp int64 `gorm:"column:read_app" json:"read_app" form:"read_app"`
  1436. ReadPc int64 `gorm:"column:read_pc" json:"read_pc" form:"read_pc"`
  1437. PingweiNum int64 `gorm:"column:pingwei_num" json:"pingwei_num" form:"pingwei_num"`
  1438. }
  1439. func (SybStory) TableName() string {
  1440. return "syb_story"
  1441. }