|
@@ -2002,3 +2002,567 @@ func Jsyb3507(struct3507 models.Struct3507) (string, string) {
|
2002
|
2002
|
return HttpRequest(struct3507.RequestUrl, struct3507.AccessKey, struct3507.SecretKey, timestamp, string(bytesData)), string(bytesData)
|
2003
|
2003
|
|
2004
|
2004
|
}
|
|
2005
|
+
|
|
2006
|
+//对账权限查询
|
|
2007
|
+func Jxyb3260(setl_optins string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2008
|
+ // 生成签名
|
|
2009
|
+ timestamp := time.Now().Unix()
|
|
2010
|
+ // 生成输入报文
|
|
2011
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2012
|
+ input := make(map[string]interface{})
|
|
2013
|
+ inputData := make(map[string]interface{})
|
|
2014
|
+ inputMessage["infno"] = "3260" // 交易编码
|
|
2015
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2016
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2017
|
+ inputData["fix_blng_admdvs"] = setl_optins //医疗费总额
|
|
2018
|
+
|
|
2019
|
+ input["data"] = inputData
|
|
2020
|
+ inputMessage["input"] = input //交易输入
|
|
2021
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2022
|
+ fmt.Println(string(bytesData))
|
|
2023
|
+ if err != nil {
|
|
2024
|
+ fmt.Println(err.Error())
|
|
2025
|
+ return err.Error(), ""
|
|
2026
|
+ }
|
|
2027
|
+ request_url = request_url + "3260"
|
|
2028
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3260"), string(bytesData)
|
|
2029
|
+}
|
|
2030
|
+
|
|
2031
|
+//月度对账状态查询
|
|
2032
|
+func Jxyb3261(stmt_mon string, setl_optins string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2033
|
+ // 生成签名
|
|
2034
|
+ timestamp := time.Now().Unix()
|
|
2035
|
+ // 生成输入报文
|
|
2036
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2037
|
+ input := make(map[string]interface{})
|
|
2038
|
+ inputData := make(map[string]interface{})
|
|
2039
|
+ inputMessage["infno"] = "3261" // 交易编码
|
|
2040
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2041
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2042
|
+ inputData["fix_blng_admdvs"] = setl_optins //医疗费总额
|
|
2043
|
+ inputData["stmt_mon"] = stmt_mon //医疗费总额
|
|
2044
|
+
|
|
2045
|
+ input["data"] = inputData
|
|
2046
|
+ inputMessage["input"] = input //交易输入
|
|
2047
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2048
|
+ fmt.Println(string(bytesData))
|
|
2049
|
+ if err != nil {
|
|
2050
|
+ fmt.Println(err.Error())
|
|
2051
|
+ return err.Error(), ""
|
|
2052
|
+ }
|
|
2053
|
+ request_url = request_url + "3261"
|
|
2054
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3261"), string(bytesData)
|
|
2055
|
+}
|
|
2056
|
+func Jxyb3262(stmt_mon string, setl_optins string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2057
|
+ // 生成签名
|
|
2058
|
+ timestamp := time.Now().Unix()
|
|
2059
|
+ // 生成输入报文
|
|
2060
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2061
|
+ input := make(map[string]interface{})
|
|
2062
|
+ inputData := make(map[string]interface{})
|
|
2063
|
+
|
|
2064
|
+ fixMonRecDetailFileIn := make(map[string]interface{})
|
|
2065
|
+ //fixMonRecDetailFileIns := []make(map[string]interface{})
|
|
2066
|
+ fixMonRecDetailFileIns := make([]map[string]interface{}, 0)
|
|
2067
|
+
|
|
2068
|
+ fund := make(map[string]interface{})
|
|
2069
|
+ fundList := make([]map[string]interface{}, 0)
|
|
2070
|
+
|
|
2071
|
+ inputMessage["infno"] = "3262" // 交易编码
|
|
2072
|
+ inputData["fixmedins_code"] = fixmedins_code
|
|
2073
|
+ inputData["fixmedins_name"] = org_name
|
|
2074
|
+ inputData["fix_fill_dept"] = ""
|
|
2075
|
+ inputData["fix_fill_psn_id"] = ""
|
|
2076
|
+ inputData["fix_fill_psn"] = ""
|
|
2077
|
+ inputData["fix_fill_date"] = ""
|
|
2078
|
+ inputData["stmt_loc"] = ""
|
|
2079
|
+ inputData["upld_btch"] = ""
|
|
2080
|
+
|
|
2081
|
+ fixMonRecDetailFileIn["insutype"] = ""
|
|
2082
|
+ fixMonRecDetailFileIn["psn_type"] = ""
|
|
2083
|
+ fixMonRecDetailFileIn["med_type"] = ""
|
|
2084
|
+ fixMonRecDetailFileIn["fix_blng_admdvs"] = ""
|
|
2085
|
+ fixMonRecDetailFileIn["insu_admdvs"] = ""
|
|
2086
|
+ fixMonRecDetailFileIn["psn_time"] = ""
|
|
2087
|
+ fixMonRecDetailFileIn["psn_cnt"] = ""
|
|
2088
|
+ fixMonRecDetailFileIn["medfee_sumamt"] = ""
|
|
2089
|
+ fixMonRecDetailFileIn["inscp_amt"] = ""
|
|
2090
|
+ fixMonRecDetailFileIn["fund_pay_sumamt"] = ""
|
|
2091
|
+ fixMonRecDetailFileIn["fund_key"] = ""
|
|
2092
|
+ fixMonRecDetailFileIns = append(fixMonRecDetailFileIns, fixMonRecDetailFileIn)
|
|
2093
|
+
|
|
2094
|
+ fund["fund_key"] = ""
|
|
2095
|
+ fund["fix_blng_admdvs"] = ""
|
|
2096
|
+ fund["insu_admdvs"] = ""
|
|
2097
|
+ fund["fix_blng_admdvs"] = ""
|
|
2098
|
+ fund["insu_admdvs"] = ""
|
|
2099
|
+ fund["fund_code"] = ""
|
|
2100
|
+ fund["fund_name"] = ""
|
|
2101
|
+ fund["fund_amt"] = ""
|
|
2102
|
+ fund["memo"] = ""
|
|
2103
|
+ fundList = append(fundList, fund)
|
|
2104
|
+
|
|
2105
|
+ inputData["fixMonRecDetailFileInList"] = fixMonRecDetailFileIns
|
|
2106
|
+ inputData["fundList"] = fundList
|
|
2107
|
+
|
|
2108
|
+ input["data"] = inputData
|
|
2109
|
+ inputMessage["input"] = input //交易输入
|
|
2110
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2111
|
+ fmt.Println(string(bytesData))
|
|
2112
|
+ if err != nil {
|
|
2113
|
+ fmt.Println(err.Error())
|
|
2114
|
+ return err.Error(), ""
|
|
2115
|
+ }
|
|
2116
|
+ request_url = request_url + "3262"
|
|
2117
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3261"), string(bytesData)
|
|
2118
|
+}
|
|
2119
|
+func Jxyb3263(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2120
|
+ // 生成签名
|
|
2121
|
+ timestamp := time.Now().Unix()
|
|
2122
|
+ // 生成输入报文
|
|
2123
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2124
|
+ input := make(map[string]interface{})
|
|
2125
|
+ inputData := make(map[string]interface{})
|
|
2126
|
+ inputMessage["infno"] = "3263" // 交易编码
|
|
2127
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2128
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2129
|
+ inputData["stmt_mon"] = "" //医疗费总额
|
|
2130
|
+ inputData["stmt_loc"] = "" //医疗费总额
|
|
2131
|
+ inputData["upld_btch"] = "" //医疗费总额
|
|
2132
|
+
|
|
2133
|
+ input["data"] = inputData
|
|
2134
|
+ inputMessage["input"] = input //交易输入
|
|
2135
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2136
|
+ fmt.Println(string(bytesData))
|
|
2137
|
+ if err != nil {
|
|
2138
|
+ fmt.Println(err.Error())
|
|
2139
|
+ return err.Error(), ""
|
|
2140
|
+ }
|
|
2141
|
+ request_url = request_url + "3263"
|
|
2142
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3263"), string(bytesData)
|
|
2143
|
+}
|
|
2144
|
+func Jxyb3264(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2145
|
+ // 生成签名
|
|
2146
|
+ timestamp := time.Now().Unix()
|
|
2147
|
+ // 生成输入报文
|
|
2148
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2149
|
+ input := make(map[string]interface{})
|
|
2150
|
+ inputData := make(map[string]interface{})
|
|
2151
|
+ inputMessage["infno"] = "3264" // 交易编码
|
|
2152
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2153
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2154
|
+ inputData["stmt_mon"] = "" //医疗费总额
|
|
2155
|
+ inputData["stmt_loc"] = "" //医疗费总额
|
|
2156
|
+ inputData["upld_btch"] = "" //医疗费总额
|
|
2157
|
+
|
|
2158
|
+ input["data"] = inputData
|
|
2159
|
+ inputMessage["input"] = input //交易输入
|
|
2160
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2161
|
+ fmt.Println(string(bytesData))
|
|
2162
|
+ if err != nil {
|
|
2163
|
+ fmt.Println(err.Error())
|
|
2164
|
+ return err.Error(), ""
|
|
2165
|
+ }
|
|
2166
|
+ request_url = request_url + "3264"
|
|
2167
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3264"), string(bytesData)
|
|
2168
|
+}
|
|
2169
|
+func Jxyb3265(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2170
|
+ // 生成签名
|
|
2171
|
+ timestamp := time.Now().Unix()
|
|
2172
|
+ // 生成输入报文
|
|
2173
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2174
|
+ input := make(map[string]interface{})
|
|
2175
|
+ inputData := make(map[string]interface{})
|
|
2176
|
+
|
|
2177
|
+ solidifyId := make(map[string]interface{})
|
|
2178
|
+
|
|
2179
|
+ inputMessage["infno"] = "3265" // 交易编码
|
|
2180
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2181
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2182
|
+ inputData["stmt_mon"] = "" //医疗费总额
|
|
2183
|
+ inputData["fix_fill_dept"] = "" //对帐结束时间
|
|
2184
|
+ inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
|
2185
|
+ inputData["fix_fill_psn"] = "" //对帐结束时间
|
|
2186
|
+ inputData["fix_fill_date"] = "" //对帐结束时间
|
|
2187
|
+ inputData["stmt_loc"] = "" //医疗费总额
|
|
2188
|
+ inputData["upld_btch"] = "" //医疗费总额
|
|
2189
|
+
|
|
2190
|
+ inputData["solidifyIdList"] = "" //医疗费总额
|
|
2191
|
+
|
|
2192
|
+ input["data"] = inputData
|
|
2193
|
+ inputMessage["input"] = input //交易输入
|
|
2194
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2195
|
+ fmt.Println(string(bytesData))
|
|
2196
|
+ if err != nil {
|
|
2197
|
+ fmt.Println(err.Error())
|
|
2198
|
+ return err.Error(), ""
|
|
2199
|
+ }
|
|
2200
|
+ request_url = request_url + "3265"
|
|
2201
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3266"), string(bytesData)
|
|
2202
|
+}
|
|
2203
|
+func Jxyb3266(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2204
|
+ // 生成签名
|
|
2205
|
+ timestamp := time.Now().Unix()
|
|
2206
|
+ // 生成输入报文
|
|
2207
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2208
|
+ input := make(map[string]interface{})
|
|
2209
|
+ inputData := make(map[string]interface{})
|
|
2210
|
+ inputMessage["infno"] = "3266" // 交易编码
|
|
2211
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2212
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2213
|
+
|
|
2214
|
+ inputData["fix_blng_admdvs"] = setl_optins //对帐结束时间
|
|
2215
|
+ inputData["stmt_mon"] = "" //医疗费总额
|
|
2216
|
+ inputData["fix_fill_dept"] = setl_optins //对帐结束时间
|
|
2217
|
+ inputData["fix_fill_psn_id"] = setl_optins //对帐结束时间
|
|
2218
|
+ inputData["fix_fill_psn"] = setl_optins //对帐结束时间
|
|
2219
|
+ inputData["fix_fill_date"] = setl_optins //对帐结束时间
|
|
2220
|
+ inputData["stmt_loc"] = "" //医疗费总额
|
|
2221
|
+ inputData["upld_btch"] = "" //医疗费总额
|
|
2222
|
+
|
|
2223
|
+ input["data"] = inputData
|
|
2224
|
+ inputMessage["input"] = input //交易输入
|
|
2225
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2226
|
+ fmt.Println(string(bytesData))
|
|
2227
|
+ if err != nil {
|
|
2228
|
+ fmt.Println(err.Error())
|
|
2229
|
+ return err.Error(), ""
|
|
2230
|
+ }
|
|
2231
|
+ request_url = request_url + "3266"
|
|
2232
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3266"), string(bytesData)
|
|
2233
|
+}
|
|
2234
|
+func Jxyb3267(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2235
|
+ // 生成签名
|
|
2236
|
+ timestamp := time.Now().Unix()
|
|
2237
|
+ // 生成输入报文
|
|
2238
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2239
|
+ input := make(map[string]interface{})
|
|
2240
|
+ inputData := make(map[string]interface{})
|
|
2241
|
+ inputMessage["infno"] = "3267" // 交易编码
|
|
2242
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2243
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2244
|
+ inputData["stmt_mon"] = "" //医疗费总额
|
|
2245
|
+ inputData["stmt_loc"] = "" //医疗费总额
|
|
2246
|
+ inputData["upld_btch"] = "" //医疗费总额
|
|
2247
|
+
|
|
2248
|
+ input["data"] = inputData
|
|
2249
|
+ inputMessage["input"] = input //交易输入
|
|
2250
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2251
|
+ fmt.Println(string(bytesData))
|
|
2252
|
+ if err != nil {
|
|
2253
|
+ fmt.Println(err.Error())
|
|
2254
|
+ return err.Error(), ""
|
|
2255
|
+ }
|
|
2256
|
+ request_url = request_url + "3267"
|
|
2257
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2258
|
+}
|
|
2259
|
+func Jxyb3268(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2260
|
+ // 生成签名
|
|
2261
|
+ timestamp := time.Now().Unix()
|
|
2262
|
+ // 生成输入报文
|
|
2263
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2264
|
+ input := make(map[string]interface{})
|
|
2265
|
+ inputData := make(map[string]interface{})
|
|
2266
|
+
|
|
2267
|
+ fixMonRecDetailFileIn := make(map[string]interface{})
|
|
2268
|
+ //fixMonRecDetailFileIns := []make(map[string]interface{})
|
|
2269
|
+ fixMonRecDetailFileIns := make([]map[string]interface{}, 0)
|
|
2270
|
+
|
|
2271
|
+ fund := make(map[string]interface{})
|
|
2272
|
+ fundList := make([]map[string]interface{}, 0)
|
|
2273
|
+
|
|
2274
|
+ inputMessage["infno"] = "3268" // 交易编码
|
|
2275
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2276
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2277
|
+
|
|
2278
|
+ inputData["setl_mon"] = "" //对帐结束时间
|
|
2279
|
+ inputData["fix_fill_dept"] = "" //对帐结束时间
|
|
2280
|
+ inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
|
2281
|
+ inputData["fix_fill_psn"] = "" //对帐结束时间
|
|
2282
|
+ inputData["fix_fill_date"] = "" //对帐结束时间
|
|
2283
|
+ inputData["stmt_loc"] = "" //对帐结束时间
|
|
2284
|
+
|
|
2285
|
+ fixMonRecDetailFileIn["setl_date"] = ""
|
|
2286
|
+ fixMonRecDetailFileIn["insutype"] = ""
|
|
2287
|
+ fixMonRecDetailFileIn["psn_type"] = ""
|
|
2288
|
+ fixMonRecDetailFileIn["med_type"] = ""
|
|
2289
|
+ fixMonRecDetailFileIn["fix_blng_admdvs"] = ""
|
|
2290
|
+ fixMonRecDetailFileIn["insu_admdvs"] = ""
|
|
2291
|
+ fixMonRecDetailFileIn["psn_time"] = ""
|
|
2292
|
+ fixMonRecDetailFileIn["psn_cnt"] = ""
|
|
2293
|
+ fixMonRecDetailFileIn["medfee_sumamt"] = ""
|
|
2294
|
+ fixMonRecDetailFileIn["inscp_amt"] = ""
|
|
2295
|
+ fixMonRecDetailFileIn["fund_pay_sumamt"] = ""
|
|
2296
|
+ fixMonRecDetailFileIn["fund_key"] = ""
|
|
2297
|
+ fixMonRecDetailFileIns = append(fixMonRecDetailFileIns, fixMonRecDetailFileIn)
|
|
2298
|
+
|
|
2299
|
+ fund["fund_key"] = ""
|
|
2300
|
+ fund["fix_blng_admdvs"] = ""
|
|
2301
|
+ fund["insu_admdvs"] = ""
|
|
2302
|
+ fund["fix_blng_admdvs"] = ""
|
|
2303
|
+ fund["insu_admdvs"] = ""
|
|
2304
|
+ fund["fund_code"] = ""
|
|
2305
|
+ fund["fund_name"] = ""
|
|
2306
|
+ fund["fund_amt"] = ""
|
|
2307
|
+ fund["memo"] = ""
|
|
2308
|
+ fundList = append(fundList, fund)
|
|
2309
|
+
|
|
2310
|
+ inputData["fixDateRecDetailFileInList"] = fixMonRecDetailFileIns
|
|
2311
|
+ inputData["fundList"] = fundList
|
|
2312
|
+
|
|
2313
|
+ input["data"] = inputData
|
|
2314
|
+ inputMessage["input"] = input //交易输入
|
|
2315
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2316
|
+ fmt.Println(string(bytesData))
|
|
2317
|
+ if err != nil {
|
|
2318
|
+ fmt.Println(err.Error())
|
|
2319
|
+ return err.Error(), ""
|
|
2320
|
+ }
|
|
2321
|
+ request_url = request_url + "3268"
|
|
2322
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2323
|
+}
|
|
2324
|
+func Jxyb3269(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2325
|
+ // 生成签名
|
|
2326
|
+ timestamp := time.Now().Unix()
|
|
2327
|
+ // 生成输入报文
|
|
2328
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2329
|
+ input := make(map[string]interface{})
|
|
2330
|
+ inputData := make(map[string]interface{})
|
|
2331
|
+ inputMessage["infno"] = "3269" // 交易编码
|
|
2332
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2333
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2334
|
+ inputData["stmt_mon"] = "" //医疗费总额
|
|
2335
|
+ inputData["stmt_loc"] = "" //医疗费总额
|
|
2336
|
+
|
|
2337
|
+ input["data"] = inputData
|
|
2338
|
+ inputMessage["input"] = input //交易输入
|
|
2339
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2340
|
+ fmt.Println(string(bytesData))
|
|
2341
|
+ if err != nil {
|
|
2342
|
+ fmt.Println(err.Error())
|
|
2343
|
+ return err.Error(), ""
|
|
2344
|
+ }
|
|
2345
|
+ request_url = request_url + "3269"
|
|
2346
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2347
|
+}
|
|
2348
|
+func Jxyb3270(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2349
|
+ // 生成签名
|
|
2350
|
+ timestamp := time.Now().Unix()
|
|
2351
|
+ // 生成输入报文
|
|
2352
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2353
|
+ input := make(map[string]interface{})
|
|
2354
|
+ inputData := make(map[string]interface{})
|
|
2355
|
+ inputMessage["infno"] = "3267" // 交易编码
|
|
2356
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2357
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2358
|
+ inputData["stmt_mon"] = "" //医疗费总额
|
|
2359
|
+ inputData["stmt_loc"] = "" //医疗费总额
|
|
2360
|
+
|
|
2361
|
+ input["data"] = inputData
|
|
2362
|
+ inputMessage["input"] = input //交易输入
|
|
2363
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2364
|
+ fmt.Println(string(bytesData))
|
|
2365
|
+ if err != nil {
|
|
2366
|
+ fmt.Println(err.Error())
|
|
2367
|
+ return err.Error(), ""
|
|
2368
|
+ }
|
|
2369
|
+ request_url = request_url + "3270"
|
|
2370
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2371
|
+}
|
|
2372
|
+func Jxyb3271(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2373
|
+ // 生成签名
|
|
2374
|
+ timestamp := time.Now().Unix()
|
|
2375
|
+ // 生成输入报文
|
|
2376
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2377
|
+ input := make(map[string]interface{})
|
|
2378
|
+ inputData := make(map[string]interface{})
|
|
2379
|
+ inputMessage["infno"] = "3271" // 交易编码
|
|
2380
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2381
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2382
|
+
|
|
2383
|
+ inputData["fix_fill_dept"] = "" //对帐结束时间
|
|
2384
|
+ inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
|
2385
|
+ inputData["fix_fill_psn"] = "" //对帐结束时间
|
|
2386
|
+ inputData["fix_fill_date"] = "" //对帐结束时间
|
|
2387
|
+ inputData["stmt_loc"] = "" //医疗费总额
|
|
2388
|
+
|
|
2389
|
+ input["data"] = inputData
|
|
2390
|
+ inputMessage["input"] = input //交易输入
|
|
2391
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2392
|
+ fmt.Println(string(bytesData))
|
|
2393
|
+ if err != nil {
|
|
2394
|
+ fmt.Println(err.Error())
|
|
2395
|
+ return err.Error(), ""
|
|
2396
|
+ }
|
|
2397
|
+ request_url = request_url + "3271"
|
|
2398
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2399
|
+}
|
|
2400
|
+func Jxyb3272(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2401
|
+ // 生成签名
|
|
2402
|
+ timestamp := time.Now().Unix()
|
|
2403
|
+ // 生成输入报文
|
|
2404
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2405
|
+ input := make(map[string]interface{})
|
|
2406
|
+ inputData := make(map[string]interface{})
|
|
2407
|
+ inputMessage["infno"] = "3272" // 交易编码
|
|
2408
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2409
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2410
|
+ inputData["fix_blng_admdvs"] = org_name //对帐结束时间
|
|
2411
|
+ inputData["setl_mon"] = org_name //对帐结束时间
|
|
2412
|
+ inputData["fix_fill_dept"] = org_name //对帐结束时间
|
|
2413
|
+ inputData["fix_fill_psn_id"] = org_name //对帐结束时间
|
|
2414
|
+ inputData["fix_fill_psn"] = org_name //
|
|
2415
|
+ inputData["fix_fill_date"] = org_name //对帐结束时间
|
|
2416
|
+ inputData["stmt_loc"] = org_name //对帐结束时间
|
|
2417
|
+
|
|
2418
|
+ input["data"] = inputData
|
|
2419
|
+ inputMessage["input"] = input //交易输入
|
|
2420
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2421
|
+ fmt.Println(string(bytesData))
|
|
2422
|
+ if err != nil {
|
|
2423
|
+ fmt.Println(err.Error())
|
|
2424
|
+ return err.Error(), ""
|
|
2425
|
+ }
|
|
2426
|
+ request_url = request_url + "3272"
|
|
2427
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2428
|
+}
|
|
2429
|
+func Jxyb3273(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2430
|
+ // 生成签名
|
|
2431
|
+ timestamp := time.Now().Unix()
|
|
2432
|
+ // 生成输入报文
|
|
2433
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2434
|
+ input := make(map[string]interface{})
|
|
2435
|
+ inputData := make(map[string]interface{})
|
|
2436
|
+ inputMessage["infno"] = "3273" // 交易编码
|
|
2437
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2438
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2439
|
+ inputData["stmt_mon"] = "" //医疗费总额
|
|
2440
|
+ inputData["stmt_loc"] = "" //医疗费总额
|
|
2441
|
+
|
|
2442
|
+ input["data"] = inputData
|
|
2443
|
+ inputMessage["input"] = input //交易输入
|
|
2444
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2445
|
+ fmt.Println(string(bytesData))
|
|
2446
|
+ if err != nil {
|
|
2447
|
+ fmt.Println(err.Error())
|
|
2448
|
+ return err.Error(), ""
|
|
2449
|
+ }
|
|
2450
|
+ request_url = request_url + "3273"
|
|
2451
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2452
|
+}
|
|
2453
|
+func Jxyb3274(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2454
|
+ // 生成签名
|
|
2455
|
+ timestamp := time.Now().Unix()
|
|
2456
|
+ // 生成输入报文
|
|
2457
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2458
|
+ input := make(map[string]interface{})
|
|
2459
|
+ inputData := make(map[string]interface{})
|
|
2460
|
+ inputMessage["infno"] = "3274" // 交易编码
|
|
2461
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2462
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2463
|
+
|
|
2464
|
+ inputData["fix_blng_admdvs"] = "" //对帐结束时间
|
|
2465
|
+ inputData["setl_mon"] = "" //对帐结束时间
|
|
2466
|
+ inputData["fix_fill_dept"] = "" //对帐结束时间
|
|
2467
|
+ inputData["fix_fill_psn_id"] = "" //对帐结束时间
|
|
2468
|
+ inputData["fix_fill_psn"] = "" //
|
|
2469
|
+ inputData["fix_fill_date"] = "" //对帐结束时间
|
|
2470
|
+ inputData["stmt_loc"] = "" //对帐结束时间
|
|
2471
|
+
|
|
2472
|
+ input["data"] = inputData
|
|
2473
|
+ inputMessage["input"] = input //交易输入
|
|
2474
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2475
|
+ fmt.Println(string(bytesData))
|
|
2476
|
+ if err != nil {
|
|
2477
|
+ fmt.Println(err.Error())
|
|
2478
|
+ return err.Error(), ""
|
|
2479
|
+ }
|
|
2480
|
+ request_url = request_url + "3274"
|
|
2481
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2482
|
+}
|
|
2483
|
+func Jxyb3275(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2484
|
+ // 生成签名
|
|
2485
|
+ timestamp := time.Now().Unix()
|
|
2486
|
+ // 生成输入报文
|
|
2487
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2488
|
+ input := make(map[string]interface{})
|
|
2489
|
+ inputData := make(map[string]interface{})
|
|
2490
|
+ fund := make(map[string]interface{})
|
|
2491
|
+ fundList := make([]map[string]interface{}, 0)
|
|
2492
|
+
|
|
2493
|
+ inputMessage["infno"] = "3275" // 交易编码
|
|
2494
|
+
|
|
2495
|
+ inputData["dcla_cal"] = "" //医疗费总额
|
|
2496
|
+ inputData["setlym"] = "" //医疗费总额
|
|
2497
|
+ inputData["fix_blng_admdvs"] = "" //医疗费总额
|
|
2498
|
+ inputData["insu_admdvs"] = "" //医疗费总额
|
|
2499
|
+ inputData["medfee_sumamt"] = "" //医疗费总额
|
|
2500
|
+ inputData["med_sumfee"] = "" //医疗费总额
|
|
2501
|
+ inputData["fund_appy_sum"] = "" //医疗费总额
|
|
2502
|
+ inputData["cash_payamt"] = "" //医疗费总额
|
|
2503
|
+
|
|
2504
|
+ fund["dcla_cal"] = ""
|
|
2505
|
+ fund["setlym"] = ""
|
|
2506
|
+ fund["fix_blng_admdvs"] = ""
|
|
2507
|
+ fund["insu_admdvs"] = ""
|
|
2508
|
+ fund["fund_code"] = ""
|
|
2509
|
+ fund["fund_name"] = ""
|
|
2510
|
+ fund["fund_amt"] = ""
|
|
2511
|
+ fund["memo"] = ""
|
|
2512
|
+ fundList = append(fundList, fund)
|
|
2513
|
+
|
|
2514
|
+ inputData["fundList"] = fundList
|
|
2515
|
+
|
|
2516
|
+ input["data"] = inputData
|
|
2517
|
+ inputMessage["input"] = input //交易输入
|
|
2518
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2519
|
+ fmt.Println(string(bytesData))
|
|
2520
|
+ if err != nil {
|
|
2521
|
+ fmt.Println(err.Error())
|
|
2522
|
+ return err.Error(), ""
|
|
2523
|
+ }
|
|
2524
|
+ request_url = request_url + "3275"
|
|
2525
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2526
|
+}
|
|
2527
|
+func Jxyb3276(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2528
|
+ // 生成签名
|
|
2529
|
+ timestamp := time.Now().Unix()
|
|
2530
|
+ // 生成输入报文
|
|
2531
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2532
|
+ input := make(map[string]interface{})
|
|
2533
|
+ inputData := make(map[string]interface{})
|
|
2534
|
+ inputMessage["infno"] = "3276" // 交易编码
|
|
2535
|
+ inputData["upld_btch_no"] = "" //医疗费总额
|
|
2536
|
+ input["data"] = inputData
|
|
2537
|
+ inputMessage["input"] = input //交易输入
|
|
2538
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2539
|
+ fmt.Println(string(bytesData))
|
|
2540
|
+ if err != nil {
|
|
2541
|
+ fmt.Println(err.Error())
|
|
2542
|
+ return err.Error(), ""
|
|
2543
|
+ }
|
|
2544
|
+ request_url = request_url + "3276"
|
|
2545
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2546
|
+}
|
|
2547
|
+func Jxyb3277(fixmedins_setl_cnt int64, acct_pay float64, fund_pay_sumamt float64, medfee_sumamt float64, stmt_begndate string, stmt_enddate string, setl_optins string, clr_type string, insutype string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, request_url string, access_key string, secret_key string, cainfo string) (string, string) {
|
|
2548
|
+ // 生成签名
|
|
2549
|
+ timestamp := time.Now().Unix()
|
|
2550
|
+ // 生成输入报文
|
|
2551
|
+ inputMessage := SetJXInputMessage(timestamp, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, cainfo)
|
|
2552
|
+ input := make(map[string]interface{})
|
|
2553
|
+ inputData := make(map[string]interface{})
|
|
2554
|
+ inputMessage["infno"] = "3277" // 交易编码
|
|
2555
|
+ inputData["fixmedins_code"] = fixmedins_code // 对帐开始时间
|
|
2556
|
+ inputData["fixmedins_name"] = org_name //对帐结束时间
|
|
2557
|
+ inputData["stmt_mon"] = "" //医疗费总额
|
|
2558
|
+ input["data"] = inputData
|
|
2559
|
+ inputMessage["input"] = input //交易输入
|
|
2560
|
+ bytesData, err := json.Marshal(inputMessage)
|
|
2561
|
+ fmt.Println(string(bytesData))
|
|
2562
|
+ if err != nil {
|
|
2563
|
+ fmt.Println(err.Error())
|
|
2564
|
+ return err.Error(), ""
|
|
2565
|
+ }
|
|
2566
|
+ request_url = request_url + "3277"
|
|
2567
|
+ return JXHttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData), "3267"), string(bytesData)
|
|
2568
|
+}
|