12 Commits

Author SHA1 Message Date
6d96653c6d add mockup funct accept requirement 2024-08-28 08:20:31 +07:00
Hanan Askarim
042eb98943 add slicing worklist 2024-08-22 16:26:16 +07:00
75e0a25a9d fix date picker filter specimen-collection 2024-08-20 18:28:21 +07:00
1d698dbca4 add button detail func mockup 2024-08-20 17:58:25 +07:00
Hanan Askarim
c65da6ade9 update slicing entry and verifikasi 2024-08-20 14:28:06 +07:00
Hanan Askarim
8d38f89f5d Merge branch 'hanan/result-validation' 2024-08-20 11:43:22 +07:00
Hanan Askarim
119e434e3a update header 2024-08-20 11:32:21 +07:00
Hanan Askarim
4d8012a10a slicing result validation 2024-08-20 11:20:13 +07:00
f633b29add change table header specimen-collection 2024-08-20 09:29:52 +07:00
a6f4c60cb2 add translation label 2024-08-19 16:14:02 +07:00
Hanan Askarim
08e181f3ce fix slicing result entry 2024-08-19 15:44:22 +07:00
Hanan Askarim
b3ad260791 fix slicing verification 2024-08-19 15:16:31 +07:00
29 changed files with 3068 additions and 739 deletions

View File

@@ -1,136 +1,124 @@
<template> <template>
<div> <div>
<v-row> <v-container class="bg-white rounded-lg" fluid>
<v-col cols="12">
<v-container class="bg-white rounded-lg">
<v-row class="pb-5"> <v-row>
<v-col cols="2"> <v-col cols="2">
<v-menu <v-text-field
v-model="menu" :label="$t('message.tableDetailPatient.navbar.date')"
:close-on-content-click="false" variant="outlined"
transition="scale-transition" hide-details
offset-y ></v-text-field>
min-width="auto" </v-col>
max-width="290px" <v-col cols="5">
> <v-text-field
<template v-slot:activator="{ props }"> :label="$t('message.tableDetailPatient.navbar.noreg')"
<v-text-field variant="outlined"
:model-value="formatDate()" hide-details
label="Tanggal Mulai" ></v-text-field>
prepend-inner-icon="mdi-calendar" </v-col>
hide-details <v-col cols="2.5">
readonly <v-text-field
variant="outlined" :label="$t('message.tableDetailPatient.navbar.dob')"
v-bind="props" variant="outlined"
></v-text-field> hide-details
</template> ></v-text-field>
<v-date-picker </v-col>
hide-header <v-col cols="2.5">
show-adjacent-months <v-text-field
rounded="lg" :label="$t('message.tableDetailPatient.navbar.sender')"
color="primary" variant="outlined"
v-model="date" hide-details
@update:modelValue="menu=false" ></v-text-field>
></v-date-picker> </v-col>
</v-menu> </v-row>
</v-col>
<v-col cols="4">
<v-text-field
label="No Reg / Nama / Jenis Kelamin"
variant="outlined"
hide-details
></v-text-field>
</v-col>
<v-col cols="3">
<v-text-field
label="DOB / Umur"
variant="outlined"
hide-details
></v-text-field>
</v-col>
<v-col cols="3">
<v-text-field
label="Pengirim"
variant="outlined"
hide-details
></v-text-field>
</v-col>
</v-row>
<v-data-table <v-data-table
:headers="headers" :headers="headers"
:items="xdetails" :items="xdetails"
return-object return-object
hide-default-footer hide-default-footer
> class="pt-5"
<template v-slot:item="{ item }"> >
<tr> <template v-slot:headers="{ columns }">
<td class="text-left" v-if="item.is_result == 'N'" colspan="8"> <tr>
<p class="font-weight-medium">{{ item.t_testname }}</p> <template v-for="column in columns" :key="column.key">
</td> <td :class="column.class" :style="{ width: column.width, textAlign: column.align }">
<td class="text-left" v-if="item.is_result == 'Y'"> <span>{{ column.title }}</span>
<p class="font-weight-medium">{{ item.t_testname }}</p> </td>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<div class="pt-3 pb-3">
<v-text-field
density="compact"
label=""
variant="outlined"
hide-details
auto-grow
></v-text-field>
</div>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<p>{{ item.result_flag }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.normal_note }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.unit_name }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<div class="d-flex justify-space-between">
<div>
{{ item.methode_name }}
</div>
<v-btn
variant="text"
small
color="primary"
class="bg-primary-lightens ma-0 float-left">
<iconify-icon
style="font-size: 2rem;"
icon="fluent:edit-20-regular"
></iconify-icon>
</v-btn>
</div>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<div class="pt-3 pb-3">
<v-text-field
density="compact"
label=""
variant="outlined"
hide-details
auto-grow
></v-text-field>
</div>
</td>
</tr>
</template> </template>
</v-data-table> </tr>
</template>
<template v-slot:item="{ item }">
<tr>
<td class="text-left" v-if="item.is_result == 'N'" colspan="8">
<p class="font-weight-medium">{{ item.t_testname }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<p class="font-weight-medium">{{ item.t_testname }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<div class="pt-3 pb-3">
<v-text-field
density="compact"
label=""
variant="outlined"
hide-details
auto-grow
></v-text-field>
</div>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<p>{{ item.result_flag }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.normal_note }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.unit_name }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<div class="d-flex justify-space-between align-center">
<div>
{{ item.methode_name }}
</div>
<v-btn
variant="text"
small
color="primary"
class="bg-primary-lightens ma-0 float-left">
<iconify-icon
style="font-size: 1.5rem;"
icon="fluent:edit-20-regular"
></iconify-icon>
</v-btn>
</div>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<div class="pt-3 pb-3">
<v-text-field
density="compact"
label=""
variant="outlined"
hide-details
auto-grow
></v-text-field>
</div>
</td>
</tr>
</template>
</v-data-table>
</v-container> </v-container>
</v-col>
</v-row>
</div> </div>
</template> </template>
<style scoped> <style scoped>
.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> </style>
<script type="module"> <script type="module">
@@ -145,7 +133,7 @@
key: 'name', key: 'name',
sortable: false, sortable: false,
width: "15%", width: "15%",
title: "NAMA PEMERIKSAAN", title: this.$t('message.tableDetailPatient.header.name'),
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
{ {
@@ -153,7 +141,7 @@
key: 'name', key: 'name',
sortable: false, sortable: false,
width: "20%", width: "20%",
title: "HASIL", title: this.$t('message.tableDetailPatient.header.result'),
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
{ {
@@ -161,15 +149,7 @@
key: 'name', key: 'name',
sortable: false, sortable: false,
width: "5%", width: "5%",
title: "FLAG", title: this.$t('message.tableDetailPatient.header.flag'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'name',
sortable: false,
width: "15%",
title: "NILAI NORMAL",
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
{ {
@@ -177,15 +157,15 @@
key: 'name', key: 'name',
sortable: false, sortable: false,
width: "10%", width: "10%",
title: "UNIT", title: this.$t('message.tableDetailPatient.header.normalvalue'),
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
{ {
align: 'start', align: 'start',
key: 'name', key: 'name',
sortable: false, sortable: false,
width: "15%", width: "10%",
title: "METODE", title: this.$t('message.tableDetailPatient.header.unit'),
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
{ {
@@ -193,7 +173,15 @@
key: 'name', key: 'name',
sortable: false, sortable: false,
width: "20%", width: "20%",
title: "CATATAN", title: this.$t('message.tableDetailPatient.header.method'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'name',
sortable: false,
width: "20%",
title: this.$t('message.tableDetailPatient.header.note'),
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
], ],

View File

@@ -1,47 +1,56 @@
<template> <template>
<div> <div>
<v-row> <v-container class="bg-white rounded-lg" fluid>
<v-col cols="12">
<v-container class="bg-white rounded-lg">
<v-data-table <v-data-table
:headers="headers" :headers="headers"
:items="xpatients" :items="xpatients"
return-object return-object
hide-default-footer hide-default-footer
> class="row-pointer"
<template v-slot:top> >
<v-toolbar flat class="bg-secondary-lighten"> <template v-slot:top>
<v-toolbar-title>{{ $t('message.toolbalTitle') }}</v-toolbar-title> <v-toolbar flat class="bg-secondary-lighten rounded-lg">
</v-toolbar> <v-toolbar-title class="text-black font-weight-bold">{{ $t('message.toolbalTitle') }}</v-toolbar-title>
</template> </v-toolbar>
</template>
<template v-slot:item="{ item }"> <template v-slot:headers="{ columns }">
<tr> <tr>
<td v-bind:class="{'blue-lighten-5':isSelected(item)}" @click="selectMe(item)"> <template v-for="column in columns" :key="column.key">
<div> <td :class="column.class" :style="{ width: column.width, textAlign: column.align }">
<p class="mt-2 mb-2">{{ item.noreg }}</p> <span>{{ column.title }}</span>
<p class="mb-2" > </td>
<v-chip label size="small">
{{ item.orderdate }}
</v-chip>
</p>
</div>
</td>
<td v-bind:class="{'blue-lighten-5':isSelected(item)}" @click="selectMe(item)">
<p>{{ item.name }}</p>
</td>
</tr>
</template> </template>
</v-data-table> </tr>
</v-container> </template>
</v-col>
</v-row> <template v-slot:item="{ item }">
<tr v-bind:class="{'bg-primary-lighten':isSelected(item)}" @click="selectMe(item)">
<td>
<div>
<p class="mt-2 mb-2">{{ item.noreg }}</p>
<p class="mb-2" >
<v-chip label size="small">
{{ item.orderdate }}
</v-chip>
</p>
</div>
</td>
<td>
<p>{{ item.name }}</p>
</td>
</tr>
</template>
</v-data-table>
</v-container>
</div> </div>
</template> </template>
<style scoped> <style scoped>
.row-pointer >>> tbody tr :hover {
cursor: pointer;
}
</style> </style>
<script type="module"> <script type="module">
@@ -55,7 +64,7 @@
key: 'name', key: 'name',
sortable: false, sortable: false,
width: "50%", width: "50%",
title: this.$t('message.table.noreg'), title: this.$t('message.tableListPatient.noreg'),
class: "font-weight-bold", class: "font-weight-bold",
}, },
{ {
@@ -63,7 +72,7 @@
key: 'name', key: 'name',
sortable: false, sortable: false,
width: "50%", width: "50%",
title: this.$t('message.table.name'), title: this.$t('message.tableListPatient.name'),
class: "font-weight-bold", class: "font-weight-bold",
}, },
], ],
@@ -86,8 +95,8 @@
isSelected(p) { isSelected(p) {
return p.id == this.$store.state.entry.selected_patient.id return p.id == this.$store.state.entry.selected_patient.id
}, },
selectMe(c) { selectMe(data) {
console.log(c) this.$store.commit("entry/setSelectedPatient", data)
} }
}, },
wacth: { wacth: {

View File

@@ -3,14 +3,12 @@
<one-navbar></one-navbar> <one-navbar></one-navbar>
<v-main> <v-main>
<div class="pa-5 bg-primary-lighten ml-2 rounded-xl h-100"> <div class="pa-5 bg-primary-lighten ml-2 rounded-xl h-100">
<search-component></search-component>
<v-row> <v-row>
<v-col cols="12" md="12" sm="12" xs="12"> <v-col cols="12" md="3" sm="12" xs="12" class="mt-5">
<search-component></search-component>
</v-col>
<v-col cols="12" md="4" sm="12" xs="12">
<list-patient-component></list-patient-component> <list-patient-component></list-patient-component>
</v-col> </v-col>
<v-col cols="12" md="8" sm="12" xs="12"> <v-col cols="12" md="9" sm="12" xs="12" class="mt-5">
<detail-patient-component></detail-patient-component> <detail-patient-component></detail-patient-component>
</v-col> </v-col>
</v-row> </v-row>

View File

@@ -1,143 +1,135 @@
<template> <template>
<div> <div>
<v-row> <v-container class="bg-white rounded-lg" fluid>
<v-col cols="12"> <v-row>
<v-card class="bg-white rounded-lg pa-5"> <v-col cols="3">
<v-row> <div class="d-flex align-center ga-2">
<v-col cols="2"> <v-menu
<v-menu v-model="menuStartDate"
v-model="menuStartDate" :close-on-content-click="false"
:close-on-content-click="false" transition="scale-transition"
transition="scale-transition" offset-y
offset-y min-width="auto"
min-width="auto" max-width="290px"
max-width="290px" >
> <template v-slot:activator="{ props }">
<template v-slot:activator="{ props }"> <v-text-field
<v-text-field :model-value="formatDate()"
:model-value="formatDate()" :label="$t('message.search.startdate')"
label="Tanggal Mulai" prepend-inner-icon="mdi-calendar"
prepend-inner-icon="mdi-calendar" hide-details
hide-details readonly
readonly variant="outlined"
variant="outlined" v-bind="props"
v-bind="props" ></v-text-field>
></v-text-field> </template>
</template> <v-date-picker
<v-date-picker hide-header
hide-header show-adjacent-months
show-adjacent-months rounded="lg"
rounded="lg" color="primary"
color="primary" v-model="date"
v-model="date" @update:modelValue="menuStartDate=false"
@update:modelValue="menuStartDate=false" ></v-date-picker>
></v-date-picker> </v-menu>
</v-menu> <v-menu
</v-col> v-model="menuEndDate"
<v-col cols="2"> :close-on-content-click="false"
<v-menu transition="scale-transition"
v-model="menuEndDate" offset-y
:close-on-content-click="false" min-width="auto"
transition="scale-transition" max-width="290px"
offset-y >
min-width="auto" <template v-slot:activator="{ props }">
max-width="290px" <v-text-field
> :model-value="formatDate()"
<template v-slot:activator="{ props }"> :label="$t('message.search.enddate')"
<v-text-field prepend-inner-icon="mdi-calendar"
:model-value="formatDate()" hide-details
label="Tanggal Selesai" readonly
prepend-inner-icon="mdi-calendar" variant="outlined"
hide-details v-bind="props"
readonly ></v-text-field>
variant="outlined" </template>
v-bind="props" <v-date-picker
></v-text-field> hide-header
</template> show-adjacent-months
<v-date-picker rounded="lg"
hide-header color="primary"
show-adjacent-months v-model="date"
rounded="lg" @update:modelValue="menuEndDate=false"
color="primary" ></v-date-picker>
v-model="date" </v-menu>
@update:modelValue="menuEndDate=false" </div>
></v-date-picker> </v-col>
</v-menu> <v-col cols="2.5">
</v-col> <v-text-field
<v-col cols="2"> :label="$t('message.search.noreg')"
<v-text-field variant="outlined"
label="No Reg / Nama" hide-details
variant="outlined" append-inner-icon="mdi-magnify"
hide-details ></v-text-field>
append-inner-icon="mdi-magnify" </v-col>
></v-text-field> <v-col cols="2.5">
</v-col> <v-autocomplete
<v-col cols="2"> :label="$t('message.search.group')"
<v-autocomplete variant="outlined"
label="Grup Pemeriksaan" hide-details
variant="outlined" menu-icon="mdi-chevron-down"
hide-details :items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
menu-icon="mdi-chevron-down" ></v-autocomplete>
:items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']" </v-col>
></v-autocomplete> <v-col cols="1">
</v-col> <v-btn
<v-col cols="1"> variant="flat"
<v-btn small
variant="flat" 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-col cols="3">
<div style="height: 100%;">
<v-row class="pt-4 justify-end ga-2">
<v-btn fab
variant="tonal"
small small
style="height: 100%;" style="height: auto;"
class="bg-primary rounded-lg"> color="secondary"
class="bg-secondary-lighten rounded-lg">
<iconify-icon <iconify-icon
style="font-size: 2rem;" style="font-size: 2rem;"
icon="fluent:search-20-regular" icon="fluent:notepad-person-24-regular"
></iconify-icon> ></iconify-icon>
</v-btn> </v-btn>
</v-col>
<v-col cols="3">
<div style="height: 100%;">
<v-row class="pt-3 justify-end">
<v-btn fab
variant="tonal"
small
style="height: auto;"
color="secondary"
class="bg-secondary-lighten rounded-lg mr-2">
<iconify-icon
style="font-size: 2rem;"
icon="fluent:notepad-person-24-regular"
></iconify-icon>
</v-btn>
<div <div>
class="pt-3 pa-3" <v-btn
class="bg-primary-lighten"
variant="tonal"
color="primary"
size="x-large"
> >
<v-btn {{ $t('message.search.history') }}
small </v-btn>
class="bg-primary-lighten"
variant="tonal"
color="primary"
>
HISTORY
</v-btn>
</div>
<div
class="pt-3 pa-3"
>
<v-btn
variant="flat"
small
class="bg-primary text-white"
>
SIMPAN
</v-btn>
</div>
</v-row>
</div> </div>
</v-col> <div>
</v-row> <v-btn
</v-card> variant="flat"
</v-col> class="bg-primary text-white mr-2"
</v-row> size="x-large"
>
{{ $t('message.search.save') }}
</v-btn>
</div>
</v-row>
</div>
</v-col>
</v-row>
</v-container>
</div> </div>
</template> </template>

View File

@@ -1,20 +1,70 @@
var CustomMessages = { var CustomMessages = {
en: { en: {
message: { message: {
toolbalTitle: "PATIENT", search: {
table: { startdate: "Start Date",
noreg: "NO. REG", enddate: "End Date",
name: "NAME", noreg: "No. Reg / Name",
}, group: "Examination Group",
history: "History",
save: "Save"
},
toolbalTitle: "PATIENT",
tableListPatient: {
noreg: "NO. REG",
name: "NAME",
},
tableDetailPatient: {
navbar: {
date: "Date",
noreg: "No. Reg / Name / Gender",
dob: "DOB / Age",
sender: "Sender"
},
header: {
name: "EXAMINATION NAME",
result: "RESULT",
flag: "FLAG",
normalvalue: "NORMAL VALUE",
unit: "UNIT",
method: "METHOD",
note: "NOTE"
}
}
}, },
}, },
id: { id: {
message: { message: {
toolbalTitle: "PASIEN", search: {
table: { startdate: "Tanggal Mulai",
noreg: "NO. REG", enddate: "Tanggal Selesai",
name: "NAMA", noreg: "No. Reg / Nama",
}, group: "Grup Pemeriksaan",
history: "Riwayat",
save: "Simpan"
},
toolbalTitle: "PASIEN",
tableListPatient: {
noreg: "NO. REG",
name: "NAMA",
},
tableDetailPatient: {
navbar: {
date: "Tanggal",
noreg: "No. Reg / Nama / Jenis Kelamin",
dob: "DOB / Umur",
sender: "Pengirim"
},
header: {
name: "NAMA PEMERIKSAAN",
result: "HASIL",
flag: "FLAG",
normalvalue: "NILAI NORMAL",
unit: "UNIT",
method: "METODE",
note: "CATATAN"
}
}
}, },
}, },
}; };

View File

@@ -0,0 +1,237 @@
<template>
<div>
<v-container class="bg-white rounded-lg" fluid>
<v-row>
<v-col cols="2">
<v-text-field
:label="$t('message.tableDetailPatient.navbar.date')"
variant="outlined"
v-model="order_date"
hide-details
></v-text-field>
</v-col>
<v-col cols="5">
<v-text-field
:label="$t('message.tableDetailPatient.navbar.noreg')"
variant="outlined"
hide-details
></v-text-field>
</v-col>
<v-col cols="2.5">
<v-text-field
:label="$t('message.tableDetailPatient.navbar.dob')"
variant="outlined"
hide-details
></v-text-field>
</v-col>
<v-col cols="2.5">
<v-text-field
:label="$t('message.tableDetailPatient.navbar.sender')"
variant="outlined"
hide-details
></v-text-field>
</v-col>
</v-row>
<v-data-table
:headers="headers"
:items="xdetails"
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-left" v-if="item.is_result == 'N'" colspan="8">
<p class="font-weight-medium">{{ item.t_testname }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<p class="font-weight-medium">{{ item.t_testname }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<p>{{ item.result_flag }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.normal_note }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.unit_name }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.methode_name }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.note }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<div class="d-flex justify-center">
<div
:dark="item.validation_old != 'Y'"
:disabled="item.validation_old == 'Y'"
v-show="item.verification == '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
v-show="item.verification == 'Y'"
:class="item.validation=='Y'?'pointer bg-success-lighten rounded-lg ml-2':'pointer bg-success rounded-lg ml-2'"
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
>
<iconify-icon
:class="item.validation=='Y'? 'text-success':'text-white'"
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>
.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: "DetailPatient",
data() {
return {
menu: false,
headers: [
{
align: 'start',
key: 'name',
sortable: false,
width: "15%",
title: this.$t('message.tableDetailPatient.header.name'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'result',
sortable: false,
width: "10%",
title: this.$t('message.tableDetailPatient.header.result'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'flag',
sortable: false,
width: "10%",
title: this.$t('message.tableDetailPatient.header.flag'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'nilai',
sortable: false,
width: "10%",
title: this.$t('message.tableDetailPatient.header.normalvalue'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'unit',
sortable: false,
width: "10%",
title: this.$t('message.tableDetailPatient.header.unit'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'metode',
sortable: false,
width: "15%",
title: this.$t('message.tableDetailPatient.header.method'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'note',
sortable: false,
width: "15%",
title: this.$t('message.tableDetailPatient.header.note'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'validasi',
sortable: false,
width: "5%",
title: this.$t('message.tableDetailPatient.header.validation'),
class: "bg-secondary-lighten font-weight-bold",
},
],
};
},
computed: {
xdetails() {
return this.$store.state.validation.details
},
selected_detail () {
let x = this.$store.state.validation.selected_detail
console.log(x)
if (x)
return x
return {}
},
order_date() {
let d = this.selected_detail.T_OrderHeaderDate
let e = ''
try {
e = d.substr(0,10).split('-').reverse().join('-')
} catch(e) { /*console.log(e.message)*/ }
return e
},
},
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")}`;
},
},
wacth: {
}
}
</script>

View File

@@ -0,0 +1,107 @@
<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:top>
<v-toolbar flat class="bg-secondary-lighten rounded-lg">
<v-toolbar-title class="text-black font-weight-bold">{{ $t('message.toolbalTitle') }}</v-toolbar-title>
</v-toolbar>
</template>
<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>
<div>
<p class="mt-2 mb-2">{{ item.noreg }}</p>
<p class="mb-2" >
<v-chip label size="small">
{{ item.orderdate }}
</v-chip>
</p>
</div>
</td>
<td>
<p>{{ item.name }}</p>
</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: "ListPatient",
data() {
return {
headers: [
{
align: 'start',
key: 'name',
sortable: false,
width: "50%",
title: this.$t('message.tableListPatient.noreg'),
class: "font-weight-bold",
},
{
align: 'start',
key: 'name',
sortable: false,
width: "50%",
title: this.$t('message.tableListPatient.name'),
class: "font-weight-bold",
},
],
};
},
computed: {
xpatients() {
return this.$store.state.validation.patients
},
selected_patient: {
get() {
return this.$store.state.validation.selected_patient
},
set(val) {
this.$store.commit("validation/setSelectedPatient", val)
}
}
},
methods: {
isSelected(p) {
return p.id == this.$store.state.validation.selected_patient.id
},
selectMe(data) {
this.$store.commit("validation/setSelectedPatient", data)
this.$store.commit("validation/setSelectedDetail", data)
}
},
wacth: {
}
}
</script>

View File

@@ -0,0 +1,53 @@
<template>
<v-app id="inspire">
<one-navbar></one-navbar>
<v-main>
<div class="pa-5 bg-primary-lighten ml-2 rounded-xl h-100">
<search-component></search-component>
<v-row>
<v-col cols="12" md="3" sm="12" xs="12" class="mt-5">
<list-patient-component></list-patient-component>
</v-col>
<v-col cols="12" md="9" sm="12" xs="12" class="mt-5">
<detail-patient-component></detail-patient-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 listPatientComponent from "./listPatient.vue";
import searchComponent from "./searchPatient.vue";
import detailComponent from "./detailPatient.vue";
export default {
name: "MainValidation",
components: {
"one-navbar": NavbarComponent,
"list-patient-component": listPatientComponent,
"search-component": searchComponent,
"detail-patient-component": detailComponent
},
data() {
return {
};
},
computed: {
},
methods: {
},
wacth: {
}
}
</script>

View File

@@ -0,0 +1,211 @@
<template>
<div>
<v-container class="bg-white rounded-lg" fluid>
<v-row>
<v-col cols="3">
<div class="d-flex align-center ga-2">
<v-menu
v-model="menuStartDate"
: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.search.startdate')"
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="menuStartDate=false"
></v-date-picker>
</v-menu>
<v-menu
v-model="menuEndDate"
: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.search.enddate')"
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="menuEndDate=false"
></v-date-picker>
</v-menu>
</div>
</v-col>
<v-col cols="1.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="1.5">
<v-autocomplete
:label="$t('message.search.group')"
variant="outlined"
hide-details
menu-icon="mdi-chevron-down"
:items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
></v-autocomplete>
</v-col>
<v-col cols="1">
<v-btn
variant="flat"
small
style="height: 55px; width: 40px;"
class="bg-primary rounded-lg">
<iconify-icon
style="font-size: 2rem;"
icon="fluent:search-20-regular"
></iconify-icon>
</v-btn>
</v-col>
<v-col cols="5">
<div style="height: 100%;">
<v-row class="d-flex pt-4 justify-end ga-2">
<v-btn fab
variant="tonal"
small
style="height: auto;"
color="secondary"
class="bg-secondary-lighten rounded-lg">
<iconify-icon
style="font-size: 2rem;"
icon="fluent:notepad-person-24-regular"
></iconify-icon>
</v-btn>
<v-btn fab
variant="tonal"
small
style="height: auto;"
color="success"
class="bg-success-lighten rounded-lg">
<iconify-icon
style="font-size: 2rem;"
icon="fluent:note-add-24-regular"
></iconify-icon>
</v-btn>
<v-btn fab
variant="tonal"
small
style="height: auto;"
color="info"
class="bg-info-lighten rounded-lg">
<iconify-icon
style="font-size: 2rem;"
icon="fluent:eye-24-regular"
></iconify-icon>
</v-btn>
<div>
<v-btn
class="bg-primary-lighten"
variant="tonal"
color="primary"
size="x-large"
>
{{ $t('message.search.history') }}
</v-btn>
</div>
<div>
<v-btn
variant="flat"
small
class="bg-primary text-white"
size="x-large"
>
{{ $t('message.search.save') }}
</v-btn>
</div>
<div>
<v-btn
variant="flat"
small
class="bg-success text-white mr-2"
size="x-large"
>
{{ $t('message.search.send') }}
</v-btn>
</div>
</v-row>
</div>
</v-col>
</v-row>
</v-container>
</div>
</template>
<style scoped>
</style>
<script type="module">
export default {
name: "SearchPatient",
data() {
return {
menuStartDate: false,
menuEndDate: false,
visible: false,
};
},
computed: {
date: {
get() {
return this.$store.state.validation.date;
},
set(val) {
console.log(val)
this.$store.commit("validation/setDate", val);
},
},
},
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")}`;
},
},
wacth: {
}
}
</script>

View File

@@ -0,0 +1,116 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WESTONE</title>
<!-- Vuetify CSS -->
<link href="../css/vuetify.css" rel="stylesheet" />
<!-- Local Stylesheet for Fonts -->
<link rel="stylesheet" href="../css/styles.css" />
<link href="../css/materialdesignicon.css" rel="stylesheet" />
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
</head>
<body>
<div id="app"></div>
<!-- Moment -->
<script src="../libraries/moment.js"></script>
<!-- Vue.js -->
<!-- DEV -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<!-- PROD -->
<!-- <script src="../libraries/vue3.4.36.global.prod.js"></script> -->
<!-- Vuex -->
<script src="../libraries/vuex.js"></script>
<!-- Vuetify -->
<script src="../libraries/vuetify3.js"></script>
<!-- vue-i18n -->
<script src="../libraries/vue-i18n.global.js"></script>
<!-- Axios -->
<script src="../libraries/axios.js"></script>
<script src="../globalscript/theme.js"></script>
<!-- loader single file component -->
<script src="../libraries/vue3-sfc-loader.js"></script>
<script src="./language.js"></script>
<script type="module">
const { loadModule } = window["vue3-sfc-loader"];
import validation from "./modules/validation.js";
import system from "../globalstore/globalstore.js";
const store = Vuex.createStore({
modules: {
system: system,
validation: validation,
},
});
const options = {
moduleCache: {
vue: Vue,
},
getFile(url) {
return fetch(url).then((response) =>
response.ok ? response.text() : Promise.reject(response)
);
},
addStyle(textContent) {
const style = document.createElement("style");
style.textContent = textContent;
const ref = document.head.getElementsByTagName("style")[0] || null;
document.head.insertBefore(style, ref);
},
};
// Locale messages
const messages = CustomMessages;
// Get the browser's preferred language
const browserLocale = navigator.language || navigator.languages[0];
// Initialize vue-i18n
const i18n = VueI18n.createI18n({
locale: browserLocale.startsWith("id") ? "id" : "en", // Set locale based on browser setting
fallbackLocale: "en", // Set fallback locale
messages, // Set locale messages
});
// Vue App
const app = Vue.createApp({
data() {
return {};
},
template: `
<main-validation-component></main-validation-component>
`,
});
const vuetify = Vuetify.createVuetify({
theme: {
themes: CustomTheme,
},
});
app.use(store);
app.use(vuetify);
app.use(i18n);
const components = {
"main-validation-component": "./components/mainValidation.vue",
};
Promise.all(
Object.entries(components).map(([name, path]) => {
return loadModule(path, options).then((component) => {
app.component(name, component);
});
})
)
.then(() => {
app.mount("#app");
})
.catch((error) => {
console.error("Error loading components:", error);
});
</script>
</body>
</html>

View File

@@ -0,0 +1,74 @@
var CustomMessages = {
en: {
message: {
search: {
startdate: "Start Date",
enddate: "End Date",
noreg: "No. Reg / Name",
group: "Examination Group",
history: "History",
save: "Save",
send: "Send ADM"
},
toolbalTitle: "PATIENT",
tableListPatient: {
noreg: "NO. REG",
name: "NAME",
},
tableDetailPatient: {
navbar: {
date: "Date",
noreg: "No. Reg / Name / Gender",
dob: "DOB / Age",
sender: "Sender"
},
header: {
name: "EXAMINATION NAME",
result: "RESULT",
flag: "FLAG",
normalvalue: "NORMAL VALUE",
unit: "UNIT",
method: "METHOD",
note: "NOTE",
validation: "VALIDATION"
}
}
},
},
id: {
message: {
search: {
startdate: "Tanggal Mulai",
enddate: "Tanggal Selesai",
noreg: "No. Reg / Nama",
group: "Grup Pemeriksaan",
history: "Riwayat",
save: "Simpan",
send: "Kirim ADM"
},
toolbalTitle: "PASIEN",
tableListPatient: {
noreg: "NO. REG",
name: "NAMA",
},
tableDetailPatient: {
navbar: {
date: "Tanggal",
noreg: "No. Reg / Nama / Jenis Kelamin",
dob: "DOB / Umur",
sender: "Pengirim"
},
header: {
name: "NAMA PEMERIKSAAN",
result: "HASIL",
flag: "FLAG",
normalvalue: "NILAI NORMAL",
unit: "UNIT",
method: "METODE",
note: "CATATAN",
validation: "VALIDASI"
}
}
},
},
};

View File

@@ -0,0 +1,720 @@
const store = {
namespaced: true,
state() {
return {
date: new Date(),
patients: [
{
id: 1,
name: "Tn. COCOBA",
noreg: "055000035LA",
orderdate: "01-08-2024 15:02"
},
{
id: 2,
name: "Ny. LINA MARLINA",
noreg: "055000034LA",
orderdate: "01-08-2024 14:32"
},
{
id: 3,
name: "Ny. LINA MARLINA",
noreg: "055000034LA",
orderdate: "01-08-2024 14:32"
},
],
selected_patient: {},
details: [
{
"t_testid": "1",
"t_testname": "Hematologi Lengkap",
"result": null,
"result_old": null,
"note": null,
"note_old": null,
"id": "1626279",
"is_result": "N",
"is_quantitative": "N",
"result_flag": null,
"normal_id": null,
"normal_note": null,
"unit_name": null,
"methode_id": null,
"methode_name": null,
"nattest_id": "4095",
"tx_id": "1",
"result_instrument_n": "0",
"T_OrderDetailVerification": "N",
"sample_receive": null,
"sample_processing": null,
"sample_worklist_receive": null,
"pre_analytic": null,
"T_OrderDetailAddOnPreAnalytic": "N",
"order_id": "132259",
"test_sas_code": "10110100",
"T_TestSasCode": "10110100",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "N",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "1"
},
{
"t_testid": "2",
"t_testname": "Hemoglobin",
"result": null,
"result_old": null,
"note": "",
"note_old": "",
"id": "1626280",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "2105",
"normal_note": "13,0 -18,0",
"unit_name": "g/dL",
"methode_id": "25",
"methode_name": "SLS HEMOGLOBIN ",
"nattest_id": "4098",
"tx_id": "2",
"result_instrument_n": "0",
"T_OrderDetailVerification": "N",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "1011010001",
"T_TestSasCode": "1011010001",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "N",
"validation": "Y",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "2"
},
{
"t_testid": "14",
"t_testname": "Erytrosit",
"result": "6",
"result_old": "6",
"note": null,
"note_old": null,
"id": "1626292",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "6350",
"normal_note": "4,20 - 6,00",
"unit_name": "10?/µL",
"methode_id": "101",
"methode_name": "IMPEDANCE WITH HDFC ",
"nattest_id": "4110",
"tx_id": "14",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "1011010002",
"T_TestSasCode": "1011010002",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "2"
},
{
"t_testid": "13",
"t_testname": "Hematokrit",
"result": "45",
"result_old": "45",
"note": null,
"note_old": null,
"id": "1626291",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "6138",
"normal_note": "40 - 54",
"unit_name": "%",
"methode_id": "202",
"methode_name": "RBC PULSE HEIGHT DETECTION",
"nattest_id": "4109",
"tx_id": "13",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "1011010003",
"T_TestSasCode": "1011010003",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "2"
},
{
"t_testid": "15",
"t_testname": "MCV",
"result": "90",
"result_old": "90",
"note": null,
"note_old": null,
"id": "1626293",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "5586",
"normal_note": "80 - 100",
"unit_name": "fL",
"methode_id": "173",
"methode_name": "CALCULATION ",
"nattest_id": "4111",
"tx_id": "15",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "1011010004",
"T_TestSasCode": "1011010004",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "2"
},
{
"t_testid": "16",
"t_testname": "MCH",
"result": "33",
"result_old": "33",
"note": null,
"note_old": null,
"id": "1626294",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "5662",
"normal_note": "26 - 34",
"unit_name": "pg/cell",
"methode_id": "173",
"methode_name": "CALCULATION ",
"nattest_id": "4112",
"tx_id": "16",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "1011010005",
"T_TestSasCode": "1011010005",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "2"
},
{
"t_testid": "17",
"t_testname": "MCHC",
"result": "33",
"result_old": "33",
"note": null,
"note_old": null,
"id": "1626295",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "5716",
"normal_note": "32 - 36",
"unit_name": "g/dL",
"methode_id": "173",
"methode_name": "CALCULATION ",
"nattest_id": "4113",
"tx_id": "17",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "1011010006",
"T_TestSasCode": "1011010006",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "2"
},
{
"t_testid": "18",
"t_testname": "RDW",
"result": "12",
"result_old": "12",
"note": null,
"note_old": null,
"id": "1626296",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "6119",
"normal_note": "11,5 - 14,5",
"unit_name": "%",
"methode_id": "173",
"methode_name": "CALCULATION ",
"nattest_id": "4114",
"tx_id": "18",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "1011010007",
"T_TestSasCode": "1011010007",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "2"
},
{
"t_testid": "3",
"t_testname": "Leukosit",
"result": "10000",
"result_old": "10000",
"note": null,
"note_old": null,
"id": "1626281",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "3063",
"normal_note": "3.600 - 10.600",
"unit_name": "/µL",
"methode_id": "97",
"methode_name": "LASER OPTICAL FLOWCYTOMETRY ",
"nattest_id": "4099",
"tx_id": "3",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "1011010008",
"T_TestSasCode": "1011010008",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "2"
},
{
"t_testid": "4",
"t_testname": "Hitung Jenis",
"result": null,
"result_old": null,
"note": null,
"note_old": null,
"id": "1626282",
"is_result": "N",
"is_quantitative": "N",
"result_flag": null,
"normal_id": null,
"normal_note": null,
"unit_name": null,
"methode_id": null,
"methode_name": null,
"nattest_id": "4100",
"tx_id": "4",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": null,
"sample_processing": null,
"sample_worklist_receive": null,
"pre_analytic": null,
"T_OrderDetailAddOnPreAnalytic": "N",
"order_id": "132259",
"test_sas_code": "1011010009",
"T_TestSasCode": "1011010009",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-06 17:12:29",
"ResultGroupName": "LAB",
"level": "2"
},
{
"t_testid": "5",
"t_testname": "Eosinofil (Hitung Jenis)",
"result": "2",
"result_old": "2",
"note": null,
"note_old": null,
"id": "1626283",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "6147",
"normal_note": "0 - 3",
"unit_name": "%",
"methode_id": "97",
"methode_name": "LASER OPTICAL FLOWCYTOMETRY ",
"nattest_id": "4101",
"tx_id": "5",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "101101000901",
"T_TestSasCode": "101101000901",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "3"
},
{
"t_testid": "6",
"t_testname": "Basofil (Hitung Jenis)",
"result": "1",
"result_old": "1",
"note": null,
"note_old": null,
"id": "1626284",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "6169",
"normal_note": "0 - 2",
"unit_name": "%",
"methode_id": "97",
"methode_name": "LASER OPTICAL FLOWCYTOMETRY ",
"nattest_id": "4102",
"tx_id": "6",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "101101000902",
"T_TestSasCode": "101101000902",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "3"
},
{
"t_testid": "8",
"t_testname": "Neutrofil Batang (Hitung Jenis)",
"result": "4",
"result_old": "4",
"note": null,
"note_old": null,
"id": "1626286",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "6208",
"normal_note": "3 - 5",
"unit_name": "%",
"methode_id": "97",
"methode_name": "LASER OPTICAL FLOWCYTOMETRY ",
"nattest_id": "4104",
"tx_id": "8",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "101101000903",
"T_TestSasCode": "101101000903",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "3"
},
{
"t_testid": "7",
"t_testname": "Neutrofil Segmen (Hitung Jenis)",
"result": "56",
"result_old": "56",
"note": null,
"note_old": null,
"id": "1626285",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "6195",
"normal_note": "50 - 70 ",
"unit_name": "%",
"methode_id": "97",
"methode_name": "LASER OPTICAL FLOWCYTOMETRY ",
"nattest_id": "4103",
"tx_id": "7",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "101101000904",
"T_TestSasCode": "101101000904",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "3"
},
{
"t_testid": "9",
"t_testname": "Limfosit (Hitung Jenis)",
"result": "23",
"result_old": "23",
"note": null,
"note_old": null,
"id": "1626287",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "6217",
"normal_note": "18 - 42",
"unit_name": "%",
"methode_id": "97",
"methode_name": "LASER OPTICAL FLOWCYTOMETRY ",
"nattest_id": "4105",
"tx_id": "9",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "101101000905",
"T_TestSasCode": "101101000905",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "3"
},
{
"t_testid": "10",
"t_testname": "Monosit (Hitung Jenis)",
"result": "5",
"result_old": "5",
"note": null,
"note_old": null,
"id": "1626288",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "6226",
"normal_note": "2 - 11",
"unit_name": "%",
"methode_id": "97",
"methode_name": "LASER OPTICAL FLOWCYTOMETRY ",
"nattest_id": "4106",
"tx_id": "10",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "101101000906",
"T_TestSasCode": "101101000906",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "3"
},
{
"t_testid": "12",
"t_testname": "Trombosit",
"result": "200000",
"result_old": "200000",
"note": null,
"note_old": null,
"id": "1626290",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "3545",
"normal_note": "150.000 - 450.000",
"unit_name": "/µL",
"methode_id": "101",
"methode_name": "IMPEDANCE WITH HDFC ",
"nattest_id": "4108",
"tx_id": "12",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "1011010010",
"T_TestSasCode": "1011010010",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "2"
},
{
"t_testid": "11",
"t_testname": "Laju Endap Darah (LED)",
"result": "12",
"result_old": "12",
"note": null,
"note_old": null,
"id": "1626289",
"is_result": "Y",
"is_quantitative": "Y",
"result_flag": "",
"normal_id": "1537",
"normal_note": "0 - 15",
"unit_name": "mm/jam",
"methode_id": "13",
"methode_name": "WESTERGREEN",
"nattest_id": "4107",
"tx_id": "11",
"result_instrument_n": "0",
"T_OrderDetailVerification": "Y",
"sample_receive": "Y",
"sample_processing": "Y",
"sample_worklist_receive": "Y",
"pre_analytic": "Y",
"T_OrderDetailAddOnPreAnalytic": "Y",
"order_id": "132259",
"test_sas_code": "1011010011",
"T_TestSasCode": "1011010011",
"resample": "N",
"resample_status": "N",
"ref": "N",
"verification": "Y",
"validation": "N",
"T_OrderPromiseDateTime": "2024-08-08 17:00:00",
"ResultGroupName": "LAB",
"level": "2"
}
],
selected_detail: {}
};
},
mutations: {
setDate(state, data) {
state.date = data;
},
setPatients(state, data) {
state.patients = data
},
setSelectedPatient(state, data) {
state.selected_patient = data
},
setDetails(state, data) {
state.details = data
},
setSelectedDetail(state, data) {
state.selected_detail = data
}
},
actions: {
}
};
export default store

View File

@@ -1,136 +1,124 @@
<template> <template>
<div> <div>
<v-row> <v-container class="bg-white rounded-lg" fluid>
<v-col cols="12"> <v-row>
<v-container class="bg-white rounded-lg"> <v-col cols="2">
<v-text-field
:label="$t('message.tableDetailPatient.navbar.date')"
variant="outlined"
hide-details
></v-text-field>
</v-col>
<v-col cols="5">
<v-text-field
:label="$t('message.tableDetailPatient.navbar.noreg')"
variant="outlined"
hide-details
></v-text-field>
</v-col>
<v-col cols="2.5">
<v-text-field
:label="$t('message.tableDetailPatient.navbar.dob')"
variant="outlined"
hide-details
></v-text-field>
</v-col>
<v-col cols="2.5">
<v-text-field
:label="$t('message.tableDetailPatient.navbar.sender')"
variant="outlined"
hide-details
></v-text-field>
</v-col>
</v-row>
<v-row class="pb-5"> <v-data-table
<v-col cols="2"> :headers="headers"
<v-menu :items="xdetails"
v-model="menu" return-object
:close-on-content-click="false" hide-default-footer
transition="scale-transition" class="pt-5"
offset-y >
min-width="auto" <template v-slot:headers="{ columns }">
max-width="290px" <tr>
> <template v-for="column in columns" :key="column.key">
<template v-slot:activator="{ props }"> <td :class="column.class" :style="{ width: column.width, textAlign: column.align }">
<v-text-field <span>{{ column.title }}</span>
:model-value="formatDate()" </td>
label="Tanggal Mulai"
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="4">
<v-text-field
label="No Reg / Nama / Jenis Kelamin"
variant="outlined"
hide-details
></v-text-field>
</v-col>
<v-col cols="3">
<v-text-field
label="DOB / Umur"
variant="outlined"
hide-details
></v-text-field>
</v-col>
<v-col cols="3">
<v-text-field
label="Pengirim"
variant="outlined"
hide-details
></v-text-field>
</v-col>
</v-row>
<v-data-table
:headers="headers"
:items="xdetails"
return-object
hide-default-footer
>
<template v-slot:item="{ item }">
<tr>
<td class="text-left" v-if="item.is_result == 'N'" colspan="8">
<p class="font-weight-medium">{{ item.t_testname }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<p class="font-weight-medium">{{ item.t_testname }}</p>
</td>
<td class="text-left">
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<p>{{ item.result_flag }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.normal_note }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.unit_name }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.methode_name }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.note }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<div class="d-flex justify-center">
<v-btn fab
variant="tonal"
small
color="error"
class="bg-error-lighten ma-0 float-left">
<iconify-icon
style="font-size: 2rem;"
icon="fluent:dismiss-24-regular"
></iconify-icon>
</v-btn>
<v-btn fab
variant="tonal"
small
color="success"
class="bg-success-lighten ml-1 ma-0 float-left">
<iconify-icon
style="font-size: 2rem;"
icon="fluent:checkmark-24-regular"
></iconify-icon>
</v-btn>
</div>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<div class="d-flex">
<v-sheet class="font-weight-medium ma-1 pa-1">VR</v-sheet>
<v-sheet class="font-weight-medium ma-1 pa-1">VL</v-sheet>
</div>
</td>
</tr>
</template> </template>
</v-data-table> </tr>
</template>
</v-container> <template v-slot:item="{ item }">
</v-col> <tr>
</v-row> <td class="text-left" v-if="item.is_result == 'N'" colspan="8">
<p class="font-weight-medium">{{ item.t_testname }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<p class="font-weight-medium">{{ item.t_testname }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<p>{{ item.result_flag }}</p>
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.normal_note }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.unit_name }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.methode_name }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
{{ item.note }}
</td>
<td class="text-left" v-if="item.is_result == 'Y'">
<div class="d-flex justify-center">
<div
:dark="item.validation_old != 'Y'"
:disabled="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> </div>
</template> </template>
<style scoped> <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> </style>
<script type="module"> <script type="module">
@@ -144,72 +132,64 @@
align: 'start', align: 'start',
key: 'name', key: 'name',
sortable: false, sortable: false,
width: "10%", width: "15%",
title: "NAMA PEMERIKSAAN", title: this.$t('message.tableDetailPatient.header.name'),
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
{ {
align: 'start', align: 'start',
key: 'name', key: 'result',
sortable: false, sortable: false,
width: "10%", width: "10%",
title: "HASIL", title: this.$t('message.tableDetailPatient.header.result'),
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
{ {
align: 'start', align: 'start',
key: 'name', key: 'flag',
sortable: false,
width: "5%",
title: "FLAG",
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'name',
sortable: false, sortable: false,
width: "10%", width: "10%",
title: "NILAI NORMAL", title: this.$t('message.tableDetailPatient.header.flag'),
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
{ {
align: 'start', align: 'start',
key: 'name', key: 'nilai',
sortable: false, sortable: false,
width: "10%", width: "10%",
title: "UNIT", title: this.$t('message.tableDetailPatient.header.normalvalue'),
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
{ {
align: 'start', align: 'start',
key: 'name', key: 'unit',
sortable: false,
width: "10%",
title: this.$t('message.tableDetailPatient.header.unit'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'metode',
sortable: false, sortable: false,
width: "15%", width: "15%",
title: "METODE", title: this.$t('message.tableDetailPatient.header.method'),
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
{ {
align: 'start', align: 'start',
key: 'name', key: 'note',
sortable: false, sortable: false,
width: "15%", width: "15%",
title: "CATATAN", title: this.$t('message.tableDetailPatient.header.note'),
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
{ {
align: 'start', align: 'start',
key: 'name', key: 'validasi',
sortable: false, sortable: false,
width: "5%", width: "5%",
title: "VALIDASI", title: this.$t('message.tableDetailPatient.header.verification'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'name',
sortable: false,
width: "10%",
title: "MR",
class: "bg-secondary-lighten font-weight-bold", class: "bg-secondary-lighten font-weight-bold",
}, },
], ],

View File

@@ -1,47 +1,56 @@
<template> <template>
<div> <div>
<v-row> <v-container class="bg-white rounded-lg" fluid>
<v-col cols="12">
<v-container class="bg-white rounded-lg">
<v-data-table <v-data-table
:headers="headers" :headers="headers"
:items="xpatients" :items="xpatients"
return-object return-object
hide-default-footer hide-default-footer
> class="row-pointer"
<template v-slot:top> >
<v-toolbar flat class="bg-secondary-lighten"> <template v-slot:top>
<v-toolbar-title>{{ $t('message.toolbalTitle') }}</v-toolbar-title> <v-toolbar flat class="bg-secondary-lighten rounded-lg">
</v-toolbar> <v-toolbar-title class="text-black font-weight-bold">{{ $t('message.toolbalTitle') }}</v-toolbar-title>
</template> </v-toolbar>
</template>
<template v-slot:item="{ item }"> <template v-slot:headers="{ columns }">
<tr> <tr>
<td v-bind:class="{'blue-lighten-5':isSelected(item)}" @click="selectMe(item)"> <template v-for="column in columns" :key="column.key">
<div> <td :class="column.class" :style="{ width: column.width, textAlign: column.align }">
<p class="mt-2 mb-2">{{ item.noreg }}</p> <span>{{ column.title }}</span>
<p class="mb-2" > </td>
<v-chip label size="small">
{{ item.orderdate }}
</v-chip>
</p>
</div>
</td>
<td v-bind:class="{'blue-lighten-5':isSelected(item)}" @click="selectMe(item)">
<p>{{ item.name }}</p>
</td>
</tr>
</template> </template>
</v-data-table> </tr>
</v-container> </template>
</v-col>
</v-row> <template v-slot:item="{ item }">
<tr v-bind:class="{'bg-primary-lighten':isSelected(item)}" @click="selectMe(item)">
<td>
<div>
<p class="mt-2 mb-2">{{ item.noreg }}</p>
<p class="mb-2" >
<v-chip label size="small">
{{ item.orderdate }}
</v-chip>
</p>
</div>
</td>
<td>
<p>{{ item.name }}</p>
</td>
</tr>
</template>
</v-data-table>
</v-container>
</div> </div>
</template> </template>
<style scoped> <style scoped>
.row-pointer >>> tbody tr :hover {
cursor: pointer;
}
</style> </style>
<script type="module"> <script type="module">
@@ -55,7 +64,7 @@
key: 'name', key: 'name',
sortable: false, sortable: false,
width: "50%", width: "50%",
title: this.$t('message.table.noreg'), title: this.$t('message.tableListPatient.noreg'),
class: "font-weight-bold", class: "font-weight-bold",
}, },
{ {
@@ -63,7 +72,7 @@
key: 'name', key: 'name',
sortable: false, sortable: false,
width: "50%", width: "50%",
title: this.$t('message.table.name'), title: this.$t('message.tableListPatient.name'),
class: "font-weight-bold", class: "font-weight-bold",
}, },
], ],
@@ -86,8 +95,8 @@
isSelected(p) { isSelected(p) {
return p.id == this.$store.state.verification.selected_patient.id return p.id == this.$store.state.verification.selected_patient.id
}, },
selectMe(c) { selectMe(data) {
console.log(c) this.$store.commit("verification/setSelectedPatient", data)
} }
}, },
wacth: { wacth: {

View File

@@ -3,14 +3,12 @@
<one-navbar></one-navbar> <one-navbar></one-navbar>
<v-main> <v-main>
<div class="pa-5 bg-primary-lighten ml-2 rounded-xl h-100"> <div class="pa-5 bg-primary-lighten ml-2 rounded-xl h-100">
<search-component></search-component>
<v-row> <v-row>
<v-col cols="12" md="12" sm="12" xs="12"> <v-col cols="12" md="3" sm="12" xs="12" class="mt-5">
<search-component></search-component>
</v-col>
<v-col cols="12" md="4" sm="12" xs="12">
<list-patient-component></list-patient-component> <list-patient-component></list-patient-component>
</v-col> </v-col>
<v-col cols="12" md="8" sm="12" xs="12"> <v-col cols="12" md="9" sm="12" xs="12" class="mt-5">
<detail-patient-component></detail-patient-component> <detail-patient-component></detail-patient-component>
</v-col> </v-col>
</v-row> </v-row>

View File

@@ -1,116 +1,114 @@
<template> <template>
<div> <div>
<v-row> <v-container class="bg-white rounded-lg" fluid>
<v-col cols="12"> <v-row>
<v-card class="bg-white rounded-lg pa-5"> <v-col cols="3">
<v-row> <div class="d-flex align-center ga-2">
<v-col cols="2"> <v-menu
<v-menu v-model="menuStartDate"
v-model="menuStartDate" :close-on-content-click="false"
:close-on-content-click="false" transition="scale-transition"
transition="scale-transition" offset-y
offset-y min-width="auto"
min-width="auto" max-width="290px"
max-width="290px" >
> <template v-slot:activator="{ props }">
<template v-slot:activator="{ props }"> <v-text-field
<v-text-field :model-value="formatDate()"
:model-value="formatDate()" :label="$t('message.search.startdate')"
label="Tanggal Mulai" prepend-inner-icon="mdi-calendar"
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="menuStartDate=false"
></v-date-picker>
</v-menu>
</v-col>
<v-col cols="2">
<v-menu
v-model="menuEndDate"
: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="Tanggal Selesai"
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="menuEndDate=false"
></v-date-picker>
</v-menu>
</v-col>
<v-col cols="3">
<v-text-field
label="No Reg / Nama"
variant="outlined"
hide-details hide-details
append-inner-icon="mdi-magnify" readonly
variant="outlined"
v-bind="props"
></v-text-field> ></v-text-field>
</v-col> </template>
<v-col cols="3"> <v-date-picker
<v-autocomplete hide-header
label="Grup Pemeriksaan" show-adjacent-months
variant="outlined" rounded="lg"
color="primary"
v-model="date"
@update:modelValue="menuStartDate=false"
></v-date-picker>
</v-menu>
<v-menu
v-model="menuEndDate"
: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.search.enddate')"
prepend-inner-icon="mdi-calendar"
hide-details hide-details
menu-icon="mdi-chevron-down" readonly
:items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']" variant="outlined"
></v-autocomplete> v-bind="props"
</v-col> ></v-text-field>
<v-col cols="2"> </template>
<div style="height: 100%;"> <v-date-picker
<v-row class="pt-3 justify-space-between"> hide-header
<div show-adjacent-months
style="height: 100%;" rounded="lg"
class="rounded-lg bg-primary pa-2 mr-2 h-100" color="primary"
> v-model="date"
<iconify-icon @update:modelValue="menuEndDate=false"
style="font-size: 2rem;" ></v-date-picker>
icon="fluent:search-20-regular" </v-menu>
></iconify-icon> </div>
</div> </v-col>
<div <v-col cols="2.5">
class="pt-3 pa-3" <v-text-field
> :label="$t('message.search.noreg')"
<v-btn variant="outlined"
class="bg-primary-lighten" hide-details
variant="tonal" append-inner-icon="mdi-magnify"
color="primary" ></v-text-field>
> </v-col>
HISTORY <v-col cols="2.5">
</v-btn> <v-autocomplete
</div> :label="$t('message.search.group')"
</v-row> variant="outlined"
hide-details
menu-icon="mdi-chevron-down"
:items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
></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-col cols="3">
<div style="height: 100%;">
<v-row class="pt-3 justify-end">
<div>
<v-btn
class="bg-primary-lighten mr-2"
variant="tonal"
color="primary"
size="x-large"
>
{{ $t('message.search.history') }}
</v-btn>
</div> </div>
</v-col> </v-row>
</v-row> </div>
</v-card> </v-col>
</v-col> </v-row>
</v-row> </v-container>
</div> </div>
</template> </template>
@@ -129,7 +127,15 @@
}; };
}, },
computed: { computed: {
date: {
get() {
return this.$store.state.verification.date;
},
set(val) {
console.log(val)
this.$store.commit("verification/setDate", val);
},
},
}, },
methods: { methods: {
formatDate() { formatDate() {

View File

@@ -1,20 +1,70 @@
var CustomMessages = { var CustomMessages = {
en: { en: {
message: { message: {
toolbalTitle: "PATIENT", search: {
table: { startdate: "Start Date",
noreg: "NO. REG", enddate: "End Date",
name: "NAME", noreg: "No. Reg / Name",
}, group: "Examination Group",
history: "History",
},
toolbalTitle: "PATIENT",
tableListPatient: {
noreg: "NO. REG",
name: "NAME",
},
tableDetailPatient: {
navbar: {
date: "Date",
noreg: "No. Reg / Name / Gender",
dob: "DOB / Age",
sender: "Sender"
},
header: {
name: "EXAMINATION NAME",
result: "RESULT",
flag: "FLAG",
normalvalue: "NORMAL VALUE",
unit: "UNIT",
method: "METHOD",
note: "NOTE",
verification: "VERIFICATION"
}
}
}, },
}, },
id: { id: {
message: { message: {
toolbalTitle: "PASIEN", search: {
table: { startdate: "Tanggal Mulai",
noreg: "NO. REG", enddate: "Tanggal Selesai",
name: "NAMA", noreg: "No. Reg / Nama",
}, group: "Grup Pemeriksaan",
history: "Riwayat",
},
toolbalTitle: "PASIEN",
tableListPatient: {
noreg: "NO. REG",
name: "NAMA",
},
tableDetailPatient: {
navbar: {
date: "Tanggal",
noreg: "No. Reg / Nama / Jenis Kelamin",
dob: "DOB / Umur",
sender: "Pengirim"
},
header: {
name: "NAMA PEMERIKSAAN",
result: "HASIL",
flag: "FLAG",
normalvalue: "NILAI NORMAL",
unit: "UNIT",
method: "METODE",
note: "CATATAN",
verification: "VERIFFIKASI"
}
}
}, },
}, },
}; };

View File

@@ -3,6 +3,7 @@ const store = {
namespaced: true, namespaced: true,
state() { state() {
return { return {
date: new Date(),
patients: [ patients: [
{ {
id: 1, id: 1,
@@ -2078,6 +2079,9 @@ const store = {
}; };
}, },
mutations: { mutations: {
setDate(state, data) {
state.date = data;
},
setPatients(state, data) { setPatients(state, data) {
state.patients = data state.patients = data
}, },

View File

@@ -14,7 +14,7 @@
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
<v-text-field <v-text-field
:model-value="formatDate()" :model-value="formatDate()"
label="Tanggal" :label="$t('message.filter.date')"
prepend-inner-icon="mdi-calendar" prepend-inner-icon="mdi-calendar"
hide-details hide-details
readonly readonly
@@ -34,7 +34,7 @@
</v-col> </v-col>
<v-col cols="2.2"> <v-col cols="2.2">
<v-text-field <v-text-field
label="No Reg / Nama" :label="$t('message.filter.noreg')"
variant="outlined" variant="outlined"
hide-details hide-details
append-inner-icon="mdi-magnify" append-inner-icon="mdi-magnify"
@@ -42,29 +42,29 @@
</v-col> </v-col>
<v-col cols="2.2"> <v-col cols="2.2">
<v-autocomplete <v-autocomplete
label="Kel Pelanggan" :label="$t('message.filter.group')"
variant="outlined" variant="outlined"
hide-details hide-details
menu-icon="mdi-chevron-down" menu-icon="mdi-chevron-down"
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']" :items="temp_dropdown"
></v-autocomplete> ></v-autocomplete>
</v-col> </v-col>
<v-col cols="2.2"> <v-col cols="2.2">
<v-autocomplete <v-autocomplete
label="Station" :label="$t('message.filter.station')"
variant="outlined" variant="outlined"
hide-details hide-details
menu-icon="mdi-chevron-down" menu-icon="mdi-chevron-down"
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']" :items="temp_dropdown"
></v-autocomplete> ></v-autocomplete>
</v-col> </v-col>
<v-col cols="2.2"> <v-col cols="2.2">
<v-autocomplete <v-autocomplete
label="Lokasi" :label="$t('message.filter.location')"
variant="outlined" variant="outlined"
hide-details hide-details
menu-icon="mdi-chevron-down" menu-icon="mdi-chevron-down"
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']" :items="temp_dropdown"
></v-autocomplete> ></v-autocomplete>
</v-col> </v-col>
<v-col cols="1"> <v-col cols="1">
@@ -98,8 +98,18 @@
}, },
computed: { computed: {
date: { date: {
get() {
return this.$store.state.collection.date;
},
set(val) {
this.$store.commit("setDate", val);
}
}, },
temp_dropdown: {
get() {
return this.$store.state.collection.temp_dropdown;
},
}
}, },
methods: { methods: {
formatDate() { formatDate() {
@@ -107,6 +117,11 @@
return moment(this.date).format("DD-MM-YYYY"); 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> </script>

View File

@@ -2,7 +2,7 @@
<div> <div>
<v-container class="bg-white rounded-lg" fluid> <v-container class="bg-white rounded-lg" fluid>
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5"> <div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
<h3 class="primary-lighten">PASIEN</h3> <h3 class="primary-lighten">{{ $t('message.tablePatient.title') }}</h3>
</div> </div>
<v-data-table <v-data-table
v-model="selected_patients" v-model="selected_patients"
@@ -11,6 +11,15 @@
hide-default-footer hide-default-footer
class="row-pointer" 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 }"> <template v-slot:item="{ item }">
<tr @click="selectItem(item)" v-bind:class="{'bg-primary-lighten':isItemSelected(item)}"> <tr @click="selectItem(item)" v-bind:class="{'bg-primary-lighten':isItemSelected(item)}">
<td> <td>
@@ -49,43 +58,43 @@ export default {
selectedItems: [], selectedItems: [],
headers: [ headers: [
{ {
title: "TANGGAL", title: this.$t('message.tablePatient.date'),
align: "start", align: "start",
sortable: false, sortable: false,
key: "name", key: "date",
width: "15%",
class: "font-weight-bold",
},
{
title: this.$t('message.tablePatient.noreg'),
align: "start",
sortable: false,
key: "noreg",
width: "20%", width: "20%",
class: "font-weight-bold", class: "font-weight-bold",
}, },
{ {
title: "NO. REG", title: this.$t('message.tablePatient.group'),
align: "start", align: "start",
sortable: false, sortable: false,
key: "name", key: "group",
width: "20%", width: "25%",
class: "font-weight-bold", class: "font-weight-bold",
}, },
{ {
title: "KEL. PELANGGAN", title: this.$t('message.tablePatient.name'),
align: "start", align: "start",
sortable: false, sortable: false,
key: "name", key: "name",
width: "20%", width: "25%",
class: "font-weight-bold", class: "font-weight-bold",
}, },
{ {
title: "NAMA", title: this.$t('message.tablePatient.status'),
align: "start", align: "start",
sortable: false, sortable: false,
key: "name", key: "status",
width: "20%", width: "15%",
class: "font-weight-bold",
},
{
title: "STATUS",
align: "start",
sortable: false,
key: "name",
width: "20%",
class: "font-weight-bold", class: "font-weight-bold",
}, },
], ],
@@ -93,20 +102,21 @@ export default {
}, },
computed: { computed: {
patients() { patients() {
return this.$store.state.collection.patients return this.$store.state.collection.patients;
}, },
selected_patients: { selected_patients: {
get() { get() {
return this.$store.state.collection.selected_patients return this.$store.state.collection.selected_patients;
}, },
set(data) { set(data) {
this.$store.commit("setSelectedPatients", data) this.$store.commit("setSelectedPatients", data);
} }
} }
}, },
methods: { methods: {
selectItem(data) { selectItem(data) {
this.$store.commit("setSelectedPatients", data); // this.$store.commit("setSelectedPatients", data);
this.selected_patients = data;
}, },
isItemSelected(data) { isItemSelected(data) {
return data.noreg === this.$store.state.collection.selected_patients.noreg return data.noreg === this.$store.state.collection.selected_patients.noreg

View File

@@ -4,7 +4,7 @@
<div class="bg-primary-lighten rounded-lg pa-5"> <div class="bg-primary-lighten rounded-lg pa-5">
<v-row> <v-row>
<v-col cols="2"> <v-col cols="2">
<div class="rounded-lg bg-secondary-lighten" style="width: 100px; height: 100px;"> <div class="rounded-lg bg-secondary-lighten" style="width: 100%; height: 120px;">
<!-- placeholder photo --> <!-- placeholder photo -->
</div> </div>
</v-col> </v-col>
@@ -16,6 +16,7 @@
<div <div
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;" 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" class="rounded-lg pa-2 mr-2 bg-grey-lighten-5 pointer"
v-show="selected.status === 'Call'"
> >
<iconify-icon <iconify-icon
class="text-grey" class="text-grey"
@@ -26,12 +27,13 @@
<div <div
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;" style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
class="rounded-lg bg-secondary-lighten pa-2 pointer" class="rounded-lg bg-secondary-lighten pa-2 pointer"
@click="setCall(selected)"
v-show="selected.doneCall !== 'Y'"
> >
<iconify-icon <iconify-icon
class="text-secondary-darken" class="text-secondary-darken"
style="font-size: 1.5rem;" style="font-size: 1.5rem;"
icon="fluent:speaker-2-24-regular" :icon="setIconCall(selected.status)"
icon="fluent:arrow-sync-24-regular"
></iconify-icon> ></iconify-icon>
</div> </div>
</v-col> </v-col>
@@ -41,18 +43,18 @@
<p class="font-weight-medium">PID</p> <p class="font-weight-medium">PID</p>
</v-col> </v-col>
<v-col cols="2" class="text-end"> <v-col cols="2" class="text-end">
<p class="font-weight-medium" style="color: slategray;">asd</p> <p class="font-weight-medium" style="color: slategray;">-</p>
</v-col> </v-col>
</v-row> </v-row>
<v-row no-gutters> <v-row no-gutters>
<v-col cols="4"> <v-col cols="4">
<p class="font-weight-medium">Tanggal Lahir dan Umur</p> <p class="font-weight-medium">{{ $t('message.dobage') }}</p>
</v-col> </v-col>
<v-col cols="4" class="text-end"> <v-col cols="4" class="text-end">
<p class="font-weight-medium" style="color: slategray;">10-11-1999</p> <p class="font-weight-medium" style="color: slategray;">{{ selected.dob }}</p>
</v-col> </v-col>
<v-col cols="4" class="text-end"> <v-col cols="4" class="text-end">
<p class="font-weight-medium" style="color: slategray;">24 Tahun 8 Bulan 21 Hari</p> <p class="font-weight-medium" style="color: slategray;">{{ selected.age }}</p>
</v-col> </v-col>
</v-row> </v-row>
</div> </div>
@@ -61,7 +63,7 @@
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5"> <div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
<v-row> <v-row>
<v-col cols="10" align-self="center"> <v-col cols="10" align-self="center">
<h3 class="primary-lighten">STAF: NOVITA</h3> <h3 class="primary-lighten">{{ $t('message.tableDetail.title') }}: {{ details.staff }}</h3>
</v-col> </v-col>
<v-col cols="2" align-self="center" class="d-flex justify-end"> <v-col cols="2" align-self="center" class="d-flex justify-end">
<div <div
@@ -88,10 +90,19 @@
</v-row> </v-row>
</div> </div>
<v-data-table <v-data-table
:items="items" :items="details.specimen"
:headers="headers" :headers="headers"
hide-default-footer 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 }"> <template v-slot:item="{ item }">
<tr> <tr>
<td> <td>
@@ -104,15 +115,17 @@
<div <div
style="display: flex; align-items: center; justify-content: center;" style="display: flex; align-items: center; justify-content: center;"
class="rounded-lg pa-2" class="rounded-lg pa-2"
v-if="selected.doneCall === 'Y'"
> >
<div <div
class="pointer" class="pointer"
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center;" style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center;"
> >
<iconify-icon <iconify-icon
class="text-grey" :class="{'text-error': item.requirement === 'N'}"
style="font-size: 1.5rem;" style="font-size: 1.5rem;"
icon="fluent:dismiss-24-regular" icon="fluent:dismiss-12-filled"
@click="setReq(item, 'N')"
></iconify-icon> ></iconify-icon>
</div> </div>
<div <div
@@ -120,37 +133,39 @@
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center; margin-left: 8px;" style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center; margin-left: 8px;"
> >
<iconify-icon <iconify-icon
class="text-grey" :class="{'text-success': item.requirement === 'Y'}"
style="font-size: 1.5rem;" style="font-size: 2rem;"
icon="fluent:checkmark-24-regular" icon="fluent:checkmark-12-filled"
@click="setReq(item, 'Y')"
></iconify-icon> ></iconify-icon>
</div> </div>
</div> </div>
<p v-else style="font-size: 1.5rem;">-</p>
</td> </td>
<td align="center" class="py-1"> <td align="center">
<div class="bg-warning rounded-lg pa-1 text-white"> <div v-if="selected.doneCall === 'Y'" class="py-1">
06-08-2024 14:17 <div class="bg-warning rounded-lg pa-1 text-white">
</div> {{ formatDate(item.sDate) }}
<div class="bg-grey-lighten-5 rounded-lg pa-1 mt-1"> </div>
00-00-0000 00:00 <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> </div>
<p v-else style="font-size: 1.5rem;">-</p>
</td> </td>
</tr> </tr>
</template> </template>
</v-data-table> </v-data-table>
<div class="ml-3"> <div class="ml-3">
<v-chip class="mr-5 mt-2" color="primary">DARAH</v-chip> <v-chip v-for="y in details.jenis" class="mr-2 mt-2" :color="selected.doneCall === 'Y' ? 'success' : 'primary'">{{ y }}</v-chip>
<v-chip class="mr-5 mt-2" color="primary">SWAB/SEKRET</v-chip>
</div> </div>
</v-container> </v-container>
<v-container class="bg-white rounded-lg mt-5" fluid> <v-container class="bg-white rounded-lg mt-5" fluid>
<div class="bg-secondary-lighten rounded-lg pa-5"> <div class="bg-secondary-lighten rounded-lg pa-5">
<h3 class="primary-lighten">PEMERIKSAAN</h3> <h3 class="primary-lighten">{{ $t('message.examination') }}</h3>
</div> </div>
<div> <div>
<v-chip class="mr-5 mt-5" color="success">Hematologi Lengkap</v-chip> <v-chip v-for="x in pemeriksaan" class="mt-5 mr-2" color="success">{{ x }}</v-chip>
<v-chip class="mr-5 mt-5" color="success">Golongan Darah Rhesus</v-chip>
<v-chip class="mr-5 mt-5" color="success">Kultur Usap Tenggorok (Vitek)</v-chip>
</div> </div>
</v-container> </v-container>
</div> </div>
@@ -167,19 +182,9 @@
return { return {
menu: false, menu: false,
visible: false, visible: false,
items: [
{
specimen: "EDTA Rutin",
barcode: "055000035LSE1A",
},
{
specimen: "EDTA Rutin",
barcode: "0550000AA223FF",
},
],
headers: [ headers: [
{ {
title: "SPECIMEN", title: this.$t('message.tableDetail.speciment'),
align: "start", align: "start",
sortable: false, sortable: false,
key: "name", key: "name",
@@ -187,7 +192,7 @@
class: "font-weight-bold", class: "font-weight-bold",
}, },
{ {
title: "BARCODE", title: this.$t('message.tableDetail.barcode'),
align: "start", align: "start",
sortable: false, sortable: false,
key: "name", key: "name",
@@ -195,7 +200,7 @@
class: "font-weight-bold", class: "font-weight-bold",
}, },
{ {
title: "REQUIREMENT", title: this.$t('message.tableDetail.requirement'),
align: "center", align: "center",
sortable: false, sortable: false,
key: "name", key: "name",
@@ -203,7 +208,7 @@
class: "font-weight-bold", class: "font-weight-bold",
}, },
{ {
title: "AKSI", title: this.$t('message.tableDetail.action'),
align: "center", align: "center",
sortable: false, sortable: false,
key: "name", key: "name",
@@ -214,12 +219,51 @@
}; };
}, },
computed: { computed: {
selected() { selected: {
return this.$store.state.collection.selected_patients; get() {
return this.$store.state.collection.selected_patients;
},
set(data) {
this.$store.commit("setSelectedPatients", data);
}
},
details: {
get() {
return this.$store.state.collection.details;
},
set(data) {
this.$store.commit("")
}
},
pemeriksaan() {
return this.$store.state.collection.pemeriksaan;
} }
}, },
methods: { 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> </script>

View File

@@ -1,32 +1,58 @@
var CustomMessages = { var CustomMessages = {
en: { en: {
message: { message: {
login: "Log in", filter: {
title: "Log in to your account", date: "Date",
sublogin: "Enter your details below", noreg: "No. Reg / Name",
email: "Email", group: "Customer Group",
password: "Password", station: "Station",
forgotPassword: "Forgot password?", location: "Location",
placeholderEmail: "Enter your email", },
placeholderPassword: "Enter your password", tablePatient: {
msgInfo: 'Enter the registered account', title: "PATIENT",
errorQuery: "Error get data", date: "DATE",
invalid: "Invalid username / password" 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: { id: {
message: { message: {
login: "Masuk", filter: {
title: "Masuk ke akun Anda", date: "Tanggal",
sublogin: "Masukkan detail Anda di bawah ini", noreg: "No. Reg / Nama",
email: "Surel", group: "Kel. Pelanggan",
password: "Kata Sandi", station: "Station",
forgotPassword: "Lupa kata sandi?", location: "Lokasi",
placeholderEmail: "Isikan email anda", },
placeholderPassword: "Isikan kata sandi anda", tablePatient: {
msgInfo: "Masukkan akun terdaftar", title: "PASIEN",
errorQuery: "Gagal mendapatkan data", date: "TANGGAL",
invalid: "Nama pengguna / kata sandi tidak valid" 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

@@ -1,27 +1,41 @@
const store = { const store = {
state() { state() {
return { return {
date: new Date(),
temp_dropdown: ["Lorem", "ipsum", "dolor", "sit", "amet"],
patients: [ patients: [
{ {
tanggal: "31-07-2024", tanggal: "31-07-2024",
noreg: "055000037LA", noreg: "055000037LA",
kelpelanggan: "PASIEN MANDIRI", kelpelanggan: "PASIEN MANDIRI",
nama: "Tn. Alpha", nama: "Tn. Alpha",
status: "call", age: "23 tahun 11 bulan 10 hari",
dob: "10/10/2000",
pid: "-",
status: "New",
doneCall: "N",
}, },
{ {
tanggal: "31-07-2024", tanggal: "31-07-2024",
noreg: "055000036LA", noreg: "055000036LA",
kelpelanggan: "PASIEN KLINISI", kelpelanggan: "PASIEN KLINISI",
nama: "Tn. Beta", nama: "Tn. Beta",
age: "27 tahun 2 bulan 12 hari",
dob: "08/06/1997",
pid: "-",
status: "New", status: "New",
doneCall: "N",
}, },
{ {
tanggal: "30-07-2024", tanggal: "30-07-2024",
noreg: "055000035LA", noreg: "055000035LA",
kelpelanggan: "PASIEN KLINISI", kelpelanggan: "PASIEN KLINISI",
nama: "Tn. Gamma", nama: "Tn. Gamma",
age: "25 tahun 1 bulan 23 hari",
dob: "27/06/1999",
pid: "-",
status: "New", status: "New",
doneCall: "N",
}, },
], ],
selected_patients: { selected_patients: {
@@ -29,8 +43,34 @@ const store = {
noreg: "-", noreg: "-",
kelpelanggan: "-", kelpelanggan: "-",
nama: "-", nama: "-",
age: "-",
dob: "-",
pid: "-",
status: "-", status: "-",
}, },
details: {
staff: "NOVITA",
specimen: [
{
specimen: "EDTA Rutin",
barcode: "055000035LSE1A",
requirement: "",
sDate: new Date(),
eDate: "",
},
{
specimen: "EDTA Rutin",
barcode: "0550000AA223FF",
requirement: "",
sDate: new Date(),
eDate: "",
},
],
jenis: ["DARAH", "SWAB/SEKRET" ]
},
pemeriksaan: [
"Hematologi Lengkap", "Golongan Darah Rhesus", "Kultur Usap Tenggorokan (Vitek)",
]
}; };
}, },
mutations: { mutations: {
@@ -40,11 +80,12 @@ const store = {
setSelectedPatients(state, data) { setSelectedPatients(state, data) {
state.selected_patients = data state.selected_patients = data
}, },
setDate(state, date) {
state.date = date;
}
}, },
actions: { actions: {
selectPatient({ commit, data }) {
commit('setSelectedPatients', data);
}
} }
} }

View File

@@ -0,0 +1,106 @@
<template>
<div>
<v-container class="bg-white rounded-lg" fluid>
<v-row>
<v-col cols="3">
<div class="d-flex align-center ga-2">
<v-menu
v-model="menuStartDate"
: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"
density="compact"
v-bind="props"
></v-text-field>
</template>
<v-date-picker
hide-header
show-adjacent-months
rounded="lg"
color="primary"
v-model="date"
@update:modelValue="menuStartDate=false"
></v-date-picker>
</v-menu>
</div>
</v-col>
<v-col cols="9">
<div class="d-flex justify-end ga-6">
<v-select
:label="$t('message.filter.worklist')"
variant="outlined"
hide-details
density="compact"
menu-icon="mdi-chevron-down"
:items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
></v-select>
<v-btn
variant="flat"
style="height: auto; width: 40px;"
class="bg-primary rounded-lg">
<iconify-icon
style="font-size: 1.5rem;"
icon="fluent:search-20-regular"
></iconify-icon>
</v-btn>
</div>
</v-col>
</v-row>
</v-container>
</div>
</template>
<style scoped>
</style>
<script type="module">
export default {
name: "Filter",
data() {
return {
menuStartDate: false,
menuEndDate: false,
visible: false,
};
},
computed: {
date: {
get() {
return this.$store.state.worklist.date;
},
set(val) {
console.log(val)
this.$store.commit("worklist/setDate", val);
},
},
},
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")}`;
},
},
wacth: {
}
}
</script>

View File

@@ -0,0 +1,131 @@
<template>
<div>
<v-container class="bg-white rounded-lg" fluid>
<v-data-table
:headers="headers"
:items="xpatients"
return-object
hide-default-footer
>
<template v-slot:headers="{ columns }">
<tr>
<td width="15%" class="pa-4 bg-secondary-lighten font-weight-bold">
{{ $t('message.headerWorklist.test') }}
</td>
<td class="pa-1 bg-secondary-lighten font-weight-bold">
<span class="position-relative" style="top:6px;">
{{ $t('message.headerWorklist.patient') }}
</span>
<span class="text-black float-right mr-3" style="font-size:20px;">
{{ staff }}
</span>
</td>
</tr>
</template>
<template v-slot:item="{ item }">
<tr>
<td>
<p class="mt-2 font-weight-medium text-uppercase">{{ item.T_TestName }}</p>
<p class="text-grey">{{ item.T_TestCode }}</p>
<p class="mb-2 text-black">Total pasien : {{ item.patients.length }}</p>
</td>
<td>
<v-row class="flex-wrap">
<v-sheet v-for="(p, i) in item.patients" v-bind:key="i" class="pr-3 row-pointer">
<v-sheet :class="p.is_received == 'Y' ? 'text-uppercase bg-primary-lighten text-primary box-y':'text-uppercase text-black box-n'">
<p class="font-weight-medium">{{ p.name }}</p>
<p >{{ p.number }}</p>
</v-sheet>
</v-sheet>
</v-row>
</td>
</tr>
</template>
</v-data-table>
</v-container>
</div>
</template>
<style scoped>
.row-pointer :hover {
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;
}
.box-y {
display: flex;
width: 202px;
padding: 8px 12px;
flex-direction: column;
align-items: flex-start;
gap: 4px;
border-radius: 4px;
border: 1px solid #E3F2FD;
}
.box-n {
display: flex;
width: 202px;
padding: 8px 12px;
flex-direction: column;
align-items: flex-start;
gap: 4px;
border-radius: 4px;
border: 1px solid #E0E0E0;
}
</style>
<script type="module">
export default {
name: "ListPatient",
data() {
return {
staff: "BELUM ADA STAFF",
headers: [
{
align: 'start',
key: 'test',
sortable: false,
width: "15%",
title: this.$t('message.headerWorklist.test'),
class: "bg-secondary-lighten font-weight-bold",
},
{
align: 'start',
key: 'patient',
sortable: false,
width: "85%",
title: this.$t('message.headerWorklist.patient'),
class: "bg-secondary-lighten font-weight-bold",
},
],
};
},
computed: {
xpatients() {
return this.$store.state.worklist.patients
},
selected_patient: {
get() {
return this.$store.state.worklist.selected_patient
},
set(val) {
this.$store.commit("worklist/setSelectedPatient", val)
}
}
},
methods: {
},
wacth: {
}
}
</script>

View File

@@ -0,0 +1,50 @@
<template>
<v-app id="inspire">
<one-navbar></one-navbar>
<v-main>
<div class="pa-5 bg-primary-lighten ml-2 rounded-xl h-100">
<v-row>
<v-col cols="12" md="12" sm="12" xs="12">
<filter-component></filter-component>
</v-col>
<v-col cols="12" md="12" sm="12" xs="12">
<list-worklist-component></list-worklist-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 filterComponent from "./filter.vue";
import listWorklistComponent from "./listWorklist.vue";
export default {
name: "MainWorklist",
components: {
"one-navbar": NavbarComponent,
"filter-component": filterComponent,
"list-worklist-component": listWorklistComponent
},
data() {
return {
};
},
computed: {
},
methods: {
},
wacth: {
}
}
</script>

116
worklist/index.html Normal file
View File

@@ -0,0 +1,116 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WESTONE</title>
<!-- Vuetify CSS -->
<link href="../css/vuetify.css" rel="stylesheet" />
<!-- Local Stylesheet for Fonts -->
<link rel="stylesheet" href="../css/styles.css" />
<link href="../css/materialdesignicon.css" rel="stylesheet" />
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
</head>
<body>
<div id="app"></div>
<!-- Moment -->
<script src="../libraries/moment.js"></script>
<!-- Vue.js -->
<!-- DEV -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<!-- PROD -->
<!-- <script src="../libraries/vue3.4.36.global.prod.js"></script> -->
<!-- Vuex -->
<script src="../libraries/vuex.js"></script>
<!-- Vuetify -->
<script src="../libraries/vuetify3.js"></script>
<!-- vue-i18n -->
<script src="../libraries/vue-i18n.global.js"></script>
<!-- Axios -->
<script src="../libraries/axios.js"></script>
<script src="../globalscript/theme.js"></script>
<!-- loader single file component -->
<script src="../libraries/vue3-sfc-loader.js"></script>
<script src="./language.js"></script>
<script type="module">
const { loadModule } = window["vue3-sfc-loader"];
import worklist from "./modules/worklist.js";
import system from "../globalstore/globalstore.js";
const store = Vuex.createStore({
modules: {
system: system,
worklist: worklist,
},
});
const options = {
moduleCache: {
vue: Vue,
},
getFile(url) {
return fetch(url).then((response) =>
response.ok ? response.text() : Promise.reject(response)
);
},
addStyle(textContent) {
const style = document.createElement("style");
style.textContent = textContent;
const ref = document.head.getElementsByTagName("style")[0] || null;
document.head.insertBefore(style, ref);
},
};
// Locale messages
const messages = CustomMessages;
// Get the browser's preferred language
const browserLocale = navigator.language || navigator.languages[0];
// Initialize vue-i18n
const i18n = VueI18n.createI18n({
locale: browserLocale.startsWith("id") ? "id" : "en", // Set locale based on browser setting
fallbackLocale: "en", // Set fallback locale
messages, // Set locale messages
});
// Vue App
const app = Vue.createApp({
data() {
return {};
},
template: `
<main-worklist-component></main-worklist-component>
`,
});
const vuetify = Vuetify.createVuetify({
theme: {
themes: CustomTheme,
},
});
app.use(store);
app.use(vuetify);
app.use(i18n);
const components = {
"main-worklist-component": "./components/mainWorklist.vue",
};
Promise.all(
Object.entries(components).map(([name, path]) => {
return loadModule(path, options).then((component) => {
app.component(name, component);
});
})
)
.then(() => {
app.mount("#app");
})
.catch((error) => {
console.error("Error loading components:", error);
});
</script>
</body>
</html>

26
worklist/language.js Normal file
View File

@@ -0,0 +1,26 @@
var CustomMessages = {
en: {
message: {
filter: {
date: "Date",
worklist: "Worklist",
},
headerWorklist: {
test: "EXAMINATION NAME",
patient: "PATIENT"
}
},
},
id: {
message: {
filter: {
date: "Tanggal",
worklist: "Daftar kerja",
},
headerWorklist: {
test: "NAMA PEMERIKSAAN",
patient: "PASIEN"
}
},
},
};

View File

@@ -0,0 +1,162 @@
const store = {
namespaced: true,
state() {
return {
date: new Date(),
patients: [
{
"T_TestID": "4095",
"Nat_TestID": "4095",
"T_TestCode": "10110100",
"T_TestName": "Hematologi Lengkap",
"T_WorklistID": "40",
"patients": [
{
"name": "Tn COCOBA / 654545 ",
"id": "132258",
"did": "1626215",
"number": "05600003LA",
"is_rujukan": "N",
"T_SampleTypeID": 2,
"speciment_receive": "N",
"speciment_handling": "N",
"is_cito": "N",
"is_received": "N",
"is_confirm": "N",
"barcode": "05600003LAEL",
"requirements": null
},
{
"name": "Tn COCOBA / 654545 ",
"id": "132259",
"did": "1626279",
"number": "05600004LA",
"is_rujukan": "N",
"T_SampleTypeID": 2,
"speciment_receive": "Y",
"speciment_handling": "Y",
"is_cito": "N",
"is_received": "Y",
"is_confirm": "N",
"barcode": "05600004LAEL",
"requirements": null
}
]
},
{
"T_TestID": "4099",
"Nat_TestID": "4099",
"T_TestCode": "10110500",
"T_TestName": "Leukosit",
"T_WorklistID": "40",
"patients": [
{
"name": "Tn COCOBA / 654545 ",
"id": "132258",
"did": "1626217",
"number": "05600003LA",
"is_rujukan": "N",
"T_SampleTypeID": 2,
"speciment_receive": "N",
"speciment_handling": "N",
"is_cito": "N",
"is_received": "N",
"is_confirm": "N",
"barcode": "05600003LAEL",
"requirements": null
}
]
},
{
"T_TestID": "4108",
"Nat_TestID": "4108",
"T_TestCode": "10110800",
"T_TestName": "Trombosit",
"T_WorklistID": "40",
"patients": [
{
"name": "Tn COCOBA / 654545 ",
"id": "132258",
"did": "1626226",
"number": "05600003LA",
"is_rujukan": "N",
"T_SampleTypeID": 2,
"speciment_receive": "N",
"speciment_handling": "N",
"is_cito": "N",
"is_received": "N",
"is_confirm": "N",
"barcode": "05600003LAEL",
"requirements": null
}
]
},
{
"T_TestID": "4110",
"Nat_TestID": "4110",
"T_TestCode": "10111000",
"T_TestName": "Erytrosit",
"T_WorklistID": "40",
"patients": [
{
"name": "Tn COCOBA / 654545 ",
"id": "132258",
"did": "1626228",
"number": "05600003LA",
"is_rujukan": "N",
"T_SampleTypeID": 2,
"speciment_receive": "N",
"speciment_handling": "N",
"is_cito": "N",
"is_received": "N",
"is_confirm": "N",
"barcode": "05600003LAEL",
"requirements": null
}
]
},
{
"T_TestID": "4633",
"Nat_TestID": "4633",
"T_TestCode": "10510100",
"T_TestName": "SGOT",
"T_WorklistID": "40",
"patients": [
{
"name": "Ny COBA HENY LAGI ",
"id": "132261",
"did": "1626344",
"number": "05600006LA",
"is_rujukan": "N",
"T_SampleTypeID": 35,
"speciment_receive": "N",
"speciment_handling": "N",
"is_cito": "N",
"is_received": "N",
"is_confirm": "N",
"barcode": null,
"requirements": null
}
]
}
],
selected_patient: {}
};
},
mutations: {
setDate(state, data) {
state.date = data;
},
setPatients(state, data) {
state.patients = data
},
setSelectedPatient(state, data) {
state.selected_patient = data
}
},
actions: {
}
};
export default store