report_result.go 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. package models
  2. import "encoding/xml"
  3. type ReportResultEnvelope struct {
  4. XMLName xml.Name `xml:"soap:Envelope"`
  5. Soap string `xml:"xmlns:soap,attr"`
  6. Xsi string `xml:"xmlns:xsi,attr"`
  7. Xsd string `xml:"xmlns:xsd,attr"`
  8. Body ReportResultBody `xml:"soap:Body"`
  9. }
  10. type ReportResultBody struct {
  11. XMLName xml.Name `xml:"soap:Body"`
  12. GetReportResultReq GetReportResultReq `xml:"GetJSONReportItemListByCustomerBarocde"`
  13. }
  14. type GetReportResultReq struct {
  15. XMLName xml.Name `xml:"http://tempuri.org/ GetJSONReportItemListByCustomerBarocde"`
  16. Key string `xml:"key"`
  17. CustomerBarCode string `xml:"CustomerBarCode"`
  18. }
  19. type EnvelopeThree struct {
  20. XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
  21. Body EnvelopeBodyThree `xml:"Body"`
  22. }
  23. type EnvelopeBodyThree struct {
  24. GetJSONReportItemListByCustomerBarocdeResponse GetJSONReportItemListByCustomerBarocdeResponse `xml:"GetJSONReportItemListByCustomerBarocdeResponse"`
  25. }
  26. type GetJSONReportItemListByCustomerBarocdeResponse struct {
  27. XMLName xml.Name `xml:"http://tempuri.org/ GetJSONReportItemListByCustomerBarocdeResponse"`
  28. GetJSONReportItemListByCustomerBarocdeResult string `xml:"GetJSONReportItemListByCustomerBarocdeResult"`
  29. }
  30. type ReportResultData struct {
  31. Res int `json:"Res"`
  32. Error string `json:"Error"`
  33. InspectResult []InspectResult `json:"Data"`
  34. }
  35. type InspectResult struct {
  36. ChargeItemName string `json:"ChargeItemName"`
  37. InspectionName string `json:"InspectionName"`
  38. InspectionCode string `json:"InspectionCode"`
  39. Result string `json:"Result"`
  40. Reference string `json:"Reference"`
  41. Barcode string `json:"Barcode"`
  42. Unit string `json:"Unit"`
  43. Flag string `json:"Flag"`
  44. intFlag int `json:"intFlag"`
  45. ListResult GPReportListResultData
  46. }
  47. type DataPrintCode struct {
  48. ID int64 `gorm:"column:id" json:"id" form:"id"`
  49. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  50. Name string `gorm:"column:name" json:"name" form:"name"`
  51. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  52. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  53. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  54. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  55. Status int64 `gorm:"column:status" json:"status" form:"status"`
  56. PrintId int64 `gorm:"column:print_id" json:"print_id" form:"print_id"`
  57. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  58. }
  59. func (DataPrintCode) TableName() string {
  60. return "print_code"
  61. }
  62. type XtHisLabelPrintStatusInfo struct {
  63. ID int64 `gorm:"column:id" json:"id" form:"id"`
  64. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  65. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  66. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  67. Status int64 `gorm:"column:status" json:"status" form:"status"`
  68. IsCombinationPrint int64 `gorm:"column:is_combination_print" json:"is_combination_print" form:"is_combination_print"`
  69. RecordDate string `gorm:"column:record_date" json:"record_date" form:"record_date"`
  70. ItemIds string `gorm:"column:item_ids" json:"item_ids" form:"item_ids"`
  71. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  72. ProjectIds string `gorm:"column:project_ids" json:"project_ids" form:"project_ids"`
  73. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  74. Ids string `gorm:"column:ids" json:"ids" form:"ids"`
  75. IsTeam int64 `gorm:"column:is_team" json:"is_team" form:"is_team"`
  76. IsPrint int64 `gorm:"column:is_print" json:"is_print" form:"is_print"`
  77. ApplyCode string `gorm:"column:apply_code" json:"apply_code" form:"apply_code"`
  78. }
  79. func (XtHisLabelPrintStatusInfo) TableName() string {
  80. return "his_label_print_status_info"
  81. }
  82. type HisLabelPrintInfo struct {
  83. ID int64 `gorm:"column:id" json:"id" form:"id"`
  84. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  85. Number string `gorm:"column:number" json:"number" form:"number"`
  86. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  87. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  88. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  89. Status int64 `gorm:"column:status" json:"status" form:"status"`
  90. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  91. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  92. IsPrint int64 `gorm:"column:is_print" json:"is_print" form:"is_print"`
  93. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  94. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  95. PProjectId int64 `gorm:"column:p_project_id" json:"p_project_id" form:"p_project_id"`
  96. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  97. DoctorName string `gorm:"column:doctor_name" json:"doctor_name" form:"doctor_name"`
  98. PatientName string `gorm:"column:patient_name" json:"patient_name" form:"patient_name"`
  99. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  100. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  101. ApplyCode string `gorm:"column:apply_code" json:"apply_code" form:"apply_code"`
  102. }
  103. func (HisLabelPrintInfo) TableName() string {
  104. return "his_label_print_info"
  105. }