model.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package models
  2. import (
  3. "gorm.io/gorm"
  4. )
  5. type PatientType struct {
  6. gorm.Model
  7. PatientTypeID string
  8. PatientTypeName string
  9. PatientTypeLocal string
  10. PatientTypeDescription string
  11. Sort int32
  12. IsEnabled bool
  13. Product string
  14. IsPreInstall bool
  15. }
  16. func (PatientType) TableName() string {
  17. return "p_patient_type"
  18. }
  19. type BodyPart struct {
  20. gorm.Model
  21. BodyPartID string
  22. BodyPartName string
  23. BodyPartLocal string
  24. BodyPartDescription string
  25. PatientType string
  26. Category string
  27. Sort int32
  28. IsEnabled bool
  29. Product string
  30. IsPreInstall bool
  31. }
  32. func (BodyPart) TableName() string {
  33. return "p_body_part"
  34. }
  35. type Procedure struct {
  36. gorm.Model
  37. ProcedureID string `gorm:"uniqueIndex"`
  38. ProcedureCode string //程序代码
  39. ProcedureName string //程序名称
  40. ProcedureOtherName string //程序别名
  41. ProcedureDescription string //程序描述
  42. ProtocolCode string //协议代码
  43. PatientType string //病人类型
  44. ProcedureGroupID string //程序组ID
  45. ProcedureGroupDescription string //程序组描述
  46. ProcedureType string //程序类型
  47. FastSearch bool //是否快速搜索
  48. ProtocolLaterality string //协议体位
  49. PrintStyleID string //打印样式ID
  50. ProcedureCategory string //程序类别
  51. Modality string //设备类型
  52. ConfigObjectValue string //配置对象值
  53. MagFactor float32 //放大倍数
  54. ClinicProtocol bool //是否临床协议
  55. Sort int32
  56. IsEnabled bool
  57. Product string
  58. IsPreInstall bool
  59. }
  60. func (Procedure) TableName() string {
  61. return "p_procedure"
  62. }