1149 lines
37 KiB
Vue
1149 lines
37 KiB
Vue
<template>
|
|
<div>
|
|
<v-dialog persistent v-model="dialogDoctor" width="500">
|
|
<!-- <template v-slot:activator="{ on }">
|
|
<v-btn color="red lighten-2" dark v-on="on"> Click Me </v-btn>
|
|
</template> -->
|
|
|
|
<v-card>
|
|
<v-card-title class="headline grey lighten-2" primary-title>
|
|
Pilih Dokter
|
|
</v-card-title>
|
|
|
|
<v-card-text>
|
|
<v-autocomplete
|
|
label="Dokter"
|
|
v-model="selectedDoctor"
|
|
class="mt-1"
|
|
:items="doctorList"
|
|
:search-input.sync="searchDoctor"
|
|
auto-select-first
|
|
hide-details
|
|
style="font-size: 14px;"
|
|
no-filter
|
|
item-text="doctorName"
|
|
return-object
|
|
:loading="loading"
|
|
no-data-text="Pilih Dokter"
|
|
>
|
|
<!-- :disabled="disableAutocomplete()" -->
|
|
<template slot="item" slot-scope="{ item }">
|
|
<v-list-tile-content>
|
|
<v-list-tile-title v-text="item.doctorName"></v-list-tile-title>
|
|
</v-list-tile-content>
|
|
</template>
|
|
</v-autocomplete>
|
|
</v-card-text>
|
|
|
|
<v-divider></v-divider>
|
|
|
|
<v-card-actions>
|
|
<v-spacer></v-spacer>
|
|
<v-btn color="error" flat @click="closeDialogDoctor()"> Tutup </v-btn>
|
|
<v-btn color="success" flat @click="saveDoctor()">Simpan</v-btn>
|
|
</v-card-actions>
|
|
</v-card>
|
|
</v-dialog>
|
|
<v-layout class="fill-height" column>
|
|
<v-card class="pa-2">
|
|
<v-layout row wrap>
|
|
<v-flex xs2>
|
|
<v-card class="pa-2 blue darken-4">
|
|
<v-img
|
|
:src="selectedPatient.patientFotoThumb"
|
|
height="160"
|
|
contain
|
|
></v-img>
|
|
</v-card>
|
|
</v-flex>
|
|
<v-flex xs10>
|
|
<v-layout row wrap>
|
|
<v-flex xs12 class="ml-3">
|
|
<div style="justify-content: space-between; display: flex;">
|
|
<span class="display-1 font-weight-bold">
|
|
{{ selectedPatient.labNumber }}
|
|
</span>
|
|
|
|
<v-btn
|
|
v-if="patientDetail.detail.length > 0"
|
|
flat
|
|
icon
|
|
color="blue"
|
|
@click="reloadDetail()"
|
|
>
|
|
<v-icon>refresh</v-icon>
|
|
</v-btn>
|
|
</div>
|
|
</v-flex>
|
|
<v-flex xs12 class="ml-3"><v-divider></v-divider></v-flex>
|
|
<v-flex xs5 class="ml-3"
|
|
><v-text-field
|
|
label="NAMA PASIEN"
|
|
readonly
|
|
v-model="selectedPatient.patientFullname"
|
|
>
|
|
</v-text-field
|
|
></v-flex>
|
|
<v-flex xs5 class="ml-3"
|
|
><v-text-field
|
|
label="JENIS KELAMIN"
|
|
readonly
|
|
v-model="selectedPatient.patientGender"
|
|
></v-text-field
|
|
></v-flex>
|
|
<v-flex xs5 class="ml-3"
|
|
><v-text-field
|
|
label="UMUR"
|
|
readonly
|
|
v-model="selectedPatient.patientAge"
|
|
></v-text-field
|
|
></v-flex>
|
|
<v-flex xs5 class="ml-3"
|
|
><v-text-field
|
|
label="PERUSAHAAN"
|
|
readonly
|
|
v-model="selectedPatient.corporateName"
|
|
></v-text-field
|
|
></v-flex>
|
|
</v-layout>
|
|
</v-flex>
|
|
</v-layout>
|
|
</v-card>
|
|
<v-card
|
|
v-if="patientDetail.detail.length > 0 && !loading && !loadingDetail && !loadingSave"
|
|
class="pa-3 mt-2 fill-height"
|
|
>
|
|
<v-layout v-if="loading || loadingSave ||loadingDetail" row wrap>
|
|
<v-flex xs12>
|
|
<v-progress-linear :indeterminate="true"></v-progress-linear>
|
|
</v-flex>
|
|
</v-layout>
|
|
<v-layout row wrap class="py-2" justify-center>
|
|
<v-flex xs6 align-content-center>
|
|
<div red--text text--lighten-1 class="p-0">
|
|
<v-chip color="primary" text-color="white" label>
|
|
<v-icon left>label</v-icon>RESUME
|
|
</v-chip>
|
|
<v-chip
|
|
@click="openDialogDoctor(patientDetail)"
|
|
label
|
|
color="info"
|
|
outline
|
|
>
|
|
<v-icon left>assignment_ind</v-icon>
|
|
{{ getDoctorName(patientDetail.doctorName) }}
|
|
</v-chip>
|
|
</div>
|
|
<v-spacer></v-spacer>
|
|
</v-flex>
|
|
<v-flex align-content-center text-md-right xs6>
|
|
<v-layout row wrap>
|
|
<v-flex align-content-center text-md-right
|
|
><v-autocomplete
|
|
label="Tipe Print"
|
|
v-model="selectedPrintType"
|
|
:items="printType"
|
|
item-text="name"
|
|
box
|
|
hide-details
|
|
return-object
|
|
no-data-text="Tipe Print"
|
|
>
|
|
</v-autocomplete
|
|
></v-flex>
|
|
<v-flex align-content-center text-md-right shrink>
|
|
<span
|
|
v-if="
|
|
patientDetail.resumeID !== 0 &&
|
|
patientDetail.resumeID !== null
|
|
"
|
|
@click="printTipeFunction()"
|
|
class="icon-medium-fill-base xs1 white--text blue-grey icon-print"
|
|
></span>
|
|
<span
|
|
@click="save()"
|
|
v-if="patientDetail.status === 'NEW'"
|
|
class="icon-medium-fill-base xs1 white--text info icon-save"
|
|
></span>
|
|
<span
|
|
@click="unvalidate()"
|
|
v-if="patientDetail.status === 'VAL'"
|
|
class="icon-medium-fill-base xs1 white--text warning icon-unval"
|
|
></span>
|
|
<!--<v-btn v-if="test.status === 'NEW'" @click="val1(test,'val1')" small color="warning">Verifikasi</v-btn>-->
|
|
<!-- @click="val1(test, 'val')" -->
|
|
<span
|
|
@click="validate()"
|
|
v-if="patientDetail.status === 'NEW'"
|
|
class="icon-medium-fill-base xs1 white--text warning icon-v"
|
|
></span>
|
|
</v-flex>
|
|
</v-layout>
|
|
</v-flex>
|
|
<!-- <v-flex text-md-right>
|
|
|
|
|
|
<span
|
|
v-if="
|
|
patientDetail.resumeID !== 0 && patientDetail.resumeID !== null
|
|
"
|
|
@click="printCover()"
|
|
class="icon-medium-fill-base-small xs1 white--text teal icon-print"
|
|
></span>
|
|
<span
|
|
v-if="
|
|
patientDetail.resumeID !== 0 && patientDetail.resumeID !== null
|
|
"
|
|
@click="printGabungan()"
|
|
class="icon-medium-fill-base-small xs1 white--text light-green icon-print"
|
|
></span>
|
|
<span
|
|
v-if="
|
|
patientDetail.resumeID !== 0 && patientDetail.resumeID !== null
|
|
"
|
|
@click="printGabunganKop()"
|
|
class="icon-medium-fill-base-small xs1 white--text deep-purple icon-print"
|
|
></span>
|
|
<span
|
|
v-if="
|
|
patientDetail.resumeID !== 0 && patientDetail.resumeID !== null
|
|
"
|
|
@click="print2tahun()"
|
|
class="icon-medium-fill-base-small xs1 white--text brown icon-print"
|
|
></span>
|
|
<span
|
|
v-if="
|
|
patientDetail.resumeID !== 0 && patientDetail.resumeID !== null
|
|
"
|
|
@click="printkesimpulansaran()"
|
|
class="icon-medium-fill-base-small xs1 white--text red icon-print"
|
|
></span>
|
|
<span
|
|
v-if="
|
|
patientDetail.resumeID !== 0 && patientDetail.resumeID !== null
|
|
"
|
|
@click="print()"
|
|
class="icon-medium-fill-base-small xs1 white--text blue-grey icon-print"
|
|
></span>
|
|
</v-flex> -->
|
|
</v-layout>
|
|
|
|
<v-divider></v-divider>
|
|
<div></div>
|
|
<v-layout
|
|
row
|
|
wrap
|
|
class="pa-2"
|
|
style="overflow-y: scroll; height: 55vh;"
|
|
>
|
|
<v-flex
|
|
xs12
|
|
class="mb-1 mt-2 font-weight-bold"
|
|
v-if="getTitle('NONLAB')"
|
|
>
|
|
NONLAB
|
|
</v-flex>
|
|
<v-flex xs12 v-for="dtl in patientDetail.detail">
|
|
<v-textarea
|
|
:label="dtl.testName"
|
|
outline
|
|
auto-grow
|
|
rows="1"
|
|
v-if="dtl.category === 'NONLAB'"
|
|
:disabled="disableForm()"
|
|
v-model="dtl.result"
|
|
@input="handleChangeInput(dtl)"
|
|
>
|
|
</v-textarea>
|
|
</v-flex>
|
|
<v-flex
|
|
xs12
|
|
class="mb-1 mt-2 font-weight-bold"
|
|
v-if="getTitle('FISIK')"
|
|
>
|
|
FISIK
|
|
</v-flex>
|
|
<v-flex xs12 v-for="dtl in patientDetail.detail">
|
|
<v-textarea
|
|
:label="dtl.testName"
|
|
auto-grow
|
|
rows="1"
|
|
outline
|
|
v-if="dtl.category === 'FISIK'"
|
|
:disabled="disableForm()"
|
|
v-model="dtl.result"
|
|
@input="handleChangeInput(dtl)"
|
|
>
|
|
</v-textarea>
|
|
</v-flex>
|
|
<v-flex
|
|
xs12
|
|
class="mb-1 mt-2 font-weight-bold"
|
|
v-if="getTitle('LAB')"
|
|
>
|
|
LABORATORIUM
|
|
</v-flex>
|
|
<v-flex xs12 v-for="dtl in patientDetail.detail">
|
|
<v-textarea
|
|
:label="dtl.testName"
|
|
auto-grow
|
|
rows="1"
|
|
outline
|
|
hide-details
|
|
v-if="dtl.category === 'LAB'"
|
|
:disabled="disableForm()"
|
|
v-model="dtl.result"
|
|
@input="handleChangeInput(dtl)"
|
|
>
|
|
</v-textarea>
|
|
<p v-if="dtl.category === 'LAB'" class="mb-4 mt-3 ml-3">
|
|
<span style="font-weight: bold;">{{ dtl.testName }} : </span>
|
|
<!-- {{ dtl.generateKelainan }} -->
|
|
<span v-html="dtl.generateKelainan"></span>
|
|
</p>
|
|
</v-flex>
|
|
<v-flex xs12 class="mb-1 mt-2 font-weight-bold"> KESIMPULAN </v-flex>
|
|
<v-flex xs12>
|
|
<v-textarea
|
|
label="KESIMPULAN"
|
|
v-model="patientDetail.kesimpulan"
|
|
:disabled="disableForm()"
|
|
@input="handleChangeInputHeader(patientDetail)"
|
|
auto-grow
|
|
rows="1"
|
|
box
|
|
></v-textarea>
|
|
</v-flex>
|
|
<v-flex xs12 class="mb-1 mt-2 font-weight-bold">
|
|
KATEGORI FITNESS
|
|
</v-flex>
|
|
<v-flex xs7 class="mb-1 mt-2">
|
|
<v-select
|
|
full-width
|
|
:items="fitnessCategory"
|
|
item-text="name"
|
|
item-value="id"
|
|
class="mini-select"
|
|
:disabled="disableForm()"
|
|
v-model="selectedFitnessCategory"
|
|
box
|
|
label="Kategori Fitness"
|
|
></v-select>
|
|
</v-flex>
|
|
<v-flex xs5 class="mb-1 mt-2 font-weight-bold px-2">
|
|
<v-btn :disabled="disableForm()" color="info" block>Generate</v-btn>
|
|
</v-flex>
|
|
<v-flex xs12 class="mb-1 mt-2 font-weight-bold"> REKOMENDASI </v-flex>
|
|
<v-flex xs12>
|
|
<v-textarea
|
|
v-model="patientDetail.rekomendasi"
|
|
label="REKOMENDASI"
|
|
@input="handleChangeInputHeader(patientDetail)"
|
|
:disabled="disableForm()"
|
|
auto-grow
|
|
rows="1"
|
|
box
|
|
></v-textarea>
|
|
</v-flex>
|
|
<v-flex xs12 class="mb-1 mt-2 font-weight-bold"> SARAN </v-flex>
|
|
<v-flex xs12>
|
|
<v-textarea
|
|
v-model="patientDetail.saran"
|
|
:disabled="disableForm()"
|
|
@input="handleChangeInputHeader(patientDetail)"
|
|
auto-grow
|
|
rows="1"
|
|
label="SARAN"
|
|
box
|
|
></v-textarea>
|
|
</v-flex>
|
|
</v-layout>
|
|
</v-card>
|
|
<v-card
|
|
v-if="patientDetail.detail.length === 0 && !loading && !loadingDetail && !loadingSave"
|
|
class="pa-3 mt-2"
|
|
>
|
|
<v-layout v-if="loading" row wrap>
|
|
<v-flex xs12>
|
|
<v-progress-linear :indeterminate="true"></v-progress-linear>
|
|
</v-flex>
|
|
</v-layout>
|
|
<!-- <p class="display-1 font-weight-bold">Belum ada hasil</p> -->
|
|
<p class="display-1 font-weight-bold text-center">
|
|
Belum ada hasil
|
|
</p>
|
|
</v-card>
|
|
|
|
<v-card
|
|
v-if="patientDetail.detail.length === 0 && (loading || loadingDetail || loadingSave)"
|
|
class="pa-3 mt-2"
|
|
>
|
|
<v-layout v-if="loading || loadingDetail || loadingSave" row wrap>
|
|
<v-flex xs12>
|
|
<v-progress-linear :indeterminate="true"></v-progress-linear>
|
|
</v-flex>
|
|
</v-layout>
|
|
<p class="display-1 font-weight-bold ma-3" style="font-style: italic;">
|
|
Menanti sejenak janganlah gusar, <br />
|
|
Loading sebentar pasti kelar,<br />
|
|
Sabar menunggu, tenang di hati, <br />
|
|
Sebentar lagi akan puas hati!
|
|
</p>
|
|
</v-card>
|
|
<v-card
|
|
v-if="patientDetail.detail.length > 0 && (loading || loadingDetail || loadingSave)"
|
|
class="pa-3 mt-2"
|
|
>
|
|
<v-layout v-if="loading || loadingDetail || loadingSave" row wrap>
|
|
<v-flex xs12>
|
|
<v-progress-linear :indeterminate="true"></v-progress-linear>
|
|
</v-flex>
|
|
</v-layout>
|
|
<p class="display-1 font-weight-bold ma-3" style="font-style: italic;">
|
|
Menanti sejenak janganlah gusar, <br />
|
|
Loading sebentar pasti kelar,<br />
|
|
Sabar menunggu, tenang di hati, <br />
|
|
Sebentar lagi akan puas hati!
|
|
</p>
|
|
</v-card>
|
|
</v-layout>
|
|
<one-dialog-print
|
|
:title="printtitle"
|
|
:width="printwidth"
|
|
:height="500"
|
|
:status="openprint"
|
|
:urlprint="urlprint"
|
|
@close-dialog-print="closePrint"
|
|
></one-dialog-print>
|
|
</div>
|
|
</template>
|
|
<style scoped>
|
|
.searchbox .v-input.v-text-field .v-input__slot {
|
|
min-height: 60px;
|
|
}
|
|
.searchbox .v-btn {
|
|
min-height: 60px;
|
|
}
|
|
table.v-table tbody td,
|
|
table.v-table tbody th {
|
|
height: 40px;
|
|
}
|
|
|
|
table.v-table thead tr {
|
|
height: 40px;
|
|
}
|
|
.scroll-container {
|
|
scroll-padding: 50px 0 0 50px;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 7px;
|
|
}
|
|
|
|
/* this targets the default scrollbar (compulsory) */
|
|
|
|
::-webkit-scrollbar-track {
|
|
background-color: #73baf3;
|
|
}
|
|
|
|
/* the new scrollbar will have a flat appearance with the set background color */
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background-color: #2196f3;
|
|
}
|
|
|
|
/* this will style the thumb, ignoring the track */
|
|
|
|
::-webkit-scrollbar-button {
|
|
background-color: #0079da;
|
|
}
|
|
|
|
/* optionally, you can style the top and the bottom buttons (left and right for horizontal bars) */
|
|
|
|
::-webkit-scrollbar-corner {
|
|
background-color: black;
|
|
}
|
|
</style>
|
|
<script>
|
|
// const { data } = require("./onePriceHeader.vue");
|
|
|
|
module.exports = {
|
|
components: {
|
|
"one-dialog-print": httpVueLoader("../../common/oneDialogPrintX.vue"),
|
|
},
|
|
mounted() {},
|
|
methods: {
|
|
closePrint() {
|
|
this.openprint = false;
|
|
},
|
|
reloadDetail() {
|
|
this.$store.dispatch("resume/getdetail");
|
|
},
|
|
printTipeFunction() {
|
|
// {
|
|
// name: "Hasil Resume Individu",
|
|
// reportName: "resume",
|
|
// },
|
|
// {
|
|
// name: "Kesimpulan dan Saran",
|
|
// reportName: "kesimpulandansaran",
|
|
// },
|
|
// {
|
|
// name: "Kesimpulan dan Saran 2 Tahun Logo",
|
|
// reportName: "kesimpulandansaran2logo",
|
|
// },
|
|
// {
|
|
// name: "Kesimpulan dan Saran 2 Tahun",
|
|
// reportName: "kesimpulandansaran2",
|
|
// },
|
|
// {
|
|
// name: "Gabungan Logo",
|
|
// reportName: "gabunganlogo",
|
|
// },
|
|
// {
|
|
// name: "Gabungan",
|
|
// reportName: "gabungan",
|
|
// },
|
|
// {
|
|
// name: "Gabungan 2 Tahun Logo",
|
|
// reportName: "gabungan2logo",
|
|
// },
|
|
// {
|
|
// name: "Gabungan 2 Tahun",
|
|
// reportName: "gabungan2",
|
|
// },
|
|
// {
|
|
// name: "Cover",
|
|
// reportName: "cover",
|
|
// },
|
|
let user = one_user();
|
|
var d = new Date();
|
|
var n = d.getTime();
|
|
|
|
//cover
|
|
this.printtitle = this.selectedPrintType.name;
|
|
if (this.selectedPrintType.reportName === "cover") {
|
|
let rptname = "rpt_mcu_resume_cover";
|
|
this.urlprint =
|
|
"/birt/run?__report=report/one/mcu/" +
|
|
rptname +
|
|
".rptdesign&__format=pdf&username=" +
|
|
user.M_StaffName +
|
|
"&PID=" +
|
|
this.patientDetail.resumeID +
|
|
"&tm=" +
|
|
n;
|
|
} else if (this.selectedPrintType.reportName === "kesimpulandansaran") {
|
|
let rptname = "rpt_mcu_saran_kesimpulan_v2";
|
|
this.urlprint =
|
|
"/birt/run?__report=report/one/mcu/" +
|
|
rptname +
|
|
".rptdesign&__format=pdf&username=" +
|
|
user.M_StaffName +
|
|
"&PID=" +
|
|
this.patientDetail.resumeID +
|
|
"&tm=" +
|
|
n;
|
|
} else if (
|
|
this.selectedPrintType.reportName === "kesimpulandansaran2logo"
|
|
) {
|
|
// https://devcpone.aplikasi.web.id/birt/frameset?__report=report/one/mcu/rpt_mcu_saran_kesimpulan_portal.rptdesign&__format=pdf&username=admin&PID=6&tm=240805134257
|
|
let rptname = "rpt_mcu_saran_kesimpulan_portal";
|
|
this.urlprint =
|
|
"/birt/run?__report=report/one/mcu/" +
|
|
rptname +
|
|
".rptdesign&__format=pdf&username=" +
|
|
user.M_StaffName +
|
|
"&PID=" +
|
|
this.patientDetail.resumeID +
|
|
"&tm=" +
|
|
n;
|
|
} else if (
|
|
this.selectedPrintType.reportName === "kesimpulandansaran2"
|
|
) {
|
|
let rptname = "rpt_mcu_saran_kesimpulan";
|
|
this.urlprint =
|
|
"/birt/run?__report=report/one/mcu/" +
|
|
rptname +
|
|
".rptdesign&__format=pdf&username=" +
|
|
user.M_StaffName +
|
|
"&PID=" +
|
|
this.patientDetail.resumeID +
|
|
"&tm=" +
|
|
n;
|
|
} else if (this.selectedPrintType.reportName === "resume") {
|
|
let rptname = "rpt_mcu_resume";
|
|
this.urlprint =
|
|
"/birt/run?__report=report/one/mcu/" +
|
|
rptname +
|
|
".rptdesign&__format=pdf&username=" +
|
|
user.M_StaffName +
|
|
"&PID=" +
|
|
this.patientDetail.resumeID +
|
|
"&tm=" +
|
|
n;
|
|
} else if (this.selectedPrintType.reportName === "gabunganlogo") {
|
|
// https://cpone.aplikasi.web.id/one-api/tools/listrptpatienttahunanportal/get_list_patient_rpt/322
|
|
this.urlprint =
|
|
"/one-api/tools/listrptpatienttahunanportal/get_list_patient_rpt/" +
|
|
this.selectedPatient.orderID +
|
|
"/" +
|
|
n;
|
|
} else if (this.selectedPrintType.reportName === "gabungan") {
|
|
// https://cpone.aplikasi.web.id/one-api/tools/listrptpatienttahunan/get_list_patient_rpt/322
|
|
this.urlprint =
|
|
"/one-api/tools/listrptpatienttahunan/get_list_patient_rpt/" +
|
|
this.selectedPatient.orderID +
|
|
"/" +
|
|
n;
|
|
} else if (
|
|
this.selectedPrintType.reportName === "gabunganlogotanpakesimpulan"
|
|
) {
|
|
// https://cpone.aplikasi.web.id/one-api/tools/listrptpatienttahunanportal/get_list_patient_rpt/322
|
|
this.urlprint =
|
|
"/one-api/tools/listrptpatienttahunanportal/get_list_patient_rpt/" +
|
|
this.selectedPatient.orderID +
|
|
"/" +
|
|
n +
|
|
"/Y";
|
|
} else if (
|
|
this.selectedPrintType.reportName === "gabungantanpakesimpulan"
|
|
) {
|
|
// https://cpone.aplikasi.web.id/one-api/tools/listrptpatienttahunan/get_list_patient_rpt/322
|
|
this.urlprint =
|
|
"/one-api/tools/listrptpatienttahunan/get_list_patient_rpt/" +
|
|
this.selectedPatient.orderID +
|
|
"/" +
|
|
n +
|
|
"/Y";
|
|
} else if (this.selectedPrintType.reportName === "gabungan2logo") {
|
|
this.urlprint =
|
|
"/one-api/tools/listrptpatientportal/get_list_patient_rpt/" +
|
|
this.selectedPatient.orderID +
|
|
"/" +
|
|
n;
|
|
} else if (this.selectedPrintType.reportName === "gabungan2") {
|
|
this.urlprint =
|
|
"/one-api/tools/listrptpatient/get_list_patient_rpt/" +
|
|
this.selectedPatient.orderID +
|
|
"/" +
|
|
n;
|
|
}
|
|
this.openprint = true;
|
|
},
|
|
print() {
|
|
let user = one_user();
|
|
var d = new Date();
|
|
var n = d.getTime();
|
|
// https://devcpone.aplikasi.web.id/birt/run?__report=report/one/rekap/rpt_list_handover_001.rptdesign&__format=pdf&PID=4&username=joko@gmail.com&tm=1722401933188
|
|
let rptname = "rpt_mcu_resume";
|
|
this.urlprint =
|
|
"/birt/run?__report=report/one/mcu/" +
|
|
rptname +
|
|
".rptdesign&__format=pdf&username=" +
|
|
user.M_StaffName +
|
|
"&PID=" +
|
|
this.patientDetail.resumeID +
|
|
"&tm=" +
|
|
n;
|
|
this.openprint = true;
|
|
},
|
|
print2tahun() {
|
|
let user = one_user();
|
|
var d = new Date();
|
|
var n = d.getTime();
|
|
//devcpone.aplikasi.web.id/birt/run?__report=report/one/mcu/rpt_mcu_resume.rptdesign&__format=pdf&PID=1&username=adhi&tm=1717726294764
|
|
let rptname = "rpt_mcu_saran_kesimpulan";
|
|
this.urlprint =
|
|
"/birt/run?__report=report/one/mcu/" +
|
|
rptname +
|
|
".rptdesign&__format=pdf&username=" +
|
|
user.M_StaffName +
|
|
"&PID=" +
|
|
this.patientDetail.resumeID +
|
|
"&tm=" +
|
|
n;
|
|
this.openprint = true;
|
|
},
|
|
printkesimpulansaran() {
|
|
let user = one_user();
|
|
var d = new Date();
|
|
var n = d.getTime();
|
|
//devcpone.aplikasi.web.id/birt/run?__report=report/one/mcu/rpt_mcu_saran_kesimpulan_v2.rptdesign&__format=pdf&PID=1&username=adhi&tm=1717726294764
|
|
let rptname = "rpt_mcu_saran_kesimpulan_v2";
|
|
this.urlprint =
|
|
"/birt/run?__report=report/one/mcu/" +
|
|
rptname +
|
|
".rptdesign&__format=pdf&username=" +
|
|
user.M_StaffName +
|
|
"&PID=" +
|
|
this.patientDetail.resumeID +
|
|
"&tm=" +
|
|
n;
|
|
this.openprint = true;
|
|
},
|
|
printCover() {
|
|
let user = one_user();
|
|
var d = new Date();
|
|
var n = d.getTime();
|
|
//devcpone.aplikasi.web.id/birt/run?__report=report/one/mcu/rpt_mcu_resume.rptdesign&__format=pdf&PID=1&username=adhi&tm=1717726294764
|
|
let rptname = "rpt_mcu_resume_cover";
|
|
this.urlprint =
|
|
"/birt/run?__report=report/one/mcu/" +
|
|
rptname +
|
|
".rptdesign&__format=pdf&username=" +
|
|
user.M_StaffName +
|
|
"&PID=" +
|
|
this.patientDetail.resumeID +
|
|
"&tm=" +
|
|
n;
|
|
this.openprint = true;
|
|
},
|
|
printGabungan() {
|
|
let user = one_user();
|
|
var d = new Date();
|
|
var n = d.getTime();
|
|
//https://cpone.aplikasi.web.id/one-api/tools/listrptpatient/get_list_patient_rpt/322sss
|
|
let rptname = "rpt_mcu_resume_cover";
|
|
|
|
this.urlprint =
|
|
"/one-api/tools/listrptpatient/get_list_patient_rpt/" +
|
|
this.selectedPatient.orderID;
|
|
this.openprint = true;
|
|
},
|
|
printGabunganKop() {
|
|
let user = one_user();
|
|
var d = new Date();
|
|
var n = d.getTime();
|
|
// https://cpone.aplikasi.web.id/one-api/tools/listrptpatientportal/get_list_patient_rpt/322
|
|
//https://cpone.aplikasi.web.id/one-api/tools/listrptpatient/get_list_patient_rpt/322sss
|
|
let rptname = "rpt_mcu_resume_cover";
|
|
this.urlprint =
|
|
"/one-api/tools/listrptpatientportal/get_list_patient_rpt/" +
|
|
this.selectedPatient.orderID;
|
|
this.openprint = true;
|
|
},
|
|
saveDoctor() {
|
|
// let dctr = {};
|
|
// this.searchDoctor = "";
|
|
// this.selectedDoctor = dctr;
|
|
// this.dialogDoctor = false;
|
|
|
|
this.$store.dispatch("resume/savedoctor", {
|
|
id: this.patientDetail.orderID,
|
|
doctorid: this.selectedDoctor.doctorID,
|
|
});
|
|
},
|
|
getTitle(title) {
|
|
let rtn = false;
|
|
for (let i = 0; i < this.patientDetail.detail.length; i++) {
|
|
if (
|
|
this.patientDetail.detail[i]["category"].toLowerCase() ===
|
|
title.toLowerCase()
|
|
) {
|
|
rtn = true;
|
|
}
|
|
}
|
|
return rtn;
|
|
},
|
|
disableForm() {
|
|
let disable = false;
|
|
if (
|
|
this.patientDetail.status.toLowerCase() !== "new" ||
|
|
this.loading ||
|
|
this.loadingDetail ||
|
|
this.loadingSave
|
|
) {
|
|
disable = true;
|
|
}
|
|
return disable;
|
|
},
|
|
save() {
|
|
if (this.loading || this.loadingSave || this.loadingDetail) return;
|
|
let cekLab = false;
|
|
this.patientDetail.detail.forEach((e) => {
|
|
if (
|
|
e.category == "LAB" &&
|
|
e.generateKelainan.includes("belum ada hasil")
|
|
) {
|
|
cekLab = true;
|
|
}
|
|
});
|
|
let text = "Apakah anda yakin menyimpan resume individu ini ?";
|
|
if (cekLab) {
|
|
text =
|
|
"Ada pemeriksaan lab yang belum memiliki hasil, apakah anda yakin menyimpan data ? \n\n*untuk generate ulang hasil lab saat hasil sudah ada silahkan kosongkan inputnya";
|
|
}
|
|
if (!confirm(text)) {
|
|
return;
|
|
}
|
|
|
|
let data = this.selectedPatient;
|
|
data.header = this.patientDetail;
|
|
data.detail = this.patientDetail.detail;
|
|
data.kesimpulan = this.kesimpulan;
|
|
data.rekomendasi = this.rekomendasi;
|
|
data.saran = this.saran;
|
|
data.act = "NEW";
|
|
let prm = {
|
|
data: data,
|
|
};
|
|
console.log(prm);
|
|
// return;
|
|
this.$store.dispatch("resume/save", prm);
|
|
},
|
|
validate() {
|
|
if (this.loading || this.loadingSave || this.loadingDetail) return;
|
|
if (
|
|
this.patientDetail.resumeDoctorID === "0" ||
|
|
this.patientDetail.resumeDoctorID === 0 ||
|
|
this.patientDetail.resumeDoctorID === "" ||
|
|
this.patientDetail.resumeDoctorID === null
|
|
) {
|
|
alert("Pilih dokter terlebih dahulu");
|
|
return;
|
|
}
|
|
let cekLab = false;
|
|
this.patientDetail.detail.forEach((e) => {
|
|
if (
|
|
e.category == "LAB" &&
|
|
e.generateKelainan.includes("belum ada hasil")
|
|
) {
|
|
cekLab = true;
|
|
}
|
|
});
|
|
let text = "Apakah anda yakin validasi resume individu ini ?";
|
|
if (cekLab) {
|
|
text =
|
|
"Ada pemeriksaan lab yang belum memiliki hasil, apakah anda yakin validasi data ?\n\n*untuk generate ulang hasil lab saat hasil sudah ada silahkan kosongkan inputnya";
|
|
}
|
|
if (!confirm(text)) {
|
|
return;
|
|
}
|
|
let data = this.selectedPatient;
|
|
|
|
data.header = this.patientDetail;
|
|
data.detail = this.patientDetail.detail;
|
|
data.kesimpulan = this.kesimpulan;
|
|
data.rekomendasi = this.rekomendasi;
|
|
data.saran = this.saran;
|
|
data.act = "VAL";
|
|
let prm = {
|
|
data: data,
|
|
};
|
|
console.log(prm);
|
|
this.$store.dispatch("resume/save", prm);
|
|
},
|
|
unvalidate() {
|
|
if (this.loading || this.loadingSave || this.loadingDetail) return;
|
|
|
|
let data = this.selectedPatient;
|
|
data.header = this.patientDetail;
|
|
data.detail = this.patientDetail.detail;
|
|
data.kesimpulan = this.kesimpulan;
|
|
data.rekomendasi = this.rekomendasi;
|
|
data.saran = this.saran;
|
|
data.act = "UNVAL";
|
|
let prm = {
|
|
data: data,
|
|
};
|
|
console.log(prm);
|
|
this.$store.dispatch("resume/save", prm);
|
|
},
|
|
getDoctorName(name) {
|
|
console.log(name);
|
|
console.log("Name");
|
|
let nm = name;
|
|
if (name === null || name === "") {
|
|
nm = "Pilih Dokter";
|
|
}
|
|
return nm;
|
|
},
|
|
openDialogDoctor(val) {
|
|
if (this.loading || this.loadingSave || this.loadingDetail) return;
|
|
if (val["status"] !== "NEW") return;
|
|
console.log(val);
|
|
this.selectedDoctrorTest = val;
|
|
let dctr = {
|
|
M_DoctorID: val.doctorID,
|
|
doctorID: val.doctordoctorIDName,
|
|
M_DoctorPrefix: "",
|
|
M_DoctorPrefix2: "",
|
|
M_DoctorName: "",
|
|
M_DoctorSuffix: "",
|
|
M_DoctorSuffix2: "",
|
|
M_DoctorCode: "",
|
|
doctorName: val.doctorName,
|
|
};
|
|
this.searchDoctor = val.doctorName;
|
|
this.selectedDoctor = dctr;
|
|
this.dialogDoctor = true;
|
|
},
|
|
closeDialogDoctor() {
|
|
this.selectedDoctrorTest = {};
|
|
let dctr = {};
|
|
this.searchDoctor = "";
|
|
this.selectedDoctor = dctr;
|
|
this.dialogDoctor = false;
|
|
},
|
|
resetInput() {
|
|
this.$store.commit("resume/reset_input");
|
|
},
|
|
handleChangeInput(data) {
|
|
// console.log(data);
|
|
let pd = this.patientDetail;
|
|
pd.detail.forEach((e) => {
|
|
if (e.detailOrderID === data.detailOrderID) {
|
|
e = data;
|
|
}
|
|
});
|
|
this.patientDetail = pd;
|
|
},
|
|
handleChangeInputHeader(data) {
|
|
// console.log(data);
|
|
let pd = this.patientDetail;
|
|
pd.kesimpulan = data.kesimpulan;
|
|
pd.rekomendasi = data.rekomendasi;
|
|
pd.saran = data.saran;
|
|
this.patientDetail = pd;
|
|
},
|
|
thr_search_doctor: _.debounce(function () {
|
|
prm = {
|
|
search: this.searchDoctor,
|
|
};
|
|
this.$store.dispatch("resume/getdoctorlist", prm);
|
|
}, 100),
|
|
},
|
|
computed: {
|
|
selectedFitnessCategory: {
|
|
get() {
|
|
return this.$store.state.resume.selectedFitnessCategory;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_selectedFitnessCategory", val);
|
|
},
|
|
},
|
|
fitnessCategory: {
|
|
get() {
|
|
return this.$store.state.resume.fitnessCategory;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_fitnessCategory", val);
|
|
},
|
|
},
|
|
selectedPatient: {
|
|
get() {
|
|
return this.$store.state.resume.selectedPatient;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_selectedPatient", val);
|
|
},
|
|
},
|
|
loading: {
|
|
get() {
|
|
return this.$store.state.resume.loading;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_loading", val);
|
|
},
|
|
},
|
|
loadingSave: {
|
|
get() {
|
|
return this.$store.state.resume.loadingSave;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_loadingSave", val);
|
|
},
|
|
},
|
|
loadingDetail: {
|
|
get() {
|
|
return this.$store.state.resume.loadingDetail;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_loadingDetail", val);
|
|
},
|
|
},
|
|
patientDetail: {
|
|
get() {
|
|
return this.$store.state.resume.patientDetail;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_patientDetail", val);
|
|
},
|
|
},
|
|
// rekomendasi: "",
|
|
// saran: "",
|
|
// kesimpulan: "",
|
|
rekomendasi: {
|
|
get() {
|
|
return this.$store.state.resume.rekomendasi;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_rekomendasi", val);
|
|
},
|
|
},
|
|
saran: {
|
|
get() {
|
|
return this.$store.state.resume.saran;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_saran", val);
|
|
},
|
|
},
|
|
kesimpulan: {
|
|
get() {
|
|
return this.$store.state.resume.kesimpulan;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_kesimpulan", val);
|
|
},
|
|
},
|
|
doctorList() {
|
|
return this.$store.state.resume.doctorList;
|
|
},
|
|
selectedDoctor: {
|
|
get() {
|
|
return this.$store.state.resume.selectedDoctor;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_selectedDoctor", val);
|
|
},
|
|
},
|
|
searchDoctor: {
|
|
get() {
|
|
return this.$store.state.resume.searchDoctor;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_searchDoctor", val);
|
|
},
|
|
},
|
|
dialogDoctor: {
|
|
get() {
|
|
return this.$store.state.resume.dialogDoctor;
|
|
},
|
|
set(val) {
|
|
this.$store.commit("resume/update_dialogDoctor", val);
|
|
},
|
|
},
|
|
},
|
|
watch: {
|
|
searchDoctor(val, old) {
|
|
console.log(val);
|
|
if (val == old) return;
|
|
if (!val) return;
|
|
if (val.length < 1) return;
|
|
if (this.selectedDoctor.M_DoctorName == val) return;
|
|
this.thr_search_doctor();
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
printtitle: "",
|
|
printwidth: "80%",
|
|
openprint: false,
|
|
urlprint: "",
|
|
printType: [
|
|
{
|
|
name: "Hasil Resume Individu",
|
|
reportName: "resume",
|
|
},
|
|
{
|
|
name: "Kesimpulan dan Saran",
|
|
reportName: "kesimpulandansaran",
|
|
},
|
|
{
|
|
name: "Kesimpulan dan Saran 2 Tahun Logo",
|
|
reportName: "kesimpulandansaran2logo",
|
|
},
|
|
{
|
|
name: "Kesimpulan dan Saran 2 Tahun",
|
|
reportName: "kesimpulandansaran2",
|
|
},
|
|
{
|
|
name: "Gabungan Logo",
|
|
reportName: "gabunganlogo",
|
|
},
|
|
{
|
|
name: "Gabungan",
|
|
reportName: "gabungan",
|
|
},
|
|
{
|
|
name: "Gabungan Logo Tanpa Kesimpulan",
|
|
reportName: "gabunganlogotanpakesimpulan",
|
|
},
|
|
{
|
|
name: "Gabungan Tanpa Kesimpulan",
|
|
reportName: "gabungantanpakesimpulan",
|
|
},
|
|
{
|
|
name: "Gabungan 2 Tahun Logo",
|
|
reportName: "gabungan2logo",
|
|
},
|
|
{
|
|
name: "Gabungan 2 Tahun",
|
|
reportName: "gabungan2",
|
|
},
|
|
{
|
|
name: "Cover",
|
|
reportName: "cover",
|
|
},
|
|
],
|
|
selectedPrintType: {
|
|
name: "Cover",
|
|
reportName: "cover",
|
|
},
|
|
headers: [
|
|
{
|
|
text: "STATUS",
|
|
align: "center",
|
|
sortable: false,
|
|
value: "lab",
|
|
width: "10%",
|
|
class: "pa-2 blue darken-2 white--text",
|
|
},
|
|
{
|
|
text: "TEST",
|
|
align: "center",
|
|
sortable: false,
|
|
value: "lab",
|
|
width: "25%",
|
|
class: "pa-2 blue darken-2 white--text",
|
|
},
|
|
{
|
|
text: "AMOUNT",
|
|
align: "center",
|
|
sortable: false,
|
|
value: "lab",
|
|
width: "15%",
|
|
class: "pa-2 blue darken-2 white--text",
|
|
},
|
|
{
|
|
text: "DISKON",
|
|
align: "center",
|
|
sortable: false,
|
|
value: "name",
|
|
width: "15%",
|
|
class: "pa-2 blue darken-2 white--text",
|
|
},
|
|
{
|
|
text: "DISKON RP",
|
|
align: "center",
|
|
sortable: false,
|
|
value: "name",
|
|
width: "15%",
|
|
class: "pa-2 blue darken-2 white--text",
|
|
},
|
|
{
|
|
text: "TOTAL",
|
|
align: "center",
|
|
sortable: false,
|
|
value: "status",
|
|
width: "20%",
|
|
class: "pa-2 blue darken-2 white--text",
|
|
},
|
|
],
|
|
};
|
|
},
|
|
};
|
|
</script>
|