doctor_advice_models.go 8.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. }
  29. func (DrugwayDic) TableName() string {
  30. return "xt_drugway_dic"
  31. }
  32. type ExecutionFrequencyDic struct {
  33. ID int64 `gorm:"column:id" json:"id" form:"id"`
  34. Code string `gorm:"column:code" json:"code" form:"code"`
  35. Name string `gorm:"column:name" json:"name" form:"name"`
  36. Status int64 `gorm:"column:status" json:"status" form:"status"`
  37. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  38. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  39. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  40. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  41. }
  42. func (ExecutionFrequencyDic) TableName() string {
  43. return "xt_execution_frequency_dic"
  44. }
  45. type DoctorAdviceTemplate struct {
  46. ID int64 `gorm:"column:id" json:"id" form:"id"`
  47. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  48. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  49. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  50. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  51. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  52. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  53. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  54. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  55. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  56. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  57. Status int64 `gorm:"column:status" json:"status" form:"status"`
  58. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  59. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  60. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  61. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  62. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  63. ParentId int64 `gorm:"column:parent_id" json:"parent_id"`
  64. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  65. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  66. WeekDays string `gorm:"column:week_days" json:"week_days"`
  67. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  68. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  69. Way int64 `gorm:"column:way" json:"way" form:"way"`
  70. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  71. SubDoctorAdviceTemplate []*DoctorAdviceTemplate `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  72. }
  73. func (DoctorAdviceTemplate) TableName() string {
  74. return "xt_doctor_advice_template"
  75. }
  76. type DoctorAdviceParentTemplate struct {
  77. ID int64 `gorm:"column:id" json:"id"`
  78. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  79. Name string `gorm:"column:name" json:"name"`
  80. Status int64 `gorm:"column:status" json:"status"`
  81. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  82. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  83. DoctorAdviceTemplate []*DoctorAdviceTemplate `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID"`
  84. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  85. }
  86. func (DoctorAdviceParentTemplate) TableName() string {
  87. return "xt_doctor_advice_parent_template"
  88. }
  89. type VMDoctorAdviceParentTemplate struct {
  90. ID int64 `gorm:"column:id" json:"id"`
  91. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  92. Name string `gorm:"column:name" json:"name"`
  93. Status int64 `gorm:"column:status" json:"status"`
  94. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  95. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  96. DoctorAdviceTemplate []*DoctorAdviceTemplate `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID" json:"advice_template"`
  97. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  98. }
  99. func (VMDoctorAdviceParentTemplate) TableName() string {
  100. return "xt_doctor_advice_parent_template"
  101. }
  102. type AdviceRemind struct {
  103. ID int64 `gorm:"column:id" json:"id"`
  104. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  105. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  106. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  107. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  108. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  109. WeekDay string `gorm:"column:week_day" json:"week_day"`
  110. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  111. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  112. Status int64 `gorm:"column:status" json:"status"`
  113. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date"`
  114. }
  115. func (AdviceRemind) TableName() string {
  116. return "xt_advice_remind"
  117. }
  118. type AdviceInit struct {
  119. ID int64 `gorm:"column:id" json:"id" form:"id"`
  120. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  121. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  122. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  123. Status int64 `gorm:"column:status" json:"status" form:"status"`
  124. IsInit int64 `gorm:"column:is_init" json:"is_init" form:"is_init"`
  125. }
  126. func (AdviceInit) TableName() string {
  127. return "xt_advice_init"
  128. }
  129. type DoctorAdviceConfig struct {
  130. ID int64 `gorm:"column:id" json:"id" form:"id"`
  131. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  132. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  133. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  134. Status int64 `gorm:"column:status" json:"status" form:"status"`
  135. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  136. }
  137. func (DoctorAdviceConfig) TableName() string {
  138. return "xt_doctor_config"
  139. }