|
@@ -259,60 +259,56 @@
|
259
|
259
|
return type_name
|
260
|
260
|
},
|
261
|
261
|
getAdvice:function(doctor_advice) {
|
|
262
|
+ if (doctor_advice != null) {
|
|
263
|
+ let name = ""
|
|
264
|
+ for (let i = 0; i < doctor_advice.length; i++) {
|
262
|
265
|
|
263
|
|
- let name = ""
|
264
|
|
- for (let i = 0; i< doctor_advice.length; i++){
|
|
266
|
+ let prescribing_number = ''
|
|
267
|
+ let single_dose = ''
|
|
268
|
+ let drug_spec = ''
|
265
|
269
|
|
266
|
|
- let prescribing_number = ''
|
267
|
|
- let single_dose = ''
|
268
|
|
- let drug_spec = ''
|
|
270
|
+ if (doctor_advice[i].prescribing_number > 0) {
|
|
271
|
+ prescribing_number = doctor_advice[i].prescribing_number + doctor_advice[i].prescribing_number_unit
|
|
272
|
+ }
|
|
273
|
+ if (doctor_advice[i].single_dose > 0) {
|
|
274
|
+ single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
|
|
275
|
+ }
|
269
|
276
|
|
270
|
|
- if (doctor_advice[i].prescribing_number > 0) {
|
271
|
|
- prescribing_number = doctor_advice[i].prescribing_number + doctor_advice[i].prescribing_number_unit
|
272
|
|
- }
|
273
|
|
- if (doctor_advice[i].single_dose > 0) {
|
274
|
|
- single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
|
275
|
|
- }
|
|
277
|
+ if (doctor_advice[i].drug_spec > 0) {
|
|
278
|
+ drug_spec = doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit
|
|
279
|
+ }
|
276
|
280
|
|
277
|
|
- if (doctor_advice[i].drug_spec > 0) {
|
278
|
|
- drug_spec = doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit
|
279
|
|
- }
|
|
281
|
+ name = name + doctor_advice[i].advice_name + " " + drug_spec + " " + prescribing_number + " " + single_dose + " " + doctor_advice[i].delivery_way + " " + doctor_advice[i].execution_frequency + " " + doctor_advice[i].remark + "\n"
|
280
|
282
|
|
|
283
|
+ if (doctor_advice[i].child.length > 0) {
|
281
|
284
|
|
282
|
|
- name = name + doctor_advice[i].advice_name +" "+ drug_spec+" "+ prescribing_number + " "+single_dose+" " + doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency +" " + doctor_advice[i].remark +"\n"
|
|
285
|
+ for (let a = 0; a < doctor_advice[i].child.length; a++) {
|
283
|
286
|
|
284
|
|
- if (doctor_advice[i].child.length > 0){
|
|
287
|
+ if (doctor_advice[i].child[a].prescribing_number > 0) {
|
|
288
|
+ doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
|
|
289
|
+ } else {
|
|
290
|
+ doctor_advice[i].child[a]['presc'] = ''
|
|
291
|
+ }
|
285
|
292
|
|
286
|
|
- for (let a = 0 ; a < doctor_advice[i].child.length; a++){
|
|
293
|
+ if (doctor_advice[i].child[a].single_dose > 0) {
|
|
294
|
+ doctor_advice[i].child[a]['single'] = " " + ' 单次用量 ' + " " + doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
|
|
295
|
+ } else {
|
|
296
|
+ doctor_advice[i].child[a]['single'] = ''
|
|
297
|
+ }
|
287
|
298
|
|
288
|
|
- if(doctor_advice[i].child[a].prescribing_number > 0){
|
289
|
|
- doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
|
290
|
|
- }else{
|
291
|
|
- doctor_advice[i].child[a]['presc'] = ''
|
|
299
|
+ name = name + "▲" + doctor_advice[i].child[a].advice_name + ""
|
|
300
|
+ + doctor_advice[i].child[a].advice_desc
|
|
301
|
+ + doctor_advice[i].child[a].drug_spec_unit
|
|
302
|
+ + doctor_advice[i].child[a].presc
|
|
303
|
+ + doctor_advice[i].child[a].single + "\n"
|
292
|
304
|
}
|
293
|
305
|
|
294
|
|
- if(doctor_advice[i].child[a].single_dose > 0){
|
295
|
|
- doctor_advice[i].child[a]['single'] = " "+' 单次用量 '+" "+doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
|
296
|
|
- }else{
|
297
|
|
- doctor_advice[i].child[a]['single'] = ''
|
298
|
|
- }
|
299
|
|
-
|
300
|
|
-
|
301
|
|
- name = name+"▲"+doctor_advice[i].child[a].advice_name+""
|
302
|
|
- + doctor_advice[i].child[a].advice_desc
|
303
|
|
- + doctor_advice[i].child[a].drug_spec_unit
|
304
|
|
- + doctor_advice[i].child[a].presc
|
305
|
|
- + doctor_advice[i].child[a].single+"\n"
|
306
|
306
|
}
|
307
|
307
|
|
308
|
|
-
|
309
|
308
|
}
|
|
309
|
+ return name
|
310
|
310
|
|
311
|
311
|
}
|
312
|
|
- return name
|
313
|
|
-
|
314
|
|
-
|
315
|
|
-
|
316
|
312
|
}
|
317
|
313
|
},
|
318
|
314
|
components: {
|