report_list.go 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package models
  2. import "encoding/xml"
  3. type ReportListEnvelope 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 ReportListBody `xml:"soap:Body"`
  9. }
  10. type ReportListBody struct {
  11. XMLName xml.Name `xml:"soap:Body"`
  12. GetReportReq GetReportReq `xml:"GetAllSampleList"`
  13. }
  14. type GetReportReq struct {
  15. XMLName xml.Name `xml:"http://tempuri.org/ GetAllSampleList"`
  16. Key string `xml:"key"`
  17. BeginDateTime string `xml:"BeginDateTime"`
  18. EndDateTime string `xml:"EndDateTime"`
  19. DateType int `xml:"DateType"`
  20. PrintState int `xml:"PrintState"`
  21. }
  22. type EnvelopeTwo struct {
  23. XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
  24. Body EnvelopeBody `xml:"Body"`
  25. }
  26. type EnvelopeBody struct {
  27. GetAllSampleListResponse GetAllSampleListResponse `xml:"GetAllSampleListResponse"`
  28. }
  29. type GetAllSampleListResponse struct {
  30. XMLName xml.Name `xml:"http://tempuri.org/ GetAllSampleListResponse"`
  31. GetAllSampleListResult string `xml:"GetAllSampleListResult"`
  32. }
  33. type ReportData struct {
  34. Res int `json:"Res"`
  35. Error string `json:"Error"`
  36. GPReportListResultData []GPReportListResultData `json:"Data"`
  37. }
  38. type GPReportListResultData struct {
  39. RecordID string `json:"RecordID"`
  40. PatientName string `json:"PatientName"`
  41. Sex string `json:"Sex"`
  42. Age int `json:"Age"`
  43. AgeUnit string `json:"AgeUnit"`
  44. OfficeName string `json:"OfficeName"`
  45. BedCode string `json:"BedCode"`
  46. Barcode string `json:"Barcode"`
  47. CustomerBarcode string `json:"CustomerBarcode"`
  48. SampleCode string `json:"SampleCode"`
  49. SampleCategory string `json:"SampleCategory"`
  50. SampleDescription string `json:"SampleDescription"`
  51. Diagnostics string `json:"Diagnostics"`
  52. TakeSampleDateTime string `json:"TakeSampleDateTime"`
  53. ReceiveDateTime string `json:"ReceiveDateTime"`
  54. AuditDateTime string `json:"AuditDateTime"`
  55. InspectDate string `json:"InspectDate"`
  56. SendDoctor string `json:"SendDoctor"`
  57. InspectDoctorName string `json:"InspectDoctorName"`
  58. AuditorName string `json:"AuditorName"`
  59. Instrument string `json:"Instrument"`
  60. Comment string `json:"Comment"`
  61. }