src_data.go 147KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913
  1. package models
  2. type XTSyncInfo struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  5. SyncType int64 `gorm:"column:sync_type" json:"sync_type" form:"sync_type"`
  6. SyncTime int64 `gorm:"column:sync_time" json:"sync_time" form:"sync_time"`
  7. SyncResultType int `gorm:"column:sync_result_type" json:"sync_result_type" form:"sync_result_type"`
  8. SyncRsultRemark string `gorm:"column:sync_result_remark" json:"sync_result_remark" form:"sync_result_remark"`
  9. SyncTotalNum int64 `gorm:"column:sync_total_num" json:"sync_total_num" form:"sync_total_num"`
  10. SyncSuccessNum int64 `gorm:"column:sync_success_num" json:"sync_success_num" form:"sync_success_num"`
  11. SyncInfo string `gorm:"column:sync_info" json:"sync_info" form:"sync_info"`
  12. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  13. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  14. }
  15. func (XTSyncInfo) TableName() string {
  16. return "data_sync_info"
  17. }
  18. type UserOrg struct {
  19. ID int64 `gorm:"column:id" json:"id"`
  20. Creator int64 `gorm:"column:creator" json:"creator"`
  21. OrgName string `gorm:"column:org_name" json:"org_name"`
  22. OrgShortName string `gorm:"column:org_short_name" json:"org_short_name"`
  23. OrgLogo string `gorm:"column:org_logo" json:"org_logo"`
  24. OrgIntroduction string `gorm:"column:org_introduction" json:"org_introduction"`
  25. Illness string `gorm:"column:illness" json:"illness"`
  26. Province int64 `gorm:"column:province" json:"province"`
  27. City int64 `gorm:"column:city" json:"city"`
  28. District int64 `gorm:"column:district" json:"district"`
  29. Address string `gorm:"column:address" json:"address"`
  30. Longitude string `gorm:"column:longitude" json:"longitude"`
  31. Latitude string `gorm:"column:latitude" json:"latitude"`
  32. OrgType int64 `gorm:"column:org_type" json:"org_type"`
  33. Comments int64 `gorm:"column:comments" json:"comments"`
  34. Evaluate float64 `gorm:"column:evaluate" json:"evaluate"`
  35. Gallery string `gorm:"column:gallery" json:"gallery"`
  36. BusinessWeek string `gorm:"column:business_week" json:"business_week"`
  37. BusinessTime string `gorm:"column:business_time" json:"business_time"`
  38. ContactName string `gorm:"column:contact_name" json:"contact_name"`
  39. Telephone string `gorm:"column:telephone" json:"telephone"`
  40. Claim int64 `gorm:"column:claim" json:"claim"`
  41. OperatingState int64 `gorm:"column:operating_state" json:"operating_state"`
  42. Status int64 `gorm:"column:status" json:"status"`
  43. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  44. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  45. Source int64 `gorm:"column:source" json:"source"`
  46. Ttype int64 `gorm:"column:ttype" json:"ttype"`
  47. Ttid int64 `gorm:"column:ttid" json:"ttid"`
  48. Tuid int64 `gorm:"column:tuid" json:"tuid"`
  49. Reason string `gorm:"column:reason" json:"reason"`
  50. Level int64 `gorm:"column:level" json:"level"`
  51. Website string `gorm:"column:website" json:"website"`
  52. Import int64 `gorm:"column:import" json:"import"`
  53. Sortno int64 `gorm:"column:sortno" json:"sortno"`
  54. DeviceNumber []*DeviceNumber `gorm:"ForeignKey:OrgId;AssociationForeignKey:ID" json:"device_number"`
  55. }
  56. func (UserOrg) TableName() string {
  57. return "sgj_user_org"
  58. }
  59. type UserAdminRole struct {
  60. ID int64 `gorm:"column:id" json:"id"`
  61. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  62. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  63. AppId int64 `gorm:"column:app_id" json:"app_id"`
  64. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  65. UserName string `gorm:"column:user_name" json:"user_name"`
  66. Avatar string `gorm:"column:avatar" json:"avatar"`
  67. UserType int64 `gorm:"column:user_type" json:"user_type"`
  68. UserTitle int64 `gorm:"column:user_title" json:"user_title"`
  69. Intro string `gorm:"column:intro" json:"intro"`
  70. Status int64 `gorm:"column:status" json:"status"`
  71. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  72. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  73. }
  74. func (UserAdminRole) TableName() string {
  75. return "sgj_user_admin_role"
  76. }
  77. type DeviceZone struct {
  78. ID int64 `gorm:"column:id" json:"id"`
  79. OrgID int64 `gorm:"column:org_id" json:"-"`
  80. Name string `json:"name"`
  81. Type int64 `json:"type"`
  82. Status int8 `json:"-"`
  83. CreateTime int64 `gorm:"column:ctime" json:"-"`
  84. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  85. }
  86. func (DeviceZone) TableName() string {
  87. return "xt_device_zone"
  88. }
  89. type ResultOne struct {
  90. Sumamt float64 `gorm:"column:sumamt" json:"sumamt" form:"sumamt"`
  91. Amt float64 `gorm:"column:amt" json:"amt" form:"amt"`
  92. }
  93. func (ResultOne) TableName() string {
  94. return "ResultOne"
  95. }
  96. type HisPatient struct {
  97. ID int64 `gorm:"column:id" json:"id" form:"id"`
  98. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  99. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  100. Name string `gorm:"column:name" json:"name" form:"name"`
  101. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  102. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  103. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  104. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  105. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  106. Age int64 `gorm:"column:age" json:"age" form:"age"`
  107. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  108. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  109. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  110. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  111. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  112. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  113. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  114. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  115. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  116. Total float64 `gorm:"column:total" json:"total" form:"total"`
  117. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  118. Status int64 `gorm:"column:status" json:"status" form:"status"`
  119. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  120. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  121. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  122. Number string `gorm:"column:number" json:"number" form:"number"`
  123. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  124. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  125. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  126. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  127. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  128. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  129. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  130. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  131. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  132. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  133. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  134. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  135. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  136. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  137. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  138. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  139. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  140. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  141. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  142. }
  143. func (HisPatient) TableName() string {
  144. return "his_patient"
  145. }
  146. type Patients struct {
  147. ID int64 `gorm:"column:id" json:"id"`
  148. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  149. UserId int64 `gorm:"column:user_id" json:"user_id"`
  150. Avatar string `gorm:"column:avatar" json:"avatar"`
  151. PatientType int64 `gorm:"column:patient_type" json:"patient_type"`
  152. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no"`
  153. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number"`
  154. Source int64 `gorm:"column:source" json:"source"`
  155. Lapseto int64 `gorm:"column:lapseto" json:"lapseto"`
  156. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  157. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  158. Name string `gorm:"column:name" json:"name"`
  159. Alias string `gorm:"column:alias" json:"alias"`
  160. Gender int64 `gorm:"column:gender" json:"gender"`
  161. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status"`
  162. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no"`
  163. Birthday int64 `gorm:"column:birthday" json:"birthday"`
  164. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id"`
  165. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type"`
  166. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no"`
  167. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date"`
  168. Height int64 `gorm:"column:height" json:"height"`
  169. BloodType int64 `gorm:"column:blood_type" json:"blood_type"`
  170. Rh int64 `gorm:"column:rh" json:"rh"`
  171. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date"`
  172. EducationLevel int64 `gorm:"column:education_level" json:"education_level"`
  173. Profession int64 `gorm:"column:profession" json:"profession"`
  174. Phone string `gorm:"column:phone" json:"phone"`
  175. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone"`
  176. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone"`
  177. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations"`
  178. HomeAddress string `gorm:"column:home_address" json:"home_address"`
  179. WorkUnit string `gorm:"column:work_unit" json:"work_unit"`
  180. UnitAddress string `gorm:"column:unit_address" json:"unit_address"`
  181. Children int64 `gorm:"column:children" json:"children"`
  182. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date"`
  183. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis"`
  184. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date"`
  185. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital"`
  186. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition"`
  187. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency"`
  188. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times"`
  189. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date"`
  190. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period"`
  191. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis"`
  192. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis"`
  193. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id"`
  194. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id"`
  195. Evaluate string `gorm:"column:evaluate" json:"evaluate"`
  196. Diagnose string `gorm:"column:diagnose" json:"diagnose"`
  197. Remark string `gorm:"column:remark" json:"remark"`
  198. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id"`
  199. Registrars string `gorm:"column:registrars" json:"registrars"`
  200. QrCode string `gorm:"column:qr_code" json:"qr_code"`
  201. BindingState int64 `gorm:"column:binding_state" json:"binding_state"`
  202. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"`
  203. PresentHistory string `gorm:"column:present_history" json:"present_history"`
  204. PastHistory string `gorm:"column:past_history" json:"past_history"`
  205. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  206. Pulse int64 `gorm:"column:pulse" json:"pulse"`
  207. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"`
  208. Sbp int64 `gorm:"column:sbp" json:"sbp"`
  209. Dbp int64 `gorm:"column:dbp" json:"dbp"`
  210. Status int64 `gorm:"column:status" json:"status"`
  211. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  212. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  213. Nation string `gorm:"column:nation" json:"nation"`
  214. NativePlace string `gorm:"column:native_place" json:"native_place"`
  215. Age int64 `gorm:"column:age" json:"age"`
  216. PatientLapseto PatientLapseto `gorm:"ForeignKey:PatientId,LapsetoType;AssociationForeignKey:ID,Lapseto" json:"patient_lapseto"`
  217. InfectiousDiseases []*InfectiousDiseases `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"infectious_diseases"`
  218. }
  219. func (Patients) TableName() string {
  220. return "xt_patients"
  221. }
  222. type InfectiousDiseases struct {
  223. ID int64 `gorm:"column:id" json:"id" form:"id"`
  224. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  225. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  226. Status int64 `gorm:"column:status" json:"status" form:"status"`
  227. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  228. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  229. }
  230. func (InfectiousDiseases) TableName() string {
  231. return "xt_patients_infectious_diseases"
  232. }
  233. type Device struct {
  234. ID int64 `gorm:"column:id" json:"id"`
  235. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  236. DeviceType int64 `gorm:"column:device_type" json:"device_type"`
  237. DmId int64 `gorm:"column:dm_id" json:"dm_id"`
  238. WteId int64 `gorm:"column:wte_id" json:"wte_id"`
  239. SerialNumber string `gorm:"column:serial_number" json:"serial_number"`
  240. Name string `gorm:"column:name" json:"name"`
  241. Model string `gorm:"column:model" json:"model"`
  242. DeviceNumberId int64 `gorm:"column:device_number_id" json:"device_number_id"`
  243. DeviceNumber string `gorm:"column:device_number" json:"device_number"`
  244. DeviceZoneId int64 `gorm:"column:device_zone_id" json:"device_zone_id"`
  245. DeviceGroupId int64 `gorm:"column:device_group_id" json:"device_group_id"`
  246. Status int64 `gorm:"column:status" json:"status"`
  247. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  248. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  249. }
  250. func (Device) TableName() string {
  251. return "xt_device"
  252. }
  253. type DeviceNumber struct {
  254. ID int64 `gorm:"column:id" json:"id"`
  255. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  256. Number string `gorm:"column:number" json:"number"`
  257. GroupId int64 `gorm:"column:group_id" json:"group_id"`
  258. ZoneId int64 `gorm:"column:zone_id" json:"zone_id"`
  259. Status int64 `gorm:"column:status" json:"status"`
  260. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  261. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  262. }
  263. func (DeviceNumber) TableName() string {
  264. return "xt_device_number"
  265. }
  266. // type DeviceZone struct {
  267. // ID int64 `gorm:"column:id" json:"id"`
  268. // OrgId int64 `gorm:"column:org_id" json:"org_id"`
  269. // Name string `gorm:"column:name" json:"name"`
  270. // Type int64 `gorm:"column:type" json:"type"`
  271. // Status int64 `gorm:"column:status" json:"status"`
  272. // Ctime int64 `gorm:"column:ctime" json:"ctime"`
  273. // Mtime int64 `gorm:"column:mtime" json:"mtime"`
  274. // }
  275. // func (DeviceZone) TableName() string {
  276. // return "xt_device_zone"
  277. // }
  278. type Schedule struct {
  279. ID int64 `gorm:"column:id" json:"id"`
  280. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  281. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  282. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  283. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  284. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  285. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  286. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week"`
  287. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  288. Status int64 `gorm:"column:status" json:"status"`
  289. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  290. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  291. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  292. }
  293. func (Schedule) TableName() string {
  294. return "xt_schedule"
  295. }
  296. type DialysisPrescription struct {
  297. ID int64 `gorm:"column:id" json:"id"`
  298. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  299. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  300. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  301. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  302. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  303. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  304. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  305. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  306. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  307. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  308. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  309. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  310. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  311. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  312. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  313. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  314. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  315. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  316. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  317. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  318. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  319. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  320. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  321. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  322. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  323. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  324. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  325. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  326. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  327. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  328. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  329. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  330. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  331. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  332. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  333. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  334. Creater int64 `gorm:"column:creater" json:"creater"`
  335. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  336. Remark string `gorm:"column:remark" json:"remark"`
  337. Status int64 `gorm:"column:status" json:"status"`
  338. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  339. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  340. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  341. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  342. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  343. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  344. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  345. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  346. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  347. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  348. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  349. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  350. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  351. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  352. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  353. Jms int64 `gorm:"column:jms" json:"jms"`
  354. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  355. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  356. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  357. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  358. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  359. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  360. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  361. Injector int64 `gorm:"column:injector" json:"injector"`
  362. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  363. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  364. Package int64 `gorm:"column:package" json:"package"`
  365. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  366. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,RecordDate" json:"before"`
  367. DialysisOrder DialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,RecordDate" json:"order"`
  368. }
  369. func (DialysisPrescription) TableName() string {
  370. return "xt_dialysis_prescription"
  371. }
  372. type DoctorAdvice struct {
  373. ID int64 `gorm:"column:id" json:"id"`
  374. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  375. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  376. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  377. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date"`
  378. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  379. AdviceName string `gorm:"column:advice_name" json:"advice_name"`
  380. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc"`
  381. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date"`
  382. SingleDose float64 `gorm:"column:single_dose" json:"single_dose"`
  383. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit"`
  384. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number"`
  385. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit"`
  386. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way"`
  387. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency"`
  388. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor"`
  389. Status int64 `gorm:"column:status" json:"status"`
  390. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  391. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  392. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm"`
  393. Remark string `gorm:"column:remark" json:"remark"`
  394. StopTime int64 `gorm:"column:stop_time" json:"stop_time"`
  395. StopReason string `gorm:"column:stop_reason" json:"stop_reason"`
  396. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor"`
  397. StopState int64 `gorm:"column:stop_state" json:"stop_state"`
  398. ParentId int64 `gorm:"column:parent_id" json:"parent_id"`
  399. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time"`
  400. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff"`
  401. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state"`
  402. Checker int64 `gorm:"column:checker" json:"checker"`
  403. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  404. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  405. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  406. CheckState int64 `gorm:"column:check_state" json:"check_state"`
  407. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec"`
  408. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit"`
  409. Groupno int64 `gorm:"column:groupno" json:"groupno"`
  410. }
  411. func (DoctorAdvice) TableName() string {
  412. return "xt_doctor_advice"
  413. }
  414. type DoctorAdviceTemplate struct {
  415. ID int64 `gorm:"column:id" json:"id" form:"id"`
  416. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  417. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  418. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  419. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  420. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  421. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  422. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  423. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  424. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  425. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  426. Status int64 `gorm:"column:status" json:"status" form:"status"`
  427. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  428. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  429. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  430. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  431. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  432. ParentId int64 `gorm:"column:parent_id" json:"parent_id"`
  433. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  434. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  435. WeekDays string `gorm:"column:week_days" json:"week_days"`
  436. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  437. SubDoctorAdviceTemplate []*DoctorAdviceTemplate `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  438. }
  439. func (DoctorAdviceTemplate) TableName() string {
  440. return "xt_doctor_advice_template"
  441. }
  442. type AssessmentAfterDislysis struct {
  443. ID int64 `gorm:"column:id" json:"id"`
  444. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  445. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  446. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  447. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  448. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  449. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  450. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  451. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  452. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  453. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  454. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  455. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  456. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  457. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  458. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  459. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  460. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  461. Cruor string `gorm:"column:cruor" json:"cruor"`
  462. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  463. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  464. Catheter string `gorm:"column:catheter" json:"catheter"`
  465. Complication string `gorm:"column:complication" json:"complication"`
  466. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  467. Remark string `gorm:"column:remark" json:"remark"`
  468. // DialysisIntakes int64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  469. // DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  470. // DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  471. // DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  472. // DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  473. Ktv string `gorm:"column:ktv" json:"ktv"`
  474. Urr string `gorm:"column:urr" json:"urr"`
  475. Status int64 `gorm:"column:status" json:"status"`
  476. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  477. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  478. Creater int64 `gorm:"column:creater" json:"creater"`
  479. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  480. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  481. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  482. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  483. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  484. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  485. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  486. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  487. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  488. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  489. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  490. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  491. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  492. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  493. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  494. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  495. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  496. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  497. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  498. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  499. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  500. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  501. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  502. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  503. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  504. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  505. }
  506. func (AssessmentAfterDislysis) TableName() string {
  507. return "xt_assessment_after_dislysis"
  508. }
  509. type AssessmentBeforeDislysis struct {
  510. ID int64 `gorm:"column:id" json:"id"`
  511. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  512. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  513. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  514. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  515. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  516. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  517. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  518. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  519. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  520. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  521. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  522. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  523. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  524. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  525. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  526. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  527. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  528. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  529. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  530. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  531. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  532. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  533. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  534. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  535. CatheterBend int64 `gorm:"column:catheter_bend" json:"catheter_bend"`
  536. Catheter string `gorm:"column:catheter" json:"catheter"`
  537. Complication string `gorm:"column:complication" json:"complication"`
  538. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  539. Creater int64 `gorm:"column:creater" json:"creater"`
  540. Remark string `gorm:"column:remark" json:"remark"`
  541. Status int64 `gorm:"column:status" json:"status"`
  542. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  543. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  544. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  545. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  546. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  547. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  548. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  549. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  550. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  551. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  552. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  553. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  554. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way"`
  555. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  556. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  557. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  558. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  559. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  560. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  561. DialysisCount string `gorm:"column:dialysis_count" json:"dialysis_count"`
  562. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  563. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  564. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  565. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  566. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  567. Skin string `gorm:"column:skin" json:"skin"`
  568. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  569. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  570. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  571. }
  572. func (AssessmentBeforeDislysis) TableName() string {
  573. return "xt_assessment_before_dislysis"
  574. }
  575. type MonitoringRecord struct {
  576. ID int64 `gorm:"column:id" json:"id"`
  577. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  578. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  579. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  580. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  581. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  582. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  583. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  584. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  585. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  586. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  587. Pic string `gorm:"column:pic" json:"pic"`
  588. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  589. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  590. VenousPressureUnit string `gorm:"column:venous_pressure_unit" json:"venous_pressure_unit"`
  591. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  592. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  593. TransmembranePressureUnit string `gorm:"column:transmembrane_pressure_unit" json:"transmembrane_pressure_unit"`
  594. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  595. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  596. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  597. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  598. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  599. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  600. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  601. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  602. Symptom string `gorm:"column:symptom" json:"symptom"`
  603. Dispose string `gorm:"column:dispose" json:"dispose"`
  604. Result string `gorm:"column:result" json:"result"`
  605. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  606. Status int64 `gorm:"column:status" json:"status"`
  607. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  608. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  609. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  610. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  611. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  612. DialysisOrder DialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,MonitoringDate" json:"order"`
  613. }
  614. func (MonitoringRecord) TableName() string {
  615. return "xt_monitoring_record"
  616. }
  617. type PatientLapseto struct {
  618. ID int64 `gorm:"column:id" json:"id"`
  619. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  620. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type"`
  621. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time"`
  622. Status int64 `gorm:"column:status" json:"status"`
  623. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  624. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  625. }
  626. func (PatientLapseto) TableName() string {
  627. return "xt_patient_lapseto"
  628. }
  629. type XtPatientAllergic struct {
  630. ID int64 `gorm:"column:id" json:"id" form:"id"`
  631. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  632. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  633. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  634. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  635. PatientSource int64 `gorm:"column:patient_source" json:"patient_source" form:"patient_source"`
  636. Status int64 `gorm:"column:status" json:"status" form:"status"`
  637. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  638. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  639. Remake string `gorm:"column:remake" json:"remake" form:"remake"`
  640. PatientAddress string `gorm:"column:patient_address" json:"patient_address" form:"patient_address"`
  641. }
  642. func (XtPatientAllergic) TableName() string {
  643. return "xt_patient_allergic"
  644. }
  645. type DialysisOrder struct {
  646. ID int64 `gorm:"column:id" json:"id"`
  647. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  648. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  649. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  650. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  651. Stage int64 `gorm:"column:stage" json:"stage"`
  652. Remark string `gorm:"column:remark" json:"remark"`
  653. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  654. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  655. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  656. Status int64 `gorm:"column:status" json:"status"`
  657. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  658. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  659. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  660. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  661. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  662. Creator int64 `gorm:"column:creator" json:"creator"`
  663. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  664. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  665. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  666. }
  667. func (DialysisOrder) TableName() string {
  668. return "xt_dialysis_order"
  669. }
  670. type VMDialysisOrder struct {
  671. ID int64 `gorm:"column:id" json:"id"`
  672. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  673. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  674. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  675. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  676. Stage int64 `gorm:"column:stage" json:"stage"`
  677. Remark string `gorm:"column:remark" json:"remark"`
  678. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  679. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  680. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  681. Status int64 `gorm:"column:status" json:"status"`
  682. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  683. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  684. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  685. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  686. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  687. Creator int64 `gorm:"column:creator" json:"creator"`
  688. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  689. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  690. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  691. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  692. VMDialysisPrescription VMDialysisPrescription `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"prescription"`
  693. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"before"`
  694. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"after"`
  695. Schedule Schedule `gorm:"ForeignKey:ScheduleDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"schedule"`
  696. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"monitor"`
  697. }
  698. func (VMDialysisOrder) TableName() string {
  699. return "xt_dialysis_order"
  700. }
  701. type VMSchedule struct {
  702. ID int64 `gorm:"column:id" json:"id"`
  703. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  704. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  705. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  706. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  707. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  708. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  709. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week"`
  710. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  711. Status int64 `gorm:"column:status" json:"status"`
  712. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  713. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  714. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  715. VMDialysisPrescription VMDialysisPrescription `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"prescription"`
  716. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"before"`
  717. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"after"`
  718. DialysisOrder DialysisOrder `gorm:"ForeignKey:DialysisDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"order"`
  719. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"monitor"`
  720. }
  721. func (VMSchedule) TableName() string {
  722. return "xt_schedule"
  723. }
  724. type VMDialysisPrescription struct {
  725. ID int64 `gorm:"column:id" json:"id"`
  726. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  727. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  728. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  729. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  730. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  731. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  732. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  733. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  734. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  735. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  736. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  737. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  738. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  739. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  740. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  741. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  742. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  743. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  744. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  745. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  746. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  747. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  748. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  749. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  750. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  751. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  752. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  753. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  754. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  755. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  756. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  757. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  758. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  759. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  760. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  761. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  762. Creater int64 `gorm:"column:creater" json:"creater"`
  763. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  764. Remark string `gorm:"column:remark" json:"remark"`
  765. Status int64 `gorm:"column:status" json:"status"`
  766. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  767. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  768. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  769. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  770. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  771. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  772. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  773. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  774. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  775. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  776. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  777. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  778. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  779. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  780. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  781. Jms int64 `gorm:"column:jms" json:"jms"`
  782. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  783. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  784. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  785. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  786. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  787. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  788. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  789. Injector int64 `gorm:"column:injector" json:"injector"`
  790. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  791. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  792. Package int64 `gorm:"column:package" json:"package"`
  793. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  794. }
  795. func (VMDialysisPrescription) TableName() string {
  796. return "xt_dialysis_prescription"
  797. }
  798. type DeviceInformation struct {
  799. ID int64 `gorm:"column:id" json:"id" form:"id"`
  800. Date int64 `gorm:"column:date" json:"date" form:"date"`
  801. Class int64 `gorm:"column:class" json:"class" form:"class"`
  802. Zone int64 `gorm:"column:zone" json:"zone" form:"zone"`
  803. BedNumber int64 `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  804. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  805. Contagion string `gorm:"column:contagion" json:"contagion" form:"contagion"`
  806. DialysisMode int64 `gorm:"column:dialysis_mode" json:"dialysis_mode" form:"dialysis_mode"`
  807. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  808. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  809. DialysisHour string `gorm:"column:dialysis_hour" json:"dialysis_hour" form:"dialysis_hour"`
  810. Hyperfiltratio float64 `gorm:"column:hyperfiltratio" json:"hyperfiltratio" form:"hyperfiltratio"`
  811. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
  812. WarningValue string `gorm:"column:warning_value" json:"warning_value" form:"warning_value"`
  813. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  814. Move int64 `gorm:"column:move" json:"move" form:"move"`
  815. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  816. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  817. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  818. DisinfectType int64 `gorm:"column:disinfect_type" json:"disinfect_type" form:"disinfect_type"`
  819. DisinfectantType int64 `gorm:"column:disinfectant_type" json:"disinfectant_type" form:"disinfectant_type"`
  820. Disinfection int64 `gorm:"column:disinfection" json:"disinfection" form:"disinfection"`
  821. MachineRun int64 `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  822. FluidPath int64 `gorm:"column:fluid_path" json:"fluid_path" form:"fluid_path"`
  823. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  824. DisinfectionStatus int64 `gorm:"column:disinfection_status" json:"disinfection_status" form:"disinfection_status"`
  825. DisinfectionResidue int64 `gorm:"column:disinfection_residue" json:"disinfection_residue" form:"disinfection_residue"`
  826. LongTime string `gorm:"column:long_time" json:"long_time" form:"long_time"`
  827. DisinfecStartime int64 `gorm:"column:disinfec_startime" json:"disinfec_startime" form:"disinfec_startime"`
  828. DisinfecEndtime int64 `gorm:"column:disinfec_endtime" json:"disinfec_endtime" form:"disinfec_endtime"`
  829. DialysisChecked int64 `gorm:"column:dialysis_checked" json:"dialysis_checked" form:"dialysis_checked"`
  830. DialysisName int64 `gorm:"column:dialysis_name" json:"dialysis_name" form:"dialysis_name"`
  831. Norms string `gorm:"column:norms" json:"norms" form:"norms"`
  832. DialysisConcentration int64 `gorm:"column:dialysis_concentration" json:"dialysis_concentration" form:"dialysis_concentration"`
  833. GermChecked int64 `gorm:"column:germ_checked" json:"germ_checked" form:"germ_checked"`
  834. GermName int64 `gorm:"column:germ_name" json:"germ_name" form:"germ_name"`
  835. GermNumber string `gorm:"column:germ_number" json:"germ_number" form:"germ_number"`
  836. Clean int64 `gorm:"column:clean" json:"clean" form:"clean"`
  837. SignName int64 `gorm:"column:sign_name" json:"sign_name" form:"sign_name"`
  838. Status int64 `gorm:"column:status" json:"status" form:"status"`
  839. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  840. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  841. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  842. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  843. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  844. Stime int64 `gorm:"column:stime" json:"stime" form:"stime"`
  845. VMDeviceAddmacher VMDeviceAddmacher `gorm:"ForeignKey:ID;AssociationForeignKey:EquimentId"`
  846. }
  847. func (DeviceInformation) TableName() string {
  848. return "xt_device_information"
  849. }
  850. type VMDeviceAddmacher struct {
  851. ID int64 `gorm:"column:id" json:"id" form:"id"`
  852. SerialNumber string `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
  853. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  854. BedNumber string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  855. DeviceName string `gorm:"column:device_name" json:"device_name" form:"device_name"`
  856. ManufactureFactory string `gorm:"column:manufacture_factory" json:"manufacture_factory" form:"manufacture_factory"`
  857. ServiceManufacturer string `gorm:"column:service_manufacturer" json:"service_manufacturer" form:"service_manufacturer"`
  858. UnitType int64 `gorm:"column:unit_type" json:"unit_type" form:"unit_type"`
  859. UseSection string `gorm:"column:use_section" json:"use_section" form:"use_section"`
  860. SectionNumber string `gorm:"column:section_number" json:"section_number" form:"section_number"`
  861. BuyDate int64 `gorm:"column:buy_date" json:"buy_date" form:"buy_date"`
  862. InstallDate int64 `gorm:"column:install_date" json:"install_date" form:"install_date"`
  863. StartDate int64 `gorm:"column:start_date" json:"start_date" form:"start_date"`
  864. MaintenaceEngineer string `gorm:"column:maintenace_engineer" json:"maintenace_engineer" form:"maintenace_engineer"`
  865. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  866. GuaranteeDate string `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  867. MachineStatus int64 `gorm:"column:machine_status" json:"machine_status" form:"machine_status"`
  868. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  869. DisinfectionMode int64 `gorm:"column:disinfection_mode" json:"disinfection_mode" form:"disinfection_mode"`
  870. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  871. RubbishDate int64 `gorm:"column:rubbish_date" json:"rubbish_date" form:"rubbish_date"`
  872. RubbishReason int64 `gorm:"column:rubbish_reason" json:"rubbish_reason" form:"rubbish_reason"`
  873. UserYear string `gorm:"column:user_year" json:"user_year" form:"user_year"`
  874. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  875. ReversMode int64 `gorm:"column:revers_mode" json:"revers_mode" form:"revers_mode"`
  876. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  877. Status int64 `gorm:"column:status" json:"status" form:"status"`
  878. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  879. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  880. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  881. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  882. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId"`
  883. }
  884. func (VMDeviceAddmacher) TableName() string {
  885. return "xt_device_addmacher"
  886. }
  887. type DevicePlan struct {
  888. ID int64 `gorm:"column:id" json:"id" form:"id"`
  889. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  890. DisinfecTime int64 `gorm:"column:disinfec_time" json:"disinfec_time" form:"disinfec_time"`
  891. Time int64 `gorm:"column:time" json:"time" form:"time"`
  892. Classtime int64 `gorm:"column:classtime" json:"classtime" form:"classtime"`
  893. Way int64 `gorm:"column:way" json:"way" form:"way"`
  894. MachineDisinfectant int64 `gorm:"column:machine_disinfectant" json:"machine_disinfectant" form:"machine_disinfectant"`
  895. DisinfectanWay int64 `gorm:"column:disinfectan_way" json:"disinfectan_way" form:"disinfectan_way"`
  896. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  897. Status int64 `gorm:"column:status" json:"status" form:"status"`
  898. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  899. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  900. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  901. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  902. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  903. VMDeviceAddmacher VMDeviceAddmacher `gorm:"ForeignKey:ID;AssociationForeignKey:EquimentId"`
  904. }
  905. func (DevicePlan) TableName() string {
  906. return "xt_device_plan"
  907. }
  908. type DeviceRepair struct {
  909. ID int64 `gorm:"column:id" json:"id" form:"id"`
  910. GuaranteeDate int64 `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  911. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  912. ArriveTime int64 `gorm:"column:arrive_time" json:"arrive_time" form:"arrive_time"`
  913. FinishTime int64 `gorm:"column:finish_time" json:"finish_time" form:"finish_time"`
  914. TotalDistance string `gorm:"column:total_distance" json:"total_distance" form:"total_distance"`
  915. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  916. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  917. CauseAnalysis string `gorm:"column:cause_analysis" json:"cause_analysis" form:"cause_analysis"`
  918. TreatmentProcess string `gorm:"column:treatment_process" json:"treatment_process" form:"treatment_process"`
  919. Images string `gorm:"column:images" json:"images" form:"images"`
  920. Exclude int64 `gorm:"column:exclude" json:"exclude" form:"exclude"`
  921. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  922. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  923. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  924. Status int64 `gorm:"column:status" json:"status" form:"status"`
  925. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  926. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  927. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  928. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  929. ImageName string `gorm:"column:image_name" json:"image_name" form:"image_name"`
  930. VMDeviceAddmacher VMDeviceAddmacher `gorm:"ForeignKey:ID;AssociationForeignKey:EquitmentId"`
  931. }
  932. func (DeviceRepair) TableName() string {
  933. return "xt_device_repair"
  934. }
  935. type XtInspectionReference struct {
  936. ID int64 `gorm:"column:id" json:"id" form:"id"`
  937. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  938. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  939. Project string `gorm:"column:project" json:"project" form:"project"`
  940. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  941. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  942. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  943. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  944. Item string `gorm:"column:item" json:"item" form:"item"`
  945. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  946. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  947. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  948. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  949. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  950. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  951. Status int64 `gorm:"column:status" json:"status" form:"status"`
  952. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  953. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  954. }
  955. func (XtInspectionReference) TableName() string {
  956. return "xt_inspection_reference"
  957. }
  958. type XtInspection struct {
  959. ID int64 `gorm:"column:id" json:"id" form:"id"`
  960. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  961. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  962. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  963. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  964. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  965. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  966. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  967. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  968. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  969. Status int64 `gorm:"column:status" json:"status" form:"status"`
  970. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  971. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  972. Patients Patients `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId"`
  973. XtInspectionReference XtInspectionReference `gorm:"ForeignKey:ProjectId,ItemId;AssociationForeignKey:ProjectId,ItemId;"`
  974. }
  975. func (XtInspection) TableName() string {
  976. return "xt_inspection"
  977. }
  978. type XtDeviceCulture struct {
  979. ID int64 `gorm:"column:id" json:"id" form:"id"`
  980. SpelingDate int64 `gorm:"column:speling_date" json:"speling_date" form:"speling_date"`
  981. Specimen int64 `gorm:"column:specimen" json:"specimen" form:"specimen"`
  982. ConcentrateNoa string `gorm:"column:concentrate_noa" json:"concentrate_noa" form:"concentrate_noa"`
  983. ConcentrateNob string `gorm:"column:concentrate_nob" json:"concentrate_nob" form:"concentrate_nob"`
  984. SamplingLocationa int64 `gorm:"column:sampling_locationa" json:"sampling_locationa" form:"sampling_locationa"`
  985. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  986. Sampler int64 `gorm:"column:sampler" json:"sampler" form:"sampler"`
  987. ReportingDate int64 `gorm:"column:reporting_date" json:"reporting_date" form:"reporting_date"`
  988. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  989. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  990. Status int64 `gorm:"column:status" json:"status" form:"status"`
  991. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  992. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  993. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  994. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  995. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  996. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  997. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  998. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  999. }
  1000. func (XtDeviceCulture) TableName() string {
  1001. return "xt_device_culture"
  1002. }
  1003. type XtDeviceDialysate struct {
  1004. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1005. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1006. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1007. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1008. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1009. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1010. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1011. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1012. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1013. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1014. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1015. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1016. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1017. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1018. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1019. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1020. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1021. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1022. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1023. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1024. }
  1025. func (XtDeviceDialysate) TableName() string {
  1026. return "xt_device_dialysate"
  1027. }
  1028. type XtAerialDetection struct {
  1029. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1030. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1031. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1032. Class int64 `gorm:"column:class" json:"class" form:"class"`
  1033. DisinfectionMethods string `gorm:"column:disinfection_methods" json:"disinfection_methods" form:"disinfection_methods"`
  1034. DisinfectionFluid string `gorm:"column:disinfection_fluid" json:"disinfection_fluid" form:"disinfection_fluid"`
  1035. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1036. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1037. DetectionTime int64 `gorm:"column:detection_time" json:"detection_time" form:"detection_time"`
  1038. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  1039. UploadTime int64 `gorm:"column:upload_time" json:"upload_time" form:"upload_time"`
  1040. CheckOut int64 `gorm:"column:check_out" json:"check_out" form:"check_out"`
  1041. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1042. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1043. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1044. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1045. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1046. }
  1047. func (XtAerialDetection) TableName() string {
  1048. return "xt_aerial_detection"
  1049. }
  1050. type XtBodyDetection struct {
  1051. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1052. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1053. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1054. Class int64 `gorm:"column:class" json:"class" form:"class"`
  1055. DisinfectionMethods string `gorm:"column:disinfection_methods" json:"disinfection_methods" form:"disinfection_methods"`
  1056. DisinfectionFluid string `gorm:"column:disinfection_fluid" json:"disinfection_fluid" form:"disinfection_fluid"`
  1057. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1058. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1059. DetectionTime int64 `gorm:"column:detection_time" json:"detection_time" form:"detection_time"`
  1060. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  1061. UploadTime int64 `gorm:"column:upload_time" json:"upload_time" form:"upload_time"`
  1062. CheckOut int64 `gorm:"column:check_out" json:"check_out" form:"check_out"`
  1063. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1064. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1065. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1066. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1067. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1068. }
  1069. func (XtBodyDetection) TableName() string {
  1070. return "xt_body_detection"
  1071. }
  1072. type XtDeviceWater struct {
  1073. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1074. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1075. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1076. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1077. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1078. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1079. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1080. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1081. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1082. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1083. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1084. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1085. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1086. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1087. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1088. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1089. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1090. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1091. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1092. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1093. }
  1094. func (XtDeviceWater) TableName() string {
  1095. return "xt_device_water"
  1096. }
  1097. //透析液离子浓度检测
  1098. type DeviceIon struct {
  1099. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1100. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1101. Samplerc int64 `gorm:"column:samplerc" json:"samplerc" form:"samplerc"`
  1102. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1103. ConcentrateNof string `gorm:"column:concentrate_nof" json:"concentrate_nof" form:"concentrate_nof"`
  1104. ConcentrateNog string `gorm:"column:concentrate_nog" json:"concentrate_nog" form:"concentrate_nog"`
  1105. DateReportc int64 `gorm:"column:date_reportc" json:"date_reportc" form:"date_reportc"`
  1106. ActualNa string `gorm:"column:actual_na" json:"actual_na" form:"actual_na"`
  1107. ActualPna string `gorm:"column:actual_pna" json:"actual_pna" form:"actual_pna"`
  1108. ActualK string `gorm:"column:actual_k" json:"actual_k" form:"actual_k"`
  1109. ActualCa string `gorm:"column:actual_ca" json:"actual_ca" form:"actual_ca"`
  1110. ActualCi string `gorm:"column:actual_ci" json:"actual_ci" form:"actual_ci"`
  1111. ActualHco string `gorm:"column:actual_hco" json:"actual_hco" form:"actual_hco"`
  1112. ActualMg string `gorm:"column:actual_mg" json:"actual_mg" form:"actual_mg"`
  1113. ActualPh string `gorm:"column:actual_ph" json:"actual_ph" form:"actual_ph"`
  1114. Remakes string `gorm:"column:remakes" json:"remakes" form:"remakes"`
  1115. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1116. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1117. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1118. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1119. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1120. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1121. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1122. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1123. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1124. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1125. }
  1126. func (DeviceIon) TableName() string {
  1127. return "xt_device_ion"
  1128. }
  1129. type XtDeviceOxygenates struct {
  1130. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1131. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1132. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1133. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1134. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1135. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1136. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1137. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1138. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1139. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1140. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1141. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1142. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1143. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1144. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1145. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1146. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1147. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1148. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1149. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1150. }
  1151. func (XtDeviceOxygenates) TableName() string {
  1152. return "xt_device_oxygenates"
  1153. }
  1154. type XtDevicePh struct {
  1155. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1156. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1157. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1158. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1159. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1160. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1161. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1162. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1163. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1164. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1165. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1166. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1167. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1168. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1169. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1170. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1171. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1172. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1173. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1174. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1175. }
  1176. func (XtDevicePh) TableName() string {
  1177. return "xt_device_ph"
  1178. }
  1179. type XtDeviceHadwater struct {
  1180. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1181. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1182. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1183. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1184. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1185. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1186. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1187. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1188. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1189. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1190. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1191. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1192. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1193. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1194. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1195. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1196. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1197. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1198. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1199. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1200. }
  1201. func (XtDeviceHadwater) TableName() string {
  1202. return "xt_device_hadwater"
  1203. }
  1204. type XtPatientVascularAccess struct {
  1205. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1206. AccessProject int64 `gorm:"column:access_project" json:"access_project" form:"access_project"`
  1207. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id" form:"blood_access_part_id"`
  1208. InflowPass string `gorm:"column:inflow_pass" json:"inflow_pass" form:"inflow_pass"`
  1209. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1210. FirstStartTime int64 `gorm:"column:first_start_time" json:"first_start_time" form:"first_start_time"`
  1211. BloodAccessPartOperaId string `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id" form:"blood_access_part_opera_id"`
  1212. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1213. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1214. UserStatus int64 `gorm:"column:user_status" json:"user_status" form:"user_status"`
  1215. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1216. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1217. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1218. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1219. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1220. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  1221. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1222. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1223. OtherVascular string `gorm:"column:other_vascular" json:"other_vascular" form:"other_vascular"`
  1224. CiType int64 `gorm:"column:ci_type" json:"ci_type" form:"ci_type"`
  1225. BloodCultupe int64 `gorm:"column:blood_cultupe" json:"blood_cultupe" form:"blood_cultupe"`
  1226. SequelaeType int64 `gorm:"column:sequelae_type" json:"sequelae_type" form:"sequelae_type"`
  1227. }
  1228. func (XtPatientVascularAccess) TableName() string {
  1229. return "xt_patient_vascular_access"
  1230. }
  1231. type App_Role struct {
  1232. Id int64 `gorm:"PRIMARY_KEY;AUTO_INCREMENT" json:"id"`
  1233. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  1234. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1235. AppId int64 `gorm:"column:app_id" json:"app_id"`
  1236. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  1237. Avatar string `json:"avatar" json:"avatar"`
  1238. UserName string `gorm:"column:user_name" json:"user_name"` // 用户名称
  1239. Intro string `json:"intro"` // 简介
  1240. UserType int8 `gorm:"column:user_type" json:"user_type"` // 用户类型(1.管理员;2.医生;3.护士;4.运营)
  1241. UserTitle int8 `gorm:"column:user_title" json:"user_title"` // 用户职称(1.医士;2.医师;3.住院医师;4.主治医师;5.副主任医师;6.主任医师;7.护士;8.护师;9.主管护师;10.副主任护师;11.主任护师;12.运营专员;13.运营主管)
  1242. Status int8 `json:"status"` // 状态 0.无效 1.有效
  1243. CreateTime int64 `gorm:"column:ctime" json:"ctime"` // 创建时间
  1244. ModifyTime int64 `gorm:"column:mtime" json:"mtime"` // 修改时间UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1245. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1246. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  1247. IsSubSuperAdmin bool `gorm:"-" json:"is_sub_super_admin" form:"is_sub_super_admin"`
  1248. Message string `gorm:"column:message" json:"message" form:"message"`
  1249. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  1250. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1251. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1252. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  1253. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  1254. Department string `gorm:"column:department" json:"department" form:"department"`
  1255. Age int64 `gorm:"column:age" json:"age" form:"age"`
  1256. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  1257. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  1258. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  1259. Education int64 `gorm:"column:education" json:"education" form:"education"`
  1260. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  1261. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  1262. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  1263. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1264. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  1265. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  1266. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  1267. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  1268. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  1269. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1270. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  1271. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  1272. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  1273. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  1274. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  1275. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  1276. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  1277. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  1278. OutpatientIllnesscategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  1279. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  1280. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  1281. }
  1282. func (App_Role) TableName() string {
  1283. return "sgj_user_admin_role"
  1284. }
  1285. type HisPrescriptionInfo struct {
  1286. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1287. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1288. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1289. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1290. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1291. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1292. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1293. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1294. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1295. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1296. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1297. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  1298. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1299. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  1300. SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
  1301. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  1302. PrescriptionStatus int64 `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
  1303. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1304. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  1305. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  1306. }
  1307. func (HisPrescriptionInfo) TableName() string {
  1308. return "his_prescription_info"
  1309. }
  1310. type HisPrescription struct {
  1311. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1312. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1313. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1314. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1315. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1316. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1317. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1318. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1319. Number string `gorm:"column:number" json:"number" form:"number"`
  1320. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1321. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1322. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1323. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1324. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1325. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1326. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  1327. }
  1328. func (HisPrescription) TableName() string {
  1329. return "his_prescription"
  1330. }
  1331. type HisDoctorAdviceInfo struct {
  1332. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1333. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1334. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1335. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1336. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1337. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1338. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1339. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1340. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1341. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1342. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1343. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1344. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1345. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1346. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1347. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1348. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1349. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1350. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1351. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1352. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1353. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1354. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1355. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1356. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1357. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1358. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1359. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1360. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1361. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1362. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1363. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1364. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1365. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1366. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1367. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1368. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1369. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1370. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1371. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1372. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1373. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1374. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1375. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1376. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1377. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1378. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1379. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1380. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1381. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1382. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug"`
  1383. }
  1384. func (HisDoctorAdviceInfo) TableName() string {
  1385. return "his_doctor_advice_info"
  1386. }
  1387. type HisPrescriptionProject struct {
  1388. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1389. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1390. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1391. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1392. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1393. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1394. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1395. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1396. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1397. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1398. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1399. Count string `gorm:"column:count" json:"count" form:"count"`
  1400. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1401. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1402. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1403. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1404. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1405. Day string `gorm:"column:day" json:"day" form:"day"`
  1406. HisProject HisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
  1407. GoodInfo GoodInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
  1408. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1409. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1410. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1411. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1412. ExecutionTime int64 `gborm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1413. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1414. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1415. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1416. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1417. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1418. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1419. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1420. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1421. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1422. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1423. IsCheckTeam int64 `gorm:"-" json:"is_check_team" form:"is_check_team"`
  1424. }
  1425. func (HisPrescriptionProject) TableName() string {
  1426. return "his_prescription_project"
  1427. }
  1428. type GoodInfo struct {
  1429. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1430. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  1431. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1432. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1433. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  1434. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1435. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  1436. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1437. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1438. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1439. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1440. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1441. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  1442. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  1443. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  1444. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1445. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  1446. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  1447. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  1448. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1449. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1450. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1451. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1452. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1453. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1454. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  1455. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  1456. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1457. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1458. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  1459. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  1460. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1461. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  1462. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  1463. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  1464. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1465. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1466. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  1467. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  1468. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  1469. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1470. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  1471. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  1472. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  1473. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1474. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1475. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  1476. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  1477. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1478. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  1479. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1480. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1481. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  1482. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1483. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1484. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1485. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  1486. Number string `gorm:"column:number" json:"number" form:"number"`
  1487. IsWarehouse int64 `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  1488. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  1489. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  1490. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  1491. }
  1492. func (GoodInfo) TableName() string {
  1493. return "xt_good_information"
  1494. }
  1495. type HisProject struct {
  1496. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1497. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  1498. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1499. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1500. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1501. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1502. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  1503. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  1504. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  1505. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  1506. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  1507. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1508. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1509. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  1510. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  1511. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1512. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1513. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  1514. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1515. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  1516. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  1517. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  1518. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1519. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  1520. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1521. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1522. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1523. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1524. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1525. NumberDays string `gorm:"column:number_days" json:"number_days" form:"number_days"`
  1526. Total string `gorm:"column:total" json:"total" form:"total"`
  1527. Category int64 `gorm:"column:category" json:"category" form:"category"`
  1528. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1529. SpecailProject int64 `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
  1530. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1531. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1532. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1533. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1534. }
  1535. func (HisProject) TableName() string {
  1536. return "xt_his_project"
  1537. }
  1538. type HisChargeDoctorAdviceInfo struct {
  1539. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1540. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1541. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1542. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1543. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1544. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1545. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1546. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1547. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1548. }
  1549. func (HisChargeDoctorAdviceInfo) TableName() string {
  1550. return "his_doctor_advice_info"
  1551. }
  1552. type BaseDrugLib struct {
  1553. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1554. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  1555. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1556. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1557. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  1558. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  1559. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  1560. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  1561. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1562. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  1563. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  1564. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  1565. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  1566. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  1567. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1568. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1569. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  1570. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1571. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  1572. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  1573. Number string `gorm:"column:number" json:"number" form:"number"`
  1574. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  1575. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  1576. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  1577. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1578. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1579. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  1580. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  1581. Code string `gorm:"column:code" json:"code" form:"code"`
  1582. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  1583. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1584. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  1585. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  1586. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  1587. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1588. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1589. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1590. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1591. Label int64 `gorm:"column:label" json:"label" form:"label"`
  1592. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1593. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  1594. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1595. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  1596. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  1597. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  1598. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1599. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1600. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1601. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1602. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  1603. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  1604. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1605. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  1606. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1607. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  1608. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1609. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1610. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1611. //MedicineInsurancePercentage []*MedicineInsurancePercentage `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
  1612. }
  1613. func (BaseDrugLib) TableName() string {
  1614. return "xt_base_drug"
  1615. }
  1616. type XtHisProject struct {
  1617. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1618. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  1619. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1620. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1621. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1622. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1623. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  1624. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  1625. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  1626. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  1627. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  1628. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1629. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1630. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  1631. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  1632. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1633. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1634. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  1635. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1636. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  1637. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  1638. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  1639. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1640. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  1641. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1642. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1643. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1644. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1645. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1646. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1647. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1648. NumberDays string `gorm:"column:number_days" json:"number_days" form:"number_days"`
  1649. Total string `gorm:"column:total" json:"total" form:"total"`
  1650. Category int64 `gorm:"column:category" json:"category" form:"category"`
  1651. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1652. SpecailProject int64 `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
  1653. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1654. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1655. }
  1656. func (XtHisProject) TableName() string {
  1657. return "xt_his_project"
  1658. }
  1659. type HisOrder struct {
  1660. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1661. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1662. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1663. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  1664. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1665. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1666. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1667. Number string `gorm:"column:number" json:"number" form:"number"`
  1668. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1669. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  1670. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  1671. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  1672. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  1673. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  1674. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  1675. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1676. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  1677. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  1678. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  1679. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1680. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  1681. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1682. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  1683. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  1684. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  1685. Age float64 `gorm:"column:age" json:"age" form:"age"`
  1686. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  1687. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  1688. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  1689. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  1690. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  1691. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  1692. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  1693. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1694. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  1695. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1696. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1697. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  1698. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  1699. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  1700. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  1701. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  1702. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  1703. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  1704. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  1705. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  1706. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  1707. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  1708. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  1709. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  1710. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  1711. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  1712. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  1713. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  1714. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  1715. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  1716. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  1717. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  1718. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  1719. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  1720. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  1721. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  1722. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  1723. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  1724. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  1725. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  1726. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  1727. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  1728. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1729. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  1730. AccountPrice float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
  1731. SzChargeInfo string `gorm:"column:sz_charge_info" json:"sz_charge_info" form:"sz_charge_info"`
  1732. SzProjectInfo string `gorm:"column:sz_project_info" json:"sz_project_info" form:"sz_project_info"`
  1733. SzMedicineInsuranceInfo string `gorm:"column:sz_medicine_insurance_info" json:"sz_medicine_insurance_info" form:"sz_medicine_insurance_info"`
  1734. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  1735. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  1736. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  1737. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  1738. OrgSetlNumber string `gorm:"column:org_setl_number" json:"org_setl_number" form:"org_setl_number"`
  1739. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  1740. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  1741. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  1742. RefundLog string `gorm:"column:refund_log" json:"refund_log" form:"refund_log"`
  1743. DetailLog string `gorm:"column:detail_log" json:"detail_log" form:"detail_log"`
  1744. RequestLog string `gorm:"column:request_log" json:"request_log" form:"request_log"`
  1745. RefundRequestLog string `gorm:"column:refund_request_log" json:"refund_request_log" form:"refund_request_log"`
  1746. }
  1747. func (HisOrder) TableName() string {
  1748. return "his_order"
  1749. }
  1750. type HisOrderInfo struct {
  1751. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1752. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1753. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  1754. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  1755. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  1756. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  1757. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  1758. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1759. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  1760. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  1761. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1762. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  1763. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1764. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  1765. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  1766. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  1767. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1768. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  1769. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1770. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1771. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1772. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  1773. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1774. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  1775. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  1776. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1777. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  1778. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1779. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1780. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1781. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1782. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1783. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  1784. OverPricPsnPay float64 `gorm:"column:over_pric_psn_pay" json:"over_pric_psn_pay" form:"over_pric_psn_pay"`
  1785. AllowReimburse float64 `gorm:"column:allow_reimburse" json:"allow_reimburse" form:"allow_reimburse"`
  1786. HisDoctorAdviceInfo HisDoctorAdviceInfo `gorm:"ForeignKey:AdviceId;AssociationForeignKey:ID" json:"advice"`
  1787. HisPrescriptionProject HisPrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  1788. }
  1789. func (HisOrderInfo) TableName() string {
  1790. return "his_order_info"
  1791. }