his_models.go 224KB

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