|
@@ -14,7 +14,8 @@
|
14
|
14
|
</li>
|
15
|
15
|
<li v-if="this.$store.getters.user.template_info.template_id == 6">
|
16
|
16
|
<label>透前净体重 : </label>
|
17
|
|
- <span class="content">{{ weight_before ? parseFloat(weight_before - additional_weight).toFixed(1) : "" }}</span>
|
|
17
|
+ <span
|
|
18
|
+ class="content">{{ weight_before ? parseFloat(weight_before - additional_weight).toFixed(1) : "" }}</span>
|
18
|
19
|
<span class="unit">{{ weight_before ? "kg" : "" }}</span>
|
19
|
20
|
</li>
|
20
|
21
|
<li v-if="isShow('收缩压')">
|
|
@@ -117,7 +118,6 @@
|
117
|
118
|
</li>
|
118
|
119
|
|
119
|
120
|
|
120
|
|
-
|
121
|
121
|
<!-- </ul>
|
122
|
122
|
|
123
|
123
|
<ul> -->
|
|
@@ -229,13 +229,13 @@
|
229
|
229
|
<span class="unit"> </span>
|
230
|
230
|
</li>
|
231
|
231
|
|
232
|
|
- <li v-if="isShow('血管通路部位')">
|
|
232
|
+ <li v-if="isShow('血管通路部位')">
|
233
|
233
|
<label>血管通路部位:</label>
|
234
|
234
|
<span class="content">{{ getBloodAccessPart(this.record.blood_access_part_id) }}</span>
|
235
|
235
|
<span class="unit"> </span>
|
236
|
236
|
</li>
|
237
|
237
|
|
238
|
|
- <li v-if="isShow('血管通路操作')">
|
|
238
|
+ <li v-if="isShow('血管通路操作')">
|
239
|
239
|
<label>血管通路操作:</label>
|
240
|
240
|
<span class="content">{{ getBloodAccessOpera(this.record.blood_access_part_opera_id) }}</span>
|
241
|
241
|
<span class="unit"> </span>
|
|
@@ -256,388 +256,422 @@
|
256
|
256
|
</template>
|
257
|
257
|
|
258
|
258
|
<script>
|
259
|
|
- import { getDataConfig } from "@/utils/data";
|
|
259
|
+ import {getDataConfig} from "@/utils/data";
|
260
|
260
|
|
261
|
261
|
export default {
|
262
|
|
- name: "assessmentBefore",
|
263
|
|
-
|
264
|
|
- data() {
|
265
|
|
- return {
|
266
|
|
- title: "透前评估 ",
|
267
|
|
- template_id: 0
|
268
|
|
- };
|
269
|
|
- },
|
270
|
|
- props: {
|
271
|
|
- record: {
|
272
|
|
- type: Object
|
273
|
|
- },
|
274
|
|
- dry_weights: {
|
275
|
|
- type: Object
|
276
|
|
- }
|
277
|
|
- },
|
278
|
|
- created() {
|
279
|
|
- this.template_id = this.$store.getters.user.template_info.template_id;
|
280
|
|
- },
|
281
|
|
- computed: {
|
282
|
|
- internal_fistula_skin: function() {
|
283
|
|
- if (this.record.id == 0) {
|
284
|
|
- return '-'
|
285
|
|
- }
|
286
|
|
- return this.record.internal_fistula_skin
|
287
|
|
- },
|
|
262
|
+ name: "assessmentBefore",
|
288
|
263
|
|
289
|
|
- machine_type: function() {
|
290
|
|
- if (this.record == null || this.record.id == "") {
|
291
|
|
- return "";
|
292
|
|
- }
|
293
|
|
- return this.record.machine_type;
|
|
264
|
+ data() {
|
|
265
|
+ return {
|
|
266
|
+ title: "透前评估 ",
|
|
267
|
+ template_id: 0
|
|
268
|
+ };
|
294
|
269
|
},
|
295
|
|
- weight_before: function() {
|
296
|
|
- if (this.record == null || this.record.id == "") {
|
297
|
|
- return "-";
|
|
270
|
+ props: {
|
|
271
|
+ record: {
|
|
272
|
+ type: Object
|
|
273
|
+ },
|
|
274
|
+ dry_weights: {
|
|
275
|
+ type: Object
|
298
|
276
|
}
|
299
|
|
- return this.record.weight_before;
|
300
|
277
|
},
|
301
|
|
- additional_weight: function() {
|
302
|
|
- if (this.record == null || this.record.id == "") {
|
303
|
|
- return "-";
|
304
|
|
- }
|
305
|
|
- return this.record.additional_weight;
|
306
|
|
- },
|
307
|
|
- systolic_blood_pressure: function() {
|
308
|
|
- if (this.record == null || this.record.id == "") {
|
309
|
|
- return "-";
|
310
|
|
- }
|
311
|
|
- return this.record.systolic_blood_pressure;
|
312
|
|
- },
|
313
|
|
- last_post_dialysis: function() {
|
314
|
|
- if (this.record == null || this.record.id == "") {
|
315
|
|
- return "-";
|
316
|
|
- }
|
317
|
|
- return this.record.last_post_dialysis;
|
|
278
|
+ created() {
|
|
279
|
+ this.template_id = this.$store.getters.user.template_info.template_id;
|
318
|
280
|
},
|
|
281
|
+ computed: {
|
|
282
|
+ internal_fistula_skin: function () {
|
|
283
|
+ if (this.record.id == 0) {
|
|
284
|
+ return '-'
|
|
285
|
+ }
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+ return this.record.internal_fistula_skin
|
|
289
|
+ },
|
319
|
290
|
|
320
|
|
- dry_weight: function() {
|
321
|
|
- if (this.$store.getters.user.template_info.template_id == 6) {
|
322
|
|
- if (this.dry_weights != null && this.dry_weights.id > 0) {
|
323
|
|
- return this.dry_weights.dry_weight;
|
|
291
|
+ machine_type: function () {
|
|
292
|
+ if (this.record == null || this.record.id == "") {
|
|
293
|
+ return "";
|
|
294
|
+ }
|
|
295
|
+ return this.record.machine_type;
|
|
296
|
+ },
|
|
297
|
+ weight_before: function () {
|
|
298
|
+ if (this.record == null || this.record.id == "") {
|
|
299
|
+ return "-";
|
|
300
|
+ }
|
|
301
|
+ return this.record.weight_before;
|
|
302
|
+ },
|
|
303
|
+ additional_weight: function () {
|
|
304
|
+ if (this.record == null || this.record.id == "") {
|
|
305
|
+ return "-";
|
|
306
|
+ }
|
|
307
|
+ return this.record.additional_weight;
|
|
308
|
+ },
|
|
309
|
+ systolic_blood_pressure: function () {
|
|
310
|
+ if (this.record == null || this.record.id == "") {
|
|
311
|
+ return "-";
|
|
312
|
+ }
|
|
313
|
+ return this.record.systolic_blood_pressure;
|
|
314
|
+ },
|
|
315
|
+ last_post_dialysis: function () {
|
|
316
|
+ if (this.record == null || this.record.id == "") {
|
|
317
|
+ return "-";
|
|
318
|
+ }
|
|
319
|
+ return this.record.last_post_dialysis;
|
|
320
|
+ },
|
|
321
|
+
|
|
322
|
+ dry_weight: function () {
|
|
323
|
+ if (this.$store.getters.user.template_info.template_id == 6) {
|
|
324
|
+ if (this.dry_weights != null && this.dry_weights.id > 0) {
|
|
325
|
+ return this.dry_weights.dry_weight;
|
|
326
|
+ } else {
|
|
327
|
+ if (this.record == null || this.record.id == "") {
|
|
328
|
+ return "-";
|
|
329
|
+ }
|
|
330
|
+ return this.record.dry_weight;
|
|
331
|
+ }
|
324
|
332
|
} else {
|
325
|
333
|
if (this.record == null || this.record.id == "") {
|
326
|
334
|
return "-";
|
327
|
335
|
}
|
|
336
|
+
|
328
|
337
|
return this.record.dry_weight;
|
329
|
338
|
}
|
330
|
|
- } else {
|
|
339
|
+ },
|
|
340
|
+ diastolic_blood_pressure: function () {
|
|
341
|
+ if (this.record == null || this.record.id == "") {
|
|
342
|
+ return "-";
|
|
343
|
+ }
|
|
344
|
+ return this.record.diastolic_blood_pressure;
|
|
345
|
+ },
|
|
346
|
+ dialysis_interphase: function () {
|
331
|
347
|
if (this.record == null || this.record.id == "") {
|
332
|
348
|
return "-";
|
333
|
349
|
}
|
|
350
|
+ return this.record.dialysis_interphase;
|
|
351
|
+ },
|
|
352
|
+ catheter: function () {
|
|
353
|
+ if (this.record == null || this.record.id == "") {
|
|
354
|
+ return "-";
|
|
355
|
+ }
|
|
356
|
+ return this.record.catheter;
|
|
357
|
+ },
|
334
|
358
|
|
335
|
|
- return this.record.dry_weight;
|
336
|
|
- }
|
337
|
|
- },
|
338
|
|
- diastolic_blood_pressure: function() {
|
339
|
|
- if (this.record == null || this.record.id == "") {
|
340
|
|
- return "-";
|
341
|
|
- }
|
342
|
|
- return this.record.diastolic_blood_pressure;
|
343
|
|
- },
|
344
|
|
- dialysis_interphase: function() {
|
345
|
|
- if (this.record == null || this.record.id == "") {
|
346
|
|
- return "-";
|
347
|
|
- }
|
348
|
|
- return this.record.dialysis_interphase;
|
349
|
|
- },
|
350
|
|
- catheter: function() {
|
351
|
|
- if (this.record == null || this.record.id == "") {
|
352
|
|
- return "-";
|
353
|
|
- }
|
354
|
|
- return this.record.catheter;
|
355
|
|
- },
|
|
359
|
+ temperature: function () {
|
|
360
|
+ if (this.record == null || this.record.id == "") {
|
|
361
|
+ return "-";
|
|
362
|
+ }
|
|
363
|
+ return this.record.temperature;
|
|
364
|
+ },
|
|
365
|
+ pulse_frequency: function () {
|
|
366
|
+ if (this.record == null || this.record.id == "") {
|
|
367
|
+ return "-";
|
|
368
|
+ }
|
|
369
|
+ return this.record.pulse_frequency;
|
|
370
|
+ },
|
|
371
|
+ breathing_rate: function () {
|
|
372
|
+ if (this.record == null || this.record.id == "") {
|
|
373
|
+ return "-";
|
|
374
|
+ }
|
|
375
|
+ return this.record.breathing_rate;
|
|
376
|
+ },
|
|
377
|
+ symptom_before_dialysis: function () {
|
|
378
|
+ if (this.record == null || this.record.id == "") {
|
|
379
|
+ return "-";
|
|
380
|
+ }
|
|
381
|
+ return this.record.symptom_before_dialysis;
|
|
382
|
+ },
|
|
383
|
+ complication: function () {
|
|
384
|
+ if (this.record == null || this.record.id == "") {
|
|
385
|
+ return "-";
|
|
386
|
+ }
|
|
387
|
+ return this.record.complication;
|
|
388
|
+ },
|
|
389
|
+ internal_fistula: function () {
|
|
390
|
+ console.log(this.record)
|
|
391
|
+ if (this.record == null || this.record.id == "") {
|
|
392
|
+ return "-";
|
|
393
|
+ }else{
|
|
394
|
+ return this.record.internal_fistula
|
|
395
|
+ // if (this.record != null && this.record.id != undefined && this.record.id > 0) {
|
|
396
|
+ // var internal_fistula_list = getDataConfig(
|
|
397
|
+ // "hemodialysis",
|
|
398
|
+ // "internal_fistula"
|
|
399
|
+ // );
|
|
400
|
+ // var value = ""
|
|
401
|
+ // if (this.record.internal_fistula.length > 0) {
|
|
402
|
+ // var internal_fistula_value_arr = this.record.internal_fistula.split(",")
|
|
403
|
+ // for (let a = 0; a < internal_fistula_value_arr.length; a++) {
|
|
404
|
+ // for (let i = 0; i < internal_fistula_list.length; i++) {
|
|
405
|
+ // console.log(internal_fistula_list[i].name)
|
|
406
|
+ // if (internal_fistula_value_arr[a] == internal_fistula_list[i].name) {
|
|
407
|
+ // if (value.length == 0) {
|
|
408
|
+ // value = internal_fistula_value_arr[a]
|
|
409
|
+ // } else {
|
|
410
|
+ // value = value + "," + internal_fistula_value_arr[a]
|
|
411
|
+ // }
|
|
412
|
+ // }
|
|
413
|
+ // }
|
|
414
|
+ // }
|
|
415
|
+ // }
|
|
416
|
+ // return value;
|
|
417
|
+ // }else{
|
|
418
|
+ // return "-";
|
|
419
|
+ //
|
|
420
|
+ // }
|
356
|
421
|
|
357
|
|
- temperature: function() {
|
358
|
|
- if (this.record == null || this.record.id == "") {
|
359
|
|
- return "-";
|
360
|
|
- }
|
361
|
|
- return this.record.temperature;
|
362
|
|
- },
|
363
|
|
- pulse_frequency: function() {
|
364
|
|
- if (this.record == null || this.record.id == "") {
|
365
|
|
- return "-";
|
366
|
|
- }
|
367
|
|
- return this.record.pulse_frequency;
|
368
|
|
- },
|
369
|
|
- breathing_rate: function() {
|
370
|
|
- if (this.record == null || this.record.id == "") {
|
371
|
|
- return "-";
|
372
|
|
- }
|
373
|
|
- return this.record.breathing_rate;
|
374
|
|
- },
|
375
|
|
- symptom_before_dialysis: function() {
|
376
|
|
- if (this.record == null || this.record.id == "") {
|
377
|
|
- return "-";
|
378
|
|
- }
|
379
|
|
- return this.record.symptom_before_dialysis;
|
380
|
|
- },
|
381
|
|
- complication: function() {
|
382
|
|
- if (this.record == null || this.record.id == "") {
|
383
|
|
- return "-";
|
384
|
|
- }
|
385
|
|
- return this.record.complication;
|
386
|
|
- },
|
387
|
|
- internal_fistula: function() {
|
388
|
|
- if (this.record == null || this.record.id == "") {
|
389
|
|
- return "-";
|
390
|
|
- }
|
391
|
|
- return this.record.internal_fistula;
|
392
|
|
- },
|
393
|
|
- is_hemorrhage: function() {
|
394
|
|
- if (this.record == null || this.record.id == "") {
|
395
|
|
- return false;
|
396
|
|
- }
|
397
|
|
- return this.record.is_hemorrhage == 1;
|
398
|
|
- },
|
399
|
|
- hemorrhage: function() {
|
400
|
|
- if (this.record == null || this.record.id == "") {
|
401
|
|
- return "-";
|
402
|
|
- }
|
403
|
|
- return this.record.hemorrhage;
|
404
|
|
- },
|
405
|
|
- hemorrhage_other: function() {
|
406
|
|
- if (this.record == null || this.record.id == "") {
|
407
|
|
- return "-";
|
408
|
|
- }
|
409
|
|
- return this.record.hemorrhage_other;
|
410
|
|
- },
|
411
|
422
|
|
412
|
|
- remark: function() {
|
413
|
|
- if (this.record == null || this.record.id == "") {
|
414
|
|
- return "";
|
415
|
|
- }
|
416
|
|
- return this.record.remark;
|
417
|
|
- },
|
418
|
|
- dialysis_count: function() {
|
419
|
|
- if (this.record == null || this.record.id == "") {
|
420
|
|
- return "-";
|
421
|
|
- }
|
422
|
|
- return this.record.dialysis_count;
|
423
|
|
- },
|
424
|
|
- internal_fistula_other: function() {
|
425
|
|
- if (this.record == null || this.record.id == "") {
|
426
|
|
- return "-";
|
427
|
|
- }
|
428
|
|
- return this.record.internal_fistula_other;
|
429
|
|
- },
|
430
|
|
- venous_catheterization_part_other: function() {
|
431
|
|
- if (this.record == null || this.record.id == "") {
|
432
|
|
- return "-";
|
433
|
|
- }
|
434
|
|
- return this.record.venous_catheterization_part_other;
|
435
|
|
- },
|
436
|
|
- emergency_treatment_other: function() {
|
437
|
|
- if (this.record == null || this.record.id == "") {
|
438
|
|
- return "-";
|
439
|
|
- }
|
440
|
|
- return this.record.emergency_treatment_other;
|
441
|
|
- },
|
442
|
|
- blood_access_internal_fistula: function() {
|
443
|
|
- var name1 = "";
|
444
|
|
- var name2 = "";
|
|
423
|
+ }
|
445
|
424
|
|
446
|
|
- if (this.record == null || this.record.id == "") {
|
447
|
|
- return "-";
|
448
|
|
- }
|
449
|
|
- if (this.record.blood_access_internal_fistula == undefined) {
|
450
|
|
- name1 = "";
|
451
|
|
- } else {
|
452
|
|
- name1 = this.record.blood_access_internal_fistula + ",";
|
453
|
|
- }
|
454
|
|
- if (this.record.internal_fistula_other == undefined) {
|
455
|
|
- name2 = "";
|
456
|
|
- } else {
|
457
|
|
- name2 = this.record.internal_fistula_other;
|
458
|
|
- }
|
459
|
425
|
|
460
|
|
- return name1 + name2;
|
461
|
|
- },
|
462
|
|
- infect_other: function() {
|
463
|
|
- if (this.record == null || this.record.id == "") {
|
464
|
|
- return "-";
|
465
|
|
- }
|
466
|
|
- return this.record.infect_other;
|
467
|
|
- },
|
468
|
|
- skin_other: function() {
|
469
|
|
- if (this.record == null || this.record.id == "") {
|
470
|
|
- return "-";
|
471
|
|
- }
|
472
|
|
- return this.record.skin_other;
|
473
|
|
- },
|
474
|
|
- ductus_arantii_other: function() {
|
475
|
|
- if (this.record == null || this.record.id == "") {
|
476
|
|
- return "-";
|
477
|
|
- }
|
478
|
|
- return this.record.ductus_arantii_other;
|
479
|
|
- }
|
480
|
|
- },
|
481
|
|
- methods: {
|
482
|
|
- getBloodAccessPart: function(id) {
|
483
|
|
- var BloodAccessPart = getDataConfig('hemodialysis', 'vascular_access')
|
484
|
|
- var BloodAccessPartName = ''
|
485
|
|
- for (let i = 0; i < BloodAccessPart.length; i++) {
|
486
|
|
- if (BloodAccessPart[i].id == id) {
|
487
|
|
- BloodAccessPartName = BloodAccessPart[i].name
|
|
426
|
+ },
|
|
427
|
+ is_hemorrhage: function () {
|
|
428
|
+ if (this.record == null || this.record.id == "") {
|
|
429
|
+ return false;
|
488
|
430
|
}
|
489
|
|
- }
|
490
|
|
- return BloodAccessPartName
|
491
|
|
- },
|
492
|
|
- getBloodAccessOpera: function(id) {
|
493
|
|
- var BloodAccessOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
494
|
|
- var BloodAccessOperaName = ''
|
495
|
|
- for (let i = 0; i < BloodAccessOpera.length; i++) {
|
496
|
|
- if (BloodAccessOpera[i].id == id) {
|
497
|
|
- BloodAccessOperaName = BloodAccessOpera[i].name
|
|
431
|
+ return this.record.is_hemorrhage == 1;
|
|
432
|
+ },
|
|
433
|
+ hemorrhage: function () {
|
|
434
|
+ if (this.record == null || this.record.id == "") {
|
|
435
|
+ return "-";
|
498
|
436
|
}
|
499
|
|
- }
|
500
|
|
- return BloodAccessOperaName
|
501
|
|
- },
|
502
|
|
- isShow(name) {
|
503
|
|
- var filedList = this.$store.getters.user.fileds;
|
|
437
|
+ return this.record.hemorrhage;
|
|
438
|
+ },
|
|
439
|
+ hemorrhage_other: function () {
|
|
440
|
+ if (this.record == null || this.record.id == "") {
|
|
441
|
+ return "-";
|
|
442
|
+ }
|
|
443
|
+ return this.record.hemorrhage_other;
|
|
444
|
+ },
|
504
|
445
|
|
505
|
|
- for (let i = 0; i < filedList.length; i++) {
|
506
|
|
- if (
|
507
|
|
- filedList[i].module == 3 &&
|
508
|
|
- filedList[i].filed_name_cn == name &&
|
509
|
|
- filedList[i].is_show == 1
|
510
|
|
- ) {
|
511
|
|
- return true;
|
|
446
|
+ remark: function () {
|
|
447
|
+ if (this.record == null || this.record.id == "") {
|
|
448
|
+ return "";
|
512
|
449
|
}
|
513
|
|
- }
|
514
|
|
- return false;
|
515
|
|
- },
|
516
|
|
- getBloodAccessInternalFistula: function(id) {
|
517
|
|
- var BloodAccessInternalFistulaOptions = this.$store.getters
|
518
|
|
- .blood_access_internal_fistula;
|
519
|
|
- var BloodAccessInternalFistulaName = "";
|
520
|
|
- for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
|
521
|
|
- if (BloodAccessInternalFistulaOptions[i].id == id) {
|
522
|
|
- BloodAccessInternalFistulaName =
|
523
|
|
- BloodAccessInternalFistulaOptions[i].name;
|
|
450
|
+ return this.record.remark;
|
|
451
|
+ },
|
|
452
|
+ dialysis_count: function () {
|
|
453
|
+ if (this.record == null || this.record.id == "") {
|
|
454
|
+ return "-";
|
524
|
455
|
}
|
525
|
|
- }
|
526
|
|
- return BloodAccessInternalFistulaName;
|
527
|
|
- },
|
528
|
|
- getBloodAccessNoise: function(id) {
|
529
|
|
- var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise;
|
530
|
|
- var BloodAccessNoiseName = "";
|
531
|
|
- for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
|
532
|
|
- if (BloodAccessNoiseOptions[i].id == id) {
|
533
|
|
- BloodAccessNoiseName = BloodAccessNoiseOptions[i].name;
|
|
456
|
+ return this.record.dialysis_count;
|
|
457
|
+ },
|
|
458
|
+ internal_fistula_other: function () {
|
|
459
|
+ if (this.record == null || this.record.id == "") {
|
|
460
|
+ return "-";
|
534
|
461
|
}
|
535
|
|
- }
|
536
|
|
- return BloodAccessNoiseName;
|
537
|
|
- },
|
538
|
|
- getVenousCatheterization: function(id) {
|
539
|
|
- var VenousCatheterizationOptions = this.$store.getters
|
540
|
|
- .venous_catheterization;
|
541
|
|
- var VenousCatheterizationName = "";
|
542
|
|
- for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
|
543
|
|
- if (VenousCatheterizationOptions[i].id == id) {
|
544
|
|
- VenousCatheterizationName = VenousCatheterizationOptions[i].name;
|
|
462
|
+ return this.record.internal_fistula_other;
|
|
463
|
+ },
|
|
464
|
+ venous_catheterization_part_other: function () {
|
|
465
|
+ if (this.record == null || this.record.id == "") {
|
|
466
|
+ return "-";
|
545
|
467
|
}
|
546
|
|
- }
|
547
|
|
- return VenousCatheterizationName;
|
548
|
|
- },
|
549
|
|
- getWay: function(id) {
|
550
|
|
- var PunctureWayOptions = this.$store.getters.puncture_way;
|
551
|
|
- var PunctureWayOptionsName = "";
|
552
|
|
- for (let i = 0; i < PunctureWayOptions.length; i++) {
|
553
|
|
- if (PunctureWayOptions[i].id == id) {
|
554
|
|
- PunctureWayOptionsName = PunctureWayOptions[i].name;
|
|
468
|
+ return this.record.venous_catheterization_part_other;
|
|
469
|
+ },
|
|
470
|
+ emergency_treatment_other: function () {
|
|
471
|
+ if (this.record == null || this.record.id == "") {
|
|
472
|
+ return "-";
|
555
|
473
|
}
|
556
|
|
- }
|
557
|
|
- return PunctureWayOptionsName;
|
558
|
|
- },
|
559
|
|
- getVenousCatheterizationPart: function(id) {
|
560
|
|
- var venousCatheterizationPartOptions = this.$store.getters
|
561
|
|
- .venous_catheterization_part;
|
562
|
|
- var venousCatheterizationPartName = "";
|
563
|
|
- for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
|
564
|
|
- if (venousCatheterizationPartOptions[i].id == id) {
|
565
|
|
- venousCatheterizationPartName =
|
566
|
|
- venousCatheterizationPartOptions[i].name;
|
|
474
|
+ return this.record.emergency_treatment_other;
|
|
475
|
+ },
|
|
476
|
+ blood_access_internal_fistula: function () {
|
|
477
|
+ var name1 = "";
|
|
478
|
+ var name2 = "";
|
|
479
|
+
|
|
480
|
+ if (this.record == null || this.record.id == "") {
|
|
481
|
+ return "-";
|
567
|
482
|
}
|
568
|
|
- }
|
569
|
|
- return venousCatheterizationPartName;
|
570
|
|
- },
|
571
|
|
- getDuctusArantii: function(id) {
|
572
|
|
- var ductusArantiiOptions = this.$store.getters.ductus_arantii;
|
573
|
|
- var ductusArantiiOptionsName = "";
|
574
|
|
- for (let i = 0; i < ductusArantiiOptions.length; i++) {
|
575
|
|
- if (ductusArantiiOptions[i].id == id) {
|
576
|
|
- ductusArantiiOptionsName = ductusArantiiOptions[i].name;
|
|
483
|
+ if (this.record.blood_access_internal_fistula == undefined) {
|
|
484
|
+ name1 = "";
|
|
485
|
+ } else {
|
|
486
|
+ name1 = this.record.blood_access_internal_fistula + ",";
|
577
|
487
|
}
|
578
|
|
- }
|
579
|
|
- return ductusArantiiOptionsName;
|
580
|
|
- },
|
581
|
|
- getEmergencyTreatment: function(id) {
|
582
|
|
- var emergencyTreatmentOptions = this.$store.getters.emergency_treatment;
|
583
|
|
- var emergencyTreatmentName = "";
|
584
|
|
- for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
|
585
|
|
- if (emergencyTreatmentOptions[i].id == id) {
|
586
|
|
- emergencyTreatmentName = emergencyTreatmentOptions[i].name;
|
|
488
|
+ if (this.record.internal_fistula_other == undefined) {
|
|
489
|
+ name2 = "";
|
|
490
|
+ } else {
|
|
491
|
+ name2 = this.record.internal_fistula_other;
|
|
492
|
+ }
|
|
493
|
+
|
|
494
|
+ return name1 + name2;
|
|
495
|
+ },
|
|
496
|
+ infect_other: function () {
|
|
497
|
+ if (this.record == null || this.record.id == "") {
|
|
498
|
+ return "-";
|
|
499
|
+ }
|
|
500
|
+ return this.record.infect_other;
|
|
501
|
+ },
|
|
502
|
+ skin_other: function () {
|
|
503
|
+ if (this.record == null || this.record.id == "") {
|
|
504
|
+ return "-";
|
587
|
505
|
}
|
|
506
|
+ return this.record.skin_other;
|
|
507
|
+ },
|
|
508
|
+ ductus_arantii_other: function () {
|
|
509
|
+ if (this.record == null || this.record.id == "") {
|
|
510
|
+ return "-";
|
|
511
|
+ }
|
|
512
|
+ return this.record.ductus_arantii_other;
|
588
|
513
|
}
|
589
|
|
- return emergencyTreatmentName;
|
590
|
514
|
},
|
591
|
|
- getSkin: function(id) {
|
592
|
|
- var skinOptions = this.$store.getters.skin;
|
593
|
|
- var skinName = "";
|
594
|
|
- for (let i = 0; i < skinOptions.length; i++) {
|
595
|
|
- if (skinOptions[i].id == id) {
|
596
|
|
- skinName = skinOptions[i].name;
|
|
515
|
+ methods: {
|
|
516
|
+ getBloodAccessPart: function (id) {
|
|
517
|
+ var BloodAccessPart = getDataConfig('hemodialysis', 'vascular_access')
|
|
518
|
+ var BloodAccessPartName = ''
|
|
519
|
+ for (let i = 0; i < BloodAccessPart.length; i++) {
|
|
520
|
+ if (BloodAccessPart[i].id == id) {
|
|
521
|
+ BloodAccessPartName = BloodAccessPart[i].name
|
|
522
|
+ }
|
597
|
523
|
}
|
598
|
|
- }
|
599
|
|
- return skinName;
|
|
524
|
+ return BloodAccessPartName
|
|
525
|
+ },
|
|
526
|
+ getBloodAccessOpera: function (id) {
|
|
527
|
+ var BloodAccessOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
|
528
|
+ var BloodAccessOperaName = ''
|
|
529
|
+ for (let i = 0; i < BloodAccessOpera.length; i++) {
|
|
530
|
+ if (BloodAccessOpera[i].id == id) {
|
|
531
|
+ BloodAccessOperaName = BloodAccessOpera[i].name
|
|
532
|
+ }
|
|
533
|
+ }
|
|
534
|
+ return BloodAccessOperaName
|
|
535
|
+ },
|
|
536
|
+ isShow(name) {
|
|
537
|
+ var filedList = this.$store.getters.user.fileds;
|
|
538
|
+
|
|
539
|
+ for (let i = 0; i < filedList.length; i++) {
|
|
540
|
+ if (
|
|
541
|
+ filedList[i].module == 3 &&
|
|
542
|
+ filedList[i].filed_name_cn == name &&
|
|
543
|
+ filedList[i].is_show == 1
|
|
544
|
+ ) {
|
|
545
|
+ return true;
|
|
546
|
+ }
|
|
547
|
+ }
|
|
548
|
+ return false;
|
|
549
|
+ },
|
|
550
|
+ getBloodAccessInternalFistula: function (id) {
|
|
551
|
+ var BloodAccessInternalFistulaOptions = this.$store.getters
|
|
552
|
+ .blood_access_internal_fistula;
|
|
553
|
+ var BloodAccessInternalFistulaName = "";
|
|
554
|
+ for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
|
|
555
|
+ if (BloodAccessInternalFistulaOptions[i].id == id) {
|
|
556
|
+ BloodAccessInternalFistulaName =
|
|
557
|
+ BloodAccessInternalFistulaOptions[i].name;
|
|
558
|
+ }
|
|
559
|
+ }
|
|
560
|
+ return BloodAccessInternalFistulaName;
|
|
561
|
+ },
|
|
562
|
+ getBloodAccessNoise: function (id) {
|
|
563
|
+ var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise;
|
|
564
|
+ var BloodAccessNoiseName = "";
|
|
565
|
+ for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
|
|
566
|
+ if (BloodAccessNoiseOptions[i].id == id) {
|
|
567
|
+ BloodAccessNoiseName = BloodAccessNoiseOptions[i].name;
|
|
568
|
+ }
|
|
569
|
+ }
|
|
570
|
+ return BloodAccessNoiseName;
|
|
571
|
+ },
|
|
572
|
+ getVenousCatheterization: function (id) {
|
|
573
|
+ var VenousCatheterizationOptions = this.$store.getters
|
|
574
|
+ .venous_catheterization;
|
|
575
|
+ var VenousCatheterizationName = "";
|
|
576
|
+ for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
|
|
577
|
+ if (VenousCatheterizationOptions[i].id == id) {
|
|
578
|
+ VenousCatheterizationName = VenousCatheterizationOptions[i].name;
|
|
579
|
+ }
|
|
580
|
+ }
|
|
581
|
+ return VenousCatheterizationName;
|
|
582
|
+ },
|
|
583
|
+ getWay: function (id) {
|
|
584
|
+ var PunctureWayOptions = this.$store.getters.puncture_way;
|
|
585
|
+ var PunctureWayOptionsName = "";
|
|
586
|
+ for (let i = 0; i < PunctureWayOptions.length; i++) {
|
|
587
|
+ if (PunctureWayOptions[i].id == id) {
|
|
588
|
+ PunctureWayOptionsName = PunctureWayOptions[i].name;
|
|
589
|
+ }
|
|
590
|
+ }
|
|
591
|
+ return PunctureWayOptionsName;
|
|
592
|
+ },
|
|
593
|
+ getVenousCatheterizationPart: function (id) {
|
|
594
|
+ var venousCatheterizationPartOptions = this.$store.getters
|
|
595
|
+ .venous_catheterization_part;
|
|
596
|
+ var venousCatheterizationPartName = "";
|
|
597
|
+ for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
|
|
598
|
+ if (venousCatheterizationPartOptions[i].id == id) {
|
|
599
|
+ venousCatheterizationPartName =
|
|
600
|
+ venousCatheterizationPartOptions[i].name;
|
|
601
|
+ }
|
|
602
|
+ }
|
|
603
|
+ return venousCatheterizationPartName;
|
|
604
|
+ },
|
|
605
|
+ getDuctusArantii: function (id) {
|
|
606
|
+ var ductusArantiiOptions = this.$store.getters.ductus_arantii;
|
|
607
|
+ var ductusArantiiOptionsName = "";
|
|
608
|
+ for (let i = 0; i < ductusArantiiOptions.length; i++) {
|
|
609
|
+ if (ductusArantiiOptions[i].id == id) {
|
|
610
|
+ ductusArantiiOptionsName = ductusArantiiOptions[i].name;
|
|
611
|
+ }
|
|
612
|
+ }
|
|
613
|
+ return ductusArantiiOptionsName;
|
|
614
|
+ },
|
|
615
|
+ getEmergencyTreatment: function (id) {
|
|
616
|
+ var emergencyTreatmentOptions = this.$store.getters.emergency_treatment;
|
|
617
|
+ var emergencyTreatmentName = "";
|
|
618
|
+ for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
|
|
619
|
+ if (emergencyTreatmentOptions[i].id == id) {
|
|
620
|
+ emergencyTreatmentName = emergencyTreatmentOptions[i].name;
|
|
621
|
+ }
|
|
622
|
+ }
|
|
623
|
+ return emergencyTreatmentName;
|
|
624
|
+ },
|
|
625
|
+ getSkin: function (id) {
|
|
626
|
+ var skinOptions = this.$store.getters.skin;
|
|
627
|
+ var skinName = "";
|
|
628
|
+ for (let i = 0; i < skinOptions.length; i++) {
|
|
629
|
+ if (skinOptions[i].id == id) {
|
|
630
|
+ skinName = skinOptions[i].name;
|
|
631
|
+ }
|
|
632
|
+ }
|
|
633
|
+ return skinName;
|
|
634
|
+ }
|
|
635
|
+ // setRecord(record) {
|
|
636
|
+ // if (record == null) {
|
|
637
|
+ // this.info1[0].content = "0"
|
|
638
|
+ // this.info1[1].content = "0"
|
|
639
|
+ // this.info1[2].content = "0"
|
|
640
|
+ // // this.info1[3].content = ""
|
|
641
|
+
|
|
642
|
+ // this.info2[0].content = "0"
|
|
643
|
+ // this.info2[1].content = "0"
|
|
644
|
+ // this.info2[2].content = ""
|
|
645
|
+ // this.info2[3].content = ""
|
|
646
|
+
|
|
647
|
+ // this.info3[0].content = "0"
|
|
648
|
+ // this.info3[1].content = "0"
|
|
649
|
+ // this.info3[2].content = ""
|
|
650
|
+ // this.info3[3].content = ""
|
|
651
|
+
|
|
652
|
+ // this.note = ""
|
|
653
|
+
|
|
654
|
+ // } else {
|
|
655
|
+ // this.info1[0].content = record.weight_before
|
|
656
|
+ // this.info1[1].content = record.systolic_blood_pressure
|
|
657
|
+ // this.info1[2].content = record.last_post_dialysis
|
|
658
|
+ // // this.info1[3].content = ""
|
|
659
|
+
|
|
660
|
+ // this.info2[0].content = record.additional_weight
|
|
661
|
+ // this.info2[1].content = record.diastolic_blood_pressure
|
|
662
|
+ // this.info2[2].content = record.dialysis_interphase
|
|
663
|
+ // this.info2[3].content = record.catheter
|
|
664
|
+
|
|
665
|
+ // this.info3[0].content = record.temperature
|
|
666
|
+ // this.info3[1].content = record.breathing_rate
|
|
667
|
+ // this.info3[2].content = record.symptom_before_dialysis
|
|
668
|
+ // this.info3[3].content = record.complication
|
|
669
|
+
|
|
670
|
+ // this.note = record.remark
|
|
671
|
+ // }
|
|
672
|
+ // }
|
600
|
673
|
}
|
601
|
|
- // setRecord(record) {
|
602
|
|
- // if (record == null) {
|
603
|
|
- // this.info1[0].content = "0"
|
604
|
|
- // this.info1[1].content = "0"
|
605
|
|
- // this.info1[2].content = "0"
|
606
|
|
- // // this.info1[3].content = ""
|
607
|
|
-
|
608
|
|
- // this.info2[0].content = "0"
|
609
|
|
- // this.info2[1].content = "0"
|
610
|
|
- // this.info2[2].content = ""
|
611
|
|
- // this.info2[3].content = ""
|
612
|
|
-
|
613
|
|
- // this.info3[0].content = "0"
|
614
|
|
- // this.info3[1].content = "0"
|
615
|
|
- // this.info3[2].content = ""
|
616
|
|
- // this.info3[3].content = ""
|
617
|
|
-
|
618
|
|
- // this.note = ""
|
619
|
|
-
|
620
|
|
- // } else {
|
621
|
|
- // this.info1[0].content = record.weight_before
|
622
|
|
- // this.info1[1].content = record.systolic_blood_pressure
|
623
|
|
- // this.info1[2].content = record.last_post_dialysis
|
624
|
|
- // // this.info1[3].content = ""
|
625
|
|
-
|
626
|
|
- // this.info2[0].content = record.additional_weight
|
627
|
|
- // this.info2[1].content = record.diastolic_blood_pressure
|
628
|
|
- // this.info2[2].content = record.dialysis_interphase
|
629
|
|
- // this.info2[3].content = record.catheter
|
630
|
|
-
|
631
|
|
- // this.info3[0].content = record.temperature
|
632
|
|
- // this.info3[1].content = record.breathing_rate
|
633
|
|
- // this.info3[2].content = record.symptom_before_dialysis
|
634
|
|
- // this.info3[3].content = record.complication
|
635
|
|
-
|
636
|
|
- // this.note = record.remark
|
637
|
|
- // }
|
638
|
|
- // }
|
639
|
|
- }
|
640
|
|
-};
|
|
674
|
+ };
|
641
|
675
|
</script>
|
642
|
676
|
|
643
|
677
|
<style rel="stylesheet/scss" lang="scss" scoped></style>
|