his_models.go 226KB

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