|
|
|
|
362
|
for _, item := range hisPrescription {
|
362
|
for _, item := range hisPrescription {
|
363
|
if item.Type == 1 { //药品
|
363
|
if item.Type == 1 { //药品
|
364
|
for _, subItem := range item.HisDoctorAdviceInfo {
|
364
|
for _, subItem := range item.HisDoctorAdviceInfo {
|
365
|
- if len(subItem.MedListCodg) > 0 {
|
|
|
|
|
365
|
+ if len(subItem.BaseDrugLib.MedicalInsuranceNumber) > 0 {
|
366
|
//var randNum int
|
366
|
//var randNum int
|
367
|
//randNum = rand.Intn(10000) + 1000
|
367
|
//randNum = rand.Intn(10000) + 1000
|
368
|
cus := &Custom{
|
368
|
cus := &Custom{
|
|
|
|
|
382
|
for _, subItem := range item.HisPrescriptionProject {
|
382
|
for _, subItem := range item.HisPrescriptionProject {
|
383
|
//var randNum int
|
383
|
//var randNum int
|
384
|
//randNum = rand.Intn(10000) + 1000
|
384
|
//randNum = rand.Intn(10000) + 1000
|
385
|
- if len(subItem.MedListCodg) > 0 {
|
|
|
|
|
385
|
+ if len(subItem.HisProject.MedicalCode) > 0 {
|
386
|
|
386
|
|
387
|
cus := &Custom{
|
387
|
cus := &Custom{
|
388
|
DetItemFeeSumamt: fmt.Sprintf("%.2f", subItem.Price*float64(subItem.Count)),
|
388
|
DetItemFeeSumamt: fmt.Sprintf("%.2f", subItem.Price*float64(subItem.Count)),
|