his_models.go 137KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073
  1. package models
  2. import (
  3. "encoding/xml"
  4. "fmt"
  5. "time"
  6. )
  7. type XtHisProject struct {
  8. ID int64 `gorm:"column:id" json:"id" form:"id"`
  9. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  10. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  11. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  12. Price float64 `gorm:"column:price" json:"price" form:"price"`
  13. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  14. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  15. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  16. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  17. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  18. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  19. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  20. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  21. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  22. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  23. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  24. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  25. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  26. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  27. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  28. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  29. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  30. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  31. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  32. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  33. Status int64 `gorm:"column:status" json:"status" form:"status"`
  34. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  35. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  36. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  37. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  38. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  39. NumberDays string `gorm:"column:number_days" json:"number_days" form:"number_days"`
  40. Total string `gorm:"column:total" json:"total" form:"total"`
  41. Vaf14 string `gorm:"column:vaf14" json:"vaf14" form:"vaf14"`
  42. }
  43. func (XtHisProject) TableName() string {
  44. return "xt_his_project"
  45. }
  46. type XtHisProjectTeam struct {
  47. ID int64 `gorm:"column:id" json:"id" form:"id"`
  48. ProjectTeam string `gorm:"column:project_team" json:"project_team" form:"project_team"`
  49. Price float64 `gorm:"column:price" json:"price" form:"price"`
  50. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  51. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  52. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  53. TeamType int64 `gorm:"column:team_type" json:"team_type" form:"team_type"`
  54. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  55. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  56. Status int64 `gorm:"column:status" json:"status" form:"status"`
  57. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  58. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  59. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  60. Bbx01 string `gorm:"column:bbx01" json:"bbx01" form:"bbx01"`
  61. }
  62. func (XtHisProjectTeam) TableName() string {
  63. return "xt_his_project_team"
  64. }
  65. type XtHisDepartment struct {
  66. ID int64 `gorm:"column:id" json:"id" form:"id"`
  67. Name string `gorm:"column:name" json:"name" form:"name"`
  68. Number string `gorm:"column:number" json:"number" form:"number"`
  69. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  70. Status int64 `gorm:"column:status" json:"status" form:"status"`
  71. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  72. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  73. }
  74. func (XtHisDepartment) TableName() string {
  75. return "xt_his_department"
  76. }
  77. type HisPatient struct {
  78. ID int64 `gorm:"column:id" json:"id" form:"id"`
  79. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  80. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  81. Name string `gorm:"column:name" json:"name" form:"name"`
  82. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  83. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  84. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  85. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  86. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  87. Age int64 `gorm:"column:age" json:"age" form:"age"`
  88. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  89. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  90. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  91. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  92. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  93. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  94. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  95. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  96. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  97. Total float64 `gorm:"column:total" json:"total" form:"total"`
  98. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  99. Status int64 `gorm:"column:status" json:"status" form:"status"`
  100. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  101. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  102. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  103. Number string `gorm:"column:number" json:"number" form:"number"`
  104. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  105. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  106. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  107. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  108. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  109. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  110. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  111. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  112. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  113. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  114. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  115. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  116. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  117. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  118. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  119. PType string `gorm:"column:p_type" json:"p_type" form:"p_type"`
  120. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  121. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  122. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  123. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  124. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  125. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  126. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  127. MdtrtGrpType string `gorm:"column:mdtrt_grp_type" json:"mdtrt_grp_type" form:"mdtrt_grp_type"`
  128. }
  129. func (HisPatient) TableName() string {
  130. return "his_patient"
  131. }
  132. type HisPrescriptionVm struct {
  133. ID int64 `gorm:"column:id" json:"id" form:"id"`
  134. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  135. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  136. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  137. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  138. Status int64 `gorm:"column:status" json:"status" form:"status"`
  139. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  140. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  141. Number string `gorm:"column:number" json:"number" form:"number"`
  142. Type int64 `gorm:"column:type" json:"type" form:"type"`
  143. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  144. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  145. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  146. Name string
  147. }
  148. type HisCaseHistoryTemplate struct {
  149. ID int64 `gorm:"column:id" json:"id" form:"id"`
  150. HistoryOfPresentIllness string `gorm:"column:history_of_present_illness" json:"history_of_present_illness" form:"history_of_present_illness"`
  151. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  152. ChiefConplaint string `gorm:"column:chief_conplaint" json:"chief_conplaint" form:"chief_conplaint"`
  153. PersonalHistory string `gorm:"column:personal_history" json:"personal_history" form:"personal_history"`
  154. FamilyHistory string `gorm:"column:family_history" json:"family_history" form:"family_history"`
  155. Diagnostic string `gorm:"column:diagnostic" json:"diagnostic" form:"diagnostic"`
  156. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  157. Status int64 `gorm:"column:status" json:"status" form:"status"`
  158. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  159. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  160. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  161. TemplateName string `gorm:"column:template_name" json:"template_name" form:"template_name"`
  162. TemplateRemark string `gorm:"column:template_remark" json:"template_remark" form:"template_remark"`
  163. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  164. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  165. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  166. DoctorAdvice string `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  167. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  168. }
  169. func (HisCaseHistoryTemplate) TableName() string {
  170. return "his_case_history_template"
  171. }
  172. type HisDoctorAdviceInfo struct {
  173. ID int64 `gorm:"column:id" json:"id" form:"id"`
  174. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  175. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  176. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  177. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  178. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  179. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  180. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  181. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  182. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  183. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  184. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  185. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  186. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  187. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  188. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  189. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  190. Status int64 `gorm:"column:status" json:"status" form:"status"`
  191. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  192. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  193. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  194. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  195. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  196. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  197. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  198. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  199. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  200. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  201. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  202. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  203. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  204. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  205. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  206. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  207. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  208. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  209. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  210. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  211. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  212. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  213. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  214. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  215. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  216. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  217. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  218. Price float64 `gorm:"column:price" json:"price" form:"price"`
  219. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  220. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  221. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  222. Day int64 `gorm:"column:day" json:"day" form:"day"`
  223. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  224. DrugWayCount string `gorm:"column:drug_way_count" json:"drug_way_count" form:"drug_way_count"`
  225. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  226. NewGroupno string `gorm:"column:-" json:"new_groupno" form:"new_groupno"`
  227. Newfn string `gorm:"column:-" json:"newfn" form:"newfn"`
  228. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug"`
  229. }
  230. func (HisDoctorAdviceInfo) TableName() string {
  231. return "his_doctor_advice_info"
  232. }
  233. type HisGroupAdvice struct {
  234. HisDoctorAdviceInfo
  235. Children []*HisGroupAdvice
  236. }
  237. type HisPatientCaseHistory struct {
  238. ID int64 `gorm:"column:id" json:"id" form:"id"`
  239. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  240. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  241. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  242. BloodSugar float64 `gorm:"column:blood_sugar" json:"blood_sugar" form:"blood_sugar"`
  243. Pulse float64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  244. Sbp float64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  245. Dbp float64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  246. Height float64 `gorm:"column:height" json:"height" form:"height"`
  247. BloodFat float64 `gorm:"column:blood_fat" json:"blood_fat" form:"blood_fat"`
  248. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  249. Symptom string `gorm:"column:symptom" json:"symptom" form:"symptom"`
  250. SickDate int64 `gorm:"column:sick_date" json:"sick_date" form:"sick_date"`
  251. IsInfect int64 `gorm:"column:is_infect" json:"is_infect" form:"is_infect"`
  252. HistoryOfPresentIllness string `gorm:"column:history_of_present_illness" json:"history_of_present_illness" form:"history_of_present_illness"`
  253. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  254. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  255. ChiefConplaint string `gorm:"column:chief_conplaint" json:"chief_conplaint" form:"chief_conplaint"`
  256. PersonalHistory string `gorm:"column:personal_history" json:"personal_history" form:"personal_history"`
  257. FamilyHistory string `gorm:"column:family_history" json:"family_history" form:"family_history"`
  258. Diagnostic string `gorm:"column:diagnostic" json:"diagnostic" form:"diagnostic"`
  259. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  260. Status int64 `gorm:"column:status" json:"status" form:"status"`
  261. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  262. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  263. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  264. DeliveryWay int64 `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  265. Breathing float64 `gorm:"column:breathing" json:"breathing" form:"breathing"`
  266. DoctorAdvice string `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  267. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  268. Sick int64 `gorm:"column:sick" json:"sick" form:"sick"`
  269. Diagnose int64 `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  270. }
  271. func (HisPatientCaseHistory) TableName() string {
  272. return "his_patient_case_history"
  273. }
  274. type HisPrescriptionInfo struct {
  275. ID int64 `gorm:"column:id" json:"id" form:"id"`
  276. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  277. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  278. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  279. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  280. Status int64 `gorm:"column:status" json:"status" form:"status"`
  281. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  282. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  283. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  284. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  285. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  286. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  287. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  288. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  289. SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
  290. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  291. PrescriptionStatus int64 `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
  292. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  293. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  294. XtHisDepartment XtHisDepartment `gorm:"ForeignKey:ID;AssociationForeignKey:Departments" json:"department"`
  295. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  296. }
  297. func (HisPrescriptionInfo) TableName() string {
  298. return "his_prescription_info"
  299. }
  300. type HisPrescription struct {
  301. ID int64 `gorm:"column:id" json:"id" form:"id"`
  302. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  303. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  304. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  305. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  306. Status int64 `gorm:"column:status" json:"status" form:"status"`
  307. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  308. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  309. Number string `gorm:"column:number" json:"number" form:"number"`
  310. Type int64 `gorm:"column:type" json:"type" form:"type"`
  311. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  312. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  313. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  314. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  315. PreTime int64 `gorm:"column:pre_time" json:"pre_time" form:"pre_time"`
  316. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  317. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  318. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  319. HisPatient VMHisPatient `gorm:"ForeignKey:PatientId;AssociationForeignKey:patient_id" json:"hisPatient"`
  320. HisDoctorAdviceInfo []HisDoctorAdviceInfo `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  321. HisPrescriptionProject []HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  322. HisAdditionalCharge []HisAdditionalCharge `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
  323. VMHisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,RecordDate" json:"info"`
  324. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  325. Cbm01 string `gorm:"column:cbm01" json:"cbm01" form:"cbm01"`
  326. Cbm07 string `gorm:"column:cbm07" json:"cbm07" form:"cbm07"`
  327. }
  328. func (HisPrescription) TableName() string {
  329. return "his_prescription"
  330. }
  331. type HisProject struct {
  332. ID int64 `gorm:"column:id" json:"id" form:"id"`
  333. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  334. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  335. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  336. Price float64 `gorm:"column:price" json:"price" form:"price"`
  337. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  338. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  339. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  340. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  341. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  342. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  343. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  344. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  345. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  346. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  347. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  348. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  349. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  350. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  351. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  352. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  353. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  354. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  355. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  356. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  357. Status int64 `gorm:"column:status" json:"status" form:"status"`
  358. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  359. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  360. ZuobiaoId string `gorm:"column:zuobiao_id" json:"zuobiao_id" form:"zuobiao_id"`
  361. Bck01b string `gorm:"column:bck01b" json:"bck01b" form:"bck01b"`
  362. Bby01 string `gorm:"column:bby01" json:"bby01" form:"bby01"`
  363. Vaf14 string `gorm:"column:vaf14" json:"vaf14" form:"vaf14"`
  364. }
  365. func (HisProject) TableName() string {
  366. return "xt_his_project"
  367. }
  368. type HisProjectTeam struct {
  369. ID int64 `gorm:"column:id" json:"id" form:"id"`
  370. ProjectTeam string `gorm:"column:project_team" json:"project_team" form:"project_team"`
  371. Price float64 `gorm:"column:price" json:"price" form:"price"`
  372. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  373. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  374. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  375. TeamType int64 `gorm:"column:team_type" json:"team_type" form:"team_type"`
  376. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  377. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  378. Status int64 `gorm:"column:status" json:"status" form:"status"`
  379. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  380. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  381. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  382. }
  383. func (HisProjectTeam) TableName() string {
  384. return "xt_his_project_team"
  385. }
  386. type HisAdditionalCharge struct {
  387. ID int64 `gorm:"column:id" json:"id" form:"id"`
  388. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  389. Price float64 `gorm:"column:price" json:"price" form:"price"`
  390. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  391. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  392. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  393. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  394. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  395. Status int64 `gorm:"column:status" json:"status" form:"status"`
  396. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  397. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  398. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  399. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  400. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  401. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  402. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  403. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  404. XtHisAddtionConfig XtHisAddtionConfig `gorm:"ForeignKey:ID;AssociationForeignKey:ItemId" json:"config"`
  405. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  406. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  407. Count int64 `gorm:"column:count" json:"count" form:"count"`
  408. }
  409. func (HisAdditionalCharge) TableName() string {
  410. return "his_additional_charge"
  411. }
  412. type HisDoctorAdviceParentTemplate struct {
  413. ID int64 `gorm:"column:id" json:"id" form:"id"`
  414. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  415. Name string `gorm:"column:name" json:"name" form:"name"`
  416. Status int64 `gorm:"column:status" json:"status" form:"status"`
  417. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  418. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  419. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  420. HisDoctorAdviceTemplate []*HisDoctorAdviceTemplate `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID" json:"advices"`
  421. }
  422. func (HisDoctorAdviceParentTemplate) TableName() string {
  423. return "his_doctor_advice_parent_template"
  424. }
  425. type VMDrug struct {
  426. ID int64 `gorm:"column:id" json:"id" form:"id"`
  427. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  428. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  429. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  430. Status int64 `gorm:"column:status" json:"status" form:"status"`
  431. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  432. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  433. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number"`
  434. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  435. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  436. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  437. }
  438. func (VMDrug) TableName() string {
  439. return "xt_base_drug"
  440. }
  441. type HisDoctorAdviceTemplate struct {
  442. ID int64 `gorm:"column:id" json:"id" form:"id"`
  443. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  444. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  445. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  446. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  447. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  448. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  449. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  450. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  451. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  452. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  453. Status int64 `gorm:"column:status" json:"status" form:"status"`
  454. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  455. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  456. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  457. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  458. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  459. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  460. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  461. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  462. WeekDays string `gorm:"column:week_days" json:"week_days" form:"week_days"`
  463. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  464. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  465. Way int64 `gorm:"column:way" json:"way" form:"way"`
  466. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  467. VMDrug VMDrug `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID" json:"advices"`
  468. }
  469. func (HisDoctorAdviceTemplate) TableName() string {
  470. return "his_doctor_advice_template"
  471. }
  472. type HisPrescriptionProject struct {
  473. ID int64 `gorm:"column:id" json:"id" form:"id"`
  474. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  475. Price float64 `gorm:"column:price" json:"price" form:"price"`
  476. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  477. Status int64 `gorm:"column:status" json:"status" form:"status"`
  478. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  479. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  480. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  481. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  482. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  483. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  484. Count string `gorm:"column:count" json:"count" form:"count"`
  485. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  486. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  487. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  488. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  489. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  490. Day string `gorm:"column:day" json:"day" form:"day"`
  491. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  492. HisProject HisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
  493. GoodInfo GoodInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
  494. Type int64 `gorm:"column:type" json:"type" form:"type"`
  495. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  496. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  497. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  498. XtHisProjectTeam XtHisProjectTeam `gorm:"ForeignKey:TeamId;AssociationForeignKey:ID" json:"team"`
  499. IsCheckTeam int64 `gorm:"-" json:"is_check_team" form:"is_check_team"`
  500. ExecutionTime int64 `gborm:"column:execution_time" json:"execution_time" form:"execution_time"`
  501. }
  502. func (HisPrescriptionProject) TableName() string {
  503. return "his_prescription_project"
  504. }
  505. type SchedulesVm struct {
  506. ID int64 `gorm:"column:id" json:"id" form:"id"`
  507. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  508. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  509. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  510. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  511. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  512. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  513. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  514. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  515. Status int64 `gorm:"column:status" json:"status" form:"status"`
  516. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  517. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  518. Name string `gorm:"column:name" json:"name" form:"name"`
  519. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  520. }
  521. type HisProjectListVm struct {
  522. ID int64 `gorm:"column:id" json:"id" form:"id"`
  523. Number int64 `gorm:"column:number" json:"number" form:"number"`
  524. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  525. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  526. Status int64 `gorm:"column:status" json:"status" form:"status"`
  527. Price float64 `gorm:"column:price" json:"price" form:"price"`
  528. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  529. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  530. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  531. }
  532. type XtHisProjectList struct {
  533. ID int64 `gorm:"column:id" json:"id" form:"id"`
  534. Number int64 `gorm:"column:number" json:"number" form:"number"`
  535. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  536. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  537. Status int64 `gorm:"column:status" json:"status" form:"status"`
  538. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  539. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  540. }
  541. func (XtHisProjectList) TableName() string {
  542. return "xt_his_project_list"
  543. }
  544. type XtHisPatient struct {
  545. ID int64 `gorm:"column:id" json:"id" form:"id"`
  546. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  547. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  548. Name string `gorm:"column:name" json:"name" form:"name"`
  549. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  550. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  551. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  552. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  553. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  554. Age int64 `gorm:"column:age" json:"age" form:"age"`
  555. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  556. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  557. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  558. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  559. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  560. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  561. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  562. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  563. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  564. Total float64 `gorm:"column:total" json:"total" form:"total"`
  565. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  566. Status int64 `gorm:"column:status" json:"status" form:"status"`
  567. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  568. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  569. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  570. Number string `gorm:"column:number" json:"number" form:"number"`
  571. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  572. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  573. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  574. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  575. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  576. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  577. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  578. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  579. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  580. MdtrtGrpType string `gorm:"column:mdtrt_grp_type" json:"mdtrt_grp_type" form:"mdtrt_grp_type"`
  581. }
  582. func (XtHisPatient) TableName() string {
  583. return "his_patient"
  584. }
  585. type HisOrder struct {
  586. ID int64 `gorm:"column:id" json:"id" form:"id"`
  587. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  588. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  589. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  590. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  591. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  592. Status int64 `gorm:"column:status" json:"status" form:"status"`
  593. Number string `gorm:"column:number" json:"number" form:"number"`
  594. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  595. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  596. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  597. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  598. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  599. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  600. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  601. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  602. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  603. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  604. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  605. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  606. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  607. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  608. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  609. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  610. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  611. Age float64 `gorm:"column:age" json:"age" form:"age"`
  612. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  613. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  614. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  615. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  616. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  617. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  618. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  619. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  620. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  621. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  622. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  623. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  624. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  625. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  626. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  627. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  628. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  629. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  630. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  631. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  632. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  633. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  634. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  635. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  636. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  637. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  638. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  639. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  640. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  641. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  642. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  643. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  644. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  645. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  646. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  647. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  648. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  649. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  650. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  651. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  652. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  653. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  654. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  655. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  656. AccountPrice float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
  657. PayWays string `gorm:"column:pay_ways" json:"pay_way" form:"pay_ways"`
  658. SzChargeInfo string `gorm:"column:sz_charge_info" json:"sz_charge_info" form:"sz_charge_info"`
  659. SzProjectInfo string `gorm:"column:sz_project_info" json:"sz_project_info" form:"sz_project_info"`
  660. SzMedicineInsuranceInfo string `gorm:"column:sz_medicine_insurance_info" json:"sz_medicine_insurance_info" form:"sz_medicine_insurance_info"`
  661. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  662. OthDesc string `gorm:"column:oth_desc" json:"oth_desc" form:"oth_desc"`
  663. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  664. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  665. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  666. OrgSetlNumber string `gorm:"column:org_setl_number" json:"org_setl_number" form:"org_setl_number"`
  667. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  668. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  669. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  670. RefundLog string `gorm:"column:refund_log" json:"refund_log" form:"refund_log"`
  671. DetailLog string `gorm:"column:detail_log" json:"detail_log" form:"detail_log"`
  672. RequestLog string `gorm:"column:request_log" json:"request_log" form:"request_log"`
  673. RefundRequestLog string `gorm:"column:refund_request_log" json:"refund_request_log" form:"refund_request_log"`
  674. HisOrderInfo []*HisOrderInfo `gorm:"ForeignKey:OrderId;AssociationForeignKey:ID" json:"order_info"`
  675. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  676. HisPatient HisPatient `gorm:"ForeignKey:MdtrtId;AssociationForeignKey:Number" json:"his_patient"`
  677. HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId,SettleAccountsDate;AssociationForeignKey:PatientId,RecordDate" json:"p_info"`
  678. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  679. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  680. Decimal float64 `gorm:"column:decimal" json:"decimal" form:"decimal"`
  681. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  682. AcctUsedFlag string `gorm:"column:acct_used_flag" json:"acct_used_flag" form:"acct_used_flag"`
  683. CashPay string `gorm:"cash_pay" json:"cash_pay" form:"cash_pay"`
  684. BandCardPay string `gorm:"band_card_pay" json:"band_card_pay" form:"band_card_pay"`
  685. WechatPay string `gorm:"wechat_pay" json:"wechat_pay" form:"wechat_pay"`
  686. AliPay string `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
  687. JifenPay string `gorm:"jifen_pay" json:"jifen_pay" form:"jifen_pay"`
  688. IsUploadDiagnose int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
  689. IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
  690. IsUploadSuccess int64 `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
  691. SickName string `gorm:"column:sick_name" json:"sick_name" form:"sick_name"`
  692. FaPiaoSn string `gorm:"column:fa_piao_sn" json:"fa_piao_sn" form:"fa_piao_sn"`
  693. }
  694. func (HisOrder) TableName() string {
  695. return "his_order"
  696. }
  697. type HisOrderInfo struct {
  698. ID int64 `gorm:"column:id" json:"id" form:"id"`
  699. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  700. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  701. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  702. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  703. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  704. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  705. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  706. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  707. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  708. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  709. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  710. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  711. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  712. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  713. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  714. Status int64 `gorm:"column:status" json:"status" form:"status"`
  715. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  716. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  717. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  718. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  719. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  720. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  721. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  722. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  723. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  724. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  725. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  726. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  727. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  728. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  729. Type int64 `gorm:"column:type" json:"type" form:"type"`
  730. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  731. OverPricPsnPay float64 `gorm:"column:over_pric_psn_pay" json:"over_pric_psn_pay" form:"over_pric_psn_pay"`
  732. AllowReimburse float64 `gorm:"column:allow_reimburse" json:"allow_reimburse" form:"allow_reimburse"`
  733. HisDoctorAdviceInfo HisDoctorAdviceInfo `gorm:"ForeignKey:AdviceId;AssociationForeignKey:ID" json:"advice"`
  734. HisPrescriptionProject HisPrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  735. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  736. }
  737. func (HisOrderInfo) TableName() string {
  738. return "his_order_info"
  739. }
  740. type VMHisPatient struct {
  741. ID int64 `gorm:"column:id" json:"id" form:"id"`
  742. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  743. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  744. Name string `gorm:"column:name" json:"name" form:"name"`
  745. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  746. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  747. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  748. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  749. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  750. Age float64 `gorm:"column:age" json:"age" form:"age"`
  751. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  752. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  753. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  754. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  755. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  756. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  757. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  758. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  759. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  760. Total float64 `gorm:"column:total" json:"total" form:"total"`
  761. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  762. Status int64 `gorm:"column:status" json:"status" form:"status"`
  763. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  764. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  765. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  766. Number string `gorm:"column:number" json:"number" form:"number"`
  767. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  768. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  769. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  770. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  771. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  772. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  773. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  774. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  775. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  776. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  777. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  778. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  779. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  780. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  781. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  782. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  783. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  784. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  785. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  786. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  787. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  788. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  789. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  790. MdtrtGrpType string `gorm:"column:mdtrt_grp_type" json:"mdtrt_grp_type" form:"mdtrt_grp_type"`
  791. }
  792. func (VMHisPatient) TableName() string {
  793. return "his_patient"
  794. }
  795. type MedicalInsuranceConfig struct {
  796. ID int64 `gorm:"column:id" json:"id" form:"id"`
  797. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  798. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  799. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  800. Status int64 `gorm:"column:status" json:"status" form:"status"`
  801. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  802. }
  803. func (MedicalInsuranceConfig) TableName() string {
  804. return "medical_insurance_config"
  805. }
  806. type HisOrderError struct {
  807. ID int64 `gorm:"column:id" json:"id" form:"id"`
  808. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  809. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  810. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  811. Number string `gorm:"column:number" json:"number" form:"number"`
  812. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  813. Status int64 `gorm:"column:status" json:"status" form:"status"`
  814. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  815. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  816. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  817. }
  818. func (HisOrderError) TableName() string {
  819. return "his_order_error"
  820. }
  821. type MedicalInsuranceOrgConfig struct {
  822. ID int64 `gorm:"column:id" json:"id" form:"id"`
  823. Code string `gorm:"column:code" json:"code" form:"code"`
  824. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  825. Vpn string `gorm:"column:vpn" json:"vpn" form:"vpn"`
  826. EleCardId string `gorm:"column:ele_card_id" json:"ele_card_id" form:"ele_card_id"`
  827. EleCardKey string `gorm:"column:ele_card_key" json:"ele_card_key" form:"ele_card_key"`
  828. ChannelNumber string `gorm:"column:channel_number" json:"channel_number" form:"channel_number"`
  829. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  830. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  831. Status int64 `gorm:"column:status" json:"status" form:"status"`
  832. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  833. MdtrtareaAdmvs string `gorm:"column:mdtrtarea_admvs" json:"mdtrtarea_admvs" form:"mdtrtarea_admvs"`
  834. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  835. SecretKey string `gorm:"column:secret_key" json:"secret_key" form:"secret_key"`
  836. Url string `gorm:"column:url" json:"url" form:"url"`
  837. AccessKey string `gorm:"column:access_key" json:"access_key" form:"access_key"`
  838. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  839. AppSecret string `gorm:"column:app_secret" json:"app_secret" form:"app_secret"`
  840. SignKey string `gorm:"column:sign_key" json:"sign_key" form:"sign_key"`
  841. EncKey string `gorm:"column:enc_key" json:"enc_key" form:"enc_key"`
  842. }
  843. func (MedicalInsuranceOrgConfig) TableName() string {
  844. return "medical_insurance_org_config"
  845. }
  846. type XtHisConfig struct {
  847. ID int64 `gorm:"column:id" json:"id" form:"id"`
  848. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  849. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  850. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  851. Status int64 `gorm:"column:status" json:"status" form:"status"`
  852. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  853. }
  854. func (XtHisConfig) TableName() string {
  855. return "xt_his_config"
  856. }
  857. type XtHisTemplate struct {
  858. ID int64 `gorm:"column:id" json:"id" form:"id"`
  859. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  860. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  861. Status int64 `gorm:"column:status" json:"status" form:"status"`
  862. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  863. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  864. }
  865. func (XtHisTemplate) TableName() string {
  866. return "xt_his_template"
  867. }
  868. type XtHisAdviceTemplate struct {
  869. ID int64 `gorm:"column:id" json:"id" form:"id"`
  870. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  871. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  872. Status int64 `gorm:"column:status" json:"status" form:"status"`
  873. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  874. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  875. }
  876. func (XtHisAdviceTemplate) TableName() string {
  877. return "xt_his_advice_template"
  878. }
  879. type XtHisChargeTemplate struct {
  880. ID int64 `gorm:"column:id" json:"id" form:"id"`
  881. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  882. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  883. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  884. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  885. Status int64 `gorm:"column:status" json:"status" form:"status"`
  886. }
  887. func (XtHisChargeTemplate) TableName() string {
  888. return "xt_his_charge_template"
  889. }
  890. type XtHisTreatmentTemplate struct {
  891. ID int64 `gorm:"column:id" json:"id" form:"id"`
  892. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  893. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  894. Status int64 `gorm:"column:status" json:"status" form:"status"`
  895. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  896. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  897. }
  898. func (XtHisTreatmentTemplate) TableName() string {
  899. return "xt_his_treatment_template"
  900. }
  901. type XtHisAdditionalCharge struct {
  902. ID int64 `gorm:"column:id" json:"id" form:"id"`
  903. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  904. Price float64 `gorm:"column:price" json:"price" form:"price"`
  905. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  906. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  907. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  908. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  909. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  910. Status int64 `gorm:"column:status" json:"status" form:"status"`
  911. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  912. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  913. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  914. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  915. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  916. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  917. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  918. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  919. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  920. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  921. Count int64 `gorm:"column:count" json:"count" form:"count"`
  922. }
  923. func (XtHisAdditionalCharge) TableName() string {
  924. return "his_additional_charge"
  925. }
  926. type XtHisMedicalTemplate struct {
  927. ID int64 `gorm:"column:id" json:"id" form:"id"`
  928. Title string `gorm:"column:title" json:"title" form:"title"`
  929. Content string `gorm:"column:content" json:"content" form:"content"`
  930. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  931. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  932. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  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. }
  937. func (XtHisMedicalTemplate) TableName() string {
  938. return "xt_his_medical_template"
  939. }
  940. type HisXtDiagnoseConfig struct {
  941. ID int64 `gorm:"column:id" json:"id" form:"id"`
  942. ClassName string `gorm:"column:class_name" json:"class_name" form:"class_name"`
  943. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  944. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  945. ContentCode string `gorm:"column:content_code" json:"content_code" form:"content_code"`
  946. CountryCode string `gorm:"column:country_code" json:"country_code" form:"country_code"`
  947. CountryContentName string `gorm:"column:country_content_name" json:"country_content_name" form:"country_content_name"`
  948. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  949. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  950. Status int64 `gorm:"column:status" json:"status" form:"status"`
  951. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  952. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  953. }
  954. func (HisXtDiagnoseConfig) TableName() string {
  955. return "his_xt_diagnose_config"
  956. }
  957. type BaseParams struct {
  958. SecretKey string
  959. FixmedinsCode string
  960. InsuplcAdmdvs string
  961. MdtrtareaAdmvs string
  962. OrgName string
  963. Doctor string
  964. RequestUrl string
  965. AccessKey string
  966. Cainfo string
  967. AppID string
  968. AppSecret string
  969. SignKey string
  970. EncKey string
  971. }
  972. type BusinessParams struct {
  973. Insutype string
  974. ClrType string
  975. SetlOptins string
  976. MdtrtareaAdmvs string
  977. StmtBegndate string
  978. StmtEnddate string
  979. MedfeeSumamt float64
  980. FundPaySumamt float64
  981. AcctPay float64
  982. FixmedinsSetlCnt int64
  983. FileQuryNo string
  984. CashPayamt float64
  985. PsnNo string
  986. MdtrtId string
  987. SetlId string
  988. StasType string
  989. }
  990. type BusinessParamsTwo struct {
  991. Insutype string
  992. ClrType string
  993. SetlOptins string
  994. MdtrtareaAdmvs string
  995. StmtBegndate string
  996. StmtEnddate string
  997. MedfeeSumamt string
  998. FundPaySumamt string
  999. AcctPay string
  1000. FixmedinsSetlCnt int64
  1001. FileQuryNo string
  1002. CashPayamt float64
  1003. PsnNo string
  1004. MdtrtId string
  1005. SetlId string
  1006. }
  1007. type BusinessParams5262 struct {
  1008. RefdSetlFlag string
  1009. QBegntime string
  1010. QEndtime string
  1011. MedType string
  1012. PageNum string
  1013. PageSize string
  1014. Certno string
  1015. Psnno string
  1016. }
  1017. type Custom struct {
  1018. DetItemFeeSumamt string
  1019. Cut string
  1020. FeedetlSn string
  1021. Price string
  1022. MedListCodg string
  1023. }
  1024. type MedicalInsuranceCostCompare struct {
  1025. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1026. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1027. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  1028. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  1029. CheckType int64 `gorm:"column:check_type" json:"check_type" form:"check_type"`
  1030. Num int64 `gorm:"column:num" json:"num" form:"num"`
  1031. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1032. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1033. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1034. CostTotal float64 `gorm:"column:cost_total" json:"cost_total" form:"cost_total"`
  1035. FuncTotal float64 `gorm:"column:func_total" json:"func_total" form:"func_total"`
  1036. PsnPay float64 `gorm:"column:psn_pay" json:"psn_pay" form:"psn_pay"`
  1037. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1038. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1039. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  1040. }
  1041. func (MedicalInsuranceCostCompare) TableName() string {
  1042. return "medical_insurance_cost_compare"
  1043. }
  1044. type XtDrugDataConfig struct {
  1045. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1046. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1047. Module string `gorm:"column:module" json:"module" form:"module"`
  1048. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1049. Name string `gorm:"column:name" json:"name" form:"name"`
  1050. FieldName string `gorm:"column:field_name" json:"field_name" form:"field_name"`
  1051. Value int64 `gorm:"column:value" json:"value" form:"value"`
  1052. CreateTime time.Time `gorm:"column:create_time" json:"create_time" form:"create_time"`
  1053. UpdateTime time.Time `gorm:"column:update_time" json:"update_time" form:"update_time"`
  1054. CreateUserId int64 `gorm:"column:create_user_id" json:"create_user_id" form:"create_user_id"`
  1055. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1056. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1057. DeleteIdSystem int64 `gorm:"column:delete_id_system" json:"delete_id_system" form:"delete_id_system"`
  1058. Title string `gorm:"column:title" json:"title" form:"title"`
  1059. Content string `gorm:"column:content" json:"content" form:"content"`
  1060. Orders int64 `gorm:"column:orders" json:"orders" form:"orders"`
  1061. Code string `gorm:"column:code" json:"code" form:"code"`
  1062. }
  1063. func (XtDrugDataConfig) TableName() string {
  1064. return "xt_drug_data_config"
  1065. }
  1066. type XtRole struct {
  1067. Id int64 `gorm:"PRIMARY_KEY;AUTO_INCREMENT" json:"id"`
  1068. RoleName string `gorm:"column:role_name" json:"name"`
  1069. RoleIntro string `gorm:"column:role_introduction" json:"intro"`
  1070. Creator int64 `json:"-"`
  1071. OrgId int64 `gorm:"column:org_id" json:"-"`
  1072. AppId int64 `gorm:"column:app_id" json:"-"`
  1073. IsSuperAdmin bool `gorm:"column:is_super_admin" json:"is_super_admin"`
  1074. Status int8 `json:"status"` // 状态 0.无效 1.有效 2.禁用
  1075. CreateTime int64 `gorm:"column:ctime" json:"-"` // 创建时间
  1076. ModifyTime int64 `gorm:"column:mtime" json:"-"` // 修改时间
  1077. StaffNumber int64 `gorm:"-" json:"staff_number"`
  1078. Number int64 `gorm:"number" json:"number"`
  1079. IsSystem int64 `gorm:"column:is_system" json:"is_system" form:"is_system"`
  1080. }
  1081. func (XtRole) TableName() string {
  1082. return "sgj_user_role"
  1083. }
  1084. type MyHisProject struct {
  1085. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1086. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  1087. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1088. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1089. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1090. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1091. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  1092. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  1093. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  1094. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  1095. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  1096. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1097. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1098. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  1099. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  1100. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1101. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1102. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  1103. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1104. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  1105. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  1106. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  1107. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1108. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  1109. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1110. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1111. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1112. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1113. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1114. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1115. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1116. NumberDays string `gorm:"column:number_days" json:"number_days" form:"number_days"`
  1117. Total string `gorm:"column:total" json:"total" form:"total"`
  1118. Category int64 `gorm:"column:category" json:"category" form:"category"`
  1119. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1120. SpecailProject int64 `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
  1121. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1122. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1123. Vaf14 string `gorm:"column:vaf14" json:"vaf14" form:"vaf14"`
  1124. }
  1125. func (MyHisProject) TableName() string {
  1126. return "xt_his_project"
  1127. }
  1128. type MyGoodInformation struct {
  1129. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1130. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  1131. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1132. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1133. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  1134. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1135. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  1136. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1137. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1138. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1139. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1140. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1141. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  1142. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  1143. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  1144. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1145. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  1146. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  1147. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  1148. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1149. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1150. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1151. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1152. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1153. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1154. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  1155. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  1156. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1157. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1158. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  1159. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  1160. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1161. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  1162. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  1163. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  1164. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1165. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1166. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  1167. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  1168. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  1169. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1170. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  1171. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  1172. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  1173. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1174. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1175. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  1176. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  1177. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1178. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  1179. }
  1180. func (MyGoodInformation) TableName() string {
  1181. return "xt_good_information"
  1182. }
  1183. type MySgjUserAdminRole struct {
  1184. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1185. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1186. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1187. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  1188. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  1189. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1190. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  1191. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  1192. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  1193. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  1194. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1195. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1196. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1197. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1198. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  1199. Message string `gorm:"column:message" json:"message" form:"message"`
  1200. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  1201. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1202. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1203. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  1204. Department string `gorm:"column:department" json:"department" form:"department"`
  1205. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  1206. Age int64 `gorm:"column:age" json:"age" form:"age"`
  1207. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  1208. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  1209. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  1210. Education int64 `gorm:"column:education" json:"education" form:"education"`
  1211. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  1212. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  1213. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  1214. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1215. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  1216. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  1217. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  1218. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  1219. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  1220. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1221. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  1222. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  1223. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  1224. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  1225. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  1226. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  1227. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  1228. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  1229. OutpatientIllnessCategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  1230. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  1231. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  1232. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1233. }
  1234. func (MySgjUserAdminRole) TableName() string {
  1235. return "sgj_user_admin_role"
  1236. }
  1237. type HisFundSettleListResult struct {
  1238. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1239. Number string `gorm:"column:number" json:"number" form:"number"`
  1240. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1241. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1242. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1243. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1244. IsUpload int64 `gorm:"column:is_upload" json:"is_upload" form:"is_upload"`
  1245. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1246. }
  1247. func (HisFundSettleListResult) TableName() string {
  1248. return "his_fund_settle_list_result"
  1249. }
  1250. type NewCustom struct {
  1251. DetItemFeeSumamt string
  1252. Cut string
  1253. FeedetlSn string
  1254. Price string
  1255. MedListCodg string
  1256. LmtUsedFlag int64
  1257. HospApprFlag int64
  1258. FeeOcurTime string
  1259. DoctorId int64
  1260. }
  1261. type HisPsn struct {
  1262. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1263. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  1264. Age float64 `gorm:"column:age" json:"age" form:"age"`
  1265. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1266. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1267. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  1268. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  1269. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  1270. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  1271. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1272. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  1273. Insuinfo string `gorm:"column:insuinfo" json:"insuinfo" form:"insuinfo"`
  1274. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1275. CardInfo string `gorm:"column:card_info" json:"card_info" form:"card_info"`
  1276. VerifyNumber string `gorm:"column:verify_number" json:"verify_number" form:"verify_number"`
  1277. Stage string `gorm:"column:stage" json:"stage" form:"stage"`
  1278. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1279. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  1280. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  1281. AuthInfo string `gorm:"column:auth_info" json:"auth_info" form:"auth_info"`
  1282. }
  1283. func (HisPsn) TableName() string {
  1284. return "his_psn"
  1285. }
  1286. type HisPrescriptionTen struct {
  1287. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1288. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1289. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1290. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1291. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1292. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1293. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1294. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1295. Number string `gorm:"column:number" json:"number" form:"number"`
  1296. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1297. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1298. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1299. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1300. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1301. PreTime int64 `gorm:"column:pre_time" json:"pre_time" form:"pre_time"`
  1302. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1303. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  1304. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  1305. HisPatient VMHisPatient `gorm:"ForeignKey:PatientId;AssociationForeignKey:patient_id" json:"hisPatient"`
  1306. HisDoctorAdviceInfo []*HisDoctorAdviceInfoTen `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  1307. HisPrescriptionProject []*HisPrescriptionProjectTen `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  1308. }
  1309. func (HisPrescriptionTen) TableName() string {
  1310. return "his_prescription"
  1311. }
  1312. type HisDoctorAdviceInfoTen struct {
  1313. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1314. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1315. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1316. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1317. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1318. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1319. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1320. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1321. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1322. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1323. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1324. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1325. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1326. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1327. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1328. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1329. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1330. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1331. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1332. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1333. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1334. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1335. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1336. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1337. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1338. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1339. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1340. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1341. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1342. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1343. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1344. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1345. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1346. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1347. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1348. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1349. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1350. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1351. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1352. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1353. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1354. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1355. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1356. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1357. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1358. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1359. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1360. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1361. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1362. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1363. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1364. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug"`
  1365. HisOrderInfo HisOrderInfo `gorm:"ForeignKey:ID;AssociationForeignKey:AdviceId" json:"order_info"`
  1366. DrugWayCount string `gorm:"column:drug_way_count" json:"drug_way_count" form:"drug_way_count"`
  1367. }
  1368. func (HisDoctorAdviceInfoTen) TableName() string {
  1369. return "his_doctor_advice_info"
  1370. }
  1371. type HisPrescriptionProjectTen struct {
  1372. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1373. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1374. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1375. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1376. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1377. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1378. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1379. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1380. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1381. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1382. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1383. Count string `gorm:"column:count" json:"count" form:"count"`
  1384. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1385. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1386. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1387. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1388. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1389. Day string `gorm:"column:day" json:"day" form:"day"`
  1390. HisProject HisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
  1391. GoodInfo GoodInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
  1392. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1393. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1394. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1395. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1396. XtHisProjectTeam XtHisProjectTeam `gorm:"ForeignKey:TeamId;AssociationForeignKey:ID" json:"team"`
  1397. IsCheckTeam int64 `gorm:"-" json:"is_check_team" form:"is_check_team"`
  1398. HisOrderInfo HisOrderInfo `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"order_info"`
  1399. }
  1400. func (HisPrescriptionProjectTen) TableName() string {
  1401. return "his_prescription_project"
  1402. }
  1403. type HisSignIn struct {
  1404. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1405. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1406. SignNo string `gorm:"column:sign_no" json:"sign_no" form:"sign_no"`
  1407. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1408. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1409. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1410. SignTime string `gorm:"column:sign_time" json:"sign_time" form:"sign_time"`
  1411. InputLog string `gorm:"column:input_log" json:"input_log" form:"input_log"`
  1412. OutputLog string `gorm:"column:output_log" json:"output_log" form:"output_log"`
  1413. FixmedinsCode string `gorm:"column:fixmedins_code" json:"fixmedins_code" form:"fixmedins_code"`
  1414. }
  1415. func (HisSignIn) TableName() string {
  1416. return "his_sign_in"
  1417. }
  1418. type HisChargeSettleOrder struct {
  1419. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1420. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1421. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1422. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  1423. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1424. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1425. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  1426. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  1427. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  1428. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  1429. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  1430. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  1431. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1432. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  1433. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  1434. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  1435. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  1436. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  1437. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  1438. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  1439. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  1440. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  1441. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1442. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  1443. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1444. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1445. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  1446. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  1447. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  1448. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  1449. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  1450. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  1451. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  1452. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  1453. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  1454. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  1455. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  1456. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  1457. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  1458. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  1459. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  1460. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  1461. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  1462. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  1463. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  1464. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  1465. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  1466. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  1467. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  1468. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  1469. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  1470. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  1471. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  1472. PayWays string `gorm:"column:pay_ways" json:"pay_way" form:"pay_ways"`
  1473. OthDesc string `gorm:"column:oth_desc" json:"oth_desc" form:"oth_desc"`
  1474. SickName string `gorm:"column:sick_name" json:"sick_name" form:"sick_name"`
  1475. IsUploadDiagnose int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
  1476. IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
  1477. IsUploadSuccess int64 `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
  1478. }
  1479. func (HisChargeSettleOrder) TableName() string {
  1480. return "his_order"
  1481. }
  1482. type HisPrintPatient struct {
  1483. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1484. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  1485. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1486. Name string `gorm:"column:name" json:"name" form:"name"`
  1487. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  1488. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  1489. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1490. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  1491. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  1492. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  1493. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1494. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  1495. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1496. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1497. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1498. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1499. Number string `gorm:"column:number" json:"number" form:"number"`
  1500. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1501. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  1502. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  1503. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  1504. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1505. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1506. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  1507. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  1508. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  1509. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  1510. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  1511. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  1512. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  1513. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  1514. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  1515. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  1516. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1517. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  1518. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  1519. }
  1520. func (HisPrintPatient) TableName() string {
  1521. return "his_patient"
  1522. }
  1523. type HisHospitalCheckRecordTwo struct {
  1524. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1525. Name string `gorm:"column:name" json:"name" form:"name"`
  1526. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  1527. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1528. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  1529. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1530. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  1531. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1532. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1533. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1534. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1535. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1536. Number string `gorm:"column:number" json:"number" form:"number"`
  1537. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1538. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  1539. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  1540. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1541. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1542. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  1543. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  1544. MedType int64 `gorm:"column:med_type" json:"med_type" form:"med_type"`
  1545. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  1546. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  1547. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  1548. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  1549. AdmBed int64 `gorm:"column:adm_bed" json:"adm_bed" form:"adm_bed"`
  1550. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  1551. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1552. InsutypeType string `gorm:"column:insutype_type" json:"insutype_type" form:"insutype_type"`
  1553. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  1554. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  1555. InHosptialTime string `gorm:"column:in_hosptial_time" json:"in_hosptial_time" form:"in_hosptial_time"`
  1556. OutHosptialTime string `gorm:"column:out_hosptial_time" json:"out_hosptial_time" form:"out_hosptial_time"`
  1557. InHospitalStatus int64 `gorm:"column:in_hospital_status" json:"in_hospital_status" form:"in_hospital_status"`
  1558. Certificates int64 `gorm:"column:certificates" json:"certificates" form:"certificates"`
  1559. OutHospitalStatus int64 `gorm:"column:out_hospital_status" json:"out_hospital_status" form:"out_hospital_status"`
  1560. OutWay int64 `gorm:"column:out_way" json:"out_way" form:"out_way"`
  1561. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  1562. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  1563. PsnType int64 `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  1564. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  1565. }
  1566. func (HisHospitalCheckRecordTwo) TableName() string {
  1567. return "his_hospital_check_record"
  1568. }
  1569. type NewCustomTwo struct {
  1570. DetItemFeeSumamt string
  1571. Cut string
  1572. FeedetlSn string
  1573. Price string
  1574. MedListCodg string
  1575. Type int64
  1576. AdviceId int64
  1577. ProjectId int64
  1578. ItemId string
  1579. StartTime string
  1580. Content string
  1581. Bby01 string
  1582. }
  1583. type ChargeList struct {
  1584. Bby01 string
  1585. Vaj25 string
  1586. Bbx01 string
  1587. Vaf21 string
  1588. Vaf22 string
  1589. Vaf42 string
  1590. }
  1591. type ChargeListtwo struct {
  1592. Bby01 int64 `json:"bby01"`
  1593. Vaj25 float64 `json:"vaj25"`
  1594. }
  1595. type UploadInfo struct {
  1596. Bce02a string `json:"bce02a"`
  1597. Acf01 int64 `json:"acf01"`
  1598. Bce01 string `json:"bce01"`
  1599. Bck01 string `json:"bck01"`
  1600. ChargeListtwo []*ChargeListtwo `json:"chargeList"`
  1601. Bce01a string `json:"bce01a"`
  1602. Bck01c string `json:"bck01c"`
  1603. Bck01a string `json:"bck01a"`
  1604. Diag []*Diag
  1605. Fasong string `json:"fasong"`
  1606. PresInfo []*PresInfo
  1607. Vaa01 int64 `json:"bby01"`
  1608. Vaa07 int64 `json:"vaa07"`
  1609. Vaa05 string `json:"vaa05"`
  1610. }
  1611. type Diag struct {
  1612. Bak02 string `json:"bak02"`
  1613. Vao06 string `json:"vao06"`
  1614. }
  1615. type PresDetail struct {
  1616. Item []*Item
  1617. Vaf59 string `json:"vaf59"`
  1618. }
  1619. type PresInfo struct {
  1620. Cbm06 string `json:"cbm06"`
  1621. Cbm07 string `json:"cbm07"`
  1622. Cbmid string `json:"cbmid"`
  1623. PresDetail []*PresDetail
  1624. }
  1625. type Item struct {
  1626. Bbx01 string `json:"bbx01"`
  1627. Bby01 string `json:"bby01"`
  1628. Bck01b string `json:"bck01b"`
  1629. Bck01d string `json:"bck01d"`
  1630. Bda01 string `json:"bda01"`
  1631. Bdi01 string `json:"bdi01"`
  1632. Rownr string `json:"rownr"`
  1633. Vaf11 string `json:"vaf11"`
  1634. Vaf14 string `json:"vaf14"`
  1635. Vaf15 string `json:"vaf15"`
  1636. Vaf17 string `json:"vaf17"`
  1637. Vaf18 string `json:"vaf18"`
  1638. Vaf19 string `json:"vaf19"`
  1639. Vaf20 string `json:"vaf20"`
  1640. Vaf21 string `json:"vaf21"`
  1641. Vaf22 string `json:"vaf22"`
  1642. Vaf32 string `json:"vaf32"`
  1643. Vaf35 string `json:"vaf35"`
  1644. Vaf36 string `json:"vaf36"`
  1645. Vaf58 string `json:"vaf58"`
  1646. Vaf61 string `json:"vaf61"`
  1647. }
  1648. type NewHisOrder111 struct {
  1649. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1650. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1651. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1652. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  1653. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1654. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1655. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1656. Number string `gorm:"column:number" json:"number" form:"number"`
  1657. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1658. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  1659. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  1660. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  1661. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  1662. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  1663. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  1664. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1665. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  1666. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  1667. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  1668. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1669. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  1670. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1671. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  1672. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  1673. Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
  1674. Age float64 `gorm:"column:age" json:"age" form:"age"`
  1675. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  1676. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  1677. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  1678. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  1679. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  1680. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  1681. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  1682. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1683. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  1684. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1685. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1686. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  1687. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  1688. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  1689. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  1690. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  1691. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  1692. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  1693. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  1694. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  1695. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  1696. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  1697. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  1698. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  1699. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  1700. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  1701. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  1702. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  1703. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  1704. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  1705. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  1706. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  1707. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  1708. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  1709. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  1710. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  1711. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  1712. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  1713. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  1714. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  1715. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  1716. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  1717. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1718. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  1719. AccountPrice float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
  1720. PayWays string `gorm:"column:pay_ways" json:"pay_way" form:"pay_ways"`
  1721. SzChargeInfo string `gorm:"column:sz_charge_info" json:"sz_charge_info" form:"sz_charge_info"`
  1722. SzProjectInfo string `gorm:"column:sz_project_info" json:"sz_project_info" form:"sz_project_info"`
  1723. SzMedicineInsuranceInfo string `gorm:"column:sz_medicine_insurance_info" json:"sz_medicine_insurance_info" form:"sz_medicine_insurance_info"`
  1724. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  1725. OthDesc string `gorm:"column:oth_desc" json:"oth_desc" form:"oth_desc"`
  1726. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  1727. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  1728. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  1729. OrgSetlNumber string `gorm:"column:org_setl_number" json:"org_setl_number" form:"org_setl_number"`
  1730. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  1731. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  1732. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  1733. RefundLog string `gorm:"column:refund_log" json:"refund_log" form:"refund_log"`
  1734. DetailLog string `gorm:"column:detail_log" json:"detail_log" form:"detail_log"`
  1735. RequestLog string `gorm:"column:request_log" json:"request_log" form:"request_log"`
  1736. RefundRequestLog string `gorm:"column:refund_request_log" json:"refund_request_log" form:"refund_request_log"`
  1737. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  1738. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  1739. Decimal float64 `gorm:"column:decimal" json:"decimal" form:"decimal"`
  1740. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1741. AcctUsedFlag string `gorm:"column:acct_used_flag" json:"acct_used_flag" form:"acct_used_flag"`
  1742. CashPay string `gorm:"cash_pay" json:"cash_pay" form:"cash_pay"`
  1743. BandCardPay string `gorm:"band_card_pay" json:"band_card_pay" form:"band_card_pay"`
  1744. WechatPay string `gorm:"wechat_pay" json:"wechat_pay" form:"wechat_pay"`
  1745. AliPay string `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
  1746. JifenPay string `gorm:"jifen_pay" json:"jifen_pay" form:"jifen_pay"`
  1747. SickName string `gorm:"column:sick_name" json:"sick_name" form:"sick_name"`
  1748. IsUploadDiagnose int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
  1749. IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
  1750. IsUploadSuccess int64 `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
  1751. }
  1752. func (NewHisOrder111) TableName() string {
  1753. return "his_order"
  1754. }
  1755. type Root2 struct {
  1756. XMLName xml.Name `xml:"Root"`
  1757. TradeInfo TradeInfo `xml:"tradeinfo"`
  1758. VAF1 VAF10 `xml:"VAF1"`
  1759. }
  1760. type Root struct {
  1761. XMLName xml.Name `xml:"Root"`
  1762. TradeInfo TradeInfo `xml:"tradeinfo"`
  1763. CBM1 CBM1 `xml:"CBM1"`
  1764. VAF1 VAF1 `xml:"VAF1"`
  1765. VAO1 VAO1 `xml:"VAO1"`
  1766. VBQ1 VBQ1 `xml:"VBQ1"`
  1767. }
  1768. type TradeInfo struct {
  1769. Type int `xml:"type"`
  1770. PatSource int `xml:"pat_source"`
  1771. Detpid string `xml:"detpid"`
  1772. Empid string `xml:"empid"`
  1773. Empno string `xml:"empno"`
  1774. Empname string `xml:"empname"`
  1775. }
  1776. type CBM1 struct {
  1777. Ie []IEone `xml:"Ie"`
  1778. }
  1779. type VAF1 struct {
  1780. Ie []IEtwo `xml:"Ie"`
  1781. }
  1782. type VAO1 struct {
  1783. Ie []IEthree `xml:"Ie"`
  1784. }
  1785. type VBQ1 struct {
  1786. Ie []IEfour `xml:"Ie"`
  1787. }
  1788. type VAF10 struct {
  1789. Ie []IEfive `xml:"Ie"`
  1790. }
  1791. type IEone struct {
  1792. CBMID string `xml:"CBMID,attr"`
  1793. VAA01 string `xml:"VAA01,attr"`
  1794. VAA07 string `xml:"VAA07,attr"`
  1795. ACF01 string `xml:"ACF01,attr"`
  1796. CBM06 string `xml:"CBM06,attr"`
  1797. CBM07 string `xml:"CBM07,attr"`
  1798. BCK01A string `xml:"BCK01A,attr"`
  1799. BCK01B string `xml:"BCK01B,attr"`
  1800. BCK01C string `xml:"BCK01C,attr"`
  1801. CBM19 string `xml:"CBM19,attr"`
  1802. }
  1803. type IEtwo struct {
  1804. CBMID string `xml:"CBMID,attr"`
  1805. VAF04 string `xml:"VAF04,attr"`
  1806. VAA01 string `xml:"VAA01,attr"`
  1807. VAF06 string `xml:"VAF06,attr"`
  1808. BCK01A string `xml:"BCK01A,attr"`
  1809. ROWNR string `xml:"ROWNR,attr"`
  1810. VAF10 string `xml:"VAF10,attr"`
  1811. VAF11 string `xml:"VAF11,attr"`
  1812. BDA01 string `xml:"BDA01,attr"`
  1813. BBX01 string `xml:"BBX01,attr"`
  1814. VAF14 string `xml:"VAF14,attr"`
  1815. VAF15 string `xml:"VAF15,attr"`
  1816. BBY01 string `xml:"BBY01,attr"`
  1817. VAF17 string `xml:"VAF17,attr"`
  1818. VAF18 string `xml:"VAF18,attr"`
  1819. VAF19 string `xml:"VAF19,attr"`
  1820. VAF20 string `xml:"VAF20,attr"`
  1821. VAF21 string `xml:"VAF21,attr"`
  1822. VAF22 string `xml:"VAF22,attr"`
  1823. Crypt string `xml:"Crypt,attr"`
  1824. VAF23 string `xml:"VAF23,attr"`
  1825. BCK01B string `xml:"BCK01B,attr"`
  1826. VAF26 string `xml:"VAF26,attr"`
  1827. VAF27 string `xml:"VAF27,attr"`
  1828. VAF28 string `xml:"VAF28,attr"`
  1829. VAF29 string `xml:"VAF29,attr"`
  1830. VAF30 string `xml:"VAF30,attr"`
  1831. VAF31 string `xml:"VAF31,attr"`
  1832. VAF32 string `xml:"VAF32,attr"`
  1833. VAF33 string `xml:"VAF33,attr"`
  1834. VAF34 string `xml:"VAF34,attr"`
  1835. VAF35 string `xml:"VAF35,attr"`
  1836. VAF36 string `xml:"VAF36,attr"`
  1837. VAF37 string `xml:"VAF37,attr"`
  1838. BCE02A string `xml:"BCE02A,attr"`
  1839. BCE03A string `xml:"BCE03A,attr"`
  1840. BCE03B string `xml:"BCE03B,attr"`
  1841. VAF53 string `xml:"VAF53,attr"`
  1842. VAF55 string `xml:"VAF55,attr"`
  1843. BCK01D string `xml:"BCK01D,attr"`
  1844. VAF58 string `xml:"VAF58,attr"`
  1845. VAF59 string `xml:"VAF59,attr"`
  1846. VAF60 string `xml:"VAF60,attr"`
  1847. VAF61 string `xml:"VAF61,attr"`
  1848. VAF62 string `xml:"VAF62,attr"`
  1849. LSign string `xml:"lSign,attr"`
  1850. BDA01A string `xml:"BDA01A,attr"`
  1851. LRoute string `xml:"lRoute,attr"`
  1852. BCE01A string `xml:"BCE01A,attr"`
  1853. BCE01B string `xml:"BCE01B,attr"`
  1854. VAF01B string `xml:"VAF01B,attr"`
  1855. VCO01 string `xml:"VCO01,attr"`
  1856. BCE01H string `xml:"BCE01H,attr"`
  1857. BCE03H string `xml:"BCE03H,attr"`
  1858. BIW02 string `xml:"BIW02,attr"`
  1859. RCurrent string `xml:"rCurrent,attr"`
  1860. FCheck string `xml:"FCheck,attr"`
  1861. UnameA string `xml:"UnameA,attr"`
  1862. VEH02 string `xml:"VEH02,attr"`
  1863. BCK01C string `xml:"BCK01C,attr"`
  1864. VAF07 string `xml:"VAF07,attr"`
  1865. }
  1866. type IEthree struct {
  1867. CBMID string `xml:"CBMID,attr"`
  1868. VAA01 string `xml:"VAA01,attr"`
  1869. VAA07 string `xml:"VAA07,attr"`
  1870. ACF01 string `xml:"ACF01,attr"`
  1871. VAO06 string `xml:"VAO06,attr"`
  1872. VAO07 string `xml:"VAO07,attr"`
  1873. VAO10 string `xml:"VAO10,attr"`
  1874. VAO11 string `xml:"VAO11,attr"`
  1875. BAK01A string `xml:"BAK01A,attr"`
  1876. CAM01 string `xml:"CAM01,attr"`
  1877. VAO15 string `xml:"VAO15,attr"`
  1878. VAO18 string `xml:"VAO18,attr"`
  1879. VAO22 string `xml:"VAO22,attr"`
  1880. IAA01 string `xml:"IAA01,attr"`
  1881. IAD03 string `xml:"IAD03,attr"`
  1882. BAK01B string `xml:"BAK01B,attr"`
  1883. VAO26 string `xml:"VAO26,attr"`
  1884. IAD04 string `xml:"IAD04,attr"`
  1885. IAD01 string `xml:"IAD01,attr"`
  1886. VAO25 string `xml:"VAO25,attr"`
  1887. VAO35 string `xml:"VAO35,attr"`
  1888. }
  1889. type IEfour struct {
  1890. VBQ01 string `xml:"VBQ01,attr"`
  1891. VAA01 string `xml:"VAA01,attr"`
  1892. VAA07 string `xml:"VAA07,attr"`
  1893. ACF01 string `xml:"ACF01,attr"`
  1894. VAP01 string `xml:"VAP01,attr"`
  1895. VBQ07 string `xml:"VBQ07,attr"`
  1896. BCK01A string `xml:"BCK01A,attr"`
  1897. BCK01B string `xml:"BCK01B,attr"`
  1898. BCE03A string `xml:"BCE03A,attr"`
  1899. BCE01A string `xml:"BCE01A,attr"`
  1900. VBQ27 string `xml:"VBQ27,attr"`
  1901. VBQ28 string `xml:"VBQ28,attr"`
  1902. VBQ29 string `xml:"VBQ29,attr"`
  1903. VBQ30 string `xml:"VBQ30,attr"`
  1904. }
  1905. type IEfive struct {
  1906. VAF01 string `xml:"VAF01,attr"`
  1907. }
  1908. func main() {
  1909. data := `YOUR_XML_CONTENT_HERE`
  1910. var root Root
  1911. err := xml.Unmarshal([]byte(data), &root)
  1912. if err != nil {
  1913. fmt.Println("错误:", err)
  1914. return
  1915. }
  1916. fmt.Printf("%+v\n", root)
  1917. }