|
@@ -2774,6 +2774,12 @@ type OpspdiseinfoStruct struct {
|
2774
|
2774
|
DiagCode string
|
2775
|
2775
|
OprnOprtName string
|
2776
|
2776
|
OprnOprtCode string
|
|
2777
|
+}
|
|
2778
|
+
|
|
2779
|
+type DiaginfoStructTwo struct {
|
|
2780
|
+ DiagType string
|
|
2781
|
+ DiagCode string
|
|
2782
|
+ DiagName string
|
2777
|
2783
|
MaindiagFlag string
|
2778
|
2784
|
}
|
2779
|
2785
|
|
|
@@ -2826,9 +2832,11 @@ type Struct4101 struct {
|
2826
|
2832
|
Age int64
|
2827
|
2833
|
CustomStruct []CustomStruct
|
2828
|
2834
|
OpspdiseinfoStruct []OpspdiseinfoStruct
|
2829
|
|
- IteminfoStruct []IteminfoStruct
|
2830
|
|
- AdmTime string
|
2831
|
|
- AdmEndTime string
|
|
2835
|
+ Diseinfo []DiaginfoStructTwo
|
|
2836
|
+
|
|
2837
|
+ IteminfoStruct []IteminfoStruct
|
|
2838
|
+ AdmTime string
|
|
2839
|
+ AdmEndTime string
|
2832
|
2840
|
}
|
2833
|
2841
|
|
2834
|
2842
|
//
|
|
@@ -2955,19 +2963,17 @@ func Gdyb4101(struct4101 Struct4101, secret_key string, org_name string, doctor
|
2955
|
2963
|
opspdiseinfo = append(opspdiseinfo, opspdiseinfotemp)
|
2956
|
2964
|
|
2957
|
2965
|
diseinfo := make([]map[string]interface{}, 0) // 住院诊断信息
|
2958
|
|
- for index, item := range struct4101.OpspdiseinfoStruct {
|
2959
|
|
- if index != (len(struct4101.OpspdiseinfoStruct) - 1) {
|
2960
|
|
- diseinfotemp := make(map[string]interface{})
|
2961
|
|
- diseinfotemp["maindiag_flag"] = item.MaindiagFlag // 手术操作代码 必填
|
2962
|
|
- diseinfotemp["diag_type"] = item.MaindiagFlag // 诊断类别 必填
|
2963
|
|
- diseinfotemp["diag_code"] = item.DiagCode // 诊断代码 必填
|
2964
|
|
- diseinfotemp["diag_name"] = item.DiagName // 诊断名称 必填
|
2965
|
|
- diseinfotemp["adm_cond_type"] = "3" // 入院病情类型 必填
|
2966
|
|
- diseinfo = append(diseinfo, diseinfotemp)
|
2967
|
|
- }
|
|
2966
|
+ for _, item := range struct4101.Diseinfo {
|
|
2967
|
+ diseinfotemp := make(map[string]interface{})
|
|
2968
|
+ diseinfotemp["maindiag_flag"] = item.MaindiagFlag // 手术操作代码 必填
|
|
2969
|
+ diseinfotemp["diag_type"] = item.DiagType // 诊断类别 必填
|
|
2970
|
+ diseinfotemp["diag_code"] = item.DiagCode // 诊断代码 必填
|
|
2971
|
+ diseinfotemp["diag_name"] = item.DiagName // 诊断名称 必填
|
|
2972
|
+ diseinfotemp["adm_cond_type"] = "3" // 入院病情类型 必填
|
|
2973
|
+ diseinfo = append(diseinfo, diseinfotemp)
|
2968
|
2974
|
}
|
2969
|
2975
|
|
2970
|
|
- iteminfo := make([]map[string]interface{}, 0) // 住院诊断信息
|
|
2976
|
+ iteminfo := make([]map[string]interface{}, 0)
|
2971
|
2977
|
for _, item := range struct4101.IteminfoStruct {
|
2972
|
2978
|
iteminfotemp := make(map[string]interface{})
|
2973
|
2979
|
iteminfotemp["med_chrgitm"] = item.MedChrgitm // 医疗收费项目 必填
|
|
@@ -3002,11 +3008,9 @@ func Gdyb4101(struct4101 Struct4101, secret_key string, org_name string, doctor
|
3002
|
3008
|
|
3003
|
3009
|
input["setlinfo"] = inputData
|
3004
|
3010
|
input["payinfo"] = payinfo
|
3005
|
|
- //input["opspdiseinfo"] = opspdiseinfo
|
|
3011
|
+ input["opspdiseinfo"] = opspdiseinfo
|
3006
|
3012
|
input["diseinfo"] = diseinfo
|
3007
|
3013
|
input["iteminfo"] = iteminfo
|
3008
|
|
- //input["oprninfo"] = oprninfo
|
3009
|
|
- //input["icuinfo"] = icuinfo
|
3010
|
3014
|
inputMessage["input"] = input //交易输入
|
3011
|
3015
|
|
3012
|
3016
|
bytesData, err := json.Marshal(inputMessage)
|