|
@@ -2150,6 +2150,8 @@ type Struct4101 struct {
|
2150
|
2150
|
HsorgOpter string
|
2151
|
2151
|
MedinsFillDept string
|
2152
|
2152
|
MedinsFillPsn string
|
|
2153
|
+ IptMedType string
|
|
2154
|
+ Age int64
|
2153
|
2155
|
CustomStruct []CustomStruct
|
2154
|
2156
|
OpspdiseinfoStruct []OpspdiseinfoStruct
|
2155
|
2157
|
IteminfoStruct []IteminfoStruct
|
|
@@ -2271,11 +2273,13 @@ func Gdyb4101(struct4101 *Struct4101, secret_key string, org_name string, doctor
|
2271
|
2273
|
|
2272
|
2274
|
diseinfo := make([]map[string]interface{}, 0) // 住院诊断信息
|
2273
|
2275
|
diseinfotemp := make(map[string]interface{})
|
2274
|
|
- diseinfotemp["diag_type"] = "" // 诊断类别 必填
|
2275
|
|
- diseinfotemp["diag_code"] = "" // 诊断代码 必填
|
2276
|
|
- diseinfotemp["diag_name"] = "" // 诊断名称 必填
|
2277
|
|
- diseinfotemp["adm_cond_type"] = "" // 入院病情类型 必填
|
2278
|
|
- diseinfo = append(diseinfo, diseinfotemp)
|
|
2276
|
+ for _, item := range struct4101.OpspdiseinfoStruct {
|
|
2277
|
+ diseinfotemp["diag_type"] = "1" // 诊断类别 必填
|
|
2278
|
+ diseinfotemp["diag_code"] = item.DiagCode // 诊断代码 必填
|
|
2279
|
+ diseinfotemp["diag_name"] = item.DiagName // 诊断名称 必填
|
|
2280
|
+ diseinfotemp["adm_cond_type"] = "3" // 入院病情类型 必填
|
|
2281
|
+ diseinfo = append(diseinfo, diseinfotemp)
|
|
2282
|
+ }
|
2279
|
2283
|
|
2280
|
2284
|
iteminfo := make([]map[string]interface{}, 0) // 住院诊断信息
|
2281
|
2285
|
iteminfotemp := make(map[string]interface{})
|
|
@@ -2312,11 +2316,11 @@ func Gdyb4101(struct4101 *Struct4101, secret_key string, org_name string, doctor
|
2312
|
2316
|
|
2313
|
2317
|
input["setlinfo"] = inputData
|
2314
|
2318
|
input["payinfo"] = payinfo
|
2315
|
|
- input["opspdiseinfo"] = opspdiseinfo
|
|
2319
|
+ //input["opspdiseinfo"] = opspdiseinfo
|
2316
|
2320
|
input["diseinfo"] = diseinfo
|
2317
|
2321
|
input["iteminfo"] = iteminfo
|
2318
|
2322
|
input["oprninfo"] = oprninfo
|
2319
|
|
- input["icuinfo"] = icuinfo
|
|
2323
|
+ //input["icuinfo"] = icuinfo
|
2320
|
2324
|
inputMessage["input"] = input //交易输入
|
2321
|
2325
|
|
2322
|
2326
|
bytesData, err := json.Marshal(inputMessage)
|