|
@@ -1436,6 +1436,29 @@
|
1436
|
1436
|
} else {
|
1437
|
1437
|
|
1438
|
1438
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
|
1439
|
+ for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
|
1440
|
+ var prescription = response.data.data.sch_prescriptions[i];
|
|
1441
|
+ for (let b = 0; b < prescription.advices.length; b++) {
|
|
1442
|
+ console.log(prescription.advices[b].drug.is_special_diseases)
|
|
1443
|
+ if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
1444
|
+ prescription.advices.splice(b--,1)
|
|
1445
|
+ }
|
|
1446
|
+ }
|
|
1447
|
+ for (let b = 0; b < prescription.project.length; b++) {
|
|
1448
|
+ if(prescription.project[b].type == 2){
|
|
1449
|
+ if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
|
1450
|
+ prescription.project.splice(b--,1)
|
|
1451
|
+ }
|
|
1452
|
+ }else if(prescription.project[b].type == 3){
|
|
1453
|
+ if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
1454
|
+ prescription.project.splice(b--,1)
|
|
1455
|
+ }
|
|
1456
|
+ }
|
|
1457
|
+ }
|
|
1458
|
+ }
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
|
1439
|
1462
|
|
1440
|
1463
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
1441
|
1464
|
var prescription = response.data.data.sch_prescriptions[i]
|
|
@@ -1797,6 +1820,28 @@
|
1797
|
1820
|
|
1798
|
1821
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
1799
|
1822
|
|
|
1823
|
+ for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
|
1824
|
+ var prescription = response.data.data.sch_prescriptions[i];
|
|
1825
|
+ for (let b = 0; b < prescription.advices.length; b++) {
|
|
1826
|
+ console.log(prescription.advices[b].drug.is_special_diseases)
|
|
1827
|
+ if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
1828
|
+ prescription.advices.splice(b--,1)
|
|
1829
|
+ }
|
|
1830
|
+ }
|
|
1831
|
+ for (let b = 0; b < prescription.project.length; b++) {
|
|
1832
|
+ if(prescription.project[b].type == 2){
|
|
1833
|
+ if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
|
1834
|
+ prescription.project.splice(b--,1)
|
|
1835
|
+ }
|
|
1836
|
+ }else if(prescription.project[b].type == 3){
|
|
1837
|
+ if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
1838
|
+ prescription.project.splice(b--,1)
|
|
1839
|
+ }
|
|
1840
|
+ }
|
|
1841
|
+ }
|
|
1842
|
+ }
|
|
1843
|
+
|
|
1844
|
+
|
1800
|
1845
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
1801
|
1846
|
var prescription = response.data.data.sch_prescriptions[i]
|
1802
|
1847
|
let tempAdvice = []
|
|
@@ -2246,6 +2291,27 @@
|
2246
|
2291
|
} else {
|
2247
|
2292
|
|
2248
|
2293
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
|
2294
|
+ for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
|
2295
|
+ var prescription = response.data.data.sch_prescriptions[i];
|
|
2296
|
+ for (let b = 0; b < prescription.advices.length; b++) {
|
|
2297
|
+ console.log(prescription.advices[b].drug.is_special_diseases)
|
|
2298
|
+ if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
2299
|
+ prescription.advices.splice(b--,1)
|
|
2300
|
+ }
|
|
2301
|
+ }
|
|
2302
|
+ for (let b = 0; b < prescription.project.length; b++) {
|
|
2303
|
+ if(prescription.project[b].type == 2){
|
|
2304
|
+ if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
|
2305
|
+ prescription.project.splice(b--,1)
|
|
2306
|
+ }
|
|
2307
|
+ }else if(prescription.project[b].type == 3){
|
|
2308
|
+ if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
2309
|
+ prescription.project.splice(b--,1)
|
|
2310
|
+ }
|
|
2311
|
+ }
|
|
2312
|
+ }
|
|
2313
|
+ }
|
|
2314
|
+
|
2249
|
2315
|
|
2250
|
2316
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
2251
|
2317
|
var prescription = response.data.data.sch_prescriptions[i]
|
|
@@ -2684,6 +2750,27 @@
|
2684
|
2750
|
} else {
|
2685
|
2751
|
|
2686
|
2752
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
|
2753
|
+ for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
|
2754
|
+ var prescription = response.data.data.sch_prescriptions[i];
|
|
2755
|
+ for (let b = 0; b < prescription.advices.length; b++) {
|
|
2756
|
+ console.log(prescription.advices[b].drug.is_special_diseases)
|
|
2757
|
+ if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
2758
|
+ prescription.advices.splice(b--,1)
|
|
2759
|
+ }
|
|
2760
|
+ }
|
|
2761
|
+ for (let b = 0; b < prescription.project.length; b++) {
|
|
2762
|
+ if(prescription.project[b].type == 2){
|
|
2763
|
+ if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
|
2764
|
+ prescription.project.splice(b--,1)
|
|
2765
|
+ }
|
|
2766
|
+ }else if(prescription.project[b].type == 3){
|
|
2767
|
+ if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
2768
|
+ prescription.project.splice(b--,1)
|
|
2769
|
+ }
|
|
2770
|
+ }
|
|
2771
|
+ }
|
|
2772
|
+ }
|
|
2773
|
+
|
2687
|
2774
|
|
2688
|
2775
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
2689
|
2776
|
var prescription = response.data.data.sch_prescriptions[i]
|
|
@@ -3189,6 +3276,27 @@
|
3189
|
3276
|
} else {
|
3190
|
3277
|
|
3191
|
3278
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
|
3279
|
+ for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
|
3280
|
+ var prescription = response.data.data.sch_prescriptions[i];
|
|
3281
|
+ for (let b = 0; b < prescription.advices.length; b++) {
|
|
3282
|
+ console.log(prescription.advices[b].drug.is_special_diseases)
|
|
3283
|
+ if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
3284
|
+ prescription.advices.splice(b--,1)
|
|
3285
|
+ }
|
|
3286
|
+ }
|
|
3287
|
+ for (let b = 0; b < prescription.project.length; b++) {
|
|
3288
|
+ if(prescription.project[b].type == 2){
|
|
3289
|
+ if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
|
3290
|
+ prescription.project.splice(b--,1)
|
|
3291
|
+ }
|
|
3292
|
+ }else if(prescription.project[b].type == 3){
|
|
3293
|
+ if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
3294
|
+ prescription.project.splice(b--,1)
|
|
3295
|
+ }
|
|
3296
|
+ }
|
|
3297
|
+ }
|
|
3298
|
+ }
|
|
3299
|
+
|
3192
|
3300
|
|
3193
|
3301
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
3194
|
3302
|
var prescription = response.data.data.sch_prescriptions[i]
|
|
@@ -3715,6 +3823,27 @@
|
3715
|
3823
|
} else {
|
3716
|
3824
|
|
3717
|
3825
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
|
3826
|
+ for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
|
3827
|
+ var prescription = response.data.data.sch_prescriptions[i];
|
|
3828
|
+ for (let b = 0; b < prescription.advices.length; b++) {
|
|
3829
|
+ console.log(prescription.advices[b].drug.is_special_diseases)
|
|
3830
|
+ if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
3831
|
+ prescription.advices.splice(b--,1)
|
|
3832
|
+ }
|
|
3833
|
+ }
|
|
3834
|
+ for (let b = 0; b < prescription.project.length; b++) {
|
|
3835
|
+ if(prescription.project[b].type == 2){
|
|
3836
|
+ if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
|
3837
|
+ prescription.project.splice(b--,1)
|
|
3838
|
+ }
|
|
3839
|
+ }else if(prescription.project[b].type == 3){
|
|
3840
|
+ if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
3841
|
+ prescription.project.splice(b--,1)
|
|
3842
|
+ }
|
|
3843
|
+ }
|
|
3844
|
+ }
|
|
3845
|
+ }
|
|
3846
|
+
|
3718
|
3847
|
|
3719
|
3848
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
3720
|
3849
|
var prescription = response.data.data.sch_prescriptions[i]
|