123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766 |
- <template>
- <el-dialog
- title="透析处方"
- :visible.sync="isVisibility"
- width="1010px"
- modal-append-to-body=“false”
- :append-to-body="true"
- >
- <el-form ref="dialysisPrescription" :model="dialysisPrescription" label-width="148px">
- <!-- <el-row :gutter="20"> -->
- <el-row :gutter="24">
- <el-col :span="8" v-if="isShows('透析模式')">
- <el-form-item label="透析模式: ">
- <el-select v-model="dialysisPrescription.mode_id">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option v-for="item in treatment_mode" :label="item.name" :value="item.id" :key="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('透析时长')">
- <el-form-item label="透析时长(h): " >
- <el-input type="number" v-model="dialysisPrescription.dialysis_duration_hour"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('透析时长')">
- <el-form-item label="透析时长(min): " >
- <el-input type="number" v-model="dialysisPrescription.dialysis_duration_minute"></el-input>
- </el-form-item>
- </el-col>
- <!-- </el-row>
-
- <el-row :gutter="20"> -->
- <el-col :span="8" v-if="isShows('血流量')">
- <el-form-item label="血流量(ml/min):" >
- <el-input type="number" v-model="dialysisPrescription.blood_flow_volume"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('目标超滤量')">
- <el-form-item label="目标超滤量(L):" >
- <el-input type="number" v-model="dialysisPrescription.target_ultrafiltration"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析液配方')">
- <el-form-item label="透析液配方:" >
- <!-- <el-input type="number" v-model="dialysisPrescription.dialysate_formulation"></el-input> -->
- <el-select v-model="dialysisPrescription.dialysate_formulation" placeholder="请选择">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option v-for="(option, index) in dialysate_formulation_options" :key="index" :label="option.name"
- :value="option.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
- <!-- </el-row>
-
- <el-row :gutter="20"> -->
- <el-col :span="8" v-if="isShows('透析液温度')">
- <el-form-item label="透析液温度(°C):" >
- <el-input type="number" v-model="dialysisPrescription.dialysate_temperature"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('置换量')">
- <el-form-item label="置换量(L):" >
- <el-input type="number" v-model="dialysisPrescription.replacement_total"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('抗凝剂')">
- <el-form-item label="抗凝剂:" >
- <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择" style="width:100%;"
- @change="changeThisAnticoagulant">
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option v-for="item in anticoagulantsConfit" :label="item.name" :key="item.id"
- :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <!-- </el-row>
-
- <el-row :gutter="20"> -->
-
- <el-col :span="8" v-if="anticoagulant.shouji != -1&&isShows('首剂')">
- <el-form-item :label="'首剂('+anticoagulant.shouji_unit+') : '">
- <el-input type="number" v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="anticoagulant.weichi != -1&&isShows('维持')">
- <el-form-item :label="'维持('+anticoagulant.weichi_unit+') : '" v-if="anticoagulant.weichi != -1">
- <el-input type="number" v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="anticoagulant.zongliang != -1&&isShows('总量')">
- <el-form-item :label="'总量('+anticoagulant.zongliang_unit+') : '">
- <el-input type="number" v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="anticoagulant.gaimingcheng != -1&&isShows('钙名称')">
- <el-form-item label="钙名称 : ">
- <el-input v-model="dialysisPrescription.anticoagulant_gaimingcheng"
- :disabled="anticoagulant.gaimingcheng==1?false:true" placeholder="钙名称"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="anticoagulant.gaijiliang != -1&&isShows('钙剂量')">
- <el-form-item label="钙剂量(ml/h) : ">
- <el-input type="number" v-model="dialysisPrescription.anticoagulant_gaijiliang"
- :disabled="anticoagulant.gaijiliang==1?false:true" placeholder="钙剂量"></el-input>
- </el-form-item>
- </el-col>
-
-
- <!-- </el-row>
-
-
- <el-row :gutter="20"> -->
-
- <el-col :span="8" v-if="isShows('钾')">
- <el-form-item label="钾(mmol/L): " >
- <el-input type="number" v-model="dialysisPrescription.kalium"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('钠')">
- <el-form-item label="钠(mmol/L):">
- <el-input type="number" v-model="dialysisPrescription.sodium"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('钙')">
- <el-form-item label="钙(mmol/L):">
- <el-input type="number" v-model="dialysisPrescription.calcium"></el-input>
- </el-form-item>
- </el-col>
-
-
- <!-- </el-row>
-
- <el-row :gutter="20"> -->
-
- <el-col :span="8" v-if="isShows('透析器/灌流器')">
- <el-form-item label="透析器/灌流器:">
- <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('碳酸氢盐')">
- <el-form-item label="碳酸氢盐(mmol/L):">
- <el-input type="number" v-model="dialysisPrescription.bicarbonate"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('葡萄糖')">
- <el-form-item label="葡萄糖(mmol/L):" >
- <el-input type="number" v-model="dialysisPrescription.glucose"></el-input>
- </el-form-item>
- </el-col>
- <!-- </el-row>
-
- <el-row :gutter="20"> -->
- <el-col :span="8" v-if="isShows('透析液流量')">
- <el-form-item label="透析液流量(ml/min):">
- <el-input type="number" v-model="dialysisPrescription.dialysate_flow"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('电导率')">
- <el-form-item label="电导率(mS/cm): ">
- <el-input type="number" v-model="dialysisPrescription.conductivity"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('体液过多症状')">
- <el-form-item label="体液过多症状:">
- <el-select v-model="dialysisPrescription.body_fluid" placeholder="请选择" style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option v-for="item in body_fluid_option" :label="item.name" :key="item.id"
- :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
- <!-- </el-row>
-
-
- <el-row :gutter="20" > -->
-
- <el-col :span="8" v-if="isShows('体液过多其他症状')">
- <el-form-item label="其他体液过多症状">
- <el-input v-model="dialysisPrescription.body_fluid_other"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('透析前使用特殊药物')">
- <el-form-item label="透析前使用特殊药物">
- <el-select v-model="dialysisPrescription.special_medicine" placeholder="请选择" style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option v-for="item in special_medicine_option" :label="item.name" :key="item.id"
- :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
-
- <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')">
- <el-form-item label="使用其他特殊药物">
- <el-input v-model="dialysisPrescription.special_medicine_other"></el-input>
- </el-form-item>
- </el-col>
-
- <!-- </el-row>
-
- <el-row :gutter="20" > -->
- <el-col :span="8">
- <el-form-item label="置换液:" v-if="isShows('置换液')">
-
- <el-select v-model="dialysisPrescription.displace_liqui_part" placeholder="请选择">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option v-for="(option, index) in displace_liqui_part_option" :key="index"
- :label="option.name" :value="option.id"></el-option>
- </el-select>
- </el-form-item>
-
- </el-col>
-
- <el-col :span="8" v-if="isShows('置换液总量')">
- <el-form-item label="置换液总量(L)">
- <el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('血管通路(内瘘)')">
- <el-form-item label="血管通路(内瘘):">
- <el-select v-model="dialysisPrescription.blood_access" placeholder="请选择">
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option v-for="(option, index) in blood_access_option" :key="index"
- :label="option.name" :value="option.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <!-- </el-row>
- <el-row :gutter="20" > -->
- <el-col :span="8" v-if="isShows('实际超滤量')">
- <el-form-item label="实际超滤量(L)">
- <el-input v-model="dialysisPrescription.ultrafiltration"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
-
-
- <el-row :gutter="20">
- <el-col :span="24">
- <el-form-item label="备注: ">
- <el-input type="textarea" v-model="dialysisPrescription.remark" :rows="5"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- <span slot="footer" class="dialog-footer">
- <el-button @click="handleCancle">取 消</el-button>
- <el-button type="primary" @click="handleCommit">保 存</el-button>
- <el-button type="primary" @click="handleSolution">保存为长期处方</el-button>
-
- </span>
- </el-dialog>
-
-
- </template>
-
- <script>
- import { postPrescription, postSoulution } from '@/api/dialysis'
- import { getDataConfig } from '@/utils/data'
- import { uParseTime } from '@/utils/tools'
- import store from "@/store";
-
- export default {
- name: 'dialysisPrescriptionDialog',
- props: {
-
- prescription: { // 透析处方
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- solution: { // 长期处方
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- dialysis_order: { // 透析记录
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- patient: { // 患者信息
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- devices: {
- type: Array,
- default: function() {
- return new Array()
- }
- }
-
- },
- data() {
- return {
- isVisibility: false,
- isShowTime: false,
- isClose: false,
- isShow: false,
- record_date: '',
- time: '',
- treatment_mode: [],
- deviceList: [],
- replacement_ways: [],
- anticoagulantsConfit: {},
- dialysate_formulation_options: [],
-
- body_fluid_option: [],
- special_medicine_option: [],
- displace_liqui_part_option: [],
- blood_access_option: [],
-
- dialysisPrescription: {
- replacement_total: '',
- mode_id: '',
- dialysis_duration: '',
- dialysis_duration_hour: '',
- dialysis_duration_minute: '',
- mode_name: '',
- dialyzer: '',
- perfusion_apparatus: '',
- blood_flow_volume: '',
- dewater_amount: '',
- displace_liqui: '',
- replacement_way: '',
- anticoagulant: '',
- anticoagulant_shouji: '',
- anticoagulant_weichi: '',
- anticoagulant_zongliang: '',
- anticoagulant_gaimingcheng: '',
- anticoagulant_gaijiliang: '',
- kalium: '',
- sodium: '',
- calcium: '',
- bicarbonate: '',
- glucose: '',
- dry_weight: '',
- dialysate_flow: '',
- dialysate_temperature: '',
- target_ultrafiltration: '',
- dialysate_formulation: '',
- conductivity: '',
- doctor: '',
- remark: '',
- dialyzer_perfusion_apparatus: '',
-
- body_fluid: '',
- body_fluid_other: '',
- special_medicine: '',
- special_medicine_other: '',
- displace_liqui_part: '',
- displace_liqui_value: '',
- ultrafiltration: '',
- blood_access: ''
- },
-
- anticoagulant: {
- id: 0,
- name: '',
- type: 1,
- shouji: 1,
- weichi: 1,
- zongliang: 1,
- gaimingcheng: -1,
- gaijiliang: -1,
- shouji_unit: 'mg',
- weichi_unit: 'mg/h',
- zongliang_unit: 'mg',
- gaimingcheng_unit: '',
- gaijiliang_unit: ''
- }
-
- }
- },
- methods: {
- show() {
- this.isVisibility = true
- },
- hide() {
- this.isVisibility = false
- },
- changeThisAnticoagulant: function(val) {
- var thismode = parseInt(val)
- if (isNaN(thismode) || thismode <= 0) {
- return false
- }
- if (typeof (this.anticoagulantsConfit[thismode]) === 'undefined' || this.anticoagulantsConfit[thismode] == null) {
- return false
- }
- this.anticoagulant = this.anticoagulantsConfit[thismode]
- }, handleCommit: function() {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- const ParamsQuery = this.dialysisPrescription
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }, handleCancle: function() {
- this.hide()
- }, handleSolution: function() {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- const ParamsQuery = this.dialysisPrescription
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }, isShows(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
- },
- },
- created() {
- this.treatment_mode = this.$store.getters.treatment_mode
- this.perfusion_apparatus = getDataConfig('hemodialysis', 'perfusion_apparatus')
- this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
- this.dialysate_formulation_options = getDataConfig('hemodialysis', 'dialysate_formulation')
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
- this.dialysisList = this.devices
-
- this.body_fluid_option = this.$store.getters.body_fluid
- this.special_medicine_option = this.$store.getters.special_medicine
- this.displace_liqui_part_option = this.$store.getters.displace_liqui
- this.blood_access_option = this.$store.getters.blood_access_internal_fistula
-
- var date = this.$route.query && this.$route.query.date
- this.record_date = uParseTime(date, '{y}-{m}-{d}')
- },
- watch: {
- isVisibility(val) {
-
- },
- 'prescription.id': function() {
- if (this.prescription.id > 0) {
- for (var index in this.dialysisPrescription) {
- this.dialysisPrescription[index] = this.prescription[index]
- }
-
- // console.log(this.prescription['dialysate_formulation'])
-
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- // else{
- // this.dialysisPrescription['dialysate_formulation'] = this.prescription['dialysate_formulation']
- //
- // }
- //
- //
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
- // else{
- // this.dialysisPrescription['anticoagulant'] = this.prescription['anticoagulant']
- //
- // }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = ''
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = ''
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = ''
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- }
- },
- 'solution.id': function() {
- if (this.solution.id > 0) {
- if (this.prescription != null && typeof (this.prescription.id) !== 'undefined' && this.prescription.id > 0) {
- for (const key in this.prescription) {
- this.dialysisPrescription[key] = this.prescription[key]
- }
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- // else{
- // this.dialysisPrescription['dialysate_formulation'] = this.prescription['dialysate_formulation']+''
- //
- // }
- //
- //
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
- //
- // else{
- // this.dialysisPrescription['anticoagulant'] = this.prescription['anticoagulant']+''
- //
- // }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = ''
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = ''
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = ''
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
-
- } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id) {
- for (const key in this.solution) {
- this.dialysisPrescription[key] = this.solution[key]
- }
-
- if (this.solution['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
- // else{
- // this.dialysisPrescription['dialysate_formulation'] = this.solution['dialysate_formulation']+''
- //
- // }
-
- if (this.solution['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.solution['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.solution['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.solution['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.solution['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.solution['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.solution['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = ''
- }
- if (this.solution['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = ''
- }
- if (this.solution['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = ''
- }
- if (this.solution['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.solution['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.solution['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.solution['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.solution['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.solution['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.solution['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.solution['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.solution['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- }
- }
- }
- }
- }
-
- </script>
-
- <style scoped>
-
- </style>
|