his_models.go 208KB

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