|
@@ -1283,11 +1283,11 @@ func (c *HisApiController) GetSettleListHospital() {
|
1283
|
1283
|
}
|
1284
|
1284
|
struct4101.CustomStruct = tempFunPays
|
1285
|
1285
|
|
1286
|
|
- var tempOpspdiseinfos []service.OpspdiseinfoStruct
|
|
1286
|
+ var tempDiaginfos []service.DiaginfoStructTwo
|
1287
|
1287
|
var tempOpspdiseinfo2 service.OpspdiseinfoStruct
|
1288
|
|
- //sickConfig, _ := service.FindDiagnoseById(his.Diagnosis)
|
|
1288
|
+ var tempOpspdiseinfos []service.OpspdiseinfoStruct
|
1289
|
1289
|
|
1290
|
|
- diagnosis_ids := strings.Split(his.Diagnosis, ",")
|
|
1290
|
+ diagnosis_ids := strings.Split(order.Diagnosis, ",")
|
1291
|
1291
|
var config []*models.HisXtDiagnoseConfig
|
1292
|
1292
|
for _, item := range diagnosis_ids {
|
1293
|
1293
|
id, _ := strconv.ParseInt(item, 10, 64)
|
|
@@ -1295,20 +1295,28 @@ func (c *HisApiController) GetSettleListHospital() {
|
1295
|
1295
|
config = append(config, &diagnosisConfig)
|
1296
|
1296
|
}
|
1297
|
1297
|
|
1298
|
|
- for _, item := range config {
|
1299
|
|
- var tempOpspdiseinfo service.OpspdiseinfoStruct
|
1300
|
|
- tempOpspdiseinfo.DiagCode = item.CountryCode
|
1301
|
|
- tempOpspdiseinfo.DiagName = item.CountryContentName
|
1302
|
|
- tempOpspdiseinfo.MaindiagFlag = "1"
|
1303
|
|
- tempOpspdiseinfo.OprnOprtCode = ""
|
1304
|
|
- tempOpspdiseinfo.OprnOprtName = ""
|
1305
|
|
- tempOpspdiseinfos = append(tempOpspdiseinfos, tempOpspdiseinfo)
|
|
1298
|
+ for index, item := range config {
|
|
1299
|
+ if index == 0 {
|
|
1300
|
+ var tempDiaginfo service.DiaginfoStructTwo
|
|
1301
|
+ tempDiaginfo.DiagCode = item.CountryCode
|
|
1302
|
+ tempDiaginfo.DiagName = item.CountryContentName
|
|
1303
|
+ tempDiaginfo.DiagType = "1"
|
|
1304
|
+ tempDiaginfo.MaindiagFlag = "1"
|
|
1305
|
+ tempDiaginfos = append(tempDiaginfos, tempDiaginfo)
|
|
1306
|
+ } else {
|
|
1307
|
+
|
|
1308
|
+ var tempDiaginfo service.DiaginfoStructTwo
|
|
1309
|
+ tempDiaginfo.DiagCode = item.CountryCode
|
|
1310
|
+ tempDiaginfo.DiagName = item.CountryContentName
|
|
1311
|
+ tempDiaginfo.DiagType = "2"
|
|
1312
|
+ tempDiaginfo.MaindiagFlag = "0"
|
|
1313
|
+ tempDiaginfos = append(tempDiaginfos, tempDiaginfo)
|
|
1314
|
+ }
|
1306
|
1315
|
}
|
1307
|
1316
|
|
1308
|
1317
|
sickConfigTwo, _ := service.FindSickById(his.SickType)
|
1309
|
1318
|
tempOpspdiseinfo2.DiagCode = sickConfigTwo.ContentCode
|
1310
|
1319
|
tempOpspdiseinfo2.DiagName = sickConfigTwo.CountryContentName
|
1311
|
|
- tempOpspdiseinfo2.MaindiagFlag = "2"
|
1312
|
1320
|
tempOpspdiseinfo2.OprnOprtCode = ""
|
1313
|
1321
|
tempOpspdiseinfo2.OprnOprtName = ""
|
1314
|
1322
|
tempOpspdiseinfos = append(tempOpspdiseinfos, tempOpspdiseinfo2)
|