1 Commits

Author SHA1 Message Date
2e6a43436c feature slicing elektromedis patient handling 2024-12-12 14:49:12 +07:00
14 changed files with 720 additions and 755 deletions

View File

@@ -0,0 +1,133 @@
<template>
<div>
<v-container class="bg-white rounded-lg" fluid>
<v-row>
<v-col cols="2.2">
<v-menu
v-model="menu"
:close-on-content-click="false"
transition="scale-transition"
offset-y
min-width="auto"
max-width="290px"
>
<template v-slot:activator="{ props }">
<v-text-field
:model-value="formatDate()"
:label="$t('message.filter.date')"
prepend-inner-icon="mdi-calendar"
hide-details
readonly
variant="outlined"
v-bind="props"
></v-text-field>
</template>
<v-date-picker
hide-header
show-adjacent-months
rounded="lg"
color="primary"
v-model="date"
@update:modelValue="menu=false"
></v-date-picker>
</v-menu>
</v-col>
<v-col cols="2.2">
<v-text-field
:label="$t('message.filter.noreg')"
variant="outlined"
hide-details
append-inner-icon="mdi-magnify"
></v-text-field>
</v-col>
<v-col cols="2.2">
<v-autocomplete
:label="$t('message.filter.group')"
variant="outlined"
hide-details
menu-icon="mdi-chevron-down"
:items="temp_dropdown"
></v-autocomplete>
</v-col>
<v-col cols="2.2">
<v-autocomplete
:label="$t('message.filter.station')"
variant="outlined"
hide-details
menu-icon="mdi-chevron-down"
:items="temp_dropdown"
></v-autocomplete>
</v-col>
<v-col cols="2.2">
<v-autocomplete
:label="$t('message.filter.station')"
variant="outlined"
hide-details
menu-icon="mdi-chevron-down"
:items="temp_dropdown"
></v-autocomplete>
</v-col>
<v-col cols="1">
<div
style="height: 100%; display: flex; align-items: center; justify-content: center;"
class="rounded-lg bg-primary pa-2 h-100 pointer"
>
<iconify-icon
style="font-size: 2rem;"
icon="fluent:search-20-regular"
></iconify-icon>
</div>
</v-col>
</v-row>
</v-container>
</div>
</template>
<script>
export default {
name: "filtercomp",
components: {},
mounted() {
},
data() {
return {
menu: false,
visible: false,
};
},
computed: {
date: {
get() {
return this.$store.state.patient.date;
},
set(val) {
this.$store.commit("setDate", val);
}
},
temp_dropdown: {
get() {
return this.$store.state.patient.temp_dropdown;
},
}
},
methods: {
formatDate() {
if (!this.date) return null;
return moment(this.date).format("DD-MM-YYYY");
},
deFormatedDate(date) {
if (!date) return null;
const [day, month, year] = date.split("-");
return `${year}-${month.padStart(2, "0")}-${day.padStart(2, "0")}`;
}
},
};
</script>
<style scoped>
.pointer {
cursor: pointer;
}
</style>

View File

@@ -0,0 +1,132 @@
<template>
<div>
<v-container class="bg-white rounded-lg" fluid>
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
<h3 class="primary-lighten">{{ $t('message.tablePatient.title') }}</h3>
</div>
<v-data-table
v-model="selected_patients"
:items="patients"
:headers="headers"
hide-default-footer
class="row-pointer"
>
<template v-slot:headers="{ columns }">
<tr>
<template v-for="column in columns" :key="column.key">
<td :class="column.class" :style="{ width: column.width, textAlign: column.align }">
<span>{{ column.title }}</span>
</td>
</template>
</tr>
</template>
<template v-slot:item="{ item }">
<tr @click="selectItem(item)" v-bind:class="{'bg-primary-lighten':isItemSelected(item)}">
<td>
<p class="font-weight-medium">{{ item.tanggal }}</p>
</td>
<td>
<p class="font-weight-medium">{{ item.noreg }}</p>
</td>
<td>
<p class="font-weight-medium">{{ item.kelpelanggan }}</p>
</td>
<td>
<p class="font-weight-medium">{{ item.nama }}</p>
</td>
<td>
<p class="font-weight-medium">{{ item.status }}</p>
</td>
</tr>
</template>
</v-data-table>
</v-container>
</div>
</template>
<script>
export default {
name: "leftcomp",
components: {},
mounted() {
},
data() {
return {
menu: false,
visible: false,
selectedItems: [],
headers: [
{
title: this.$t('message.tablePatient.date'),
align: "start",
sortable: false,
key: "date",
width: "15%",
class: "font-weight-bold",
},
{
title: this.$t('message.tablePatient.noreg'),
align: "start",
sortable: false,
key: "noreg",
width: "20%",
class: "font-weight-bold",
},
{
title: this.$t('message.tablePatient.group'),
align: "start",
sortable: false,
key: "group",
width: "25%",
class: "font-weight-bold",
},
{
title: this.$t('message.tablePatient.name'),
align: "start",
sortable: false,
key: "name",
width: "25%",
class: "font-weight-bold",
},
{
title: this.$t('message.tablePatient.status'),
align: "start",
sortable: false,
key: "status",
width: "15%",
class: "font-weight-bold",
},
],
};
},
computed: {
patients() {
return this.$store.state.patient.patients;
},
selected_patients: {
get() {
return this.$store.state.patient.selected_patients;
},
set(data) {
this.$store.commit("setSelectedPatients", data);
}
}
},
methods: {
selectItem(data) {
// this.$store.commit("setSelectedPatients", data);
this.selected_patients = data;
},
isItemSelected(data) {
return data.noreg === this.$store.state.patient.selected_patients.noreg
}
},
};
</script>
<style scoped>
.row-pointer >>> tbody tr :hover {
cursor: pointer;
}
</style>

View File

@@ -0,0 +1,46 @@
<template>
<v-app id="inspire">
<one-navbar></one-navbar>
<v-main>
<div class="pa-5 bg-primary-lighten ml-2 rounded-xl h-100">
<one-filter></one-filter>
<v-row>
<v-col cols="12" md="6" sm="12" xs="12" class="mt-5">
<one-left></one-left>
</v-col>
<v-col cols="12" md="6" sm="12" xs="12" class="mt-5">
<one-right></one-right>
</v-col>
</v-row>
</div>
</v-main>
</v-app>
</template>
<script type="module">
import NavbarComponent from "../../globalcomponent/one-navbar.vue";
import FilterComponent from "./filter.vue";
import LeftComponent from "./left.vue";
import RightComponent from "./right.vue";
export default {
name: "patient handling",
components: {
"one-navbar": NavbarComponent,
"one-filter": FilterComponent,
"one-left": LeftComponent,
"one-right": RightComponent,
},
mounted() {},
data() {
return {
visible: false,
};
},
computed: {
},
methods: {
},
};
</script>

View File

@@ -0,0 +1,275 @@
<template>
<div>
<v-container class="bg-white rounded-lg" fluid>
<div class="bg-primary-lighten rounded-lg pa-5">
<v-row>
<v-col cols="2">
<div class="rounded-lg bg-secondary-lighten" style="width: 100%; height: 120px;">
<!-- placeholder photo -->
</div>
</v-col>
<v-col cols="8">
<h4>{{ selected.noreg }}</h4>
<h4 class="text-grey-darken-1">{{ selected.nama }}</h4>
</v-col>
<v-col cols="2" align-self="center" class="d-flex justify-end">
<div
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
class="rounded-lg pa-2 mr-2 bg-grey-lighten-5 pointer"
v-show="selected.status === 'Call'"
>
<iconify-icon
class="text-grey"
style="font-size: 1.5rem;"
icon="fluent:arrow-previous-24-regular"
></iconify-icon>
</div>
<div
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
class="rounded-lg bg-secondary-lighten pa-2 pointer"
@click="setCall(selected)"
v-show="selected.doneCall !== 'Y'"
>
<iconify-icon
class="text-secondary-darken"
style="font-size: 1.5rem;"
:icon="setIconCall(selected.status)"
></iconify-icon>
</div>
</v-col>
</v-row>
<v-row>
<v-col cols="10">
<p class="font-weight-medium">PID</p>
</v-col>
<v-col cols="2" class="text-end">
<p class="font-weight-medium" style="color: slategray;">-</p>
</v-col>
</v-row>
<v-row no-gutters>
<v-col cols="4">
<p class="font-weight-medium">{{ $t('message.dobage') }}</p>
</v-col>
<v-col cols="4" class="text-end">
<p class="font-weight-medium" style="color: slategray;">{{ selected.dob }}</p>
</v-col>
<v-col cols="4" class="text-end">
<p class="font-weight-medium" style="color: slategray;">{{ selected.age }}</p>
</v-col>
</v-row>
</div>
</v-container>
<v-container class="bg-white rounded-lg mt-5" fluid>
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
<v-row>
<v-col cols="10" align-self="center">
<h3 class="primary-lighten">{{ $t('message.tableDetail.title') }}: {{ details.staff }}</h3>
</v-col>
<v-col cols="2" align-self="center" class="d-flex justify-end">
<div
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center;"
class="rounded-lg bg-primary-lighten pa-2 pointer"
>
<iconify-icon
class="text-primary-darken"
style="font-size: 1.5rem;"
icon="fluent:note-add-24-regular"
></iconify-icon>
</div>
<div
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center;"
class="rounded-lg bg-success-lighten pa-2 ml-2 pointer"
>
<iconify-icon
class="text-success-darken"
style="font-size: 1.5rem;"
icon="fluent:notepad-person-24-regular"
></iconify-icon>
</div>
</v-col>
</v-row>
</div>
<v-data-table
:items="details.handling"
:headers="headers"
hide-default-footer
>
<template v-slot:headers="{ columns }">
<tr>
<template v-for="column in columns" :key="column.key">
<td :class="column.class" :style="{ width: column.width, textAlign: column.align }">
<span>{{ column.title }}</span>
</td>
</template>
</tr>
</template>
<template v-slot:item="{ item }">
<tr>
<td>
<p class="font-weight-medium">{{ item.handling }}</p>
</td>
<td>
<p class="font-weight-medium">{{ item.barcode }}</p>
</td>
<td align="center">
<div
style="display: flex; align-items: center; justify-content: center;"
class="rounded-lg pa-2"
v-if="selected.doneCall === 'Y'"
>
<div
class="pointer"
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center;"
>
<iconify-icon
:class="{'text-error': item.requirement === 'N'}"
style="font-size: 1.5rem;"
icon="fluent:dismiss-12-filled"
@click="setReq(item, 'N')"
></iconify-icon>
</div>
<div
class="pointer"
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center; margin-left: 8px;"
>
<iconify-icon
:class="{'text-success': item.requirement === 'Y'}"
style="font-size: 2rem;"
icon="fluent:checkmark-12-filled"
@click="setReq(item, 'Y')"
></iconify-icon>
</div>
</div>
<p v-else style="font-size: 1.5rem;">-</p>
</td>
<td align="center">
<div v-if="selected.doneCall === 'Y'" class="py-1">
<div class="bg-warning rounded-lg pa-1 text-white">
{{ formatDate(item.sDate) }}
</div>
<div :class="['rounded-lg rounded-lg pa-1 mt-1', { 'bg-grey-lighten-5': !item.eDate, 'bg-success': item.eDate }]">
{{ item.eDate === "" ? '00-00-0000 00:00': formatDate(item.eDate) }}
</div>
</div>
<p v-else style="font-size: 1.5rem;">-</p>
</td>
</tr>
</template>
</v-data-table>
<div class="ml-3">
<v-chip v-for="y in details.jenis" class="mr-2 mt-2" :color="selected.doneCall === 'Y' ? 'success' : 'primary'">{{ y }}</v-chip>
</div>
</v-container>
<v-container class="bg-white rounded-lg mt-5" fluid>
<div class="bg-secondary-lighten rounded-lg pa-5">
<h3 class="primary-lighten">{{ $t('message.examination') }}</h3>
</div>
<div>
<v-chip v-for="x in pemeriksaan" class="mt-5 mr-2" color="primary">{{ x }}</v-chip>
</div>
</v-container>
</div>
</template>
<script>
export default {
name: "rightcomp",
components: {
},
mounted() {},
data() {
return {
menu: false,
visible: false,
headers: [
{
title: this.$t('message.tableDetail.speciment'),
align: "start",
sortable: false,
key: "name",
width: "20%",
class: "font-weight-bold",
},
{
title: this.$t('message.tableDetail.barcode'),
align: "start",
sortable: false,
key: "name",
width: "20%",
class: "font-weight-bold",
},
{
title: this.$t('message.tableDetail.requirement'),
align: "center",
sortable: false,
key: "name",
width: "20%",
class: "font-weight-bold",
},
{
title: this.$t('message.tableDetail.action'),
align: "center",
sortable: false,
key: "name",
width: "20%",
class: "font-weight-bold",
},
],
};
},
computed: {
selected: {
get() {
return this.$store.state.patient.selected_patients;
},
set(data) {
this.$store.commit("setSelectedPatients", data);
}
},
details: {
get() {
return this.$store.state.patient.details;
},
set(data) {
this.$store.commit("")
}
},
pemeriksaan() {
return this.$store.state.patient.pemeriksaan;
}
},
methods: {
setIconCall(status) {
switch (status.toLowerCase()) {
case "call":
return "fluent:arrow-sync-24-regular";
default:
return "fluent:speaker-2-24-regular";
}
},
setCall(data) {
if (data.status == "New") {
data.status = "Call";
} else if (data.status == "Call") {
data.doneCall = "Y";
}
},
setReq(data, status) {
data.requirement = status;
data.eDate= new Date();
},
formatDate(date) {
if (!date) return null;
return moment(date).format("DD-MM-YYYY HH:mm");
},
},
}
</script>
<style scoped>
.pointer {
cursor: pointer;
}
</style>

View File

@@ -37,13 +37,13 @@
<script type="module">
const { loadModule } = window["vue3-sfc-loader"];
import verification from "./modules/verification.js";
import patient from "./modules/patient.js";
import system from "../globalstore/globalstore.js";
const store = Vuex.createStore({
modules: {
system: system,
verification: verification,
patient: patient,
},
});
const options = {
@@ -82,7 +82,7 @@
},
template: `
<main-verif-component></main-verif-component>
<main-component></main-component>
`,
});
@@ -96,7 +96,7 @@
app.use(vuetify);
app.use(i18n);
const components = {
"main-verif-component": "./components/mainVerif.vue",
"main-component": "./components/main.vue",
};
Promise.all(
Object.entries(components).map(([name, path]) => {

View File

@@ -0,0 +1,56 @@
var CustomMessages = {
en: {
message: {
filter: {
date: "Date",
noreg: "No. Reg / Name",
group: "Customer Group",
station: "Station",
},
tablePatient: {
title: "PATIENT",
date: "DATE",
noreg: "NO. REG",
group: "CUSTOMER GROUP",
name: "NAME",
status: "STATUS"
},
tableDetail: {
title: "STAFF",
speciment: "SPECIMENT",
barcode: "BARCODE",
requirement: "REQUIREMENT",
action: "ACTION"
},
examination: "EXAMINATION",
dobage: "Date of Birth and Age",
},
},
id: {
message: {
filter: {
date: "Tanggal",
noreg: "No. Reg / Nama",
group: "Kel. Pelanggan",
station: "Station",
},
tablePatient: {
title: "PASIEN",
date: "TANGGAL",
noreg: "NO. REG",
group: "KEL. PELANGGAN",
name: "NAMA",
status: "STATUS"
},
tableDetail: {
title: "STAF",
speciment: "SPECIMEN",
barcode: "BARCODE",
requirement: "PRASYARAT",
action: "AKSI"
},
examination: "PEMERIKSAAN",
dobage: "Tanggal Lahir dan Umur",
},
},
};

View File

@@ -0,0 +1,74 @@
const store = {
state() {
return {
date: new Date(),
temp_dropdown: ["Lorem", "ipsum", "dolor", "sit", "amet"],
patients: [
{
tanggal: "31-07-2024",
noreg: "055000035LA",
kelpelanggan: "PASIEN KLINISI",
nama: "Tn. COCOBA",
age: "23 tahun 11 bulan 10 hari",
dob: "10/10/2000",
pid: "-",
status: "New",
doneCall: "N",
},
{
tanggal: "31-07-2024",
noreg: "055000034LA",
kelpelanggan: "PASIEN MANDIRI",
nama: "Tn. YACOBA",
age: "27 tahun 2 bulan 12 hari",
dob: "08/06/1997",
pid: "-",
status: "New",
doneCall: "N",
},
],
selected_patients: {
tanggal: "-",
noreg: "-",
kelpelanggan: "-",
nama: "-",
age: "-",
dob: "-",
pid: "-",
status: "-",
},
details: {
staff: "NOVITA",
handling: [
{
handling: "ECG",
barcode: "055000035LSE1A",
requirement: "",
sDate: new Date(),
eDate: "",
},
],
jenis: ["ECG"]
},
pemeriksaan: [
"ECG",
]
};
},
mutations: {
setPatients(state, data) {
state.patients = data
},
setSelectedPatients(state, data) {
state.selected_patients = data
},
setDate(state, date) {
state.date = date;
}
},
actions: {
}
}
export default store

View File

@@ -1,62 +0,0 @@
<template>
<v-app id="inspire">
<one-navbar></one-navbar>
<v-main>
<div class=" bg-primary-lighten ml-2 rounded-xl h-100">
<v-row>
<v-col cols="12" md="7" sm="12" xs="12" class="mt-5">
<search-component-left></search-component-left>
</v-col>
<v-col cols="12" md="5" sm="12" xs="12" class="mt-5">
<search-component-right></search-component-right>
</v-col>
</v-row>
<v-row>
<v-col cols="12" md="7" sm="12" xs="12" class="mt-1">
<list-verif-left-component></list-verif-left-component>
</v-col>
<v-col cols="12" md="5" sm="12" xs="12" class="mt-1">
<list-verif-right-component></list-verif-right-component>
</v-col>
</v-row>
</div>
</v-main>
</v-app>
</template>
<style scoped>
</style>
<script type="module">
import NavbarComponent from "../../globalcomponent/one-navbar.vue";
import listVerifLeftComponent from "./verificationLeftList.vue";
import searchComponentLeft from "./searchVerificationtLeft.vue";
import searchComponentRight from "./searchVerificationRight.vue";
import listVerifRightComponent from "./verificationRightList.vue";
export default {
name: "MainVerif",
components: {
"one-navbar": NavbarComponent,
"search-component-left": searchComponentLeft,
"search-component-right": searchComponentRight,
"list-verif-left-component": listVerifLeftComponent,
"list-verif-right-component": listVerifRightComponent
},
data() {
return {
};
},
computed: {
},
methods: {
},
wacth: {
}
}
</script>

View File

@@ -1,70 +0,0 @@
<template>
<div>
<v-container class="bg-white rounded-lg" fluid>
<v-row class="pa-0">
<v-col cols="4" class="pl-0">
<v-autocomplete :label="$t('message.search.resultcollection')" variant="outlined" hide-details
menu-icon="mdi-chevron-down"
:items="['Semua', 'Ambil Sendiri', 'dikirim WA', 'Dari kurir']"></v-autocomplete>
</v-col>
<v-col cols="7" class="pl-0">
<v-text-field :label="$t('message.search.noreg')" variant="outlined" hide-details
append-inner-icon="mdi-magnify"></v-text-field>
</v-col>
<v-col cols="1" class="pl-0 pr-2">
<v-btn variant="flat" small style="height: 100%;" class="bg-primary rounded-lg" v-if="btn_hide === false">
<iconify-icon style="font-size: 2rem;" icon="fluent:send-20-regular" @click="doSend"></iconify-icon>
</v-btn>
</v-col>
</v-row>
</v-container>
</div>
</template>
<style scoped></style>
<script type="module">
export default {
name: "SearchVerificationRight",
data() {
return {
visible: false,
};
},
computed: {
btn_hide: {
get() {
return this.$store.state.verification.btn_hide
},
set(val) {
this.$store.commit("verification/update_btn_hide", val)
}
},
selected_transaction() {
// Akses selected_transaction dari Vuex atau beri nilai default
return this.$store.state.verification.selected_transaction || [];
}
},
methods: {
doSend() {
this.btn_hide = true;
// Filter untuk mendapatkan item yang dipilih berdasarkan nilai 'chex'
const selectedItems = this.selected_transaction
// Periksa jika ada item yang dipilih
if (selectedItems.length > 0) {
console.log({
selected: selectedItems // Daftar item yang dipilih
});
} else {
console.log("Tidak ada item yang dipilih");
}
this.btn_hide = false;
}
},
wacth: {
}
}
</script>

View File

@@ -1,54 +0,0 @@
<template>
<div>
<v-container class="bg-white rounded-lg" fluid>
<v-row>
<v-col cols="3">
<v-autocomplete :label="$t('message.search.resulttype')" variant="outlined" hide-details
menu-icon="mdi-chevron-down" :items="resulttype"></v-autocomplete>
</v-col>
<v-col cols="3">
<v-autocomplete :label="$t('message.search.examination')" variant="outlined" hide-details
menu-icon="mdi-chevron-down"
:items="['Ultrasonografi', 'Biopsi', 'Spirometri', 'CT Scan (Computed Tomography)', 'Rontgen (X-ray)', 'Endoskopi']"></v-autocomplete>
</v-col>
<v-col cols="2.5">
<v-text-field :label="$t('message.search.noreg')" variant="outlined" hide-details
append-inner-icon="mdi-magnify"></v-text-field>
</v-col>
<v-col cols="2.5">
<v-autocomplete :label="$t('message.search.status')" variant="outlined" hide-details
menu-icon="mdi-chevron-down" :items="['belum verifikasi', 'sudah verifikasi',]"></v-autocomplete>
</v-col>
<v-col cols="1">
<v-btn variant="flat" small style="height: 100%;" class="bg-primary rounded-lg">
<iconify-icon style="font-size: 2rem;" icon="fluent:search-20-regular"></iconify-icon>
</v-btn>
</v-col>
</v-row>
</v-container>
</div>
</template>
<style scoped></style>
<script type="module">
export default {
name: "SearchVerificationLeft",
data() {
return {
visible: false,
};
},
computed: {
resulttype() {
return this.$store.state.verification.result_type;
}
},
methods: {
},
wacth: {
}
}
</script>

View File

@@ -1,129 +0,0 @@
<template>
<div>
<v-container class="bg-white rounded-lg" fluid>
<v-data-table :headers="headers" :items="xpatients" return-object hide-default-footer class="row-pointer">
<template v-slot:headers="{ columns }">
<tr>
<template v-for="column in columns" :key="column.key">
<td :class="column.class" :style="{ width: column.width, textAlign: column.align }">
<span>{{ column.title }}</span>
</td>
</template>
</tr>
</template>
<template v-slot:item="{ item }">
<tr v-bind:class="{ 'bg-primary-lighten': isSelected(item) }" @click="selectMe(item)">
<td class="text-center">
<div>
<p class="mt-2 mb-2">{{ item.ordernumber }}</p>
<p class="mb-2">
<v-chip label size="small">
{{ item.orderdate }}
</v-chip>
</p>
</div>
</td>
<td >
<p>{{ item.patient_fullname }}</p>
</td>
<td >
<p class="font-weight-medium">{{ item.test_name }}</p>
</td>
<td class="text-center" >
<div class="d-flex justify-center">
<div :dark="item.validation_old != 'Y'"
class="pointer bg-error-lighten rounded-lg"
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;">
<iconify-icon class="text-error" style="font-size: 1.5rem;"
icon="fluent:dismiss-24-regular"></iconify-icon>
</div>
<div :disabled="item.validation == 'Y'"
class="pointer bg-success-lighten rounded-lg ml-2"
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;">
<iconify-icon class="text-success" style="font-size: 1.5rem;"
icon="fluent:checkmark-24-regular"></iconify-icon>
</div>
</div>
</td>
</tr>
</template>
</v-data-table>
</v-container>
</div>
</template>
<style scoped>
.row-pointer>>>tbody tr :hover {
cursor: pointer;
}
</style>
<script type="module">
export default {
name: "verificationLeftList",
data() {
return {
headers: [
{
align: 'center',
key: 'name',
sortable: false,
width: "10%",
title: this.$t('message.tableListPatient.noreg'),
class: "font-weight-bold",
},
{
align: 'center',
key: 'name',
sortable: false,
width: "40%",
title: this.$t('message.tableListPatient.name'),
class: "font-weight-bold",
},
{
align: 'left',
key: 'name',
sortable: false,
width: "45%",
title: this.$t('message.tableListPatient.examination'),
class: "font-weight-bold",
},
{
align: 'center',
key: 'validasi',
sortable: false,
width: "5%",
title: this.$t('message.tableListPatient.verification'),
class: "font-weight-bold",
},
],
};
},
computed: {
xpatients() {
return this.$store.state.verification.patients
},
selected_patient: {
get() {
return this.$store.state.verification.selected_patient
},
set(val) {
this.$store.commit("verification/setSelectedPatient", val)
}
}
},
methods: {
isSelected(p) {
return p.trx_id == this.$store.state.verification.selected_patient.trx_id
},
selectMe(data) {
this.$store.commit("verification/setSelectedPatient", data)
}
},
wacth: {
}
}
</script>

View File

@@ -1,143 +0,0 @@
<template>
<div>
<v-container class="bg-white rounded-lg" fluid>
<v-data-table :headers="headers" :items="xdetails" return-object hide-default-footer class="pt-5">
<template v-slot:headers="{ columns }">
<tr>
<template v-for="column in columns" :key="column.key">
<td :class="column.class" :style="{ width: column.width, textAlign: column.align }">
<span>{{ column.title }}</span>
</td>
</template>
</tr>
</template>
<template v-slot:item="{ item }">
<tr>
<td class="text-center">
<v-checkbox v-model="item.chex" @change="selectMe()" />
</td>
<td class="text-center">
<div>
<p class="mt-2 mb-2">{{ item.ordernumber }}</p>
<p class="mb-2">
<v-chip label size="small">
{{ item.orderdate }}
</v-chip>
</p>
</div>
</td>
<td class="text-center">
<p class="font-weight-medium">{{ item.patient_fullname }}</p>
</td>
<td class="text-center">
<p class="mt-2 mb-2">{{ item.group_name }}</p>
<p class="mb-2">
<v-chip label size="small">
{{ item.delivery }}
</v-chip>
</p>
</td>
<td class="text-center">
<p>{{ item.test_name }}</p>
</td>
</tr>
</template>
</v-data-table>
</v-container>
</div>
</template>
<style scoped>
.pointer {
cursor: pointer;
}
.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,
.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th,
.v-table .v-table__wrapper>table>thead>tr>th {
border-bottom: dashed 1px #EEEEEE;
}
</style>
<script type="module">
export default {
name: "verificationRightList",
data() {
return {
menu: false,
headers: [
{
align: 'center',
key: 'select',
sortable: false,
width: "5%",
title: "", // kolom untuk checkbox
class: "font-weight-bold",
},
{
align: 'center',
key: 'noreg',
sortable: false,
width: "25%",
title: this.$t('message.tableDetailPatient.noreg'),
class: "font-weight-bold",
},
{
align: 'center',
key: 'name',
sortable: false,
width: "25%",
title: this.$t('message.tableDetailPatient.name'),
class: "font-weight-bold",
},
{
align: 'center',
key: 'group',
sortable: false,
width: "25%",
title: this.$t('message.tableDetailPatient.group'),
class: "font-weight-bold",
},
{
align: 'center',
key: 'examination',
sortable: false,
width: "25%",
title: this.$t('message.tableDetailPatient.examination'),
class: "font-weight-bold",
},
],
};
},
computed: {
xdetails() {
return this.$store.state.verification.details
},
btn_hide: {
get() {
return this.$store.state.verification.btn_hide
},
set(val) {
this.$store.commit("verification/update_btn_hide", val)
}
},
},
methods: {
selectMe() {
this.btn_hide = true
// Ambil item yang dipilih
var selectedItems = this.xdetails.filter(item => item.chex);
console.log("Selected items:", selectedItems);
if (selectedItems.length > 0) {
this.btn_hide = false
}
// Kirim data yang dipilih ke store
this.$store.commit("verification/setSelectedTransaction", selectedItems);
}
},
wacth: {
}
}
</script>

View File

@@ -1,51 +0,0 @@
var CustomMessages = {
en: {
message: {
search: {
resulttype: "Result Type",
examination:"Examination",
noreg: "No. Reg / Name",
status: "Status",
resultcollection: "Result Collection",
},
toolbalTitle: "PATIENT",
tableListPatient: {
noreg: "NO. REG",
name: "NAME",
examination: "EXAMINATION",
verification: "VERIFICATION",
},
tableDetailPatient: {
noreg: "NO. REG",
name: "NAMA",
group: "GROUP",
examination: "EXAMINATION"
}
},
},
id: {
message: {
search: {
resulttype: "Tipe Hasil",
examination:"Pemeriksaan",
noreg: "No. Reg / Nama",
status: "Status",
resultcollection: "Pengambilan Hasil",
},
toolbalTitle: "PASIEN",
tableListPatient: {
noreg: "NO. REG",
name: "NAMA",
examination: "PEMERIKSAAN",
verification: "VERIFIKASI",
},
tableDetailPatient: {
noreg: "NO. REG",
name: "NAMA",
group:"GROUP",
examination: "PEMERIKSAAN"
}
},
},
};

View File

@@ -1,242 +0,0 @@
const store = {
namespaced: true,
state() {
return {
startdateleft: new Date(),
enddateleft: new Date(),
patients: [
{
"trx_id": "29144",
"status_val2": "N",
"orderid": "130716",
"ids": "1587254",
"status": "X",
"ordernumber": "02300010DB",
"ordernumber_ext": "023M4M36DB",
"patient_fullname": "NY SAFINA",
"sexname": "PEREMPUAN.",
"orderdate": "30-11-2021 11:35",
"dob": "19-03-1947",
"umur": "74 TAHUN 8 BULAN 11 HARI",
"languange_name": "Bahasa Indonesia",
"test_name": "Thorax PA (CR)",
"details": "",
"verifications": [
{
"id": "1",
"xid": "0",
"chex": false,
"note": "",
"label": "Hasil , image, dan amplop belum sesuai"
}
],
"iscito": "N",
"type": "xray"
},
{
"trx_id": "29165",
"status_val2": "N",
"orderid": "130806",
"ids": "1589374",
"status": "X",
"ordernumber": "02900018DB",
"ordernumber_ext": "029G4P36DB",
"patient_fullname": "TN NANANG RUDY U",
"sexname": "LAKI - LAKI ",
"orderdate": "28-05-2022 11:08",
"dob": "06-05-1979",
"umur": "43 TAHUN 0 BULAN 22 HARI",
"languange_name": "Bahasa Indonesia",
"test_name": "Thorax PA (CR)",
"details": "",
"verifications": [
{
"id": "1",
"xid": "0",
"chex": false,
"note": "",
"label": "Hasil , image, dan amplop belum sesuai"
}
],
"iscito": "N",
"type": "xray"
},
{
"trx_id": "29340",
"status_val2": "N",
"orderid": "131898",
"ids": "1618084",
"status": "X",
"ordernumber": "04700009LA",
"ordernumber_ext": "047U9S92LA",
"patient_fullname": "TN ALBINUS SUIPNO",
"sexname": "LAKI - LAKI ",
"orderdate": "02-11-2023 08:26",
"dob": "04-02-1990",
"umur": "33 TAHUN 8 BULAN 28 HARI",
"languange_name": "Bahasa Indonesia",
"test_name": "Thorax PA (CR)",
"details": "",
"verifications": [
{
"id": "1",
"xid": "0",
"chex": false,
"note": "",
"label": "Hasil , image, dan amplop belum sesuai"
}
],
"iscito": "N",
"type": "xray"
},
{
"trx_id": "29421",
"status_val2": "N",
"orderid": "132157",
"ids": "1622402",
"status": "X",
"ordernumber": "05300003LA",
"ordernumber_ext": "053N4G33LA",
"patient_fullname": "SDRI YACOBA",
"sexname": "PEREMPUAN.",
"orderdate": "03-05-2024 11:04",
"dob": "27-05-1950",
"umur": "73 TAHUN 11 BULAN 6 HARI",
"languange_name": "Bahasa Indonesia",
"test_name": "Thorax PA (CR)",
"details": "",
"verifications": [
{
"id": "1",
"xid": "0",
"chex": false,
"note": "",
"label": "Hasil , image, dan amplop belum sesuai"
}
],
"iscito": "N",
"type": "xray"
},
],
result_type: [
"Ultrasonografi", "Biopsi", "Spirometri", "Rontgen (X-ray)"
],
selected_patient: {},
selected_transaction: [],
btn_hide: true,
details: [
{
"xid": "31",
"ids": "411",
"deliveries_id": "24^1^1",
"deliveries_name": "Ambil Sendiri",
"patient_fullname": "Mr COBA",
"orderdate": "09-09-2020 17:23",
"promise_datetime": "10-09-2020 13:00",
"orderid": "13",
"ordernumber": "00900013LA",
"ordernumber_ext": "009P8M39LA",
"group_id": "4",
"group_name": "Rontgen",
"delivery": "Ambil Sendiri",
"chex": false,
"test_name": "Thorax PA (CR)",
"test_id": "2146",
"group_flag_test": "N",
"promise_id": "39"
},
{
"xid": "31",
"ids": "411",
"deliveries_id": "25^3^3",
"deliveries_name": "Email Pasien",
"patient_fullname": "Mr COBA",
"orderdate": "09-09-2020 17:23",
"promise_datetime": "10-09-2020 13:00",
"orderid": "13",
"ordernumber": "00900013LA",
"ordernumber_ext": "009P8M39LA",
"group_id": "4",
"group_name": "Rontgen",
"delivery": "Email Pasien",
"chex": false,
"test_name": "Thorax PA (CR)",
"test_id": "2146",
"group_flag_test": "N",
"promise_id": "39"
},
{
"xid": "31",
"ids": "411",
"deliveries_id": "26^4^6",
"deliveries_name": "Whatsapp Pasien",
"patient_fullname": "Mr COBA",
"orderdate": "09-09-2020 17:23",
"promise_datetime": "10-09-2020 13:00",
"orderid": "13",
"ordernumber": "00900013LA",
"ordernumber_ext": "009P8M39LA",
"group_id": "4",
"group_name": "Rontgen",
"delivery": "Whatsapp Pasien",
"chex": false,
"test_name": "Thorax PA (CR)",
"test_id": "2146",
"group_flag_test": "N",
"promise_id": "39"
},
{
"xid": "35312",
"ids": "1628590",
"deliveries_id": "180534^2^2",
"deliveries_name": "Alamat Pasien",
"patient_fullname": "Tn COCOBA / 654545",
"orderdate": "11-09-2024 15:08",
"promise_datetime": "11-09-2024 20:30",
"orderid": "132338",
"ordernumber": "05700053LA",
"ordernumber_ext": "057N9U96LA",
"group_id": "6",
"group_name": "USG",
"delivery": "Alamat Pasien",
"chex": false,
"test_name": "USG Leher",
"test_id": "2915",
"group_flag_test": "Y",
"promise_id": "226948"
}
]
};
},
mutations: {
setStartDateLeft(state, data) {
state.startdateleftdate = data;
},
setEndDateLeft(state, data) {
state.enddateleft = data;
},
setPatients(state, data) {
state.patients = data
},
setSelectedPatient(state, data) {
state.selected_patient = data
},
setSelectedTransaction(state, data) {
state.selected_transaction = data
},
setDetails(state, data) {
state.details = data
},
setResultTypes(state, data) {
state.result_type = data
},
update_btn_hide(state, val) {
state.btn_hide = val
},
},
actions: {
}
};
export default store