Просмотр исходного кода

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 2 лет назад
Родитель
Сommit
54740a4906

+ 6 - 0
controllers/js/jsyb_controller.go Просмотреть файл

@@ -45,6 +45,8 @@ func JSybRegistRouters() {
45 45
 	beego.Router("/jsyb/3201", &JSybController{}, "get:Get3201")
46 46
 	beego.Router("/jsyb/9001", &JSybController{}, "get:Get9001")
47 47
 
48
+	beego.Router("/jsyb/3101", &JSybController{}, "get:Get3101")
49
+
48 50
 	//beego.Router("/jsyb/2503", &JSybController{}, "get:Get2503")
49 51
 
50 52
 	beego.Router("/jsyb/readcard", &JSybController{}, "get:ReadCard")
@@ -1036,3 +1038,7 @@ func saveJsLog(result string, request string, infno string, desc string, org_nam
1036 1038
 	}
1037 1039
 
1038 1040
 }
1041
+
1042
+func (c *JSybController) Get3101() {
1043
+
1044
+}

+ 2 - 1
controllers/nm/nm_controller.go Просмотреть файл

@@ -425,8 +425,9 @@ func (c *NmController) Post2304() {
425 425
 	mdtrtarea_admvs := c.GetString("mdtrtarea_admvs")
426 426
 	secret_key := c.GetString("secret_key")
427 427
 	org_name := c.GetString("org_name")
428
+	fapiao_number := c.GetString("fapiao_number")
428 429
 
429
-	result, src_resquest := service.ZHGdyb2304(psn_no, mdtrt_id, chrg_bchno, cert_no, insutype_type, allTotal, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, "0", id_card_type, 0, 0, 0, 0, certificates)
430
+	result, src_resquest := service.ZHGdyb2304(psn_no, mdtrt_id, chrg_bchno, cert_no, insutype_type, allTotal, org_name, doctor, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs, secret_key, "0", id_card_type, 0, 0, 0, 0, certificates, fapiao_number)
430 431
 	saveJsLog(result, src_resquest, "2304", "住院结算", org_name)
431 432
 	var dat2 map[string]interface{}
432 433
 	if err := json.Unmarshal([]byte(src_resquest), &dat2); err == nil {

+ 5 - 4
controllers/sg/his_api_controller.go Просмотреть файл

@@ -8878,11 +8878,11 @@ func (c *HisApiController) GetSettleAccounts() {
8878 8878
 			bedCostPartSelfTotal, _ = decimal.NewFromFloat(bedCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()
8879 8879
 		}
8880 8880
 
8881
-		if c.GetAdminUserInfo().CurrentOrgId == 10188 {
8881
+		if c.GetAdminUserInfo().CurrentOrgId == 10188 || c.GetAdminUserInfo().CurrentOrgId == 10217 {
8882 8882
 			if item.MedChrgitmType == "03" { //检查费
8883
-				treatCostTotal, _ = decimal.NewFromFloat(treatCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
8884
-				treatCostSelfTotal, _ = decimal.NewFromFloat(treatCostSelfTotal).Add(decimal.NewFromFloat(item.OverlmtAmt)).Float64()
8885
-				treatCostPartSelfTotal, _ = decimal.NewFromFloat(treatCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()
8883
+				laboratoryCostTotal, _ = decimal.NewFromFloat(laboratoryCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
8884
+				laboratoryCostSelfTotal, _ = decimal.NewFromFloat(laboratoryCostSelfTotal).Add(decimal.NewFromFloat(item.OverlmtAmt)).Float64()
8885
+				laboratoryCostPartSelfTotal, _ = decimal.NewFromFloat(laboratoryCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()
8886 8886
 			}
8887 8887
 		} else {
8888 8888
 
@@ -8898,6 +8898,7 @@ func (c *HisApiController) GetSettleAccounts() {
8898 8898
 			laboratoryCostTotal, _ = decimal.NewFromFloat(laboratoryCostTotal).Add(decimal.NewFromFloat(item.DetItemFeeSumamt)).Float64()
8899 8899
 			laboratoryCostSelfTotal, _ = decimal.NewFromFloat(laboratoryCostSelfTotal).Add(decimal.NewFromFloat(item.OverlmtAmt)).Float64()
8900 8900
 			laboratoryCostPartSelfTotal, _ = decimal.NewFromFloat(laboratoryCostPartSelfTotal).Add(decimal.NewFromFloat(item.PreselfpayAmt)).Float64()
8901
+
8901 8902
 		}
8902 8903
 
8903 8904
 		if item.MedChrgitmType == "05" || item.MedChrgitmType == "1402" || item.MedChrgitmType == "1403" { //治疗费

+ 2 - 2
controllers/zh/zh_his_api_controller.go Просмотреть файл

@@ -1400,7 +1400,7 @@ func (c *ZHHisApiController) GetSettleInfo() {
1400 1400
 		api := "http://172.16.13.254:9532/" + "nmyb/2304?psn_no=" + record.PsnNo + "&mdtrt_id=" + record.Number + "&chrg_bchno=" + chrg_bchno +
1401 1401
 			"&insutype_type=" + record.InsutypeType + "&total=" + allTotal +
1402 1402
 			"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
1403
-			"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(record.IdCardType, 10) + "&card_sn=" + "" + "&certificates=" + strconv.FormatInt(record.Certificates, 10) + "&name=" + record.Name + "&cert_no=" + mdtrt_cert_no
1403
+			"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(record.IdCardType, 10) + "&card_sn=" + "" + "&certificates=" + strconv.FormatInt(record.Certificates, 10) + "&name=" + record.Name + "&cert_no=" + mdtrt_cert_no + "&fapiao_number=" + fapiao_number
1404 1404
 		resp, requestErr := http.Get(api)
1405 1405
 		if requestErr != nil {
1406 1406
 			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
@@ -1427,7 +1427,7 @@ func (c *ZHHisApiController) GetSettleInfo() {
1427 1427
 
1428 1428
 	} else {
1429 1429
 
1430
-		result, src_resquest = service.ZHGdyb2304(record.PsnNo, record.Number, chrg_bchno, cert_no, record.InsutypeType, allTotal, miConfig.OrgName, roles.UserName, miConfig.Code, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, "0", record.IdCardType, 0, 0, 0, 0, record.Certificates)
1430
+		result, src_resquest = service.ZHGdyb2304(record.PsnNo, record.Number, chrg_bchno, cert_no, record.InsutypeType, allTotal, miConfig.OrgName, roles.UserName, miConfig.Code, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, "0", record.IdCardType, 0, 0, 0, 0, record.Certificates, "")
1431 1431
 		saveLog(result, src_resquest, "2304", "住院结算")
1432 1432
 	}
1433 1433
 

+ 253 - 0
service/jsyb_service.go Просмотреть файл

@@ -1206,3 +1206,256 @@ func GetMacTwo() string {
1206 1206
 	}
1207 1207
 	return ""
1208 1208
 }
1209
+
1210
+type Jsyb3101 struct {
1211
+	Opter        string `json:"opter"`
1212
+	RecerSysCode string `json:"recer_sys_code"`
1213
+	Msgid        string `json:"msgid"`
1214
+	InfTime      string `json:"inf_time"`
1215
+	Input        struct {
1216
+		Data struct {
1217
+			Syscode     string `json:"syscode"`
1218
+			TrigScen    string `json:"trig_scen"`
1219
+			PatientDtos struct {
1220
+				Poolarea         string `json:"poolarea"`
1221
+				CurrMdtrtID      string `json:"curr_mdtrt_id"`
1222
+				PatnID           string `json:"patn_id"`
1223
+				FsiEncounterDtos struct {
1224
+					OutSetlFlag      string        `json:"out_setl_flag"`
1225
+					AdmDate          string        `json:"adm_date"`
1226
+					DscgDeptName     string        `json:"dscg_dept_name"`
1227
+					DscgDeptCodg     string        `json:"dscg_dept_codg"`
1228
+					SetlTotlnum      string        `json:"setl_totlnum"`
1229
+					DscgDate         string        `json:"dscg_date"`
1230
+					Wardno           string        `json:"wardno"`
1231
+					MdtrtID          string        `json:"mdtrt_id"`
1232
+					AdmDeptName      string        `json:"adm_dept_name"`
1233
+					AdmDeptCodg      string        `json:"adm_dept_codg"`
1234
+					OwnpayAmt        string        `json:"ownpay_amt"`
1235
+					FsiOperationDtos []interface{} `json:"fsi_operation_dtos"`
1236
+					MedinsType       string        `json:"medins_type"`
1237
+					MedinsName       string        `json:"medins_name"`
1238
+					MedMdtrtType     string        `json:"med_mdtrt_type"`
1239
+					HifpPayamt       string        `json:"hifp_payamt"`
1240
+					MaAmt            string        `json:"ma_amt"`
1241
+					DscgMainDiseName string        `json:"dscg_main_dise_name"`
1242
+					DscgMainDiseCodg string        `json:"dscg_main_dise_codg"`
1243
+					MedinsAdmdvs     string        `json:"medins_admdvs"`
1244
+					AcctPayamt       string        `json:"acct_payamt"`
1245
+					MedType          string        `json:"med_type"`
1246
+					FsiDiagnoseDtos  []struct {
1247
+						InoutDiseType string `json:"inout_dise_type"`
1248
+						DiseID        string `json:"dise_id"`
1249
+						DiasSrtNo     string `json:"dias_srt_no"`
1250
+						DiseName      string `json:"dise_name"`
1251
+						DiseDate      string `json:"dise_date"`
1252
+						DiseCodg      string `json:"dise_codg"`
1253
+						MaindiseFlag  string `json:"maindise_flag"`
1254
+					} `json:"fsi_diagnose_dtos"`
1255
+					Insutype     string `json:"insutype"`
1256
+					FsiOrderDtos []struct {
1257
+						DrordBhvr       string `json:"drord_bhvr"`
1258
+						Cnt             string `json:"cnt"`
1259
+						HilistLv        string `json:"hilist_lv"`
1260
+						Sumamt          string `json:"sumamt"`
1261
+						Lv2HospItemPric string `json:"lv2_hosp_item_pric"`
1262
+						OwnpayAmt       string `json:"ownpay_amt"`
1263
+						HilistType      string `json:"hilist_type"`
1264
+						HilistPric      string `json:"hilist_pric"`
1265
+						HilistName      string `json:"hilist_name"`
1266
+						HilistMemo      string `json:"hilist_memo"`
1267
+						HilistCode      string `json:"hilist_code"`
1268
+						SpecUnt         string `json:"spec_unt"`
1269
+						CurrDrordFlag   string `json:"curr_drord_flag"`
1270
+						DrordDeptName   string `json:"drord_dept_name"`
1271
+						DrordDeptCodg   string `json:"drord_dept_codg"`
1272
+						Grpno           string `json:"grpno"`
1273
+						HosplistName    string `json:"hosplist_name"`
1274
+						HosplistCode    string `json:"hosplist_code"`
1275
+						ChrgType        string `json:"chrg_type"`
1276
+						DrordStopDate   string `json:"drord_stop_date"`
1277
+						DrordDrName     string `json:"drord_dr_name"`
1278
+						DrordDrCodg     string `json:"drord_dr_codg"`
1279
+						HilistDosform   string `json:"hilist_dosform"`
1280
+						Lv3HospItemPric string `json:"lv3_hosp_item_pric"`
1281
+						SelfpayAmt      string `json:"selfpay_amt"`
1282
+						LongDrordFlag   string `json:"long_drord_flag"`
1283
+						DrordBegnDate   string `json:"drord_begn_date"`
1284
+						Spec            string `json:"spec"`
1285
+						Lv1HospItemPric string `json:"lv1_hosp_item_pric"`
1286
+						Rxno            string `json:"rxno"`
1287
+						HosplistDosform string `json:"hosplist_dosform"`
1288
+						Pric            string `json:"pric"`
1289
+						RxID            string `json:"rx_id"`
1290
+						DrordDrProfttl  string `json:"drord_dr_profttl"`
1291
+					} `json:"fsi_order_dtos"`
1292
+					DrCodg       string `json:"dr_codg"`
1293
+					SelfpayAmt   string `json:"selfpay_amt"`
1294
+					ReimFlag     string `json:"reim_flag"`
1295
+					MedfeeSumamt string `json:"medfee_sumamt"`
1296
+					MedinsLv     string `json:"medins_lv"`
1297
+					MedinsID     string `json:"medins_id"`
1298
+					WardareaCodg string `json:"wardarea_codg"`
1299
+					Bedno        string `json:"bedno"`
1300
+					MatnStas     string `json:"matn_stas"`
1301
+				} `json:"fsi_encounter_dtos"`
1302
+				FsiHisDataDtos string `json:"fsi_his_data_dtos"`
1303
+				PatnName       string `json:"patn_name"`
1304
+				Gend           string `json:"gend"`
1305
+				Brdy           string `json:"brdy"`
1306
+			} `json:"patient_dtos"`
1307
+			RuleIds []interface{} `json:"rule_ids"`
1308
+			TaskID  string        `json:"task_id"`
1309
+		} `json:"data"`
1310
+	} `json:"input"`
1311
+	Infno             string `json:"infno"`
1312
+	Cainfo            string `json:"cainfo"`
1313
+	OpterType         string `json:"opter_type"`
1314
+	OpterName         string `json:"opter_name"`
1315
+	MdtrtareaAdmvs    string `json:"mdtrtarea_admvs"`
1316
+	Signtype          string `json:"signtype"`
1317
+	FixmedinsSoftFcty string `json:"fixmedins_soft_fcty"`
1318
+	DevSafeInfo       string `json:"dev_safe_info"`
1319
+	InsuplcAdmdvs     string `json:"insuplc_admdvs"`
1320
+	Infver            string `json:"infver"`
1321
+	SignNo            string `json:"sign_no"`
1322
+	FixmedinsName     string `json:"fixmedins_name"`
1323
+	FixmedinsCode     string `json:"fixmedins_code"`
1324
+	DevNo             string `json:"dev_no"`
1325
+}
1326
+
1327
+//
1328
+//func jsyb3101(jsyb3102 Jsyb3102, request_url string, access_key string, secret_key string) (string, string) {
1329
+//	// 生成签名
1330
+//	timestamp := time.Now().Unix()
1331
+//	// 生成输入报文
1332
+//	inputMessage := SetJSInputMessage(timestamp, jsyb3101.FixmedinsName, jsyb3101.OpterName, jsyb3101.FixmedinsCode, jsyb3101.InsuplcAdmdvs, jsyb3101.MdtrtareaAdmvs, jsyb3101.Cainfo)
1333
+//	input := make(map[string]interface{})
1334
+//	inputData := make(map[string]interface{})
1335
+//	patientDtosinputData := make(map[string]interface{})
1336
+//	fisEncounterDtosData := make(map[string]interface{})
1337
+//	fsiDiagnoseDtosData := make(map[string]interface{})
1338
+//	fsiOrderDtosData := make(map[string]interface{})
1339
+//	fsiOperationDtosData := make(map[string]interface{})
1340
+//
1341
+//	inputMessage["infno"] = "3102"
1342
+//	inputData["syscode"] = "LinkDialysis"
1343
+//	inputData["trig_scen"] = "1"
1344
+//
1345
+//	patientDtosinputData["patn_id"] = jsyb3101.Input.Data.PatientDtos.PatnID
1346
+//	patientDtosinputData["patn_name"] = jsyb3101.Input.Data.PatientDtos.PatnName
1347
+//	patientDtosinputData["gend"] = jsyb3101.Input.Data.PatientDtos.Gend
1348
+//	patientDtosinputData["brdy"] = jsyb3101.Input.Data.PatientDtos.Gend
1349
+//	patientDtosinputData["poolarea"] = jsyb3101.Input.Data.PatientDtos.Gend
1350
+//	patientDtosinputData["curr_mdtrt_id"] = jsyb3101.Input.Data.PatientDtos.CurrMdtrtID
1351
+//	patientDtosinputData["fsi_encounter_dtos"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos
1352
+//	patientDtosinputData["fsi_his_data_dto"] = jsyb3101.Input.Data.PatientDtos.FsiHisDataDtos
1353
+//
1354
+//	fisEncounterDtosData["mdtrt_id"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.MdtrtID
1355
+//	fisEncounterDtosData["medins_id"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.MedinsID
1356
+//	fisEncounterDtosData["medins_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.MedinsName
1357
+//	fisEncounterDtosData["medins_admdvs"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.MedinsAdmdvs
1358
+//	fisEncounterDtosData["medins_type"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.MedinsType
1359
+//	fisEncounterDtosData["medins_lv"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.MedinsType
1360
+//	fisEncounterDtosData["wardarea_codg"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.WardareaCodg
1361
+//	fisEncounterDtosData["wardno"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.Wardno
1362
+//	fisEncounterDtosData["bedno"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.Bedno
1363
+//	fisEncounterDtosData["adm_date"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.AdmDate
1364
+//	fisEncounterDtosData["dscg_date"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgDate
1365
+//	fisEncounterDtosData["dscg_main_dise_codg"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseCodg
1366
+//	fisEncounterDtosData["dscg_main_dise_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1367
+//	fisEncounterDtosData["fsi_diagnose_dtos"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1368
+//	fisEncounterDtosData["dr_codg"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1369
+//	fisEncounterDtosData["adm_dept_codg"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1370
+//	fisEncounterDtosData["adm_dept_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1371
+//	fisEncounterDtosData["dscg_dept_codg"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1372
+//	fisEncounterDtosData["dscg_dept_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1373
+//	fisEncounterDtosData["med_mdtrt_type"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1374
+//	fisEncounterDtosData["med_type"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1375
+//	fisEncounterDtosData["fsi_order_dtos"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1376
+//	fisEncounterDtosData["matn_stas"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1377
+//	fisEncounterDtosData["medfee_sumamt"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1378
+//	fisEncounterDtosData["ownpay_amt"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1379
+//	fisEncounterDtosData["selfpay_amt"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1380
+//	fisEncounterDtosData["acct_payamt"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1381
+//	fisEncounterDtosData["ma_amt"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1382
+//	fisEncounterDtosData["hifp_payamt"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1383
+//	fisEncounterDtosData["setl_totlnum"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1384
+//	fisEncounterDtosData["insutype"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1385
+//	fisEncounterDtosData["reim_flag"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1386
+//	fisEncounterDtosData["out_setl_flag"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1387
+//	fisEncounterDtosData["fsi_operation_dtos"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1388
+//
1389
+//	fsiDiagnoseDtosData["dise_id"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1390
+//	fsiDiagnoseDtosData["inout_dise_type"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1391
+//	fsiDiagnoseDtosData["maindise_flag"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1392
+//	fsiDiagnoseDtosData["dias_srt_no"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1393
+//	fsiDiagnoseDtosData["dise_codg"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1394
+//	fsiDiagnoseDtosData["dise_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1395
+//	fsiDiagnoseDtosData["dise_date"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1396
+//
1397
+//	fsiOrderDtosData["rx_id"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1398
+//	fsiOrderDtosData["rxno"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1399
+//	fsiOrderDtosData["grpno"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1400
+//	fsiOrderDtosData["long_drord_flag"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1401
+//	fsiOrderDtosData["hilist_type"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1402
+//	fsiOrderDtosData["chrg_type"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1403
+//	fsiOrderDtosData["drord_bhvr"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1404
+//	fsiOrderDtosData["hilist_code"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1405
+//	fsiOrderDtosData["hilist_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1406
+//	fsiOrderDtosData["hilist_dosform"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1407
+//	fsiOrderDtosData["hilist_lv"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1408
+//	fsiOrderDtosData["hilist_pric"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1409
+//	fsiOrderDtosData["lv1_hosp_item_pric"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1410
+//	fsiOrderDtosData["lv1_hosp_item_pric"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1411
+//	fsiOrderDtosData["lv2_hosp_item_pric"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1412
+//	fsiOrderDtosData["lv3_hosp_item_pric"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1413
+//	fsiOrderDtosData["hilist_memo"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1414
+//	fsiOrderDtosData["hosplist_code"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1415
+//	fsiOrderDtosData["hosplist_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1416
+//	fsiOrderDtosData["hosplist_dosform"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1417
+//	fsiOrderDtosData["cnt"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1418
+//	fsiOrderDtosData["pric"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1419
+//	fsiOrderDtosData["sumamt"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1420
+//	fsiOrderDtosData["ownpay_amt"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1421
+//	fsiOrderDtosData["selfpay_amt"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1422
+//	fsiOrderDtosData["spec"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1423
+//	fsiOrderDtosData["spec_unt"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1424
+//	fsiOrderDtosData["drord_begn_date"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1425
+//	fsiOrderDtosData["drord_stop_date"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1426
+//	fsiOrderDtosData["drord_dept_codg"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1427
+//	fsiOrderDtosData["drord_dept_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1428
+//	fsiOrderDtosData["drord_dr_codg"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1429
+//	fsiOrderDtosData["drord_dr_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1430
+//	fsiOrderDtosData["drord_dr_profttl"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1431
+//	fsiOrderDtosData["curr_drord_flag"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1432
+//
1433
+//	fsiOperationDtosData["setl_list_oprn_id"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1434
+//	fsiOperationDtosData["oprn_code"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1435
+//	fsiOperationDtosData["oprn_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1436
+//	fsiOperationDtosData["main_oprn_flag"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1437
+//	fsiOperationDtosData["oprn_date"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1438
+//	fsiOperationDtosData["anst_way"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1439
+//	fsiOperationDtosData["oper_dr_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1440
+//	fsiOperationDtosData["oper_dr_code"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1441
+//	fsiOperationDtosData["anst_dr_name"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1442
+//	fsiOperationDtosData["anst_dr_code"] = jsyb3101.Input.Data.PatientDtos.FsiEncounterDtos.DscgMainDiseName
1443
+//
1444
+//	inputData["patient_dtos"] = patientDtosinputData
1445
+//	inputData["fsi_encounter_dtos"] = fisEncounterDtosData
1446
+//	inputData["fsi_diagnose_dtos"] = fsiDiagnoseDtosData
1447
+//	inputData["fsi_order_dtos"] = fsiOrderDtosData
1448
+//	inputData["fsi_operation_dtos"] = fsiOperationDtosData
1449
+//
1450
+//	input["data"] = inputData
1451
+//	inputMessage["input"] = input //交易输入
1452
+//	bytesData, err := json.Marshal(inputMessage)
1453
+//	fmt.Println(string(bytesData))
1454
+//	if err != nil {
1455
+//		fmt.Println(err.Error())
1456
+//		return err.Error(), ""
1457
+//	}
1458
+//	request_url = request_url + "3101"
1459
+//	return HttpRequest(request_url, access_key, secret_key, timestamp, string(bytesData)), string(bytesData)
1460
+//
1461
+//}

+ 2 - 2
service/zh_his_service.go Просмотреть файл

@@ -957,7 +957,7 @@ func ZHGdyb2303(psnNo string, mdtrtId string, chrgBchno string, certNo string, i
957 957
 }
958 958
 
959 959
 //  住院结算
960
-func ZHGdyb2304(psnNo string, mdtrtId string, chrgBchno string, certNo string, insutype string, total string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, mid_setl_flag string, id_card_type int64, fulamt_ownpay_amt float64, overlmt_selfpay float64, preselfpay_amt float64, inscp_scp_amt float64, certificates int64) (string, string) {
960
+func ZHGdyb2304(psnNo string, mdtrtId string, chrgBchno string, certNo string, insutype string, total string, org_name string, doctor string, fixmedins_code string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, mid_setl_flag string, id_card_type int64, fulamt_ownpay_amt float64, overlmt_selfpay float64, preselfpay_amt float64, inscp_scp_amt float64, certificates int64, fapiao_number string) (string, string) {
961 961
 	// 生成签名
962 962
 	nonce := GetRandomString(32)
963 963
 	timestamp := time.Now().Unix()
@@ -988,7 +988,7 @@ func ZHGdyb2304(psnNo string, mdtrtId string, chrgBchno string, certNo string, i
988 988
 	inputData["mdtrt_id"] = mdtrtId            // 就诊 ID(来自2201接口返回)
989 989
 	inputData["acct_used_flag"] = "1"          // 个人账户使用标志 0否 1是
990 990
 	inputData["insutype"] = insutype           // 险种类型
991
-	inputData["invono"] = ""                   // 发票号
991
+	inputData["invono"] = fapiao_number        // 发票号
992 992
 
993 993
 	input["data"] = inputData
994 994
 	inputMessage["input"] = input //交易输入