his_models.go 191KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500
  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. List []*XtHisProjectList `gorm:"-" json:"list" form:"list"`
  64. }
  65. func (XtHisProjectTeam) TableName() string {
  66. return "xt_his_project_team"
  67. }
  68. type XtHisDepartment struct {
  69. ID int64 `gorm:"column:id" json:"id" form:"id"`
  70. Name string `gorm:"column:name" json:"name" form:"name"`
  71. Number string `gorm:"column:number" json:"number" form:"number"`
  72. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  73. Status int64 `gorm:"column:status" json:"status" form:"status"`
  74. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  75. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  76. }
  77. func (XtHisDepartment) TableName() string {
  78. return "xt_his_department"
  79. }
  80. type HisPatient struct {
  81. ID int64 `gorm:"column:id" json:"id" form:"id"`
  82. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  83. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  84. Name string `gorm:"column:name" json:"name" form:"name"`
  85. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  86. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  87. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  88. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  89. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  90. Age int64 `gorm:"column:age" json:"age" form:"age"`
  91. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  92. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  93. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  94. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  95. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  96. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  97. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  98. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  99. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  100. Total float64 `gorm:"column:total" json:"total" form:"total"`
  101. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  102. Status int64 `gorm:"column:status" json:"status" form:"status"`
  103. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  104. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  105. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  106. Number string `gorm:"column:number" json:"number" form:"number"`
  107. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  108. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  109. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  110. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  111. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  112. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  113. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  114. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  115. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  116. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  117. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  118. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  119. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  120. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  121. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  122. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  123. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  124. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  125. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  126. }
  127. func (HisPatient) TableName() string {
  128. return "his_patient"
  129. }
  130. type HisPrescriptionVm struct {
  131. ID int64 `gorm:"column:id" json:"id" form:"id"`
  132. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  133. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  134. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  135. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  136. Status int64 `gorm:"column:status" json:"status" form:"status"`
  137. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  138. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  139. Number string `gorm:"column:number" json:"number" form:"number"`
  140. Type int64 `gorm:"column:type" json:"type" form:"type"`
  141. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  142. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  143. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  144. Name string
  145. }
  146. type HisCaseHistoryTemplate struct {
  147. ID int64 `gorm:"column:id" json:"id" form:"id"`
  148. HistoryOfPresentIllness string `gorm:"column:history_of_present_illness" json:"history_of_present_illness" form:"history_of_present_illness"`
  149. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  150. ChiefConplaint string `gorm:"column:chief_conplaint" json:"chief_conplaint" form:"chief_conplaint"`
  151. PersonalHistory string `gorm:"column:personal_history" json:"personal_history" form:"personal_history"`
  152. FamilyHistory string `gorm:"column:family_history" json:"family_history" form:"family_history"`
  153. Diagnostic string `gorm:"column:diagnostic" json:"diagnostic" form:"diagnostic"`
  154. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  155. Status int64 `gorm:"column:status" json:"status" form:"status"`
  156. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  157. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  158. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  159. TemplateName string `gorm:"column:template_name" json:"template_name" form:"template_name"`
  160. TemplateRemark string `gorm:"column:template_remark" json:"template_remark" form:"template_remark"`
  161. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  162. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  163. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  164. DoctorAdvice string `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  165. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  166. Sick int64 `gorm:"column:sick" json:"sick" form:"sick"`
  167. Diagnose int64 `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  168. AllergicHistory string `gorm:"column:allergic_history" json:"allergic_history" form:"allergic_history"`
  169. PrimaryDisease string `gorm:"column:primary_disease" json:"primary_disease" form:"primary_disease"`
  170. ConfirmFailureDate int64 `gorm:"column:confirm_failure_date" json:"confirm_failure_date" form:"confirm_failure_date"`
  171. DrugAllergyHistory string `gorm:"column:drug_allergy_history" json:"drug_allergy_history" form:"drug_allergy_history"`
  172. PhysicalExamination string `gorm:"column:physical_examination" json:"physical_examination" form:"physical_examination"`
  173. SpecialInspection string `gorm:"column:special_inspection" json:"special_inspection" form:"special_inspection"`
  174. LabApparatus string `gorm:"column:lab_apparatus" json:"lab_apparatus" form:"lab_apparatus"`
  175. }
  176. func (HisCaseHistoryTemplate) TableName() string {
  177. return "his_case_history_template"
  178. }
  179. type HisList struct {
  180. Patient_id int64
  181. Advice_id int64
  182. Record_date int64
  183. Advice []HisDoctorAdviceInfo `gorm:json:"advices"`
  184. Project []HisPrescriptionProject `gorm:json:"project"`
  185. }
  186. type HisDoctorAdviceInfo struct {
  187. ID int64 `gorm:"column:id" json:"id" form:"id"`
  188. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  189. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  190. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  191. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  192. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  193. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  194. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  195. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  196. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  197. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  198. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  199. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  200. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  201. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  202. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  203. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  204. Status int64 `gorm:"column:status" json:"status" form:"status"`
  205. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  206. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  207. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  208. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  209. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  210. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  211. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  212. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  213. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  214. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  215. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  216. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  217. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  218. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  219. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  220. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  221. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  222. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  223. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  224. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  225. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  226. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  227. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  228. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  229. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  230. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  231. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  232. Price float64 `gorm:"column:price" json:"price" form:"price"`
  233. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  234. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  235. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  236. Day int64 `gorm:"column:day" json:"day" form:"day"`
  237. ChildDoctorAdvice []*HisDoctorAdviceInfo `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  238. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  239. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  240. Way int64 `gorm:"column:way" json:"way" form:"way"`
  241. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  242. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  243. HisOrderInfo HisOrderInfo `gorm:"ForeignKey:AdviceId;AssociationForeignKey:ID" json:"order_info"`
  244. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  245. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  246. Child []*HisDoctorAdviceInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  247. IsSettle int64 `gorm:"column:is_settle" json:"is_settle" form:"is_settle"`
  248. }
  249. func (HisDoctorAdviceInfo) TableName() string {
  250. return "his_doctor_advice_info"
  251. }
  252. type Drug struct {
  253. ID int64 `gorm:"column:id" json:"id" form:"id"`
  254. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  255. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  256. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  257. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  258. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  259. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  260. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  261. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  262. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  263. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  264. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  265. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  266. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  267. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  268. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  269. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  270. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  271. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  272. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  273. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  274. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  275. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  276. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  277. Number string `gorm:"column:number" json:"number" form:"number"`
  278. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  279. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  280. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  281. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  282. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  283. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  284. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  285. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  286. Code string `gorm:"column:code" json:"code" form:"code"`
  287. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  288. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  289. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  290. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  291. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  292. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  293. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  294. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  295. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  296. Label int64 `gorm:"column:label" json:"label" form:"label"`
  297. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  298. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  299. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  300. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  301. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  302. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  303. Status int64 `gorm:"column:status" json:"status" form:"status"`
  304. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  305. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  306. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  307. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  308. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  309. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  310. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  311. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  312. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  313. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  314. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  315. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  316. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  317. Dosage string `gorm:"column:dosage" json:"dosage" form:"dosage"`
  318. Unval string `gorm:"column:unval" json:"unval" form:"unval"`
  319. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  320. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  321. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  322. Total float64 `gorm:"column:total" json:"total" form:"total"`
  323. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  324. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  325. }
  326. func (Drug) TableName() string {
  327. return "xt_base_drug"
  328. }
  329. type HisGroupAdvice struct {
  330. HisDoctorAdviceInfo
  331. Children []*HisGroupAdvice
  332. }
  333. type HisPatientCaseHistory struct {
  334. ID int64 `gorm:"column:id" json:"id" form:"id"`
  335. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  336. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  337. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  338. BloodSugar float64 `gorm:"column:blood_sugar" json:"blood_sugar" form:"blood_sugar"`
  339. Pulse float64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  340. Sbp float64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  341. Dbp float64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  342. Height float64 `gorm:"column:height" json:"height" form:"height"`
  343. BloodFat float64 `gorm:"column:blood_fat" json:"blood_fat" form:"blood_fat"`
  344. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  345. Symptom string `gorm:"column:symptom" json:"symptom" form:"symptom"`
  346. SickDate int64 `gorm:"column:sick_date" json:"sick_date" form:"sick_date"`
  347. IsInfect int64 `gorm:"column:is_infect" json:"is_infect" form:"is_infect"`
  348. HistoryOfPresentIllness string `gorm:"column:history_of_present_illness" json:"history_of_present_illness" form:"history_of_present_illness"`
  349. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  350. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  351. ChiefConplaint string `gorm:"column:chief_conplaint" json:"chief_conplaint" form:"chief_conplaint"`
  352. PersonalHistory string `gorm:"column:personal_history" json:"personal_history" form:"personal_history"`
  353. FamilyHistory string `gorm:"column:family_history" json:"family_history" form:"family_history"`
  354. Diagnostic string `gorm:"column:diagnostic" json:"diagnostic" form:"diagnostic"`
  355. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  356. Status int64 `gorm:"column:status" json:"status" form:"status"`
  357. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  358. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  359. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  360. DeliveryWay int64 `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  361. Breathing float64 `gorm:"column:breathing" json:"breathing" form:"breathing"`
  362. DoctorAdvice string `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  363. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  364. Sick int64 `gorm:"column:sick" json:"sick" form:"sick"`
  365. Diagnose int64 `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  366. AllergicHistory string `gorm:"column:allergic_history" json:"allergic_history" form:"allergic_history"`
  367. PrimaryDisease string `gorm:"column:primary_disease" json:"primary_disease" form:"primary_disease"`
  368. ConfirmFailureDate int64 `gorm:"column:confirm_failure_date" json:"confirm_failure_date" form:"confirm_failure_date"`
  369. DrugAllergyHistory string `gorm:"column:drug_allergy_history" json:"drug_allergy_history" form:"drug_allergy_history"`
  370. PhysicalExamination string `gorm:"column:physical_examination" json:"physical_examination" form:"physical_examination"`
  371. SpecialInspection string `gorm:"column:special_inspection" json:"special_inspection" form:"special_inspection"`
  372. LabApparatus string `gorm:"column:lab_apparatus" json:"lab_apparatus" form:"lab_apparatus"`
  373. }
  374. func (HisPatientCaseHistory) TableName() string {
  375. return "his_patient_case_history"
  376. }
  377. type HisPrescriptionInfo struct {
  378. ID int64 `gorm:"column:id" json:"id" form:"id"`
  379. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  380. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  381. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  382. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  383. Status int64 `gorm:"column:status" json:"status" form:"status"`
  384. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  385. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  386. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  387. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  388. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  389. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  390. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  391. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  392. SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
  393. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  394. PrescriptionStatus int64 `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
  395. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  396. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  397. XtHisDepartment XtHisDepartment `gorm:"ForeignKey:ID;AssociationForeignKey:Departments" json:"department"`
  398. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  399. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  400. }
  401. func (HisPrescriptionInfo) TableName() string {
  402. return "his_prescription_info"
  403. }
  404. type TempHisOrder struct {
  405. ID int64 `gorm:"column:id" json:"id" form:"id"`
  406. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  407. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  408. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  409. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  410. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  411. Status int64 `gorm:"column:status" json:"status" form:"status"`
  412. Number string `gorm:"column:number" json:"number" form:"number"`
  413. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  414. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  415. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  416. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  417. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  418. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  419. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  420. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  421. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  422. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  423. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  424. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  425. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  426. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  427. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  428. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  429. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  430. Age float64 `gorm:"column:age" json:"age" form:"age"`
  431. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  432. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  433. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  434. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  435. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  436. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  437. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  438. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  439. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  440. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  441. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  442. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  443. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  444. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  445. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  446. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  447. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  448. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  449. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  450. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  451. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  452. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  453. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  454. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  455. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  456. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  457. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  458. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  459. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  460. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  461. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  462. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  463. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  464. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  465. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  466. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  467. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  468. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  469. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  470. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  471. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  472. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  473. DepartmentName string `gorm:"-" json:"department_name" form:"department_name"`
  474. DoctorName string `gorm:"-" json:"doctor_name" form:"doctor_name"`
  475. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  476. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  477. AccountPrice float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
  478. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  479. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  480. AdminUser AdminUser `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order_info"`
  481. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  482. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  483. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  484. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  485. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  486. }
  487. func (TempHisOrder) TableName() string {
  488. return "his_order"
  489. }
  490. type HisPrescription struct {
  491. ID int64 `gorm:"column:id" json:"id" form:"id"`
  492. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  493. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  494. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  495. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  496. Status int64 `gorm:"column:status" json:"status" form:"status"`
  497. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  498. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  499. Number string `gorm:"column:number" json:"number" form:"number"`
  500. Type int64 `gorm:"column:type" json:"type" form:"type"`
  501. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  502. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  503. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  504. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  505. PreTime int64 `gorm:"column:pre_time" json:"pre_time" form:"pre_time"`
  506. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  507. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  508. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  509. HisPatient VMHisPatient `gorm:"ForeignKey:PatientId;AssociationForeignKey:patient_id" json:"hisPatient"`
  510. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  511. HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  512. HisAdditionalCharge []*HisAdditionalCharge `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
  513. HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,RecordDate" json:"info"`
  514. Total string `gorm:"-" json:"total" form:"total"`
  515. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  516. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  517. TempHisOrder TempHisOrder `gorm:"ForeignKey:Number,MedType;AssociationForeignKey:BatchNumber,MedType" json:"order"`
  518. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  519. }
  520. func (HisPrescription) TableName() string {
  521. return "his_prescription"
  522. }
  523. type HisProject struct {
  524. ID int64 `gorm:"column:id" json:"id" form:"id"`
  525. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  526. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  527. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  528. Price float64 `gorm:"column:price" json:"price" form:"price"`
  529. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  530. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  531. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  532. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  533. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  534. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  535. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  536. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  537. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  538. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  539. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  540. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  541. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  542. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  543. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  544. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  545. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  546. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  547. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  548. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  549. Status int64 `gorm:"column:status" json:"status" form:"status"`
  550. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  551. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  552. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  553. NumberDays string `gorm:"column:number_days" json:"number_days" form:"number_days"`
  554. Total string `gorm:"column:total" json:"total" form:"total"`
  555. Category int64 `gorm:"column:category" json:"category" form:"category"`
  556. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  557. SpecailProject int64 `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
  558. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  559. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  560. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  561. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  562. }
  563. func (HisProject) TableName() string {
  564. return "xt_his_project"
  565. }
  566. type HisProjectTeam struct {
  567. ID int64 `gorm:"column:id" json:"id" form:"id"`
  568. ProjectTeam string `gorm:"column:project_team" json:"project_team" form:"project_team"`
  569. Price float64 `gorm:"column:price" json:"price" form:"price"`
  570. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  571. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  572. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  573. TeamType int64 `gorm:"column:team_type" json:"team_type" form:"team_type"`
  574. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  575. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  576. Status int64 `gorm:"column:status" json:"status" form:"status"`
  577. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  578. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  579. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  580. }
  581. func (HisProjectTeam) TableName() string {
  582. return "xt_his_project_team"
  583. }
  584. type HisAdditionalCharge struct {
  585. ID int64 `gorm:"column:id" json:"id" form:"id"`
  586. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  587. Price float64 `gorm:"column:price" json:"price" form:"price"`
  588. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  589. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  590. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  591. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  592. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  593. Status int64 `gorm:"column:status" json:"status" form:"status"`
  594. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  595. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  596. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  597. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  598. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  599. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  600. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  601. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  602. XtHisAddtionConfig XtHisAddtionConfig `gorm:"ForeignKey:ID;AssociationForeignKey:ItemId" json:"config"`
  603. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  604. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  605. Count int64 `gorm:"column:count" json:"count" form:"count"`
  606. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  607. }
  608. func (HisAdditionalCharge) TableName() string {
  609. return "his_additional_charge"
  610. }
  611. type HisDoctorAdviceParentTemplate struct {
  612. ID int64 `gorm:"column:id" json:"id" form:"id"`
  613. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  614. Name string `gorm:"column:name" json:"name" form:"name"`
  615. Status int64 `gorm:"column:status" json:"status" form:"status"`
  616. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  617. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  618. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  619. HisDoctorAdviceTemplate []*HisDoctorAdviceTemplate `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID" json:"advices"`
  620. }
  621. func (HisDoctorAdviceParentTemplate) TableName() string {
  622. return "his_doctor_advice_parent_template"
  623. }
  624. type VMDrug struct {
  625. ID int64 `gorm:"column:id" json:"id" form:"id"`
  626. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  627. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  628. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  629. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  630. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  631. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  632. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  633. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  634. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  635. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  636. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  637. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  638. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  639. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  640. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  641. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  642. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  643. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  644. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  645. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  646. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  647. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  648. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  649. Number string `gorm:"column:number" json:"number" form:"number"`
  650. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  651. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  652. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  653. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  654. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  655. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  656. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  657. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  658. Code string `gorm:"column:code" json:"code" form:"code"`
  659. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  660. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  661. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  662. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  663. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  664. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  665. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  666. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  667. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  668. Label int64 `gorm:"column:label" json:"label" form:"label"`
  669. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  670. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  671. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  672. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  673. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  674. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  675. Status int64 `gorm:"column:status" json:"status" form:"status"`
  676. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  677. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  678. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  679. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  680. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  681. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  682. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  683. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  684. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  685. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  686. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  687. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  688. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  689. Dosage string `gorm:"column:dosage" json:"dosage" form:"dosage"`
  690. Unval string `gorm:"column:unval" json:"unval" form:"unval"`
  691. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  692. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  693. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  694. Total float64 `gorm:"column:total" json:"total" form:"total"`
  695. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  696. }
  697. func (VMDrug) TableName() string {
  698. return "xt_base_drug"
  699. }
  700. type HisDoctorAdviceTemplate struct {
  701. ID int64 `gorm:"column:id" json:"id" form:"id"`
  702. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  703. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  704. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  705. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  706. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  707. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  708. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  709. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  710. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  711. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  712. Status int64 `gorm:"column:status" json:"status" form:"status"`
  713. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  714. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  715. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  716. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  717. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spechis_unit" form:"drug_spec_unit"`
  718. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  719. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  720. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  721. WeekDays string `gorm:"column:week_days" json:"week_days" form:"week_days"`
  722. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  723. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  724. Way int64 `gorm:"column:way" json:"way" form:"way"`
  725. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  726. VMDrug VMDrug `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID" json:"advices"`
  727. }
  728. func (HisDoctorAdviceTemplate) TableName() string {
  729. return "his_doctor_advice_template"
  730. }
  731. type HisPrintPrescriptionProject struct {
  732. ID int64 `gorm:"column:id" json:"id" form:"id"`
  733. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  734. Price float64 `gorm:"column:price" json:"price" form:"price"`
  735. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  736. Status int64 `gorm:"column:status" json:"status" form:"status"`
  737. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  738. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  739. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  740. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  741. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  742. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  743. Count string `gorm:"column:count" json:"count" form:"count"`
  744. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  745. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  746. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  747. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  748. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  749. Day string `gorm:"column:day" json:"day" form:"day"`
  750. HisProject HisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
  751. GoodInfo GoodInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
  752. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  753. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  754. Type int64 `gorm:"column:type" json:"type" form:"type"`
  755. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  756. ExecutionTime int64 `gborm:"column:execution_time" json:"execution_time" form:"execution_time"`
  757. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  758. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  759. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  760. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  761. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  762. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  763. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  764. XtHisProjectTeam XtHisProjectTeam `gorm:"ForeignKey:TeamId;AssociationForeignKey:ID" json:"team"`
  765. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  766. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  767. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  768. IsCheckTeam int64 `gorm:"-" json:"is_check_team" form:"is_check_team"`
  769. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  770. }
  771. func (HisPrintPrescriptionProject) TableName() string {
  772. return "his_prescription_project"
  773. }
  774. type HisPrescriptionProject struct {
  775. ID int64 `gorm:"column:id" json:"id" form:"id"`
  776. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  777. Price float64 `gorm:"column:price" json:"price" form:"price"`
  778. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  779. Status int64 `gorm:"column:status" json:"status" form:"status"`
  780. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  781. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  782. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  783. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  784. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  785. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  786. Count string `gorm:"column:count" json:"count" form:"count"`
  787. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  788. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  789. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  790. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  791. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  792. Day string `gorm:"column:day" json:"day" form:"day"`
  793. HisProject HisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
  794. GoodInfo GoodInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
  795. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  796. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  797. Type int64 `gorm:"column:type" json:"type" form:"type"`
  798. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  799. ExecutionTime int64 `gborm:"column:execution_time" json:"execution_time" form:"execution_time"`
  800. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  801. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  802. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  803. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  804. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  805. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  806. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  807. XtHisProjectTeam XtHisProjectTeam `gorm:"ForeignKey:TeamId;AssociationForeignKey:ID" json:"team"`
  808. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  809. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  810. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  811. IsCheckTeam int64 `gorm:"-" json:"is_check_team" form:"is_check_team"`
  812. HisOrderInfo HisOrderInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"order_info"`
  813. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  814. IsOut int64 `gorm:"column:is_out" json:"is_out" form:"is_out"` //新增字段
  815. }
  816. func (HisPrescriptionProject) TableName() string {
  817. return "his_prescription_project"
  818. }
  819. type SchedulesVm struct {
  820. ID int64 `gorm:"column:id" json:"id" form:"id"`
  821. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  822. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  823. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  824. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  825. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  826. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  827. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  828. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  829. Status int64 `gorm:"column:status" json:"status" form:"status"`
  830. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  831. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  832. Name string `gorm:"column:name" json:"name" form:"name"`
  833. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  834. }
  835. type HisProjectListVm struct {
  836. ID int64 `gorm:"column:id" json:"id" form:"id"`
  837. Number int64 `gorm:"column:number" json:"number" form:"number"`
  838. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  839. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  840. Status int64 `gorm:"column:status" json:"status" form:"status"`
  841. Price float64 `gorm:"column:price" json:"price" form:"price"`
  842. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  843. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  844. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  845. }
  846. type XtHisProjectList struct {
  847. ID int64 `gorm:"column:id" json:"id" form:"id"`
  848. Number int64 `gorm:"column:number" json:"number" form:"number"`
  849. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  850. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  851. Status int64 `gorm:"column:status" json:"status" form:"status"`
  852. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  853. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  854. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  855. Type int64 `gorm:"column:type" json:"type" form:"type"`
  856. XtHisProject XtHisProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  857. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"good_info"`
  858. }
  859. func (XtHisProjectList) TableName() string {
  860. return "xt_his_project_list"
  861. }
  862. type XtHisPatient struct {
  863. ID int64 `gorm:"column:id" json:"id" form:"id"`
  864. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  865. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  866. Name string `gorm:"column:name" json:"name" form:"name"`
  867. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  868. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  869. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  870. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  871. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  872. Age int64 `gorm:"column:age" json:"age" form:"age"`
  873. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  874. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  875. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  876. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  877. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  878. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  879. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  880. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  881. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  882. Total float64 `gorm:"column:total" json:"total" form:"total"`
  883. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  884. Status int64 `gorm:"column:status" json:"status" form:"status"`
  885. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  886. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  887. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  888. Number string `gorm:"column:number" json:"number" form:"number"`
  889. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  890. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  891. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  892. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  893. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  894. PType string `gorm:"column:p_type" json:"p_type" form:"p_type"`
  895. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  896. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  897. //HisOrder models.HisOrder `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,SettleAccountsDate" json:"order"`
  898. }
  899. func (XtHisPatient) TableName() string {
  900. return "his_patient"
  901. }
  902. type HisOrder struct {
  903. ID int64 `gorm:"column:id" json:"id" form:"id"`
  904. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  905. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  906. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  907. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  908. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  909. Status int64 `gorm:"column:status" json:"status" form:"status"`
  910. Number string `gorm:"column:number" json:"number" form:"number"`
  911. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  912. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  913. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  914. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  915. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  916. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  917. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  918. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  919. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  920. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  921. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  922. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  923. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  924. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  925. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  926. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  927. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  928. Age float64 `gorm:"column:age" json:"age" form:"age"`
  929. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  930. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  931. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  932. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  933. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  934. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  935. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  936. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  937. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  938. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  939. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  940. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  941. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  942. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  943. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  944. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  945. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  946. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  947. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  948. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  949. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  950. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  951. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  952. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  953. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  954. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  955. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  956. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  957. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  958. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  959. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  960. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  961. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  962. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  963. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  964. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  965. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  966. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  967. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  968. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  969. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  970. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  971. DepartmentName string `gorm:"-" json:"department_name" form:"department_name"`
  972. DoctorName string `gorm:"-" json:"doctor_name" form:"doctor_name"`
  973. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  974. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  975. Decimal float64 `gorm:"column:decimal" json:"decimal" form:"decimal"`
  976. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  977. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  978. AdminUser AdminUser `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order_info"`
  979. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  980. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  981. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  982. HisOrderInfo HisOrderInfo `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order_info"`
  983. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  984. HisPatient HisPatient `gorm:"ForeignKey:MdtrtId;AssociationForeignKey:Number" json:"his_patient"`
  985. HisHospitalCheckRecord HisHospitalCheckRecord `gorm:"ForeignKey:MdtrtId;AssociationForeignKey:Number" json:"his_hospital_patient"`
  986. HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"p_info"`
  987. HisFundSettleListResult HisFundSettleListResult `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"result"`
  988. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  989. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  990. FaPiaoBatchnumberId int64 `gorm:"column:fa_piao_batchnumber_id" json:"fa_piao_batchnumber_id" form:"fa_piao_batchnumber_id"`
  991. }
  992. func (HisOrder) TableName() string {
  993. return "his_order"
  994. }
  995. type HisOrderInfo struct {
  996. ID int64 `gorm:"column:id" json:"id" form:"id"`
  997. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  998. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  999. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  1000. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  1001. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  1002. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  1003. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1004. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  1005. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  1006. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1007. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  1008. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1009. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  1010. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  1011. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  1012. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1013. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  1014. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1015. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1016. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1017. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  1018. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1019. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  1020. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  1021. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1022. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  1023. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1024. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1025. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1026. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1027. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1028. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  1029. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  1030. //HisPrescriptionProject HisPrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  1031. //HisDoctorAdviceInfo HisDoctorAdviceInfo `gorm:"ForeignKey:ID;AssociationForeignKey:AdviceId" json:"advice"`
  1032. }
  1033. func (HisOrderInfo) TableName() string {
  1034. return "his_order_info"
  1035. }
  1036. type HisOrderInfoTwo struct {
  1037. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1038. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1039. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  1040. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  1041. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  1042. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  1043. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  1044. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1045. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  1046. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  1047. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1048. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  1049. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1050. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  1051. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  1052. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  1053. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1054. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  1055. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1056. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1057. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1058. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  1059. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1060. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  1061. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  1062. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1063. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  1064. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1065. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1066. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1067. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1068. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1069. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  1070. HisPrescriptionProject HisPrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  1071. HisDoctorAdviceInfo HisDoctorAdviceInfo `gorm:"ForeignKey:ID;AssociationForeignKey:AdviceId" json:"advice"`
  1072. }
  1073. func (HisOrderInfoTwo) TableName() string {
  1074. return "his_order_info"
  1075. }
  1076. type VMHisPatient struct {
  1077. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1078. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  1079. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1080. Name string `gorm:"column:name" json:"name" form:"name"`
  1081. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  1082. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  1083. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  1084. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1085. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1086. Age float64 `gorm:"column:age" json:"age" form:"age"`
  1087. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  1088. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  1089. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  1090. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1091. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  1092. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  1093. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  1094. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  1095. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  1096. Total float64 `gorm:"column:total" json:"total" form:"total"`
  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. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1102. Number string `gorm:"column:number" json:"number" form:"number"`
  1103. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1104. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  1105. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  1106. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  1107. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1108. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1109. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  1110. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  1111. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  1112. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  1113. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  1114. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  1115. PType string `gorm:"column:p_type" json:"p_type" form:"p_type"`
  1116. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1117. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  1118. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  1119. }
  1120. func (VMHisPatient) TableName() string {
  1121. return "his_patient"
  1122. }
  1123. type MedicalInsuranceConfig struct {
  1124. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1125. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1126. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1127. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1128. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1129. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1130. }
  1131. func (MedicalInsuranceConfig) TableName() string {
  1132. return "medical_insurance_config"
  1133. }
  1134. type HisOrderError struct {
  1135. ID int64 `gorm:"column:id" json:"id" form:"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. Number string `gorm:"column:number" json:"number" form:"number"`
  1140. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  1141. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1142. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1143. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  1144. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  1145. }
  1146. func (HisOrderError) TableName() string {
  1147. return "his_order_error"
  1148. }
  1149. type MedicalInsuranceOrgConfig struct {
  1150. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1151. Code string `gorm:"column:code" json:"code" form:"code"`
  1152. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  1153. Vpn string `gorm:"column:vpn" json:"vpn" form:"vpn"`
  1154. EleCardId string `gorm:"column:ele_card_id" json:"ele_card_id" form:"ele_card_id"`
  1155. EleCardKey string `gorm:"column:ele_card_key" json:"ele_card_key" form:"ele_card_key"`
  1156. ChannelNumber string `gorm:"column:channel_number" json:"channel_number" form:"channel_number"`
  1157. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1158. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1159. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1160. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1161. MdtrtareaAdmvs string `gorm:"column:mdtrtarea_admvs" json:"mdtrtarea_admvs" form:"mdtrtarea_admvs"`
  1162. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  1163. SecretKey string `gorm:"column:secret_key" json:"secret_key" form:"secret_key"`
  1164. AccessKey string `gorm:"column:access_key" json:"access_key" form:"access_key"`
  1165. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  1166. }
  1167. func (MedicalInsuranceOrgConfig) TableName() string {
  1168. return "medical_insurance_org_config"
  1169. }
  1170. type XtHisConfig struct {
  1171. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1172. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1173. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1174. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1175. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1176. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1177. }
  1178. func (XtHisConfig) TableName() string {
  1179. return "xt_his_config"
  1180. }
  1181. type XtHisProjectConfig struct {
  1182. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1183. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1184. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1185. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1186. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1187. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1188. }
  1189. func (XtHisProjectConfig) TableName() string {
  1190. return "xt_his_project_config"
  1191. }
  1192. type XtHisTemplate struct {
  1193. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1194. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1195. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1196. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1197. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1198. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1199. }
  1200. func (XtHisTemplate) TableName() string {
  1201. return "xt_his_template"
  1202. }
  1203. type XtHisAdviceTemplate struct {
  1204. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1205. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1206. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1207. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1208. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1209. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1210. }
  1211. func (XtHisAdviceTemplate) TableName() string {
  1212. return "xt_his_advice_template"
  1213. }
  1214. type XtHisChargeTemplate struct {
  1215. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1216. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1217. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1218. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1219. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1220. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1221. }
  1222. func (XtHisChargeTemplate) TableName() string {
  1223. return "xt_his_charge_template"
  1224. }
  1225. type XtHisTreatmentTemplate struct {
  1226. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1227. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1228. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1229. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1230. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1231. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1232. }
  1233. func (XtHisTreatmentTemplate) TableName() string {
  1234. return "xt_his_treatment_template"
  1235. }
  1236. type XtHisAdditionalCharge struct {
  1237. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1238. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1239. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1240. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1241. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1242. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1243. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1244. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1245. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1246. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  1247. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1248. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  1249. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1250. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1251. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1252. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1253. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  1254. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1255. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1256. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1257. }
  1258. func (XtHisAdditionalCharge) TableName() string {
  1259. return "his_additional_charge"
  1260. }
  1261. type XtHisMedicalTemplate struct {
  1262. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1263. Title string `gorm:"column:title" json:"title" form:"title"`
  1264. Content string `gorm:"column:content" json:"content" form:"content"`
  1265. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1266. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1267. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1268. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1269. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1270. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1271. }
  1272. func (XtHisMedicalTemplate) TableName() string {
  1273. return "xt_his_medical_template"
  1274. }
  1275. type HisXtDiagnoseConfig struct {
  1276. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1277. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  1278. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1279. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1280. ContentCode string `gorm:"column:content_code" json:"content_code" form:"content_code"`
  1281. CountryCode string `gorm:"column:country_code" json:"country_code" form:"country_code"`
  1282. CountryContentName string `gorm:"column:country_content_name" json:"country_content_name" form:"country_content_name"`
  1283. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1284. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1285. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1286. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1287. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1288. }
  1289. func (HisXtDiagnoseConfig) TableName() string {
  1290. return "his_xt_diagnose_config"
  1291. }
  1292. type BaseParams struct {
  1293. SecretKey string
  1294. FixmedinsCode string
  1295. InsuplcAdmdvs string
  1296. MdtrtareaAdmvs string
  1297. OrgName string
  1298. Doctor string
  1299. }
  1300. type BusinessParams struct {
  1301. Insutype string
  1302. ClrType string
  1303. SetlOptins string
  1304. MdtrtareaAdmvs string
  1305. StmtBegndate string
  1306. StmtEnddate string
  1307. MedfeeSumamt float64
  1308. FundPaySumamt float64
  1309. AcctPay float64
  1310. FixmedinsSetlCnt int64
  1311. FileQuryNo string
  1312. CashPayamt float64
  1313. PsnNo string
  1314. MdtrtId string
  1315. SetlId string
  1316. }
  1317. type HisFundSettleListResult struct {
  1318. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1319. Number string `gorm:"column:number" json:"number" form:"number"`
  1320. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1321. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1322. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1323. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1324. IsUpload int64 `gorm:"column:is_upload" json:"is_upload" form:"is_upload"`
  1325. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1326. }
  1327. func (HisFundSettleListResult) TableName() string {
  1328. return "his_fund_settle_list_result"
  1329. }
  1330. type HisPrescriptionTemplate struct {
  1331. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1332. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1333. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1334. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1335. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1336. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1337. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1338. Name string `gorm:"column:name" json:"name" form:"name"`
  1339. Mode int64 `gorm:"column:mode" json:"mode" form:"mode"`
  1340. }
  1341. func (HisPrescriptionTemplate) TableName() string {
  1342. return "his_prescription_template"
  1343. }
  1344. type HisPrescriptionAdviceTemplate struct {
  1345. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1346. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1347. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1348. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1349. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1350. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1351. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1352. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1353. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1354. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1355. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1356. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1357. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1358. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1359. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1360. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1361. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1362. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1363. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1364. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1365. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1366. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1367. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1368. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1369. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1370. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1371. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1372. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1373. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1374. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1375. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1376. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1377. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1378. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1379. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1380. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1381. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1382. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1383. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1384. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1385. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1386. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1387. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1388. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1389. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1390. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1391. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1392. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1393. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1394. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1395. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1396. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1397. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1398. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  1399. }
  1400. func (HisPrescriptionAdviceTemplate) TableName() string {
  1401. return "his_prescription_advice_template"
  1402. }
  1403. type HisPrescriptionProjectTemplate struct {
  1404. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1405. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1406. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1407. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1408. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1409. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1410. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1411. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1412. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1413. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1414. Count string `gorm:"column:count" json:"count" form:"count"`
  1415. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1416. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1417. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1418. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1419. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1420. Day string `gorm:"column:day" json:"day" form:"day"`
  1421. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1422. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1423. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1424. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1425. XtHisProject XtHisProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  1426. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"good_info"`
  1427. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1428. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1429. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1430. }
  1431. func (HisPrescriptionProjectTemplate) TableName() string {
  1432. return "his_prescription_project_template"
  1433. }
  1434. type HisPrescriptionInfoTemplate struct {
  1435. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1436. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1437. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1438. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1439. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1440. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1441. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1442. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1443. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1444. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1445. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  1446. PTemplateId int64 `gorm:"column:p_template_id" json:"p_template_id" form:"p_template_id"`
  1447. HisPrescriptionAdviceTemplate []*HisPrescriptionAdviceTemplate `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  1448. HisPrescriptionProjectTemplate []*HisPrescriptionProjectTemplate `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  1449. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  1450. }
  1451. func (HisPrescriptionInfoTemplate) TableName() string {
  1452. return "his_prescription_info_template"
  1453. }
  1454. type VMHisOrderInfo struct {
  1455. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1456. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1457. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  1458. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  1459. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  1460. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  1461. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  1462. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1463. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  1464. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1465. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1466. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  1467. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  1468. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1469. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1470. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  1471. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1472. HisPrescriptionProject HisPrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  1473. HisDoctorAdviceInfo HisDoctorAdviceInfo `gorm:"ForeignKey:ID;AssociationForeignKey:AdviceId" json:"advice"`
  1474. }
  1475. func (VMHisOrderInfo) TableName() string {
  1476. return "his_order_info"
  1477. }
  1478. type NewHisOrder struct {
  1479. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1480. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1481. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1482. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  1483. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1484. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1485. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1486. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1487. Number string `gorm:"column:number" json:"number" form:"number"`
  1488. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  1489. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1490. VMHisOrderInfo []*VMHisOrderInfo `gorm:"ForeignKey:Number;AssociationForeignKey:OrderNumber" json:"order_info"`
  1491. HisPatient HisPatient `gorm:"ForeignKey:MdtrtId;AssociationForeignKey:Number" json:"his_patient"`
  1492. }
  1493. func (NewHisOrder) TableName() string {
  1494. return "his_order"
  1495. }
  1496. type VMHisOrderTwo struct {
  1497. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1498. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1499. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1500. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  1501. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1502. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1503. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1504. Number string `gorm:"column:number" json:"number" form:"number"`
  1505. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1506. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  1507. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  1508. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  1509. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  1510. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  1511. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  1512. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1513. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  1514. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  1515. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  1516. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1517. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  1518. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1519. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  1520. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  1521. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  1522. Age float64 `gorm:"column:age" json:"age" form:"age"`
  1523. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  1524. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  1525. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  1526. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  1527. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  1528. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  1529. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  1530. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1531. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  1532. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1533. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1534. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  1535. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  1536. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  1537. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  1538. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  1539. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  1540. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  1541. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  1542. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  1543. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  1544. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  1545. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  1546. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  1547. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  1548. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  1549. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  1550. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  1551. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  1552. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  1553. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  1554. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  1555. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  1556. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  1557. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  1558. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  1559. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  1560. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  1561. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  1562. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  1563. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  1564. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  1565. DepartmentName string `gorm:"-" json:"department_name" form:"department_name"`
  1566. DoctorName string `gorm:"-" json:"doctor_name" form:"doctor_name"`
  1567. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1568. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  1569. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  1570. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  1571. AdminUser AdminUser `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order_info"`
  1572. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  1573. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  1574. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  1575. HisOrderInfo HisOrderInfo `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order_info"`
  1576. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  1577. HisPatient HisPatient `gorm:"ForeignKey:MdtrtId;AssociationForeignKey:Number" json:"his_patient"`
  1578. HisHospitalCheckRecord HisHospitalCheckRecord `gorm:"ForeignKey:MdtrtId,PatientId;AssociationForeignKey:Number,PatientId" json:"his_hospital_patient"`
  1579. HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"p_info"`
  1580. HisFundSettleListResult HisFundSettleListResult `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"result"`
  1581. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  1582. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1583. }
  1584. func (VMHisOrderTwo) TableName() string {
  1585. return "his_order"
  1586. }
  1587. type HisStockPriceConfig struct {
  1588. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1589. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1590. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1591. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1592. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1593. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1594. }
  1595. func (HisStockPriceConfig) TableName() string {
  1596. return "his_stock_price_config"
  1597. }
  1598. type SgjAdmin struct {
  1599. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1600. Account string `gorm:"column:account" json:"account" form:"account"`
  1601. Pwd string `gorm:"column:pwd" json:"pwd" form:"pwd"`
  1602. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1603. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1604. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1605. IsSuperAdmin int64 `gorm:"column:is_super_admin" json:"is_super_admin" form:"is_super_admin"`
  1606. Name string `gorm:"column:name" json:"name" form:"name"`
  1607. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  1608. Camera string `gorm:"column:camera" json:"camera" form:"camera"`
  1609. Wechat string `gorm:"column:wechat" json:"wechat" form:"wechat"`
  1610. Qqchat string `gorm:"column:qqchat" json:"qqchat" form:"qqchat"`
  1611. Email string `gorm:"column:email" json:"email" form:"email"`
  1612. WechatLink string `gorm:"column:wechat_link" json:"wechat_link" form:"wechat_link"`
  1613. }
  1614. func (SgjAdmin) TableName() string {
  1615. return "sgj_admin"
  1616. }
  1617. type SgjOrgFollowOne struct {
  1618. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1619. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1620. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1621. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1622. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1623. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1624. }
  1625. func (SgjOrgFollowOne) TableName() string {
  1626. return "sgj_org_follow"
  1627. }
  1628. type SgjOrgFollow struct {
  1629. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1630. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1631. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1632. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1633. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1634. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1635. Name string `gorm:"column:name" json:"name" form:"name"`
  1636. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  1637. Camera string `gorm:"column:camera" json:"camera" form:"camera"`
  1638. Wechat string `gorm:"column:wechat" json:"wechat" form:"wechat"`
  1639. Qqchat string `gorm:"column:qqchat" json:"qqchat" form:"qqchat"`
  1640. Email string `gorm:"column:email" json:"email" form:"email"`
  1641. WechatLink string `gorm:"column:wechat_link" json:"wechat_link" form:"wechat_link"`
  1642. }
  1643. type NewCustomHisOrder struct {
  1644. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1645. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1646. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1647. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  1648. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1649. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1650. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1651. Number string `gorm:"column:number" json:"number" form:"number"`
  1652. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1653. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  1654. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  1655. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  1656. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  1657. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  1658. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  1659. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1660. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  1661. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  1662. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  1663. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1664. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  1665. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1666. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  1667. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  1668. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  1669. Age float64 `gorm:"column:age" json:"age" form:"age"`
  1670. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  1671. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  1672. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  1673. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  1674. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  1675. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  1676. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  1677. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1678. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  1679. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1680. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1681. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  1682. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  1683. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  1684. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  1685. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  1686. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  1687. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  1688. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  1689. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  1690. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  1691. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  1692. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  1693. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  1694. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  1695. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  1696. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  1697. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  1698. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  1699. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  1700. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  1701. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  1702. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  1703. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  1704. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  1705. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  1706. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  1707. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  1708. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  1709. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  1710. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  1711. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  1712. DepartmentName string `gorm:"-" json:"department_name" form:"department_name"`
  1713. DoctorName string `gorm:"-" json:"doctor_name" form:"doctor_name"`
  1714. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1715. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  1716. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  1717. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  1718. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  1719. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  1720. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  1721. NewCustomHisOrderInfo NewCustomHisOrderInfo `gorm:"ForeignKey:Number;AssociationForeignKey:OrderNumber" json:"order_info"`
  1722. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  1723. }
  1724. func (NewCustomHisOrder) TableName() string {
  1725. return "his_order"
  1726. }
  1727. type NewCustomHisOrderInfo struct {
  1728. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1729. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1730. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  1731. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  1732. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  1733. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  1734. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  1735. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1736. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  1737. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  1738. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1739. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  1740. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1741. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  1742. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  1743. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  1744. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1745. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  1746. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1747. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1748. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1749. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  1750. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1751. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  1752. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  1753. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1754. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  1755. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1756. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1757. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1758. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1759. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1760. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  1761. NewCustomHisPrescriptionProject NewCustomHisPrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  1762. //HisDoctorAdviceInfo HisDoctorAdviceInfo `gorm:"ForeignKey:ID;AssociationForeignKey:AdviceId" json:"advice"`
  1763. }
  1764. func (NewCustomHisOrderInfo) TableName() string {
  1765. return "his_order_info"
  1766. }
  1767. type NewCustomHisPrescriptionProject struct {
  1768. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1769. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1770. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1771. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1772. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1773. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1774. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1775. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1776. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1777. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1778. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1779. Count string `gorm:"column:count" json:"count" form:"count"`
  1780. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1781. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1782. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1783. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1784. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1785. Day string `gorm:"column:day" json:"day" form:"day"`
  1786. HisProject HisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
  1787. GoodInfo GoodInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
  1788. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1789. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1790. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1791. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1792. ExecutionTime int64 `gborm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1793. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1794. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1795. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1796. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1797. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1798. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1799. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1800. XtHisProjectTeam XtHisProjectTeam `gorm:"ForeignKey:TeamId;AssociationForeignKey:ID" json:"team"`
  1801. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1802. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1803. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1804. IsCheckTeam int64 `gorm:"-" json:"is_check_team" form:"is_check_team"`
  1805. HisOrderInfo HisOrderInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"order_info"`
  1806. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1807. }
  1808. func (NewCustomHisPrescriptionProject) TableName() string {
  1809. return "his_prescription_project"
  1810. }
  1811. type HisYidiClearRecord struct {
  1812. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1813. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1814. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1815. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1816. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1817. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1818. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  1819. MdtrtSetlTime string `gorm:"column:mdtrt_setl_time" json:"mdtrt_setl_time" form:"mdtrt_setl_time"`
  1820. SetlSn string `gorm:"column:setl_sn" json:"setl_sn" form:"setl_sn"`
  1821. MedfeeSumant float64 `gorm:"column:medfee_sumant" json:"medfee_sumant" form:"medfee_sumant"`
  1822. OptinsPaySumamt float64 `gorm:"column:optins_pay_sumamt" json:"optins_pay_sumamt" form:"optins_pay_sumamt"`
  1823. CnfmFlag int64 `gorm:"column:cnfm_flag" json:"cnfm_flag" form:"cnfm_flag"`
  1824. MsgId string `gorm:"column:msg_id" json:"msg_id" form:"msg_id"`
  1825. }
  1826. func (HisYidiClearRecord) TableName() string {
  1827. return "his_yidi_clear_record"
  1828. }
  1829. type HisPrescriptionProjectTwo struct {
  1830. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1831. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1832. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1833. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1834. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1835. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1836. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1837. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1838. Count string `gorm:"column:count" json:"count" form:"count"`
  1839. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1840. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1841. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1842. ExecutionTime int64 `gborm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1843. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1844. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1845. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1846. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1847. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1848. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1849. }
  1850. func (HisPrescriptionProjectTwo) TableName() string {
  1851. return "his_prescription_project"
  1852. }
  1853. type Reg struct {
  1854. DeptId string
  1855. PatientId string
  1856. PatientName string
  1857. DoctorId string
  1858. RegDate string
  1859. RegFee string
  1860. TreatFee string
  1861. OperatorId string
  1862. IdCardNo string
  1863. }
  1864. type NewCustomTwo struct {
  1865. DetItemFeeSumamt string
  1866. Cut string
  1867. FeedetlSn string
  1868. Price string
  1869. MedListCodg string
  1870. Type int64
  1871. AdviceId int64
  1872. ProjectId int64
  1873. ItemId int64
  1874. }
  1875. type VmHisOrder struct {
  1876. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1877. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1878. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1879. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  1880. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1881. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1882. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1883. Number string `gorm:"column:number" json:"number" form:"number"`
  1884. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1885. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  1886. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  1887. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  1888. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  1889. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  1890. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  1891. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1892. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  1893. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  1894. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  1895. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1896. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  1897. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1898. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  1899. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  1900. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  1901. Age float64 `gorm:"column:age" json:"age" form:"age"`
  1902. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  1903. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  1904. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  1905. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  1906. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  1907. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  1908. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  1909. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1910. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  1911. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1912. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1913. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  1914. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  1915. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  1916. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  1917. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  1918. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  1919. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  1920. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  1921. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  1922. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  1923. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  1924. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  1925. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  1926. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  1927. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  1928. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  1929. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  1930. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  1931. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  1932. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  1933. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  1934. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  1935. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  1936. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  1937. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  1938. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  1939. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  1940. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  1941. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  1942. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  1943. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  1944. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  1945. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  1946. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  1947. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1948. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  1949. SzChargeInfo string `gorm:"column:sz_charge_info" json:"sz_charge_info" form:"sz_charge_info"`
  1950. SzProjectInfo string `gorm:"column:sz_project_info" json:"sz_project_info" form:"sz_project_info"`
  1951. SzMedicineInsuranceInfo string `gorm:"column:sz_medicine_insurance_info" json:"sz_medicine_insurance_info" form:"sz_medicine_insurance_info"`
  1952. AccountPrice float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
  1953. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  1954. OrgSetlNumber string `gorm:"column:org_setl_number" json:"org_setl_number" form:"org_setl_number"`
  1955. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  1956. RefundLog string `gorm:"column:refund_log" json:"refund_log" form:"refund_log"`
  1957. DetailLog string `gorm:"column:detail_log" json:"detail_log" form:"detail_log"`
  1958. RequestLog string `gorm:"column:request_log" json:"request_log" form:"request_log"`
  1959. RefundRequestLog string `gorm:"column:refund_request_log" json:"refund_request_log" form:"refund_request_log"`
  1960. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  1961. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  1962. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  1963. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  1964. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1965. FaPiaoBatchnumberId int64 `gorm:"column:fa_piao_batchnumber_id" json:"fa_piao_batchnumber_id" form:"fa_piao_batchnumber_id"`
  1966. Decimal float64 `gorm:"column:decimal" json:"decimal" form:"decimal"`
  1967. }
  1968. func (VmHisOrder) TableName() string {
  1969. return "his_order"
  1970. }
  1971. type NewHisOrderTwo struct {
  1972. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1973. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1974. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1975. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  1976. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1977. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1978. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1979. Number string `gorm:"column:number" json:"number" form:"number"`
  1980. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1981. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1982. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  1983. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1984. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  1985. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1986. NewHisChargeOrderInfo []*NewHisChargeOrderInfo `gorm:"ForeignKey:OrderNumber;AssociationForeignKey:Number" json:"info"`
  1987. NewHisHospitalCheckRecord NewHisHospitalCheckRecord `gorm:"ForeignKey:Number;AssociationForeignKey:Number" json:"his"`
  1988. }
  1989. func (NewHisOrderTwo) TableName() string {
  1990. return "his_order"
  1991. }
  1992. type NewHisChargeOrderInfo struct {
  1993. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1994. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1995. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  1996. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  1997. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  1998. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  1999. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  2000. Status int64 `gorm:"column:status" json:"status" form:"status"`
  2001. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  2002. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  2003. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  2004. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  2005. Type int64 `gorm:"column:type" json:"type" form:"type"`
  2006. HisChargePrescriptionProject HisChargePrescriptionProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
  2007. HisChargeDoctorAdviceInfo HisChargeDoctorAdviceInfo `gorm:"ForeignKey:AdviceId;AssociationForeignKey:ID" json:"advice"`
  2008. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  2009. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  2010. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  2011. }
  2012. func (NewHisChargeOrderInfo) TableName() string {
  2013. return "his_order_info"
  2014. }
  2015. type NewHisHospitalCheckRecord struct {
  2016. ID int64 `gorm:"column:id" json:"id" form:"id"`
  2017. Number string `gorm:"column:number" json:"number" form:"number"`
  2018. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  2019. InHosptialTime string `gorm:"column:in_hosptial_time" json:"in_hosptial_time" form:"in_hosptial_time"`
  2020. OutHosptialTime string `gorm:"column:out_hosptial_time" json:"out_hosptial_time" form:"out_hosptial_time"`
  2021. }
  2022. func (NewHisHospitalCheckRecord) TableName() string {
  2023. return "his_hospital_check_record"
  2024. }
  2025. type HisOrderTenty struct {
  2026. ID int64 `gorm:"column:id" json:"id" form:"id"`
  2027. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  2028. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  2029. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  2030. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  2031. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  2032. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  2033. Status int64 `gorm:"column:status" json:"status" form:"status"`
  2034. Number string `gorm:"column:number" json:"number" form:"number"`
  2035. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  2036. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  2037. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  2038. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  2039. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  2040. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  2041. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  2042. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  2043. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  2044. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  2045. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  2046. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  2047. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  2048. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  2049. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  2050. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  2051. Age float64 `gorm:"column:age" json:"age" form:"age"`
  2052. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  2053. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  2054. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  2055. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  2056. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  2057. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  2058. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  2059. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  2060. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  2061. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  2062. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  2063. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  2064. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  2065. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  2066. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  2067. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  2068. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  2069. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  2070. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  2071. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  2072. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  2073. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  2074. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  2075. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  2076. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  2077. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  2078. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  2079. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  2080. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  2081. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  2082. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  2083. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  2084. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  2085. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  2086. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  2087. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  2088. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  2089. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  2090. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  2091. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  2092. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  2093. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  2094. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  2095. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  2096. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  2097. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  2098. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  2099. SzChargeInfo string `gorm:"column:sz_charge_info" json:"sz_charge_info" form:"sz_charge_info"`
  2100. SzProjectInfo string `gorm:"column:sz_project_info" json:"sz_project_info" form:"sz_project_info"`
  2101. SzMedicineInsuranceInfo string `gorm:"column:sz_medicine_insurance_info" json:"sz_medicine_insurance_info" form:"sz_medicine_insurance_info"`
  2102. AccountPrice string `gorm:"column:account_price" json:"account_price" form:"account_price"`
  2103. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  2104. OrgSetlNumber string `gorm:"column:org_setl_number" json:"org_setl_number" form:"org_setl_number"`
  2105. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  2106. RefundLog string `gorm:"column:refund_log" json:"refund_log" form:"refund_log"`
  2107. DetailLog string `gorm:"column:detail_log" json:"detail_log" form:"detail_log"`
  2108. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  2109. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  2110. RequestLog string `gorm:"column:request_log" json:"request_log" form:"request_log"`
  2111. RefundRequestLog string `gorm:"column:refund_request_log" json:"refund_request_log" form:"refund_request_log"`
  2112. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  2113. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  2114. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  2115. FaPiaoBatchnumberId int64 `gorm:"column:fa_piao_batchnumber_id" json:"fa_piao_batchnumber_id" form:"fa_piao_batchnumber_id"`
  2116. Decimal float64 `gorm:"column:decimal" json:"decimal" form:"decimal"`
  2117. HisOrderInfoTwenty []*HisOrderInfoTwenty `gorm:"ForeignKey:OrderId;AssociationForeignKey:ID" json:"order_info"`
  2118. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  2119. HisHospitalCheckRecordTwenty HisHospitalCheckRecordTwenty `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"hisPatient"`
  2120. }
  2121. func (HisOrderTenty) TableName() string {
  2122. return "his_order"
  2123. }
  2124. type HisOrderInfoTwenty struct {
  2125. ID int64 `gorm:"column:id" json:"id" form:"id"`
  2126. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  2127. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  2128. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  2129. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  2130. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  2131. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  2132. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  2133. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  2134. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  2135. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  2136. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  2137. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  2138. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  2139. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  2140. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  2141. Status int64 `gorm:"column:status" json:"status" form:"status"`
  2142. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  2143. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  2144. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  2145. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  2146. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  2147. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  2148. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  2149. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  2150. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  2151. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  2152. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  2153. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  2154. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  2155. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  2156. Type int64 `gorm:"column:type" json:"type" form:"type"`
  2157. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  2158. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  2159. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  2160. OverPricPsnPay float64 `gorm:"column:over_pric_psn_pay" json:"over_pric_psn_pay" form:"over_pric_psn_pay"`
  2161. AllowReimburse float64 `gorm:"column:allow_reimburse" json:"allow_reimburse" form:"allow_reimburse"`
  2162. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  2163. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  2164. HisHospitalCheckRecordTwenty HisHospitalCheckRecordTwenty `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"hisPatient"`
  2165. HisOrderTenty HisOrderTenty `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order"`
  2166. HisPrescriptionProject HisPrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"his_prescription_project"`
  2167. HisDoctorAdvice HisDoctorAdvice `gorm:"ForeignKey:ID;AssociationForeignKey:AdviceId" json:"his_doctor_advice"`
  2168. }
  2169. func (HisOrderInfoTwenty) TableName() string {
  2170. return "his_order_info"
  2171. }
  2172. type HisHospitalCheckRecordTwenty struct {
  2173. ID int64 `gorm:"column:id" json:"id" form:"id"`
  2174. Name string `gorm:"column:name" json:"name" form:"name"`
  2175. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  2176. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  2177. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  2178. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  2179. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  2180. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  2181. Status int64 `gorm:"column:status" json:"status" form:"status"`
  2182. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  2183. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  2184. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  2185. Number string `gorm:"column:number" json:"number" form:"number"`
  2186. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  2187. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  2188. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  2189. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  2190. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  2191. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  2192. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  2193. MedType int64 `gorm:"column:med_type" json:"med_type" form:"med_type"`
  2194. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  2195. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  2196. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  2197. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  2198. AdmBed int64 `gorm:"column:adm_bed" json:"adm_bed" form:"adm_bed"`
  2199. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  2200. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  2201. InsutypeType string `gorm:"column:insutype_type" json:"insutype_type" form:"insutype_type"`
  2202. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  2203. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  2204. InHosptialTime string `gorm:"column:in_hosptial_time" json:"in_hosptial_time" form:"in_hosptial_time"`
  2205. OutHosptialTime string `gorm:"column:out_hosptial_time" json:"out_hosptial_time" form:"out_hosptial_time"`
  2206. InHospitalStatus int64 `gorm:"column:in_hospital_status" json:"in_hospital_status" form:"in_hospital_status"`
  2207. Certificates int64 `gorm:"column:certificates" json:"certificates" form:"certificates"`
  2208. OutHospitalStatus int64 `gorm:"column:out_hospital_status" json:"out_hospital_status" form:"out_hospital_status"`
  2209. OutWay int64 `gorm:"column:out_way" json:"out_way" form:"out_way"`
  2210. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  2211. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  2212. PsnType int64 `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  2213. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  2214. }
  2215. func (HisHospitalCheckRecordTwenty) TableName() string {
  2216. return "his_hospital_check_record"
  2217. }
  2218. type UploadInfo struct {
  2219. Bce02a string `json:"bce02a"`
  2220. Bck01c string `json:"bck01c"`
  2221. Diag []*Diag
  2222. Fasong string `json:"fasong"`
  2223. PresInfo []*PresInfo
  2224. Vaa01 int `json:"vaa01"`
  2225. Vaa07 int `json:"vaa07"`
  2226. }
  2227. type Diag struct {
  2228. Bak02 string `json:"bak02"`
  2229. Vao06 string `json:"vao06"`
  2230. }
  2231. type PresDetail struct {
  2232. Item []*Item
  2233. Vaf59 string `json:"vaf59"`
  2234. }
  2235. type PresInfo struct {
  2236. Cbm06 string `json:"cbm06"`
  2237. Cbm07 string `json:"cbm07"`
  2238. Cbmid string `json:"cbmid"`
  2239. PresDetail []*PresDetail
  2240. }
  2241. type Item struct {
  2242. Bbx01 string `json:"bbx01"`
  2243. Bby01 string `json:"bby01"`
  2244. Bck01b string `json:"bck01b"`
  2245. Bck01d string `json:"bck01d"`
  2246. Bda01 string `json:"bda01"`
  2247. Bdi01 string `json:"bdi01"`
  2248. Rownr string `json:"rownr"`
  2249. Vaf11 string `json:"vaf11"`
  2250. Vaf14 string `json:"vaf14"`
  2251. Vaf15 string `json:"vaf15"`
  2252. Vaf17 string `json:"vaf17"`
  2253. Vaf18 int `json:"vaf18"`
  2254. Vaf19 string `json:"vaf19"`
  2255. Vaf20 string `json:"vaf20"`
  2256. Vaf21 string `json:"vaf21"`
  2257. Vaf22 string `json:"vaf22"`
  2258. Vaf32 string `json:"vaf32"`
  2259. Vaf35 string `json:"vaf35"`
  2260. Vaf36 string `json:"vaf36"`
  2261. Vaf58 string `json:"vaf58"`
  2262. Vaf61 string `json:"vaf61"`
  2263. }
  2264. type HisSettleStockConfig struct {
  2265. ID int64 `gorm:"column:id" json:"id" form:"id"`
  2266. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  2267. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  2268. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  2269. Status int64 `gorm:"column:status" json:"status" form:"status"`
  2270. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  2271. }
  2272. func (HisSettleStockConfig) TableName() string {
  2273. return "his_settle_stock_config"
  2274. }
  2275. type XtGoodOutConfig struct {
  2276. ID int64 `gorm:"column:id" json:"id" form:"id"`
  2277. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  2278. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  2279. Status int64 `gorm:"column:status" json:"status" form:"status"`
  2280. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  2281. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  2282. }
  2283. func (XtGoodOutConfig) TableName() string {
  2284. return "xt_good_out_config"
  2285. }
  2286. type GoodHisPrescriptionProject struct {
  2287. ID int64 `gorm:"column:id" json:"id" form:"id"`
  2288. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  2289. Price float64 `gorm:"column:price" json:"price" form:"price"`
  2290. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  2291. Status int64 `gorm:"column:status" json:"status" form:"status"`
  2292. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  2293. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  2294. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  2295. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  2296. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  2297. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  2298. Count string `gorm:"column:count" json:"count" form:"count"`
  2299. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  2300. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  2301. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  2302. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  2303. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  2304. Day string `gorm:"column:day" json:"day" form:"day"`
  2305. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  2306. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  2307. Type int64 `gorm:"column:type" json:"type" form:"type"`
  2308. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  2309. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  2310. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  2311. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  2312. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  2313. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  2314. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  2315. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  2316. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  2317. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  2318. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  2319. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  2320. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  2321. IsOut int64 `gorm:"column:is_out" json:"is_out" form:"is_out"`
  2322. }
  2323. func (GoodHisPrescriptionProject) TableName() string {
  2324. return "his_prescription_project"
  2325. }