his_models.go 180KB

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