his_summary_models.go 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. package models
  2. type HisPrescriptionModeTemplate struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  6. Type int64 `gorm:"column:type" json:"type" form:"type"`
  7. Status int64 `gorm:"column:status" json:"status" form:"status"`
  8. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  9. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  10. Name string `gorm:"column:name" json:"name" form:"name"`
  11. Mode int64 `gorm:"column:mode" json:"mode" form:"mode"`
  12. }
  13. func (HisPrescriptionModeTemplate) TableName() string {
  14. return "his_prescription_mode_template"
  15. }
  16. type HisPrescriptionInfoModeTemplate struct {
  17. ID int64 `gorm:"column:id" json:"id" form:"id"`
  18. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  19. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  20. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  21. Status int64 `gorm:"column:status" json:"status" form:"status"`
  22. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  23. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  24. Type int64 `gorm:"column:type" json:"type" form:"type"`
  25. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  26. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  27. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  28. PTemplateId int64 `gorm:"column:p_template_id" json:"p_template_id" form:"p_template_id"`
  29. HisPrescriptionAdviceTemplate []*HisPrescriptionAdviceModeTemplate `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  30. HisPrescriptionProjectTemplate []*HisPrescriptionProjectModeTemplate `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  31. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  32. }
  33. func (HisPrescriptionInfoModeTemplate) TableName() string {
  34. return "his_prescription_info_mode_template"
  35. }
  36. type HisPrescriptionAdviceModeTemplate struct {
  37. ID int64 `gorm:"column:id" json:"id" form:"id"`
  38. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  39. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  40. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  41. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  42. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  43. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  44. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  45. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  46. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  47. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  48. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  49. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  50. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  51. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  52. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  53. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  54. Status int64 `gorm:"column:status" json:"status" form:"status"`
  55. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  56. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  57. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  58. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  59. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  60. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  61. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  62. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  63. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  64. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  65. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  66. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  67. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  68. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  69. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  70. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  71. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  72. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  73. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  74. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  75. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  76. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  77. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  78. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  79. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  80. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  81. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  82. Price float64 `gorm:"column:price" json:"price" form:"price"`
  83. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  84. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  85. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  86. Day int64 `gorm:"column:day" json:"day" form:"day"`
  87. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  88. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  89. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  90. PrescriptionModeId int64 `gorm:"column:prescription_mode_id" json:"prescription_mode_id" form:"prescription_mode_id"`
  91. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  92. }
  93. func (HisPrescriptionAdviceModeTemplate) TableName() string {
  94. return "his_prescription_advice_mode_template"
  95. }
  96. type HisPrescriptionProjectModeTemplate struct {
  97. ID int64 `gorm:"column:id" json:"id" form:"id"`
  98. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  99. Price float64 `gorm:"column:price" json:"price" form:"price"`
  100. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  101. Status int64 `gorm:"column:status" json:"status" form:"status"`
  102. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  103. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  104. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  105. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  106. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  107. Count string `gorm:"column:count" json:"count" form:"count"`
  108. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  109. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  110. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  111. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  112. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  113. Day string `gorm:"column:day" json:"day" form:"day"`
  114. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  115. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  116. Type int64 `gorm:"column:type" json:"type" form:"type"`
  117. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  118. XtHisProject XtHisProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  119. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"good_info"`
  120. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  121. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  122. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  123. }
  124. func (HisPrescriptionProjectModeTemplate) TableName() string {
  125. return "his_prescription_project_mode_template"
  126. }