doctor_advice_models.go 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. package models
  2. type DrugDic struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. Code string `gorm:"column:code" json:"code" form:"code"`
  5. Name string `gorm:"column:name" json:"name" form:"name"`
  6. Spec string `gorm:"column:spec" json:"spec" form:"spec"`
  7. SpecUnit string `gorm:"column:spec_unit" json:"spec_unit" form:"spec_unit"`
  8. Form string `gorm:"column:form" json:"form" form:"form"`
  9. FormUnit string `gorm:"column:form_unit" json:"form_unit" form:"form_unit"`
  10. Status int64 `gorm:"column:status" json:"status" form:"status"`
  11. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  12. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  13. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  14. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  15. }
  16. func (DrugDic) TableName() string {
  17. return "xt_drug_dic"
  18. }
  19. type DrugwayDic struct {
  20. ID int64 `gorm:"column:id" json:"id" form:"id"`
  21. Code string `gorm:"column:code" json:"code" form:"code"`
  22. Name string `gorm:"column:name" json:"name" form:"name"`
  23. Status int64 `gorm:"column:status" json:"status" form:"status"`
  24. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  25. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  26. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  27. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  28. Bby01 string `gorm:"column:bby01" json:"bby01" form:"bby01"`
  29. }
  30. func (DrugwayDic) TableName() string {
  31. return "xt_drugway_dic"
  32. }
  33. type ExecutionFrequencyDic struct {
  34. ID int64 `gorm:"column:id" json:"id" form:"id"`
  35. Code string `gorm:"column:code" json:"code" form:"code"`
  36. Name string `gorm:"column:name" json:"name" form:"name"`
  37. Status int64 `gorm:"column:status" json:"status" form:"status"`
  38. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  39. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  40. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  41. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  42. Count int64 `gorm:"column:count" json:"count" form:"count"`
  43. }
  44. func (ExecutionFrequencyDic) TableName() string {
  45. return "xt_execution_frequency_dic"
  46. }
  47. type DoctorAdviceTemplate struct {
  48. ID int64 `gorm:"column:id" json:"id" form:"id"`
  49. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  50. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  51. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  52. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  53. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  54. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  55. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  56. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  57. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  58. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  59. Status int64 `gorm:"column:status" json:"status" form:"status"`
  60. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  61. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  62. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  63. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  64. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  65. ParentId int64 `gorm:"column:parent_id" json:"parent_id"`
  66. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  67. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  68. WeekDays string `gorm:"column:week_days" json:"week_days"`
  69. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  70. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  71. Way int64 `gorm:"column:way" json:"way" form:"way"`
  72. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  73. SubDoctorAdviceTemplate []*DoctorAdviceTemplate `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  74. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  75. }
  76. func (DoctorAdviceTemplate) TableName() string {
  77. return "xt_doctor_advice_template"
  78. }
  79. type DoctorAdviceParentTemplate struct {
  80. ID int64 `gorm:"column:id" json:"id"`
  81. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  82. Name string `gorm:"column:name" json:"name"`
  83. Status int64 `gorm:"column:status" json:"status"`
  84. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  85. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  86. DoctorAdviceTemplate []*DoctorAdviceTemplate `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID"`
  87. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  88. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  89. }
  90. func (DoctorAdviceParentTemplate) TableName() string {
  91. return "xt_doctor_advice_parent_template"
  92. }
  93. type VMDoctorAdviceParentTemplate struct {
  94. ID int64 `gorm:"column:id" json:"id"`
  95. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  96. Name string `gorm:"column:name" json:"name"`
  97. Status int64 `gorm:"column:status" json:"status"`
  98. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  99. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  100. DoctorAdviceTemplate []*DoctorAdviceTemplate `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID" json:"advice_template"`
  101. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  102. }
  103. func (VMDoctorAdviceParentTemplate) TableName() string {
  104. return "xt_doctor_advice_parent_template"
  105. }
  106. type AdviceRemind struct {
  107. ID int64 `gorm:"column:id" json:"id"`
  108. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  109. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  110. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  111. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  112. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  113. WeekDay string `gorm:"column:week_day" json:"week_day"`
  114. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  115. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  116. Status int64 `gorm:"column:status" json:"status"`
  117. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date"`
  118. }
  119. func (AdviceRemind) TableName() string {
  120. return "xt_advice_remind"
  121. }
  122. type AdviceInit struct {
  123. ID int64 `gorm:"column:id" json:"id" form:"id"`
  124. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  125. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  126. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  127. Status int64 `gorm:"column:status" json:"status" form:"status"`
  128. IsInit int64 `gorm:"column:is_init" json:"is_init" form:"is_init"`
  129. }
  130. func (AdviceInit) TableName() string {
  131. return "xt_advice_init"
  132. }
  133. type DoctorAdviceConfig struct {
  134. ID int64 `gorm:"column:id" json:"id" form:"id"`
  135. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  136. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  137. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  138. Status int64 `gorm:"column:status" json:"status" form:"status"`
  139. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  140. }
  141. func (DoctorAdviceConfig) TableName() string {
  142. return "xt_doctor_config"
  143. }