123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740 |
- <template>
- <div class="plate-box">
- <h2 class="DetailsTit">
- <span>{{ title }}</span>
- </h2>
- <div class="plate">
- <ul>
- <li v-if="isShow('透析模式')">
- <label>透析模式 : </label>
- <span class="content">{{ dialysis_mode }}</span>
- </li>
-
- <li v-if="isShow('置换量') && (dialysis_mode == 'HDF' || dialysis_mode == 'HF' || dialysis_mode =='HDF+HP')">
- <label>置换量 : </label>
- <span class="content">{{
- replacement_total != "0" ? replacement_total : ""
- }}</span>
- <span v-if="this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 29" class="unit">{{ replacement_total != "0" ? "L" : "" }}</span>
- <span v-if="this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 29" class="unit">{{ replacement_total != "0" ? "ml" : "" }}</span>
-
- </li>
-
- <li v-if="isShow('置换速度')">
- <label>置换速度 : </label>
- <span class="content">{{displace_speed }}</span>
- <span class="unit">ml/min</span>
- </li>
-
-
- <li v-if="isShow('透析液配方')">
- <label>透析液配方 : </label>
- <span class="content">{{ dialysate_formulation }}</span>
- </li>
-
- <li v-if="isShow('透析液温度')">
- <label>透析液温度 : </label>
- <span class="content">{{
- dialysate_temperature != "0" ? dialysate_temperature : ""
- }}</span>
- <span class="unit">{{
- dialysate_temperature != "0" ? "℃" : ""
- }}</span>
- </li>
-
- <li v-if="isShow('抗凝剂')">
- <label>抗凝剂 : </label>
- <span class="content">{{ anticoagulant }}</span>
- </li>
-
- <li v-if="isShow('抗凝剂商品名称') && this.$store.getters.xt_user.template_info.template_id != 24">
- <label>抗凝剂商品名称 : </label>
- <span class="content">{{ antioxidant_commodity_name }}</span>
- </li>
-
-
- <li v-if=" isShow('总量') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
- <label>总量: </label>
- <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
- <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 ">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23)">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_zongliang != "0" ? "ml" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
- </li>
-
- <li v-if="isShow('透析器/灌流器')">
- <label>透析器/灌流器 : </label>
- <span class="content">{{ dialyzer_perfusion_apparatus }}</span>
- <span class="unit"></span>
- </li>
-
- <li v-if="isShow('透析器')">
- <label>透析器 : </label>
- <span class="content">{{ dialysis_dialyszers }}</span>
- <span class="unit"></span>
- </li>
-
- <li v-if="isShow('灌流器')">
- <label>灌流器 : </label>
- <span class="content">{{ dialysis_irrigation }}</span>
- <span class="unit"></span>
- </li>
-
- <li v-if="isShow('透析前使用特殊药物')">
- <label>透析前使用特殊药物: </label>
- <span class="content">{{ special_medicine }}</span>
- <span class="unit"></span>
- </li>
-
- <li v-if="isShow('体液过多其他症状')">
- <label>体液过多其他症状 : </label>
- <span class="content">{{ body_fluid_other }}</span>
- <span class="unit"></span>
- </li>
- </ul>
-
- <ul>
- <li v-if="isShow('目标超滤量')">
- <label>目标超滤量 : </label>
- <span class="content">{{
- target_ultrafiltration != "0" ? target_ultrafiltration : ""
- }}</span>
- <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
- <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id != 40 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
- </li>
- <li v-if="isShow('葡萄糖')">
- <label>葡萄糖 : </label>
- <span class="content">{{ glucose != "0" ? glucose : "" }}</span>
- <span class="unit">{{ glucose != "0" ? "mmol/l" : "" }}</span>
- </li>
-
- <li v-if="isShow('钾')">
- <label>钾 : </label>
- <span class="content">{{ kalium != "0" ? kalium : "" }}</span>
- <span class="unit">{{ kalium != "0" ? "mmol/L" : "" }}</span>
- </li>
-
- <li v-if="isShow('血流量')">
- <label>血流量 : </label>
- <span class="content">{{
- blood_flow_volume != "0" ? blood_flow_volume : ""
- }}</span>
- <span class="unit">{{
- blood_flow_volume != "0" ? "ml/min" : ""
- }}</span>
- </li>
-
- <li v-if=" isShow('首剂') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
- <label>首剂 : </label>
- <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
- <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 " >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span >
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span >
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
- </li>
-
- <li v-if="isShow('钙')">
- <label>钙: </label>
- <span class="content">{{ calcium != "0" ? calcium : "" }}</span>
- <span class="unit">{{ calcium != "0" ? "mmol/L" : "" }}</span>
- </li>
-
- <li v-if="isShow('体液过多症状')">
- <label>体液过多症状 : </label>
- <span class="content">{{ body_fluid }}</span>
- <span class="unit"></span>
- </li>
-
- <li v-if="isShow('透析前使用其他特殊药物')">
- <label>透析前使用其他特殊药物: </label>
- <span class="content">{{ special_medicine_other }}</span>
- <span class="unit"></span>
- </li>
-
- <li
- v-if="
- isShow('钙名称') &&
- getValueStr('anticoagulant', 'anticoagulant') == 5
- "
- >
- <label>钙名称: </label>
- <span class="content">{{
- getValueStr(
- "anticoagulant_gaimingcheng",
- "anticoagulant_gaimingcheng"
- )
- }}</span>
- </li>
-
- <!-- <li v-if="isShow('血流量')">-->
- <!-- <label>血流量 : </label>-->
- <!-- <span class="content">{{-->
- <!-- blood_flow_volume != "0" ? blood_flow_volume : ""-->
- <!-- }}</span>-->
- <!-- <span class="unit">{{-->
- <!-- blood_flow_volume != "0" ? "ml/min" : ""-->
- <!-- }}</span>-->
- <!-- </li>-->
- </ul>
-
- <ul>
- <li v-if="isShow('钠')">
- <label>钠 : </label>
- <span class="content">{{ sodium != "0" ? sodium : "" }}</span>
- <span class="unit">{{ sodium != "0" ? "mmol/L" : "" }}</span>
- </li>
-
- <li v-if="isShow('透析时长')">
- <label>透析时长 : </label>
- <span class="content">{{
- dialysis_duration != "0" ? dialysis_duration : ""
- }}</span>
- </li>
-
- <li v-if="isShow('碳酸氢盐')">
- <label>碳酸氢盐 : </label>
- <span class="content">{{
- bicarbonate != "0" ? bicarbonate : ""
- }}</span>
- <span class="unit">{{ bicarbonate != "0" ? "mmol/L" : "" }}</span>
- </li>
-
- <li v-if="isShow('透析液流量')">
- <label>透析液流量 : </label>
- <span class="content">{{
- dialysate_flow != "0" ? dialysate_flow : ""
- }}</span>
- <span class="unit">{{ dialysate_flow != "0" ? "ml/min" : "" }}</span>
- </li>
-
- <li v-if="isShow('维持') && getValueStr('anticoagulant', 'anticoagulant') != 5">
- <label>维持 : </label>
- <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
- <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 ">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_weichi != "0" ? "ml/h" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
- <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
- </li>
-
- <li
- v-if="
- isShow('钙剂量') &&
- getValueStr('anticoagulant', 'anticoagulant') == 5
- "
- >
- <label>钙剂量: </label>
- <span class="content">{{
- getValueStr("anticoagulant_gaijiliang", "anticoagulant_gaijiliang")
- }}</span>
- <span
- class="unit"
- v-if="getValueStr('anticoagulant', 'anticoagulant') == 5"
- >{{ "ml" }}</span
- >
- </li>
-
- <li v-if="isShow('实际超滤量')">
- <label>实际超滤量: </label>
- <span class="content">{{
- ultrafiltration != "0" ? ultrafiltration : ""
- }}</span>
- <span class="unit">{{ ultrafiltration != "0" ? "L" : "" }}</span>
- </li>
-
- <li v-if="isShow('电导度')">
- <label>电导度 : </label>
- <span class="content">{{
- conductivity != "0" ? conductivity : ""
- }}</span>
- <span class="unit">{{ conductivity != "0" ? "mS/m" : "" }}</span>
- </li>
-
- <li v-if="isShow('置换液') && dialysis_mode == 'HDF'">
- <label
- v-if="this.$store.getters.xt_user.template_info.template_id != 6"
- >置换液:
- </label>
- <label
- v-if="this.$store.getters.xt_user.template_info.template_id == 6"
- >置换方式:
- </label>
-
- <span class="content">{{
- displace_liqui != "0" ? displace_liqui : ""
- }}</span>
- <span v-if="this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29" class="unit">{{ displace_liqui != "0" ? "L" : "" }}</span>
- <span v-if="this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29" class="unit">{{ displace_liqui != "0" ? "ml" : "" }}</span>
- </li>
-
- <li v-if="isShow('血管通路')">
- <label>血管通路: </label>
- <span class="content">{{ blood_access }}</span>
- <span class="unit"></span>
- </li>
-
- <li v-if="isShow('目标KT/V')">
- <label>目标KT/V: </label>
- <span class="content">{{ target_ktv != "0" ? target_ktv : "" }}</span>
- </li>
-
- <li v-if="isShow('目标KT/V')">
- <label>目标KT/V: </label>
- <span class="content">{{ target_ktv != "0" ? target_ktv : "" }}</span>
- </li>
-
-
- <li v-if="isShow('抗凝提前停止')">
- <label>抗凝提前停止 : </label>
- <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour > 0 && this.prescription.anticoagulant_stop_time_min > 0 ">{{this.prescription.anticoagulant_stop_time_hour }}小时{{this.prescription.anticoagulant_stop_time_min }}分钟</span>
- <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour > 0 && this.prescription.anticoagulant_stop_time_min == 0 ">{{this.prescription.anticoagulant_stop_time_hour }}小时</span>
- <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour == 0 && this.prescription.anticoagulant_stop_time_min > 0 ">{{this.prescription.anticoagulant_stop_time_min }}分钟</span>
- <span class="content" v-if="this.prescription.anticoagulant_stop_time_hour == 0 && this.prescription.anticoagulant_stop_time_min == 0 "></span>
- <span class="unit"></span>
- </li>
-
- <li v-if="isShow('病情')">
- <label>病情: </label>
- <span class="content">{{getIllness(this.prescription.illness)}}</span>
- </li>
-
- <li v-if="isShow('葡萄糖')">
- <label>葡萄糖: </label>
- <span class="content">{{this.prescription.amylaceum}}</span>
- </li>
-
- <li v-if="isShow('单超时长')">
- <label>单超时长(h): </label>
- <span class="content">{{this.prescription.single_time}}</span>
- </li>
-
- <li v-if="isShow('单超脱水')">
- <label>单超脱水(L): </label>
- <span class="content">{{this.prescription.single_water}}</span>
- </li>
-
-
- <li v-if="isShow('置换流量')">
- <label>置换流量(L/h): </label>
- <span class="content">{{this.prescription.replacement_flow}}</span>
- </li>
-
- <li v-if="isShow('血浆分离器')">
- <label>血浆分离器: </label>
- <span class="content">{{this.prescription.plasma_separator}}</span>
- </li>
-
- <li v-if="isShow('胆红素吸附柱')">
- <label>胆红素吸附柱: </label>
- <span class="content">{{this.prescription.bilirubin_adsorption_column}}</span>
- </li>
-
- </ul>
- </div>
- <div style="color:#34495e;margin: 12px 100px 0 100px;">备注: <span style="color:#409eff;">{{ note }}</span></div>
- </div>
- </template>
-
- <script>
- import { getDataConfig } from '@/utils/data'
- import store from '@/store'
-
- export default {
- name: 'DialysisPrescription',
- data() {
- return {
- title: '透析处方',
- perfusion_apparatus_map: {},
- dialysateFormulationMap: {},
- blood_access_part: [],
- blood_access_part_opera: []
- }
- },
- props: {
- prescription: {
- type: Object
- },
- solution: {
- type: Object
- },
- device_number_map: {
- type: Object
- },
- preparestock:{
- type:Array
- }
- },
- computed: {
- note: function () {
- return this.getValueStr('remark', 'remark')
- },
- target_ultrafiltration: function() {
- var v = this.getValueStr(
- 'target_ultrafiltration',
- 'target_ultrafiltration'
- )
- return v.length == 0 ? '0' : v
- },
- dialysis_mode: function() {
- var mode = this.getValueStr('mode_id', 'mode_id')
- if (mode.length == 0) {
- return ''
- }
- if (this.$store.getters.treatment_mode[mode] != undefined) {
- return this.$store.getters.treatment_mode[mode].name
- }
- return ''
- },
- perfusion_apparatus: function() {
- var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
- if (v.length == 0) {
- return ''
- }
- if (this.perfusion_apparatus_map[v] != undefined) {
- return this.perfusion_apparatus_map[v].name
- }
- return ''
- },
- displace_liqui: function() {
- var v = this.getValueStr('displace_liqui', 'displace_liqui')
- return v.length == 0 ? '0' : v
- },
- anticoagulant_shouji: function() {
- var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
- return v.length == 0 ? '0' : v
- },
- kalium: function() {
- var v = this.getValueStr('kalium', 'kalium')
- return v.length == 0 ? '0' : v
- },
- replacement_total: function() {
- var v = this.getValueStr('replacement_total', 'replacement_total')
- return v.length == 0 ? '0' : v
- },
- bicarbonate: function() {
- var v = this.getValueStr('bicarbonate', 'bicarbonate')
- return v.length == 0 ? '0' : v
- },
- dialysate_flow: function() {
- var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
- return v.length == 0 ? '0' : v
- },
- dialysis_duration: function() {
- var dialysis_duration_hour = this.getValueStr(
- 'dialysis_duration_hour',
- 'dialysis_duration_hour'
- )
- var dialysis_duration_minute = this.getValueStr(
- 'dialysis_duration_minute',
- 'dialysis_duration_minute'
- )
- if (
- dialysis_duration_hour.length == 0 &&
- dialysis_duration_minute.length == 0
- ) {
- return '0'
- } else {
- var time =
- dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
- return time.length == 0 ? '0' : time
- }
- },
- blood_flow_volume: function() {
- var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
- return v.length == 0 ? '0' : v
- },
- replacement_way: function() {
- return this.getValueStr('replacement_way', 'replacement_way')
- },
- anticoagulant_weichi: function() {
- var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
- return v.length == 0 ? '0' : v
- },
- sodium: function() {
- var v = this.getValueStr('sodium', 'sodium')
- return v.length == 0 ? '0' : v
- },
- glucose: function() {
- var v = this.getValueStr('glucose', 'glucose')
- return v.length == 0 ? '0' : v
- },
- dialysate_temperature: function() {
- var v = this.getValueStr(
- 'dialysate_temperature',
- 'dialysate_temperature'
- )
- return v.length == 0 ? '0' : v
- },
- dialyzer: function() {
- var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
- if (v.length == 0) {
- return ''
- }
- if (this.device_number_map[v] != undefined) {
- return this.device_number_map[v].name
- }
- return ''
- },
- dialysate_formulation: function() {
- var v = this.getValueStr(
- 'dialysate_formulation',
- 'dialysate_formulation'
- )
- if (v.length == 0) {
- return ''
- }
- if (v in this.dialysateFormulationMap) {
- return this.dialysateFormulationMap[v].name
- }
- return ''
- },
- prescription_dewatering: function() {
- var v = this.getValueStr('prescription_dewatering', 'dewater')
- return v.length == 0 ? '0' : v
- },
- anticoagulant: function() {
- var v = this.getValueStr('anticoagulant', 'anticoagulant')
- if (v.length == 0) {
- return ''
- }
- if (this.$store.getters.anticoagulants_confit[v] != undefined) {
- return this.$store.getters.anticoagulants_confit[v].name
- }
- return ''
- },
- anticoagulant_zongliang: function() {
- var v = this.getValueStr(
- 'anticoagulant_zongliang',
- 'anticoagulant_zongliang'
- )
- return v.length == 0 ? '0' : v
- },
- calcium: function() {
- var v = this.getValueStr('calcium', 'calcium')
- return v.length == 0 ? '0' : v
- },
-
- conductivity: function() {
- var v = this.getValueStr('conductivity', 'conductivity')
- return v.length == 0 ? '0' : v
- },
- dialyzer_perfusion_apparatus: function() {
- return this.getValueStr(
- 'dialyzer_perfusion_apparatus',
- 'dialyzer_perfusion_apparatus'
- )
- },
- dialysis_dialyszers:function(){
-
- var str = this.getValueStr('dialysis_dialyszers','dialysis_dialyszers')
- console.log("str",str)
- var arr = str.split(",")
-
- if (arr.length >0) {
- for(let i=0;i<arr.length;i++){
- for(let j=0;j<this.preparestock.length;j++){
- if(arr[i] == this.preparestock[j].specification_name){
- if(this.preparestock[j].commdity_code!=""){
- arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
- }
- }
- }
- }
- }
- console.log("arr00000",arr)
- var strs = arr.join(',')
- console.log("strs",strs)
- return strs
- },
- dialysis_irrigation:function(){
- var str = this.getValueStr('dialysis_irrigation','dialysis_irrigation')
- console.log("str",str)
- var arr = str.split(",")
-
- if (arr.length >0) {
- for(let i=0;i<arr.length;i++){
- for(let j=0;j<this.preparestock.length;j++){
- if(arr[i] == this.preparestock[j].specification_name){
- if(this.preparestock[j].commdity_code!=""){
- arr[i] = arr[i]+"("+this.preparestock[j].commdity_code+")"
- }
- }
- }
- }
- }
- console.log("arr00000",arr)
- var strs = arr.join(',')
- console.log("strs",strs)
- return strs
- // return this.getValueStr('dialysis_irrigation','dialysis_irrigation')
- },
- body_fluid: function() {
- var id = this.getValueStr('body_fluid', 'body_fluid')
- if (id == 0) {
- return ''
- }
- var bodyFluidOptions = this.$store.getters.body_fluid
- for (let i = 0; i < bodyFluidOptions.length; i++) {
- if (bodyFluidOptions[i].id == id) {
- return bodyFluidOptions[i].name
- }
- }
- },
- special_medicine: function() {
- var id = this.getValueStr('special_medicine', 'special_medicine')
- if (id == 0) {
- return ''
- }
- var special_medicine = this.$store.getters.special_medicine
- for (let i = 0; i < special_medicine.length; i++) {
- if (special_medicine[i].id == id) {
- return special_medicine[i].name
- }
- }
- },
- special_medicine_other: function() {
- return this.getValueStr(
- 'special_medicine_other',
- 'special_medicine_other'
- )
- },
- blood_access: function() {
- var id = this.getValueStr('blood_access', 'blood_access')
- console.log('id', id)
- if (id == 0) {
- return ''
- }
- // var blood_access = this.$store.getters.blood_access_internal_fistula;
- var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
- for (let i = 0; i < blood_access.length; i++) {
- if (blood_access[i].id == id) {
- return blood_access[i].name
- }
- }
- },
- displace_liqui: function() {
- var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
- var displace_liqui_value = this.getValueStr(
- 'displace_liqui_value',
- 'displace_liqui_value'
- )
- var displace_liqui_part = ''
- var displace_liqui = this.$store.getters.displace_liqui
- for (let i = 0; i < displace_liqui.length; i++) {
- if (displace_liqui[i].id == id) {
- displace_liqui_part = displace_liqui[i].name
- }
- }
- return displace_liqui_part + displace_liqui_value
- },
- ultrafiltration: function() {
- var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
- return v.length == 0 ? '0' : v
- },
- body_fluid_other: function() {
- return this.getValueStr('body_fluid_other', 'body_fluid_others')
- },
- target_ktv: function() {
- var v = this.getValueStr('target_ktv', 'target_ktv')
- return v.length == 0 ? '0' : v
- },
- antioxidant_commodity_name:function(){
- return this.getValueStr('antioxidant_commodity_name','antioxidant_commodity_name')
- },
- displace_speed:function(){
- return this.getValueStr('displace_speed','displace_speed')
- },
-
- },
- created() {
-
- var perfusion_apparatus = this.$store.getters.perfusion_apparatus
- var map = {}
- for (let index = 0; index < perfusion_apparatus.length; index++) {
- const p = perfusion_apparatus[index]
- map[p.id] = p
- }
- this.perfusion_apparatus_map = map
-
- var dialysateFormulationOptions = getDataConfig(
- 'hemodialysis',
- 'dialysate_formulation'
- )
-
- for (var index in dialysateFormulationOptions) {
- this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
- dialysateFormulationOptions[index]
- }
- },
- methods: {
- getValueStr(pkey, skey) {
- if (
- (this.prescription == null || this.prescription.id == '') &&
- (this.solution == null || this.solution.id == '')
- ) {
- return ''
- } else if (this.prescription != null && this.prescription.id != '') {
- if (
- this.prescription[pkey] == null ||
- this.prescription[pkey] == undefined
- ) {
- return ''
- }
- return this.prescription[pkey] + ''
- } else {
- if (this.solution[skey] == null || this.solution[skey] == undefined) {
- return ''
- }
-
- return this.solution[skey] + ''
- }
- },
- isShow(name) {
- var filedList = store.getters.xt_user.fileds
- for (let i = 0; i < filedList.length; i++) {
- if (
- filedList[i].module == 1 &&
- filedList[i].filed_name_cn == name &&
- filedList[i].is_show == 1
- ) {
- return true
- }
- }
- return false
- },
- getIllness(id){
- var illnessList = getDataConfig('hemodialysis','illness')
- var name = ""
- for(let i=0;i<illnessList.length;i++){
- if(id == illnessList[i].id){
- name = illnessList[i].name
- }
- }
- return name
- }
- }
- }
- </script>
-
- <style rel="stylesheet/scss" lang="scss" scoped></style>
|