|
@@ -242,7 +242,7 @@ func Jsyb1101ForEleCert(org_name string, doctor string, fixmedins_code string, i
|
242
|
242
|
inputData["mdtrt_cert_type"] = "01" // 就诊凭证类型
|
243
|
243
|
inputData["card_sn"] = "" // 卡识别码
|
244
|
244
|
inputData["certno"] = id_card_no // 证件号码
|
245
|
|
- inputData["psn_cert_type"] = "01" // 人员证件类型
|
|
245
|
+ inputData["psn_cert_type"] = "01" // 人员证件类型
|
246
|
246
|
|
247
|
247
|
inputData["mdtrt_cert_no"] = Token // 就诊凭证编号
|
248
|
248
|
inputData["begntime"] = "" // 开始时间
|
|
@@ -614,15 +614,12 @@ func Jsyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
|
614
|
614
|
feedetailInfo["bilg_dept_codg"] = dept_code // 开单科室编码
|
615
|
615
|
feedetailInfo["bilg_dept_name"] = dept // 开单科室名称
|
616
|
616
|
|
617
|
|
-
|
618
|
|
- feedetailInfo["bilg_dr_codg"] = item.DoctorNumber // 开单医生编码
|
619
|
|
- feedetailInfo["bilg_dr_name"] = item.DoctorName // 开单医师姓名
|
620
|
|
- feedetailInfo["acord_dept_codg"] = "" // 受单科室编码
|
621
|
|
- feedetailInfo["acord_dept_name"] = "" // 受单科室名称
|
622
|
|
- feedetailInfo["orders_dr_code"] = item.DoctorNumber // 受单医生编码
|
623
|
|
- feedetailInfo["orders_dr_name"] = item.DoctorName // 受单医生姓名
|
624
|
|
-
|
625
|
|
-
|
|
617
|
+ feedetailInfo["bilg_dr_codg"] = item.DoctorNumber // 开单医生编码
|
|
618
|
+ feedetailInfo["bilg_dr_name"] = item.DoctorName // 开单医师姓名
|
|
619
|
+ feedetailInfo["acord_dept_codg"] = "" // 受单科室编码
|
|
620
|
+ feedetailInfo["acord_dept_name"] = "" // 受单科室名称
|
|
621
|
+ feedetailInfo["orders_dr_code"] = item.DoctorNumber // 受单医生编码
|
|
622
|
+ feedetailInfo["orders_dr_name"] = item.DoctorName // 受单医生姓名
|
626
|
623
|
|
627
|
624
|
if balance_accounts_type == "8" {
|
628
|
625
|
feedetailInfo["hosp_appr_flag"] = "2" // 医院审批标志
|
|
@@ -1724,22 +1721,22 @@ func Jsyb3501(struct3501 models.Struct3501) (string, string) {
|
1724
|
1721
|
inputMessage := SetJSInputMessage(timestamp, struct3501.OrgName, struct3501.Opter, struct3501.Code, struct3501.InsuplcAdmdvs, struct3501.MdtrtareaAdmvs, struct3501.Cainfo)
|
1725
|
1722
|
input := make(map[string]interface{})
|
1726
|
1723
|
inputData := make(map[string]interface{})
|
1727
|
|
- inputMessage["infno"] = "3501" // 交易编码
|
1728
|
|
- inputData["med_list_codg"] = struct3501.MedListCodg // 定点医药机构目录编号
|
1729
|
|
- inputData["fixmedins_hilist_id"] = struct3501.FixmedinsHilistId // 定点医药机构目录编号
|
1730
|
|
- inputData["fixmedins_hilist_name"] = struct3501.FixmedinsHilistName // 定点医药机构目录名称
|
1731
|
|
- inputData["rx_flag"] = struct3501.RxFlag //
|
1732
|
|
- inputData["invdate"] = struct3501.Invdate // 人员编号 (来自1101接口返回)
|
1733
|
|
- inputData["inv_cnt"] = struct3501.InvCnt // 人员编号 (来自1101接口返回)
|
1734
|
|
- inputData["manu_lotnum"] = struct3501.ManuLotnum // 人员编号 (来自1101接口返回)
|
1735
|
|
- inputData["fixmedins_bchno"] = struct3501.FixmedinsBchno // 人员编号 (来自1101接口返回)
|
1736
|
|
- inputData["manu_date"] = struct3501.ManuDate // 人员编号 (来自1101接口返回)
|
1737
|
|
- inputData["expy_end"] = struct3501.ExpyEnd // 人员编号 (来自1101接口返回)
|
1738
|
|
- inputData["memo"] = "" // 人员编号 (来自1101接口返回)
|
|
1724
|
+ inputMessage["infno"] = "3501" // 交易编码
|
|
1725
|
+ inputData["med_list_codg"] = struct3501.MedListCodg // 定点医药机构目录编号
|
|
1726
|
+ inputData["fixmedins_hilist_id"] = struct3501.FixmedinsHilistId // 定点医药机构目录编号
|
|
1727
|
+ inputData["fixmedins_hilist_name"] = struct3501.FixmedinsHilistName // 定点医药机构目录名称
|
|
1728
|
+ inputData["rx_flag"] = struct3501.RxFlag //
|
|
1729
|
+ inputData["invdate"] = struct3501.Invdate // 人员编号 (来自1101接口返回)
|
|
1730
|
+ inputData["inv_cnt"] = struct3501.InvCnt // 人员编号 (来自1101接口返回)
|
|
1731
|
+ inputData["manu_lotnum"] = struct3501.ManuLotnum // 人员编号 (来自1101接口返回)
|
|
1732
|
+ inputData["fixmedins_bchno"] = struct3501.FixmedinsBchno // 人员编号 (来自1101接口返回)
|
|
1733
|
+ inputData["manu_date"] = struct3501.ManuDate // 人员编号 (来自1101接口返回)
|
|
1734
|
+ inputData["expy_end"] = struct3501.ExpyEnd // 人员编号 (来自1101接口返回)
|
|
1735
|
+ inputData["memo"] = "" // 人员编号 (来自1101接口返回)
|
1739
|
1736
|
feedetail := make([]map[string]interface{}, 0)
|
1740
|
1737
|
druginputData := make(map[string]interface{})
|
1741
|
1738
|
druginputData["drug_trac_codg"] = struct3501.DrugTracCodg
|
1742
|
|
- feedetail = append(feedetail,druginputData)
|
|
1739
|
+ feedetail = append(feedetail, druginputData)
|
1743
|
1740
|
inputData["drugtracinfo"] = feedetail
|
1744
|
1741
|
input["invinfo"] = inputData
|
1745
|
1742
|
inputMessage["input"] = input //交易输入
|
|
@@ -1764,12 +1761,12 @@ func Jsyb3502(struct3502 models.Struct3502) (string, string) {
|
1764
|
1761
|
inputData["med_list_codg"] = struct3502.MedListCodg // 定点医药机构目录编号
|
1765
|
1762
|
inputData["inv_chg_type"] = struct3502.InvChgType // 定点医药机构目录编号
|
1766
|
1763
|
|
1767
|
|
- inputData["fixmedins_hilist_id"] = struct3502.FixmedinsCode // 定点医药机构目录编号
|
1768
|
|
- inputData["fixmedins_hilist_name"] = struct3502.FixmedinsHilistName // 定点医药机构目录名称
|
1769
|
|
- inputData["fixmedins_bchno"] = struct3502.FixmedinsBchno // 人员编号 (来自1101接口返回)
|
1770
|
|
- inputData["pric"] = struct3502.Pric // 人员编号 (来自1101接口返回)
|
1771
|
|
- inputData["cnt"] = struct3502.Cnt // 人员编号 (来自1101接口返回)
|
1772
|
|
- inputData["rx_flag"] = struct3502.RxFlag //
|
|
1764
|
+ inputData["fixmedins_hilist_id"] = struct3502.FixmedinsCode // 定点医药机构目录编号
|
|
1765
|
+ inputData["fixmedins_hilist_name"] = struct3502.FixmedinsHilistName // 定点医药机构目录名称
|
|
1766
|
+ inputData["fixmedins_bchno"] = struct3502.FixmedinsBchno // 人员编号 (来自1101接口返回)
|
|
1767
|
+ inputData["pric"] = struct3502.Pric // 人员编号 (来自1101接口返回)
|
|
1768
|
+ inputData["cnt"] = struct3502.Cnt // 人员编号 (来自1101接口返回)
|
|
1769
|
+ inputData["rx_flag"] = struct3502.RxFlag //
|
1773
|
1770
|
|
1774
|
1771
|
inputData["inv_chg_time"] = struct3502.InvChgTime // 人员编号 (来自1101接口返回)
|
1775
|
1772
|
inputData["inv_chg_opter_name"] = "" // 人员编号 (来自1101接口返回)
|
|
@@ -1780,7 +1777,7 @@ func Jsyb3502(struct3502 models.Struct3502) (string, string) {
|
1780
|
1777
|
feedetail := make([]map[string]interface{}, 0)
|
1781
|
1778
|
druginputData := make(map[string]interface{})
|
1782
|
1779
|
druginputData["drug_trac_codg"] = struct3502.DrugTracCodg
|
1783
|
|
- feedetail = append(feedetail,druginputData)
|
|
1780
|
+ feedetail = append(feedetail, druginputData)
|
1784
|
1781
|
inputData["drugtracinfo"] = feedetail
|
1785
|
1782
|
input["invinfo"] = inputData
|
1786
|
1783
|
inputMessage["input"] = input //交易输入
|
|
@@ -1886,11 +1883,11 @@ func Jsyb3505(struct3505 models.Struct3505) (string, string) {
|
1886
|
1883
|
inputMessage := SetJSInputMessage(timestamp, struct3505.OrgName, struct3505.Opter, struct3505.Code, struct3505.InsuplcAdmdvs, struct3505.MdtrtareaAdmvs, struct3505.Cainfo)
|
1887
|
1884
|
input := make(map[string]interface{})
|
1888
|
1885
|
inputData := make(map[string]interface{})
|
1889
|
|
- inputMessage["infno"] = "3505" // 交易编码
|
1890
|
|
- inputData["med_list_codg"] = struct3505.MedListCodg // 定点医药机构目录编号
|
1891
|
|
- inputData["fixmedins_hilist_id"] = struct3505.FixmedinsHilistId // 定点医药机构目录编号
|
1892
|
|
- inputData["fixmedins_hilist_name"] = struct3505.FixmedinsHilistName // 定点医药机构目录名称
|
1893
|
|
- inputData["fixmedins_bchno"] = struct3505.FixmedinsBchno // 人员编号 (来自1101接口返回)
|
|
1886
|
+ inputMessage["infno"] = "3505" // 交易编码
|
|
1887
|
+ inputData["med_list_codg"] = struct3505.MedListCodg // 定点医药机构目录编号
|
|
1888
|
+ inputData["fixmedins_hilist_id"] = struct3505.FixmedinsHilistId // 定点医药机构目录编号
|
|
1889
|
+ inputData["fixmedins_hilist_name"] = struct3505.FixmedinsHilistName // 定点医药机构目录名称
|
|
1890
|
+ inputData["fixmedins_bchno"] = struct3505.FixmedinsBchno // 人员编号 (来自1101接口返回)
|
1894
|
1891
|
|
1895
|
1892
|
inputData["prsc_dr_cert_type"] = struct3505.PrscDrCertType // 人员编号 (来自1101接口返回)
|
1896
|
1893
|
inputData["prsc_dr_certno"] = struct3505.PrscDrCertno // 人员编号 (来自1101接口返回)
|
|
@@ -1932,11 +1929,11 @@ func Jsyb3505(struct3505 models.Struct3505) (string, string) {
|
1932
|
1929
|
//input["selinfo"] = inputData
|
1933
|
1930
|
feedetail := make([]map[string]interface{}, 0)
|
1934
|
1931
|
|
1935
|
|
- codes := strings.Split(struct3505.DrugTracCodg,",")
|
1936
|
|
- for _,item := range codes{
|
|
1932
|
+ codes := strings.Split(struct3505.DrugTracCodg, ",")
|
|
1933
|
+ for _, item := range codes {
|
1937
|
1934
|
druginputData := make(map[string]interface{})
|
1938
|
1935
|
druginputData["drug_trac_codg"] = item
|
1939
|
|
- feedetail = append(feedetail,druginputData)
|
|
1936
|
+ feedetail = append(feedetail, druginputData)
|
1940
|
1937
|
}
|
1941
|
1938
|
inputData["drugtracinfo"] = feedetail
|
1942
|
1939
|
input["selinfo"] = inputData
|
|
@@ -1958,11 +1955,11 @@ func Jsyb3506(struct3506 models.Struct3506) (string, string) {
|
1958
|
1955
|
inputMessage := SetJSInputMessage(timestamp, struct3506.OrgName, struct3506.Opter, struct3506.Code, struct3506.InsuplcAdmdvs, struct3506.MdtrtareaAdmvs, struct3506.Cainfo)
|
1959
|
1956
|
input := make(map[string]interface{})
|
1960
|
1957
|
inputData := make(map[string]interface{})
|
1961
|
|
- inputMessage["infno"] = "3506" // 交易编码
|
1962
|
|
- inputData["med_list_codg"] = struct3506.MedListCodg // 定点医药机构目录编号
|
1963
|
|
- inputData["fixmedins_hilist_id"] = struct3506.FixmedinsHilistId // 定点医药机构目录编号
|
1964
|
|
- inputData["fixmedins_hilist_name"] = struct3506.FixmedinsHilistName // 定点医药机构目录名称
|
1965
|
|
- inputData["fixmedins_bchno"] = struct3506.FixmedinsBchno // 人员编号 (来自1101接口返回)
|
|
1958
|
+ inputMessage["infno"] = "3506" // 交易编码
|
|
1959
|
+ inputData["med_list_codg"] = struct3506.MedListCodg // 定点医药机构目录编号
|
|
1960
|
+ inputData["fixmedins_hilist_id"] = struct3506.FixmedinsHilistId // 定点医药机构目录编号
|
|
1961
|
+ inputData["fixmedins_hilist_name"] = struct3506.FixmedinsHilistName // 定点医药机构目录名称
|
|
1962
|
+ inputData["fixmedins_bchno"] = struct3506.FixmedinsBchno // 人员编号 (来自1101接口返回)
|
1966
|
1963
|
|
1967
|
1964
|
inputData["setl_id"] = struct3506.SetlId // 人员编号 (来自1101接口返回)
|
1968
|
1965
|
inputData["psn_no"] = struct3506.PsnNo // 人员编号 (来自1101接口返回)
|
|
@@ -1983,11 +1980,11 @@ func Jsyb3506(struct3506 models.Struct3506) (string, string) {
|
1983
|
1980
|
|
1984
|
1981
|
feedetail := make([]map[string]interface{}, 0)
|
1985
|
1982
|
|
1986
|
|
- codes := strings.Split(struct3506.DrugTracCodg,",")
|
1987
|
|
- for _,item := range codes{
|
|
1983
|
+ codes := strings.Split(struct3506.DrugTracCodg, ",")
|
|
1984
|
+ for _, item := range codes {
|
1988
|
1985
|
druginputData := make(map[string]interface{})
|
1989
|
1986
|
druginputData["drug_trac_codg"] = item
|
1990
|
|
- feedetail = append(feedetail,druginputData)
|
|
1987
|
+ feedetail = append(feedetail, druginputData)
|
1991
|
1988
|
}
|
1992
|
1989
|
//input["drugtracinfo"] = feedetail
|
1993
|
1990
|
//input["drugtracinfo"] = struct3506.DrugTracCodg
|
|
@@ -2011,9 +2008,9 @@ func Jsyb3507(struct3507 models.Struct3507) (string, string) {
|
2011
|
2008
|
inputMessage := SetJSInputMessage(timestamp, struct3507.OrgName, struct3507.Opter, struct3507.FixmedinsCode, struct3507.InsuplcAdmdvs, struct3507.MdtrtareaAdmvs, struct3507.Cainfo)
|
2012
|
2009
|
input := make(map[string]interface{})
|
2013
|
2010
|
inputData := make(map[string]interface{})
|
2014
|
|
- inputMessage["infno"] = "3507" // 交易编码
|
|
2011
|
+ inputMessage["infno"] = "3507" // 交易编码
|
2015
|
2012
|
inputData["fixmedins_bchno"] = struct3507.FixmedinsBchno // 人员编号 (来自1101接口返回)
|
2016
|
|
- inputData["inv_data_type"] = struct3507.InvDataType // 人员编号 (来自1101接口返回)
|
|
2013
|
+ inputData["inv_data_type"] = struct3507.InvDataType // 人员编号 (来自1101接口返回)
|
2017
|
2014
|
|
2018
|
2015
|
input["data"] = inputData
|
2019
|
2016
|
inputMessage["input"] = input //交易输入
|
|
@@ -2027,6 +2024,308 @@ func Jsyb3507(struct3507 models.Struct3507) (string, string) {
|
2027
|
2024
|
struct3507.RequestUrl = struct3507.RequestUrl + "3507"
|
2028
|
2025
|
return HttpRequest(struct3507.RequestUrl, struct3507.AccessKey, struct3507.SecretKey, timestamp, string(bytesData)), string(bytesData)
|
2029
|
2026
|
|
|
2027
|
+}
|
|
2028
|
+func Jsyb3508(struct3508 models.Struct3508) (string, string) {
|
|
2029
|
+ timestamp := time.Now().Unix()
|
|
2030
|
+ // 生成输入报文
|
|
2031
|
+ inputMessage := SetJSInputMessage(timestamp, struct3508.OrgName, struct3508.Opter, struct3508.FixmedinsCode, struct3508.InsuplcAdmdvs, struct3508.MdtrtareaAdmvs, struct3508.Cainfo)
|
|
2032
|
+ input := make(map[string]interface{})
|
|
2033
|
+ inputData := make(map[string]interface{})
|
|
2034
|
+ inputMessage["infno"] = "3508"
|
|
2035
|
+ inputData["fixmedins_code"] = struct3508.FixmedinsCode
|
|
2036
|
+ inputData["medins_list_codg"] = struct3508.MedListCodg
|
|
2037
|
+ inputData["fixmedins_bchno"] = ""
|
|
2038
|
+ inputData["begndate"] = struct3508.Begndate
|
|
2039
|
+ inputData["enddate"] = struct3508.Enddate
|
|
2040
|
+
|
|
2041
|
+ inputData["medins_prod_inv_no"] = ""
|
|
2042
|
+ inputData["medins_list_name"] = ""
|
|
2043
|
+ inputData["rx_flag"] = ""
|
|
2044
|
+ inputData["list_sp_item_flag"] = ""
|
|
2045
|
+ inputData["trdn_flag"] = ""
|
|
2046
|
+ inputData["invdate"] = ""
|
|
2047
|
+ inputData["manu_lotnum"] = ""
|
|
2048
|
+ inputData["manu_date"] = ""
|
|
2049
|
+ inputData["expy_end"] = ""
|
|
2050
|
+ inputData["memo"] = ""
|
|
2051
|
+ inputData["vali_flag"] = ""
|
|
2052
|
+ inputData["rid"] = ""
|
|
2053
|
+ inputData["crter_id"] = ""
|
|
2054
|
+ inputData["crter_name"] = ""
|
|
2055
|
+ inputData["crte_optins_no"] = ""
|
|
2056
|
+ inputData["opter_id"] = ""
|
|
2057
|
+ inputData["opter_name"] = ""
|
|
2058
|
+ inputData["optins_no"] = ""
|
|
2059
|
+ inputData["poolarea_no"] = ""
|
|
2060
|
+ inputData["fixmedins_bchno"] = ""
|
|
2061
|
+ inputData["inv_data_type"] = ""
|
|
2062
|
+ input["data"] = inputData
|
|
2063
|
+ inputMessage["input"] = input //交易输入
|
|
2064
|
+
|
|
2065
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2066
|
+ fmt.Println(string(bytesData))
|
|
2067
|
+ if err != nil {
|
|
2068
|
+ fmt.Println(err.Error())
|
|
2069
|
+ return err.Error(), ""
|
|
2070
|
+ }
|
|
2071
|
+ struct3508.RequestUrl = struct3508.RequestUrl + "3508"
|
|
2072
|
+ return HttpRequest(struct3508.RequestUrl, struct3508.AccessKey, struct3508.SecretKey, timestamp, string(bytesData)), string(bytesData)
|
|
2073
|
+
|
|
2074
|
+}
|
|
2075
|
+func Jsyb3509(struct3509 models.Struct3509) (string, string) {
|
|
2076
|
+ timestamp := time.Now().Unix()
|
|
2077
|
+ // 生成输入报文
|
|
2078
|
+ inputMessage := SetJSInputMessage(timestamp, struct3509.OrgName, struct3509.Opter, struct3509.FixmedinsCode, struct3509.InsuplcAdmdvs, struct3509.MdtrtareaAdmvs, struct3509.Cainfo)
|
|
2079
|
+ input := make(map[string]interface{})
|
|
2080
|
+ inputData := make(map[string]interface{})
|
|
2081
|
+ inputMessage["infno"] = "3509"
|
|
2082
|
+ inputData["fixmedins_code"] = struct3509.FixmedinsCode
|
|
2083
|
+ //inputData["med_list_codg"] = struct3509.MedinsListCodg
|
|
2084
|
+ inputData["medins_list_codg"] = struct3509.MedListCodg
|
|
2085
|
+
|
|
2086
|
+ inputData["fixmedins_bchno"] = ""
|
|
2087
|
+ inputData["begndate"] = struct3509.Begndate
|
|
2088
|
+ inputData["enddate"] = struct3509.Enddate
|
|
2089
|
+ inputData["medins_prod_inv_no"] = ""
|
|
2090
|
+ inputData["medins_list_name"] = ""
|
|
2091
|
+ inputData["rx_flag"] = ""
|
|
2092
|
+ inputData["list_sp_item_flag"] = ""
|
|
2093
|
+ inputData["trdn_flag"] = ""
|
|
2094
|
+ inputData["invdate"] = ""
|
|
2095
|
+ inputData["manu_lotnum"] = ""
|
|
2096
|
+ inputData["manu_date"] = ""
|
|
2097
|
+ inputData["expy_end"] = ""
|
|
2098
|
+ inputData["memo"] = ""
|
|
2099
|
+ inputData["vali_flag"] = ""
|
|
2100
|
+ inputData["rid"] = ""
|
|
2101
|
+
|
|
2102
|
+ inputData["crter_id"] = ""
|
|
2103
|
+ inputData["crter_name"] = ""
|
|
2104
|
+ inputData["crte_optins_no"] = ""
|
|
2105
|
+ inputData["opter_id"] = ""
|
|
2106
|
+ inputData["opter_name"] = ""
|
|
2107
|
+ inputData["optins_no"] = ""
|
|
2108
|
+ inputData["poolarea_no"] = ""
|
|
2109
|
+
|
|
2110
|
+ inputData["fixmedins_bchno"] = ""
|
|
2111
|
+ inputData["inv_data_type"] = ""
|
|
2112
|
+
|
|
2113
|
+ input["data"] = inputData
|
|
2114
|
+ inputMessage["input"] = input //交易输入
|
|
2115
|
+
|
|
2116
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2117
|
+ fmt.Println(string(bytesData))
|
|
2118
|
+ if err != nil {
|
|
2119
|
+ fmt.Println(err.Error())
|
|
2120
|
+ return err.Error(), ""
|
|
2121
|
+ }
|
|
2122
|
+ struct3509.RequestUrl = struct3509.RequestUrl + "3509"
|
|
2123
|
+ return HttpRequest(struct3509.RequestUrl, struct3509.AccessKey, struct3509.SecretKey, timestamp, string(bytesData)), string(bytesData)
|
|
2124
|
+
|
|
2125
|
+}
|
|
2126
|
+func Jsyb3510(struct3510 models.Struct3510) (string, string) {
|
|
2127
|
+ timestamp := time.Now().Unix()
|
|
2128
|
+ // 生成输入报文
|
|
2129
|
+ inputMessage := SetJSInputMessage(timestamp, struct3510.OrgName, struct3510.Opter, struct3510.FixmedinsCode, struct3510.InsuplcAdmdvs, struct3510.MdtrtareaAdmvs, struct3510.Cainfo)
|
|
2130
|
+ input := make(map[string]interface{})
|
|
2131
|
+ inputData := make(map[string]interface{})
|
|
2132
|
+ inputMessage["infno"] = "3510"
|
|
2133
|
+ inputData["fixmedins_code"] = struct3510.FixmedinsCode
|
|
2134
|
+ //inputData["medins_list_codg"] = struct3510.MedinsListCodg
|
|
2135
|
+ inputData["medins_list_codg"] = struct3510.MedListCodg
|
|
2136
|
+
|
|
2137
|
+ inputData["fixmedins_bchno"] = ""
|
|
2138
|
+ inputData["begndate"] = struct3510.Begndate
|
|
2139
|
+ inputData["enddate"] = struct3510.Enddate
|
|
2140
|
+ inputData["medins_prod_inv_no"] = ""
|
|
2141
|
+ inputData["medins_list_name"] = ""
|
|
2142
|
+ inputData["rx_flag"] = ""
|
|
2143
|
+ inputData["list_sp_item_flag"] = ""
|
|
2144
|
+ inputData["trdn_flag"] = ""
|
|
2145
|
+ inputData["invdate"] = ""
|
|
2146
|
+ inputData["manu_lotnum"] = ""
|
|
2147
|
+ inputData["manu_date"] = ""
|
|
2148
|
+ inputData["expy_end"] = ""
|
|
2149
|
+ inputData["memo"] = ""
|
|
2150
|
+ inputData["vali_flag"] = ""
|
|
2151
|
+ inputData["rid"] = ""
|
|
2152
|
+
|
|
2153
|
+ inputData["crter_id"] = ""
|
|
2154
|
+ inputData["crter_name"] = ""
|
|
2155
|
+ inputData["crte_optins_no"] = ""
|
|
2156
|
+ inputData["opter_id"] = ""
|
|
2157
|
+ inputData["opter_name"] = ""
|
|
2158
|
+ inputData["optins_no"] = ""
|
|
2159
|
+ inputData["poolarea_no"] = ""
|
|
2160
|
+
|
|
2161
|
+ inputData["fixmedins_bchno"] = ""
|
|
2162
|
+ inputData["inv_data_type"] = ""
|
|
2163
|
+
|
|
2164
|
+ input["data"] = inputData
|
|
2165
|
+ inputMessage["input"] = input //交易输入
|
|
2166
|
+
|
|
2167
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2168
|
+ fmt.Println(string(bytesData))
|
|
2169
|
+ if err != nil {
|
|
2170
|
+ fmt.Println(err.Error())
|
|
2171
|
+ return err.Error(), ""
|
|
2172
|
+ }
|
|
2173
|
+ struct3510.RequestUrl = struct3510.RequestUrl + "3510"
|
|
2174
|
+ return HttpRequest(struct3510.RequestUrl, struct3510.AccessKey, struct3510.SecretKey, timestamp, string(bytesData)), string(bytesData)
|
|
2175
|
+
|
|
2176
|
+}
|
|
2177
|
+func Jsyb3511(struct3511 models.Struct3511) (string, string) {
|
|
2178
|
+ timestamp := time.Now().Unix()
|
|
2179
|
+ // 生成输入报文
|
|
2180
|
+ inputMessage := SetJSInputMessage(timestamp, struct3511.OrgName, struct3511.Opter, struct3511.FixmedinsCode, struct3511.InsuplcAdmdvs, struct3511.MdtrtareaAdmvs, struct3511.Cainfo)
|
|
2181
|
+ input := make(map[string]interface{})
|
|
2182
|
+ inputData := make(map[string]interface{})
|
|
2183
|
+ inputMessage["infno"] = "3511"
|
|
2184
|
+ inputData["fixmedins_code"] = struct3511.FixmedinsCode
|
|
2185
|
+ //inputData["medins_list_codg"] = struct3511.MedinsListCodg
|
|
2186
|
+ inputData["medins_list_codg"] = struct3511.MedListCodg
|
|
2187
|
+
|
|
2188
|
+ inputData["fixmedins_bchno"] = ""
|
|
2189
|
+ inputData["begndate"] = struct3511.Begndate
|
|
2190
|
+ inputData["enddate"] = struct3511.Enddate
|
|
2191
|
+ inputData["medins_prod_inv_no"] = ""
|
|
2192
|
+ inputData["medins_list_name"] = ""
|
|
2193
|
+ inputData["rx_flag"] = ""
|
|
2194
|
+ inputData["list_sp_item_flag"] = ""
|
|
2195
|
+ inputData["trdn_flag"] = ""
|
|
2196
|
+ inputData["invdate"] = ""
|
|
2197
|
+ inputData["manu_lotnum"] = ""
|
|
2198
|
+ inputData["manu_date"] = ""
|
|
2199
|
+ inputData["expy_end"] = ""
|
|
2200
|
+ inputData["memo"] = ""
|
|
2201
|
+ inputData["vali_flag"] = ""
|
|
2202
|
+ inputData["rid"] = ""
|
|
2203
|
+
|
|
2204
|
+ inputData["crter_id"] = ""
|
|
2205
|
+ inputData["crter_name"] = ""
|
|
2206
|
+ inputData["crte_optins_no"] = ""
|
|
2207
|
+ inputData["opter_id"] = ""
|
|
2208
|
+ inputData["opter_name"] = ""
|
|
2209
|
+ inputData["optins_no"] = ""
|
|
2210
|
+ inputData["poolarea_no"] = ""
|
|
2211
|
+
|
|
2212
|
+ inputData["fixmedins_bchno"] = ""
|
|
2213
|
+ inputData["inv_data_type"] = ""
|
|
2214
|
+
|
|
2215
|
+ input["data"] = inputData
|
|
2216
|
+ inputMessage["input"] = input //交易输入
|
|
2217
|
+
|
|
2218
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2219
|
+ fmt.Println(string(bytesData))
|
|
2220
|
+ if err != nil {
|
|
2221
|
+ fmt.Println(err.Error())
|
|
2222
|
+ return err.Error(), ""
|
|
2223
|
+ }
|
|
2224
|
+ struct3511.RequestUrl = struct3511.RequestUrl + "3511"
|
|
2225
|
+ return HttpRequest(struct3511.RequestUrl, struct3511.AccessKey, struct3511.SecretKey, timestamp, string(bytesData)), string(bytesData)
|
|
2226
|
+
|
|
2227
|
+}
|
|
2228
|
+func Jsyb3512(struct3512 models.Struct3512) (string, string) {
|
|
2229
|
+ timestamp := time.Now().Unix()
|
|
2230
|
+ // 生成输入报文
|
|
2231
|
+ inputMessage := SetJSInputMessage(timestamp, struct3512.OrgName, struct3512.Opter, struct3512.FixmedinsCode, struct3512.InsuplcAdmdvs, struct3512.MdtrtareaAdmvs, struct3512.Cainfo)
|
|
2232
|
+ input := make(map[string]interface{})
|
|
2233
|
+ inputData := make(map[string]interface{})
|
|
2234
|
+ inputMessage["infno"] = "3512"
|
|
2235
|
+ inputData["fixmedins_code"] = struct3512.FixmedinsCode
|
|
2236
|
+ //inputData["medins_list_codg"] = struct3512.MedinsListCodg
|
|
2237
|
+ inputData["medins_list_codg"] = struct3512.MedListCodg
|
|
2238
|
+ inputData["fixmedins_bchno"] = ""
|
|
2239
|
+ inputData["begndate"] = struct3512.Begndate
|
|
2240
|
+ inputData["enddate"] = struct3512.Enddate
|
|
2241
|
+ inputData["medins_prod_inv_no"] = ""
|
|
2242
|
+ inputData["medins_list_name"] = ""
|
|
2243
|
+ inputData["rx_flag"] = ""
|
|
2244
|
+ inputData["list_sp_item_flag"] = ""
|
|
2245
|
+ inputData["trdn_flag"] = ""
|
|
2246
|
+ inputData["invdate"] = ""
|
|
2247
|
+ inputData["manu_lotnum"] = ""
|
|
2248
|
+ inputData["manu_date"] = ""
|
|
2249
|
+ inputData["expy_end"] = ""
|
|
2250
|
+ inputData["memo"] = ""
|
|
2251
|
+ inputData["vali_flag"] = ""
|
|
2252
|
+ inputData["rid"] = ""
|
|
2253
|
+
|
|
2254
|
+ inputData["crter_id"] = ""
|
|
2255
|
+ inputData["crter_name"] = ""
|
|
2256
|
+ inputData["crte_optins_no"] = ""
|
|
2257
|
+ inputData["opter_id"] = ""
|
|
2258
|
+ inputData["opter_name"] = ""
|
|
2259
|
+ inputData["optins_no"] = ""
|
|
2260
|
+ inputData["poolarea_no"] = ""
|
|
2261
|
+
|
|
2262
|
+ inputData["fixmedins_bchno"] = ""
|
|
2263
|
+ inputData["inv_data_type"] = ""
|
|
2264
|
+
|
|
2265
|
+ input["data"] = inputData
|
|
2266
|
+ inputMessage["input"] = input //交易输入
|
|
2267
|
+
|
|
2268
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2269
|
+ fmt.Println(string(bytesData))
|
|
2270
|
+ if err != nil {
|
|
2271
|
+ fmt.Println(err.Error())
|
|
2272
|
+ return err.Error(), ""
|
|
2273
|
+ }
|
|
2274
|
+ struct3512.RequestUrl = struct3512.RequestUrl + "3512"
|
|
2275
|
+ return HttpRequest(struct3512.RequestUrl, struct3512.AccessKey, struct3512.SecretKey, timestamp, string(bytesData)), string(bytesData)
|
|
2276
|
+
|
|
2277
|
+}
|
|
2278
|
+func Jsyb3513(struct3513 models.Struct3513) (string, string) {
|
|
2279
|
+ timestamp := time.Now().Unix()
|
|
2280
|
+ // 生成输入报文
|
|
2281
|
+ inputMessage := SetJSInputMessage(timestamp, struct3513.OrgName, struct3513.Opter, struct3513.FixmedinsCode, struct3513.InsuplcAdmdvs, struct3513.MdtrtareaAdmvs, struct3513.Cainfo)
|
|
2282
|
+ input := make(map[string]interface{})
|
|
2283
|
+ inputData := make(map[string]interface{})
|
|
2284
|
+ inputMessage["infno"] = "3513"
|
|
2285
|
+ inputData["fixmedins_code"] = struct3513.FixmedinsCode
|
|
2286
|
+ //inputData["medins_list_codg"] = struct3513.MedinsListCodg
|
|
2287
|
+ inputData["medins_list_codg"] = struct3513.MedListCodg
|
|
2288
|
+
|
|
2289
|
+ inputData["fixmedins_bchno"] = ""
|
|
2290
|
+ inputData["begndate"] = struct3513.Begndate
|
|
2291
|
+ inputData["enddate"] = struct3513.Enddate
|
|
2292
|
+ inputData["medins_prod_inv_no"] = ""
|
|
2293
|
+ inputData["med_list_codg"] = ""
|
|
2294
|
+ inputData["medins_list_name"] = ""
|
|
2295
|
+ inputData["rx_flag"] = ""
|
|
2296
|
+ inputData["list_sp_item_flag"] = ""
|
|
2297
|
+ inputData["trdn_flag"] = ""
|
|
2298
|
+ inputData["invdate"] = ""
|
|
2299
|
+ inputData["manu_lotnum"] = ""
|
|
2300
|
+ inputData["manu_date"] = ""
|
|
2301
|
+ inputData["expy_end"] = ""
|
|
2302
|
+ inputData["memo"] = ""
|
|
2303
|
+ inputData["vali_flag"] = ""
|
|
2304
|
+ inputData["rid"] = ""
|
|
2305
|
+
|
|
2306
|
+ inputData["crter_id"] = ""
|
|
2307
|
+ inputData["crter_name"] = ""
|
|
2308
|
+ inputData["crte_optins_no"] = ""
|
|
2309
|
+ inputData["opter_id"] = ""
|
|
2310
|
+ inputData["opter_name"] = ""
|
|
2311
|
+ inputData["optins_no"] = ""
|
|
2312
|
+ inputData["poolarea_no"] = ""
|
|
2313
|
+
|
|
2314
|
+ inputData["fixmedins_bchno"] = ""
|
|
2315
|
+ inputData["inv_data_type"] = ""
|
|
2316
|
+
|
|
2317
|
+ input["data"] = inputData
|
|
2318
|
+ inputMessage["input"] = input //交易输入
|
|
2319
|
+
|
|
2320
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2321
|
+ fmt.Println(string(bytesData))
|
|
2322
|
+ if err != nil {
|
|
2323
|
+ fmt.Println(err.Error())
|
|
2324
|
+ return err.Error(), ""
|
|
2325
|
+ }
|
|
2326
|
+ struct3513.RequestUrl = struct3513.RequestUrl + "3513"
|
|
2327
|
+ return HttpRequest(struct3513.RequestUrl, struct3513.AccessKey, struct3513.SecretKey, timestamp, string(bytesData)), string(bytesData)
|
|
2328
|
+
|
2030
|
2329
|
}
|
2031
|
2330
|
|
2032
|
2331
|
// 对账权限查询
|
|
@@ -2617,7 +2916,6 @@ func Jxyb3277(stmt_mon string, org_name string, doctor string, fixmedins_code st
|
2617
|
2916
|
return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3277"), string(bytesData)
|
2618
|
2917
|
}
|
2619
|
2918
|
|
2620
|
|
-
|
2621
|
2919
|
func Jsyb1318(code string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, request_url string, access_key string, cainfo string) (string, string) {
|
2622
|
2920
|
// 生成签名
|
2623
|
2921
|
timestamp := time.Now().Unix()
|
|
@@ -2626,20 +2924,20 @@ func Jsyb1318(code string, org_name string, doctor string, fixmedins_code string
|
2626
|
2924
|
input := make(map[string]interface{})
|
2627
|
2925
|
inputData := make(map[string]interface{})
|
2628
|
2926
|
inputMessage["infno"] = "1318" // 交易编码
|
2629
|
|
- inputData["query_date"] = ""
|
2630
|
|
- inputData["hilist_code"] = code
|
2631
|
|
- inputData["hilist_lmtpric_type"] = ""
|
2632
|
|
- inputData["overlmt_dspo_way"] = ""
|
2633
|
|
- inputData["insu_admdvs"] = ""
|
2634
|
|
- inputData["begndate"] = ""
|
2635
|
|
- inputData["enddate"] = ""
|
2636
|
|
- inputData["vali_flag"] = ""
|
2637
|
|
- inputData["rid"] = ""
|
2638
|
|
- inputData["tabname"] = ""
|
2639
|
|
- inputData["poolarea_no"] = ""
|
2640
|
|
- inputData["updt_time"] = "2024-03-11"
|
2641
|
|
- inputData["page_num"] = "1"
|
2642
|
|
- inputData["page_size"] = "100"
|
|
2927
|
+ inputData["query_date"] = ""
|
|
2928
|
+ inputData["hilist_code"] = code
|
|
2929
|
+ inputData["hilist_lmtpric_type"] = ""
|
|
2930
|
+ inputData["overlmt_dspo_way"] = ""
|
|
2931
|
+ inputData["insu_admdvs"] = ""
|
|
2932
|
+ inputData["begndate"] = ""
|
|
2933
|
+ inputData["enddate"] = ""
|
|
2934
|
+ inputData["vali_flag"] = ""
|
|
2935
|
+ inputData["rid"] = ""
|
|
2936
|
+ inputData["tabname"] = ""
|
|
2937
|
+ inputData["poolarea_no"] = ""
|
|
2938
|
+ inputData["updt_time"] = "2024-03-11"
|
|
2939
|
+ inputData["page_num"] = "1"
|
|
2940
|
+ inputData["page_size"] = "100"
|
2643
|
2941
|
input["data"] = inputData
|
2644
|
2942
|
inputMessage["input"] = input //交易输入
|
2645
|
2943
|
bytesData, err := json.Marshal(inputMessage)
|