jy_apply.go 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package models
  2. import "encoding/xml"
  3. type JYApplyEnvelope 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 JYApplyBody `xml:"soap:Body"`
  9. }
  10. type JYApplyBody struct {
  11. XMLName xml.Name `xml:"soap:Body"`
  12. InspectApplyReq InspectApplyReq `xml:"InspectApplyByInstituteItemCode"`
  13. }
  14. type InspectApplyReq struct {
  15. XMLName xml.Name `xml:"http://tempuri.org/ InspectApplyByInstituteItemCode"`
  16. ApiKey string `xml:"apiKey"`
  17. Apply JYApply `xml:"apply"`
  18. ApplyDetailList struct {
  19. CustomerApplyDetail []CustomerApplyDetail `xml:"CustomerApplyDetail"`
  20. } `xml:"applyDetailList"`
  21. //ApplyDetailList []JYApplyDetail `xml:"applyDetailList>JYApplyDetail"`
  22. ApplyAdditional *JYApplyAdditional `xml:"applyAdditional,omitempty"`
  23. }
  24. type EnvelopeFour struct {
  25. XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
  26. Body EnvelopeBodyFour `xml:"Body"`
  27. }
  28. type EnvelopeBodyFour struct {
  29. InspectApplyByInstituteItemCodeResponse InspectApplyByInstituteItemCodeResponse `xml:"InspectApplyByInstituteItemCodeResponse"`
  30. }
  31. type InspectApplyByInstituteItemCodeResponse struct {
  32. XMLName xml.Name `xml:"http://tempuri.org/ InspectApplyByInstituteItemCodeResponse"`
  33. InspectApply string `xml:"InspectApplyByInstituteItemCodeResult"`
  34. }
  35. type InspectApplyData struct {
  36. Res int `json:"Res"`
  37. Error string `json:"Error"`
  38. JYApplyResult JYApplyResult `json:"Data"`
  39. }
  40. type JYApply struct {
  41. XMLName xml.Name `xml:"apply"`
  42. PatientName string `xml:"PatientName"`
  43. Sex string `xml:"Sex"`
  44. Age string `xml:"Age"`
  45. AgeUnit string `xml:"AgeUnit"`
  46. RegisterCode string `xml:"RegisterCode"`
  47. Diagnosis string `xml:"Diagnosis"`
  48. Ward string `xml:"Ward"`
  49. BedCode string `xml:"BedCode"`
  50. SendDoctor string `xml:"SendDoctor"`
  51. PatientType int `xml:"PatientType"`
  52. PatientPhone string `xml:"PatientPhone"`
  53. }
  54. type CustomerApplyDetail struct {
  55. RowIndex int64 `xml:"RowIndex"`
  56. CustomerChargeItemCode string `xml:"CustomerChargeItemCode"`
  57. TakeSampleTime string `xml:"TakeSampleTime"`
  58. Barcode string `xml:"Barcode"`
  59. CustomerBarcode string `xml:"CustomerBarcode"`
  60. Comment string `xml:"Comment"`
  61. }
  62. type JYApplyResult struct {
  63. ApplyCode string `xml:"ApplyCode"`
  64. TotalAmount float64 `xml:"TotalAmount"`
  65. }
  66. type JYApplyAdditional struct {
  67. }