Compare commits
13 Commits
menu
...
hanan/resu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
119e434e3a | ||
|
|
4d8012a10a | ||
|
|
08e181f3ce | ||
|
|
b3ad260791 | ||
| 738068edc5 | |||
| 7b1526e06b | |||
| 13e203fb57 | |||
| 281993b01e | |||
|
|
e76cb444fb | ||
|
|
e0a5309c95 | ||
|
|
49e1de64ea | ||
|
|
11e04e518f | ||
| c0f0d36fd7 |
@@ -18,6 +18,9 @@ var CustomTheme = {
|
|||||||
"success-lighten": "#E8F5E9",
|
"success-lighten": "#E8F5E9",
|
||||||
"success-darken": "#1B5E20",
|
"success-darken": "#1B5E20",
|
||||||
white: "#FFFFFF",
|
white: "#FFFFFF",
|
||||||
|
grey: "#9E9E9E",
|
||||||
|
"grey-lighten-5": "#FAFAFA",
|
||||||
|
"grey-darken-1": "#757575"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
226
result-entry/components/detailPatient.vue
Normal file
226
result-entry/components/detailPatient.vue
Normal file
@@ -0,0 +1,226 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-container class="bg-white rounded-lg" fluid>
|
||||||
|
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="2">
|
||||||
|
<v-menu
|
||||||
|
v-model="menu"
|
||||||
|
:close-on-content-click="false"
|
||||||
|
transition="scale-transition"
|
||||||
|
offset-y
|
||||||
|
min-width="auto"
|
||||||
|
max-width="290px"
|
||||||
|
>
|
||||||
|
<template v-slot:activator="{ props }">
|
||||||
|
<v-text-field
|
||||||
|
:model-value="formatDate()"
|
||||||
|
label="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="5">
|
||||||
|
<v-text-field
|
||||||
|
label="No Reg / Nama / Jenis Kelamin"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
></v-text-field>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.5">
|
||||||
|
<v-text-field
|
||||||
|
label="DOB / Umur"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
></v-text-field>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.5">
|
||||||
|
<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
|
||||||
|
class="pt-5"
|
||||||
|
>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<script type="module">
|
||||||
|
export default {
|
||||||
|
name: "DetailPatient",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
menu: false,
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "15%",
|
||||||
|
title: "NAMA PEMERIKSAAN",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "20%",
|
||||||
|
title: "HASIL",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "5%",
|
||||||
|
title: "FLAG",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "10%",
|
||||||
|
title: "NILAI NORMAL",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "10%",
|
||||||
|
title: "UNIT",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "20%",
|
||||||
|
title: "METODE",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "20%",
|
||||||
|
title: "CATATAN",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
xdetails() {
|
||||||
|
return this.$store.state.entry.details
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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>
|
||||||
96
result-entry/components/listPatient.vue
Normal file
96
result-entry/components/listPatient.vue
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
<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: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.table.noreg'),
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "50%",
|
||||||
|
title: this.$t('message.table.name'),
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
xpatients() {
|
||||||
|
return this.$store.state.entry.patients
|
||||||
|
},
|
||||||
|
selected_patient: {
|
||||||
|
get() {
|
||||||
|
return this.$store.state.entry.selected_patient
|
||||||
|
},
|
||||||
|
set(val) {
|
||||||
|
this.$store.commit("entry/setSelectedPatient", val)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isSelected(p) {
|
||||||
|
return p.id == this.$store.state.entry.selected_patient.id
|
||||||
|
},
|
||||||
|
selectMe(data) {
|
||||||
|
this.$store.commit("entry/setSelectedPatient", data)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
wacth: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
53
result-entry/components/mainEntry.vue
Normal file
53
result-entry/components/mainEntry.vue
Normal 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: "MainEntry",
|
||||||
|
components: {
|
||||||
|
"one-navbar": NavbarComponent,
|
||||||
|
"list-patient-component": listPatientComponent,
|
||||||
|
"search-component": searchComponent,
|
||||||
|
"detail-patient-component": detailComponent
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
},
|
||||||
|
wacth: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
182
result-entry/components/searchPatient.vue
Normal file
182
result-entry/components/searchPatient.vue
Normal file
@@ -0,0 +1,182 @@
|
|||||||
|
<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="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="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="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>
|
||||||
|
</div>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.5">
|
||||||
|
<v-text-field
|
||||||
|
label="No Reg / Nama"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
append-inner-icon="mdi-magnify"
|
||||||
|
></v-text-field>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.5">
|
||||||
|
<v-autocomplete
|
||||||
|
label="Grup Pemeriksaan"
|
||||||
|
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">
|
||||||
|
<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
|
||||||
|
class="pt-3 pa-3"
|
||||||
|
>
|
||||||
|
<v-btn
|
||||||
|
small
|
||||||
|
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>
|
||||||
|
</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.entry.date;
|
||||||
|
},
|
||||||
|
set(val) {
|
||||||
|
console.log(val)
|
||||||
|
this.$store.commit("entry/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>
|
||||||
116
result-entry/index.html
Normal file
116
result-entry/index.html
Normal 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 entry from "./modules/entry.js";
|
||||||
|
import system from "../globalstore/globalstore.js";
|
||||||
|
|
||||||
|
const store = Vuex.createStore({
|
||||||
|
modules: {
|
||||||
|
system: system,
|
||||||
|
entry: entry,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
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-entry-component></main-entry-component>
|
||||||
|
`,
|
||||||
|
});
|
||||||
|
|
||||||
|
const vuetify = Vuetify.createVuetify({
|
||||||
|
theme: {
|
||||||
|
themes: CustomTheme,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
app.use(store);
|
||||||
|
app.use(vuetify);
|
||||||
|
app.use(i18n);
|
||||||
|
const components = {
|
||||||
|
"main-entry-component": "./components/mainEntry.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>
|
||||||
20
result-entry/language.js
Normal file
20
result-entry/language.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
var CustomMessages = {
|
||||||
|
en: {
|
||||||
|
message: {
|
||||||
|
toolbalTitle: "PATIENT",
|
||||||
|
table: {
|
||||||
|
noreg: "NO. REG",
|
||||||
|
name: "NAME",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
id: {
|
||||||
|
message: {
|
||||||
|
toolbalTitle: "PASIEN",
|
||||||
|
table: {
|
||||||
|
noreg: "NO. REG",
|
||||||
|
name: "NAMA",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
716
result-entry/modules/entry.js
Normal file
716
result-entry/modules/entry.js
Normal file
@@ -0,0 +1,716 @@
|
|||||||
|
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
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
|
||||||
|
}
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export default store
|
||||||
237
result-validation/components/detailPatient.vue
Normal file
237
result-validation/components/detailPatient.vue
Normal 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>
|
||||||
107
result-validation/components/listPatient.vue
Normal file
107
result-validation/components/listPatient.vue
Normal 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>
|
||||||
53
result-validation/components/mainValidation.vue
Normal file
53
result-validation/components/mainValidation.vue
Normal 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>
|
||||||
211
result-validation/components/searchPatient.vue
Normal file
211
result-validation/components/searchPatient.vue
Normal 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>
|
||||||
116
result-validation/index.html
Normal file
116
result-validation/index.html
Normal 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>
|
||||||
74
result-validation/language.js
Normal file
74
result-validation/language.js
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
720
result-validation/modules/validation.js
Normal file
720
result-validation/modules/validation.js
Normal 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
|
||||||
232
result-verification/components/detailPatient.vue
Normal file
232
result-verification/components/detailPatient.vue
Normal file
@@ -0,0 +1,232 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-container class="bg-white rounded-lg" fluid>
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="2">
|
||||||
|
<v-menu
|
||||||
|
v-model="menu"
|
||||||
|
:close-on-content-click="false"
|
||||||
|
transition="scale-transition"
|
||||||
|
offset-y
|
||||||
|
min-width="auto"
|
||||||
|
max-width="290px"
|
||||||
|
>
|
||||||
|
<template v-slot:activator="{ props }">
|
||||||
|
<v-text-field
|
||||||
|
:model-value="formatDate()"
|
||||||
|
label="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="5">
|
||||||
|
<v-text-field
|
||||||
|
label="No Reg / Nama / Jenis Kelamin"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
></v-text-field>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.5">
|
||||||
|
<v-text-field
|
||||||
|
label="DOB / Umur"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
></v-text-field>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.5">
|
||||||
|
<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
|
||||||
|
class="pt-5"
|
||||||
|
>
|
||||||
|
|
||||||
|
<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
|
||||||
|
class="pointer bg-error-lighten"
|
||||||
|
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
|
||||||
|
class="pointer bg-success-lighten ml-2"
|
||||||
|
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
class="text-success"
|
||||||
|
style="font-size: 1.5rem;"
|
||||||
|
icon="fluent:checkmark-24-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</template>
|
||||||
|
</v-data-table>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.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: "NAMA PEMERIKSAAN",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "10%",
|
||||||
|
title: "HASIL",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "10%",
|
||||||
|
title: "FLAG",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "10%",
|
||||||
|
title: "NILAI NORMAL",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "10%",
|
||||||
|
title: "UNIT",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "15%",
|
||||||
|
title: "METODE",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "15%",
|
||||||
|
title: "CATATAN",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "5%",
|
||||||
|
title: "VALIDASI",
|
||||||
|
class: "bg-secondary-lighten font-weight-bold",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
xdetails() {
|
||||||
|
return this.$store.state.verification.details
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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>
|
||||||
96
result-verification/components/listPatient.vue
Normal file
96
result-verification/components/listPatient.vue
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
<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: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.table.noreg'),
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'start',
|
||||||
|
key: 'name',
|
||||||
|
sortable: false,
|
||||||
|
width: "50%",
|
||||||
|
title: this.$t('message.table.name'),
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
xpatients() {
|
||||||
|
return this.$store.state.verification.patients
|
||||||
|
},
|
||||||
|
selected_patient: {
|
||||||
|
get() {
|
||||||
|
return this.$store.state.verification.selected_patient
|
||||||
|
},
|
||||||
|
set(val) {
|
||||||
|
this.$store.commit("verification/setSelectedPatient", val)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isSelected(p) {
|
||||||
|
return p.id == this.$store.state.verification.selected_patient.id
|
||||||
|
},
|
||||||
|
selectMe(data) {
|
||||||
|
this.$store.commit("verification/setSelectedPatient", data)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
wacth: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
53
result-verification/components/mainVerif.vue
Normal file
53
result-verification/components/mainVerif.vue
Normal 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: "MainVerif",
|
||||||
|
components: {
|
||||||
|
"one-navbar": NavbarComponent,
|
||||||
|
"list-patient-component": listPatientComponent,
|
||||||
|
"search-component": searchComponent,
|
||||||
|
"detail-patient-component": detailComponent
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
},
|
||||||
|
wacth: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
158
result-verification/components/searchPatient.vue
Normal file
158
result-verification/components/searchPatient.vue
Normal file
@@ -0,0 +1,158 @@
|
|||||||
|
<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="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="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="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>
|
||||||
|
</div>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.5">
|
||||||
|
<v-text-field
|
||||||
|
label="No Reg / Nama"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
append-inner-icon="mdi-magnify"
|
||||||
|
></v-text-field>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.5">
|
||||||
|
<v-autocomplete
|
||||||
|
label="Grup Pemeriksaan"
|
||||||
|
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
|
||||||
|
class="pt-3 pa-3"
|
||||||
|
>
|
||||||
|
<v-btn
|
||||||
|
class="bg-primary-lighten"
|
||||||
|
variant="tonal"
|
||||||
|
color="primary"
|
||||||
|
>
|
||||||
|
HISTORY
|
||||||
|
</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.verification.date;
|
||||||
|
},
|
||||||
|
set(val) {
|
||||||
|
console.log(val)
|
||||||
|
this.$store.commit("verification/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>
|
||||||
116
result-verification/index.html
Normal file
116
result-verification/index.html
Normal 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 verification from "./modules/verification.js";
|
||||||
|
import system from "../globalstore/globalstore.js";
|
||||||
|
|
||||||
|
const store = Vuex.createStore({
|
||||||
|
modules: {
|
||||||
|
system: system,
|
||||||
|
verification: verification,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
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-verif-component></main-verif-component>
|
||||||
|
`,
|
||||||
|
});
|
||||||
|
|
||||||
|
const vuetify = Vuetify.createVuetify({
|
||||||
|
theme: {
|
||||||
|
themes: CustomTheme,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
app.use(store);
|
||||||
|
app.use(vuetify);
|
||||||
|
app.use(i18n);
|
||||||
|
const components = {
|
||||||
|
"main-verif-component": "./components/mainVerif.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>
|
||||||
20
result-verification/language.js
Normal file
20
result-verification/language.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
var CustomMessages = {
|
||||||
|
en: {
|
||||||
|
message: {
|
||||||
|
toolbalTitle: "PATIENT",
|
||||||
|
table: {
|
||||||
|
noreg: "NO. REG",
|
||||||
|
name: "NAME",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
id: {
|
||||||
|
message: {
|
||||||
|
toolbalTitle: "PASIEN",
|
||||||
|
table: {
|
||||||
|
noreg: "NO. REG",
|
||||||
|
name: "NAMA",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
2099
result-verification/modules/verification.js
Normal file
2099
result-verification/modules/verification.js
Normal file
File diff suppressed because it is too large
Load Diff
118
specimen-collection/components/filter.vue
Normal file
118
specimen-collection/components/filter.vue
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-container class="bg-white rounded-lg" fluid>
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="2.2">
|
||||||
|
<v-menu
|
||||||
|
v-model="menu"
|
||||||
|
:close-on-content-click="false"
|
||||||
|
transition="scale-transition"
|
||||||
|
offset-y
|
||||||
|
min-width="auto"
|
||||||
|
max-width="290px"
|
||||||
|
>
|
||||||
|
<template v-slot:activator="{ props }">
|
||||||
|
<v-text-field
|
||||||
|
:model-value="formatDate()"
|
||||||
|
label="Tanggal"
|
||||||
|
prepend-inner-icon="mdi-calendar"
|
||||||
|
hide-details
|
||||||
|
readonly
|
||||||
|
variant="outlined"
|
||||||
|
v-bind="props"
|
||||||
|
></v-text-field>
|
||||||
|
</template>
|
||||||
|
<v-date-picker
|
||||||
|
hide-header
|
||||||
|
show-adjacent-months
|
||||||
|
rounded="lg"
|
||||||
|
color="primary"
|
||||||
|
v-model="date"
|
||||||
|
@update:modelValue="menu=false"
|
||||||
|
></v-date-picker>
|
||||||
|
</v-menu>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.2">
|
||||||
|
<v-text-field
|
||||||
|
label="No Reg / Nama"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
append-inner-icon="mdi-magnify"
|
||||||
|
></v-text-field>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.2">
|
||||||
|
<v-autocomplete
|
||||||
|
label="Kel Pelanggan"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
menu-icon="mdi-chevron-down"
|
||||||
|
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']"
|
||||||
|
></v-autocomplete>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.2">
|
||||||
|
<v-autocomplete
|
||||||
|
label="Station"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
menu-icon="mdi-chevron-down"
|
||||||
|
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']"
|
||||||
|
></v-autocomplete>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.2">
|
||||||
|
<v-autocomplete
|
||||||
|
label="Lokasi"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
menu-icon="mdi-chevron-down"
|
||||||
|
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']"
|
||||||
|
></v-autocomplete>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="1">
|
||||||
|
<div
|
||||||
|
style="height: 100%; display: flex; align-items: center; justify-content: center;"
|
||||||
|
class="rounded-lg bg-primary pa-2 h-100 pointer"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
style="font-size: 2rem;"
|
||||||
|
icon="fluent:search-20-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "filtercomp",
|
||||||
|
components: {},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
menu: false,
|
||||||
|
visible: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
date: {
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
formatDate() {
|
||||||
|
if (!this.date) return null;
|
||||||
|
|
||||||
|
return moment(this.date).format("DD-MM-YYYY");
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.pointer {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
122
specimen-collection/components/left.vue
Normal file
122
specimen-collection/components/left.vue
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-container class="bg-white rounded-lg" fluid>
|
||||||
|
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
|
||||||
|
<h3 class="primary-lighten">PASIEN</h3>
|
||||||
|
</div>
|
||||||
|
<v-data-table
|
||||||
|
v-model="selected_patients"
|
||||||
|
:items="patients"
|
||||||
|
:headers="headers"
|
||||||
|
hide-default-footer
|
||||||
|
class="row-pointer"
|
||||||
|
>
|
||||||
|
<template v-slot:item="{ item }">
|
||||||
|
<tr @click="selectItem(item)" v-bind:class="{'bg-primary-lighten':isItemSelected(item)}">
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.tanggal }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.noreg }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.kelpelanggan }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.nama }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.status }}</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</template>
|
||||||
|
</v-data-table>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "leftcomp",
|
||||||
|
components: {},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
menu: false,
|
||||||
|
visible: false,
|
||||||
|
selectedItems: [],
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
title: "TANGGAL",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "NO. REG",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "KEL. PELANGGAN",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "NAMA",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "STATUS",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
patients() {
|
||||||
|
return this.$store.state.collection.patients
|
||||||
|
},
|
||||||
|
selected_patients: {
|
||||||
|
get() {
|
||||||
|
return this.$store.state.collection.selected_patients
|
||||||
|
},
|
||||||
|
set(data) {
|
||||||
|
this.$store.commit("setSelectedPatients", data)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
selectItem(data) {
|
||||||
|
this.$store.commit("setSelectedPatients", data);
|
||||||
|
},
|
||||||
|
isItemSelected(data) {
|
||||||
|
return data.noreg === this.$store.state.collection.selected_patients.noreg
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.row-pointer >>> tbody tr :hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
46
specimen-collection/components/main.vue
Normal file
46
specimen-collection/components/main.vue
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<template>
|
||||||
|
<v-app id="inspire">
|
||||||
|
<one-navbar></one-navbar>
|
||||||
|
<v-main>
|
||||||
|
<div class="pa-5 bg-primary-lighten ml-2 rounded-xl h-100">
|
||||||
|
<one-filter></one-filter>
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="12" md="6" sm="12" xs="12" class="mt-5">
|
||||||
|
<one-left></one-left>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="12" md="6" sm="12" xs="12" class="mt-5">
|
||||||
|
<one-right></one-right>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</div>
|
||||||
|
</v-main>
|
||||||
|
</v-app>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script type="module">
|
||||||
|
import NavbarComponent from "../../globalcomponent/one-navbar.vue";
|
||||||
|
import FilterComponent from "./filter.vue";
|
||||||
|
import LeftComponent from "./left.vue";
|
||||||
|
import RightComponent from "./right.vue";
|
||||||
|
export default {
|
||||||
|
name: "specimen collection",
|
||||||
|
components: {
|
||||||
|
"one-navbar": NavbarComponent,
|
||||||
|
"one-filter": FilterComponent,
|
||||||
|
"one-left": LeftComponent,
|
||||||
|
"one-right": RightComponent,
|
||||||
|
},
|
||||||
|
mounted() {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
231
specimen-collection/components/right.vue
Normal file
231
specimen-collection/components/right.vue
Normal file
@@ -0,0 +1,231 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-container class="bg-white rounded-lg" fluid>
|
||||||
|
<div class="bg-primary-lighten rounded-lg pa-5">
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="2">
|
||||||
|
<div class="rounded-lg bg-secondary-lighten" style="width: 100px; height: 100px;">
|
||||||
|
<!-- placeholder photo -->
|
||||||
|
</div>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="8">
|
||||||
|
<h4>{{ selected.noreg }}</h4>
|
||||||
|
<h4 class="text-grey-darken-1">{{ selected.nama }}</h4>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2" align-self="center" class="d-flex justify-end">
|
||||||
|
<div
|
||||||
|
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
|
||||||
|
class="rounded-lg pa-2 mr-2 bg-grey-lighten-5 pointer"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
class="text-grey"
|
||||||
|
style="font-size: 1.5rem;"
|
||||||
|
icon="fluent:arrow-previous-24-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
|
||||||
|
class="rounded-lg bg-secondary-lighten pa-2 pointer"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
class="text-secondary-darken"
|
||||||
|
style="font-size: 1.5rem;"
|
||||||
|
icon="fluent:speaker-2-24-regular"
|
||||||
|
icon="fluent:arrow-sync-24-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="10">
|
||||||
|
<p class="font-weight-medium">PID</p>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2" class="text-end">
|
||||||
|
<p class="font-weight-medium" style="color: slategray;">asd</p>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<v-row no-gutters>
|
||||||
|
<v-col cols="4">
|
||||||
|
<p class="font-weight-medium">Tanggal Lahir dan Umur</p>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="4" class="text-end">
|
||||||
|
<p class="font-weight-medium" style="color: slategray;">10-11-1999</p>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="4" class="text-end">
|
||||||
|
<p class="font-weight-medium" style="color: slategray;">24 Tahun 8 Bulan 21 Hari</p>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</div>
|
||||||
|
</v-container>
|
||||||
|
<v-container class="bg-white rounded-lg mt-5" fluid>
|
||||||
|
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="10" align-self="center">
|
||||||
|
<h3 class="primary-lighten">STAF: NOVITA</h3>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2" align-self="center" class="d-flex justify-end">
|
||||||
|
<div
|
||||||
|
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center;"
|
||||||
|
class="rounded-lg bg-primary-lighten pa-2 pointer"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
class="text-primary-darken"
|
||||||
|
style="font-size: 1.5rem;"
|
||||||
|
icon="fluent:note-add-24-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center;"
|
||||||
|
class="rounded-lg bg-success-lighten pa-2 ml-2 pointer"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
class="text-success-darken"
|
||||||
|
style="font-size: 1.5rem;"
|
||||||
|
icon="fluent:notepad-person-24-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</div>
|
||||||
|
<v-data-table
|
||||||
|
:items="items"
|
||||||
|
:headers="headers"
|
||||||
|
hide-default-footer
|
||||||
|
>
|
||||||
|
<template v-slot:item="{ item }">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.specimen }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.barcode }}</p>
|
||||||
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<div
|
||||||
|
style="display: flex; align-items: center; justify-content: center;"
|
||||||
|
class="rounded-lg pa-2"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="pointer"
|
||||||
|
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center;"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
class="text-grey"
|
||||||
|
style="font-size: 1.5rem;"
|
||||||
|
icon="fluent:dismiss-24-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="pointer"
|
||||||
|
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center; margin-left: 8px;"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
class="text-grey"
|
||||||
|
style="font-size: 1.5rem;"
|
||||||
|
icon="fluent:checkmark-24-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td align="center" class="py-1">
|
||||||
|
<div class="bg-warning rounded-lg pa-1 text-white">
|
||||||
|
06-08-2024 14:17
|
||||||
|
</div>
|
||||||
|
<div class="bg-grey-lighten-5 rounded-lg pa-1 mt-1">
|
||||||
|
00-00-0000 00:00
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</template>
|
||||||
|
</v-data-table>
|
||||||
|
<div class="ml-3">
|
||||||
|
<v-chip class="mr-5 mt-2" color="primary">DARAH</v-chip>
|
||||||
|
<v-chip class="mr-5 mt-2" color="primary">SWAB/SEKRET</v-chip>
|
||||||
|
</div>
|
||||||
|
</v-container>
|
||||||
|
<v-container class="bg-white rounded-lg mt-5" fluid>
|
||||||
|
<div class="bg-secondary-lighten rounded-lg pa-5">
|
||||||
|
<h3 class="primary-lighten">PEMERIKSAAN</h3>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<v-chip class="mr-5 mt-5" color="success">Hematologi Lengkap</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>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "rightcomp",
|
||||||
|
components: {
|
||||||
|
|
||||||
|
},
|
||||||
|
mounted() {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
menu: false,
|
||||||
|
visible: false,
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
specimen: "EDTA Rutin",
|
||||||
|
barcode: "055000035LSE1A",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
specimen: "EDTA Rutin",
|
||||||
|
barcode: "0550000AA223FF",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
title: "SPECIMEN",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "BARCODE",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "REQUIREMENT",
|
||||||
|
align: "center",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "AKSI",
|
||||||
|
align: "center",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
selected() {
|
||||||
|
return this.$store.state.collection.selected_patients;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.pointer {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
124
specimen-collection/index.html
Normal file
124
specimen-collection/index.html
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Specimen Collection</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>
|
||||||
|
<script src="../globalscript/global.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 system from "../globalstore/globalstore.js";
|
||||||
|
import collection from "./modules/collection.js";
|
||||||
|
|
||||||
|
// if (one_token()) {
|
||||||
|
// let usr = JSON.parse(localStorage.getItem("user"));
|
||||||
|
// location.replace("/" + usr.M_UserGroupDashboard);
|
||||||
|
// }
|
||||||
|
|
||||||
|
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);
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const messages = CustomMessages;
|
||||||
|
const browserLocale = navigator.language || navigator.languages[0];
|
||||||
|
const i18n = VueI18n.createI18n({
|
||||||
|
locale: browserLocale.startsWith("id") ? "id" : "en",
|
||||||
|
fallbackLocale: "en",
|
||||||
|
messages,
|
||||||
|
});
|
||||||
|
window.i18n = i18n;
|
||||||
|
|
||||||
|
moment.locale(browserLocale.startsWith("id") ? "id" : "en");
|
||||||
|
const store = Vuex.createStore({
|
||||||
|
modules: {
|
||||||
|
system: system,
|
||||||
|
collection: collection,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const app = Vue.createApp({
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
bg_src: "",
|
||||||
|
loading: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
template: `
|
||||||
|
<main-component></main-component>
|
||||||
|
`,
|
||||||
|
});
|
||||||
|
|
||||||
|
const vuetify = Vuetify.createVuetify({
|
||||||
|
theme: {
|
||||||
|
themes: CustomTheme,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
app.use(store);
|
||||||
|
app.use(vuetify);
|
||||||
|
app.use(i18n);
|
||||||
|
|
||||||
|
const components = {
|
||||||
|
"main-component": "./components/main.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>
|
||||||
32
specimen-collection/language.js
Normal file
32
specimen-collection/language.js
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
var CustomMessages = {
|
||||||
|
en: {
|
||||||
|
message: {
|
||||||
|
login: "Log in",
|
||||||
|
title: "Log in to your account",
|
||||||
|
sublogin: "Enter your details below",
|
||||||
|
email: "Email",
|
||||||
|
password: "Password",
|
||||||
|
forgotPassword: "Forgot password?",
|
||||||
|
placeholderEmail: "Enter your email",
|
||||||
|
placeholderPassword: "Enter your password",
|
||||||
|
msgInfo: 'Enter the registered account',
|
||||||
|
errorQuery: "Error get data",
|
||||||
|
invalid: "Invalid username / password"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
id: {
|
||||||
|
message: {
|
||||||
|
login: "Masuk",
|
||||||
|
title: "Masuk ke akun Anda",
|
||||||
|
sublogin: "Masukkan detail Anda di bawah ini",
|
||||||
|
email: "Surel",
|
||||||
|
password: "Kata Sandi",
|
||||||
|
forgotPassword: "Lupa kata sandi?",
|
||||||
|
placeholderEmail: "Isikan email anda",
|
||||||
|
placeholderPassword: "Isikan kata sandi anda",
|
||||||
|
msgInfo: "Masukkan akun terdaftar",
|
||||||
|
errorQuery: "Gagal mendapatkan data",
|
||||||
|
invalid: "Nama pengguna / kata sandi tidak valid"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
51
specimen-collection/modules/collection.js
Normal file
51
specimen-collection/modules/collection.js
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
const store = {
|
||||||
|
state() {
|
||||||
|
return {
|
||||||
|
patients: [
|
||||||
|
{
|
||||||
|
tanggal: "31-07-2024",
|
||||||
|
noreg: "055000037LA",
|
||||||
|
kelpelanggan: "PASIEN MANDIRI",
|
||||||
|
nama: "Tn. Alpha",
|
||||||
|
status: "call",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tanggal: "31-07-2024",
|
||||||
|
noreg: "055000036LA",
|
||||||
|
kelpelanggan: "PASIEN KLINISI",
|
||||||
|
nama: "Tn. Beta",
|
||||||
|
status: "New",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tanggal: "30-07-2024",
|
||||||
|
noreg: "055000035LA",
|
||||||
|
kelpelanggan: "PASIEN KLINISI",
|
||||||
|
nama: "Tn. Gamma",
|
||||||
|
status: "New",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
selected_patients: {
|
||||||
|
tanggal: "-",
|
||||||
|
noreg: "-",
|
||||||
|
kelpelanggan: "-",
|
||||||
|
nama: "-",
|
||||||
|
status: "-",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mutations: {
|
||||||
|
setPatients(state, data) {
|
||||||
|
state.patients = data
|
||||||
|
},
|
||||||
|
setSelectedPatients(state, data) {
|
||||||
|
state.selected_patients = data
|
||||||
|
},
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
selectPatient({ commit, data }) {
|
||||||
|
commit('setSelectedPatients', data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default store
|
||||||
114
x-page/components/filter.vue
Normal file
114
x-page/components/filter.vue
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-container class="bg-white rounded-lg" fluid>
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="2.2">
|
||||||
|
<v-menu
|
||||||
|
v-model="menu"
|
||||||
|
:close-on-content-click="false"
|
||||||
|
transition="scale-transition"
|
||||||
|
offset-y
|
||||||
|
min-width="auto"
|
||||||
|
max-width="290px"
|
||||||
|
>
|
||||||
|
<template v-slot:activator="{ props }">
|
||||||
|
<v-text-field
|
||||||
|
:model-value="formatDate()"
|
||||||
|
label="Tanggal"
|
||||||
|
prepend-inner-icon="mdi-calendar"
|
||||||
|
hide-details
|
||||||
|
readonly
|
||||||
|
variant="outlined"
|
||||||
|
v-bind="props"
|
||||||
|
></v-text-field>
|
||||||
|
</template>
|
||||||
|
<v-date-picker
|
||||||
|
hide-header
|
||||||
|
show-adjacent-months
|
||||||
|
rounded="lg"
|
||||||
|
color="primary"
|
||||||
|
v-model="date"
|
||||||
|
@update:modelValue="menu=false"
|
||||||
|
></v-date-picker>
|
||||||
|
</v-menu>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.2">
|
||||||
|
<v-text-field
|
||||||
|
label="No Reg / Nama"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
append-inner-icon="mdi-magnify"
|
||||||
|
></v-text-field>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.2">
|
||||||
|
<v-autocomplete
|
||||||
|
label="Kel Pelanggan"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
menu-icon="mdi-chevron-down"
|
||||||
|
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']"
|
||||||
|
></v-autocomplete>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.2">
|
||||||
|
<v-autocomplete
|
||||||
|
label="Station"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
menu-icon="mdi-chevron-down"
|
||||||
|
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']"
|
||||||
|
></v-autocomplete>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2.2">
|
||||||
|
<v-autocomplete
|
||||||
|
label="Lokasi"
|
||||||
|
variant="outlined"
|
||||||
|
hide-details
|
||||||
|
menu-icon="mdi-chevron-down"
|
||||||
|
:items="['lorem', 'ipsum', 'dolor', 'is', 'amet']"
|
||||||
|
></v-autocomplete>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="1">
|
||||||
|
<div
|
||||||
|
style="height: 100%; display: flex; align-items: center; justify-content: center;"
|
||||||
|
class="rounded-lg bg-primary pa-2 h-100"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
style="font-size: 2rem;"
|
||||||
|
icon="fluent:search-20-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "filtercomp",
|
||||||
|
components: {},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
menu: false,
|
||||||
|
visible: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
date: {
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
formatDate() {
|
||||||
|
if (!this.date) return null;
|
||||||
|
|
||||||
|
return moment(this.date).format("DD-MM-YYYY");
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
118
x-page/components/left.vue
Normal file
118
x-page/components/left.vue
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-container class="bg-white rounded-lg" fluid>
|
||||||
|
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
|
||||||
|
<h3 class="primary-lighten">PASIEN</h3>
|
||||||
|
</div>
|
||||||
|
<v-data-table
|
||||||
|
v-model="selectedItems"
|
||||||
|
:items="items"
|
||||||
|
:headers="headers"
|
||||||
|
hide-default-footer
|
||||||
|
>
|
||||||
|
<template v-slot:item="{ item }">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.tanggal }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.noreg }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.kelpelanggan }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.nama }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.status }}</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</template>
|
||||||
|
</v-data-table>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "leftcomp",
|
||||||
|
components: {},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
menu: false,
|
||||||
|
visible: false,
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
tanggal: "31-07-2024",
|
||||||
|
noreg: "055000035LA",
|
||||||
|
kelpelanggan: "PASIEN MANDIRI",
|
||||||
|
nama: "Tn. Alpha",
|
||||||
|
status: "New",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tanggal: "31-07-2024",
|
||||||
|
noreg: "055000036LA",
|
||||||
|
kelpelanggan: "PASIEN KLINISI",
|
||||||
|
nama: "Tn. Beta",
|
||||||
|
status: "New",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
selectedItems: [],
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
title: "TANGGAL",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "NO. REG",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "KEL. PELANGGAN",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "NAMA",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "STATUS",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
46
x-page/components/main.vue
Normal file
46
x-page/components/main.vue
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<template>
|
||||||
|
<v-app id="inspire">
|
||||||
|
<one-navbar></one-navbar>
|
||||||
|
<v-main>
|
||||||
|
<div class="pa-5 bg-primary-lighten ml-2 rounded-xl h-100">
|
||||||
|
<one-filter></one-filter>
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="12" md="6" sm="12" xs="12" class="mt-5">
|
||||||
|
<one-left></one-left>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="12" md="6" sm="12" xs="12" class="mt-5">
|
||||||
|
<one-right></one-right>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</div>
|
||||||
|
</v-main>
|
||||||
|
</v-app>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script type="module">
|
||||||
|
import NavbarComponent from "../../globalcomponent/one-navbar.vue";
|
||||||
|
import FilterComponent from "./filter.vue";
|
||||||
|
import LeftComponent from "./left.vue";
|
||||||
|
import RightComponent from "./right.vue";
|
||||||
|
export default {
|
||||||
|
name: "x-page",
|
||||||
|
components: {
|
||||||
|
"one-navbar": NavbarComponent,
|
||||||
|
"one-filter": FilterComponent,
|
||||||
|
"one-left": LeftComponent,
|
||||||
|
"one-right": RightComponent,
|
||||||
|
},
|
||||||
|
mounted() {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
187
x-page/components/right.vue
Normal file
187
x-page/components/right.vue
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-container class="bg-white rounded-lg" fluid>
|
||||||
|
<div class="bg-primary-lighten rounded-lg pa-5">
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="2">
|
||||||
|
<div class="rounded-lg bg-secondary-lighten" style="width: 100px; height: 100px;">
|
||||||
|
<!-- placeholder photo -->
|
||||||
|
</div>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="8">
|
||||||
|
<h4>055000035LA</h4>
|
||||||
|
<h4 style="color: slategray;">Tn. Alpha</h4>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2" align-self="center" class="d-flex justify-end">
|
||||||
|
<div
|
||||||
|
style="height: 40px; width: 40px; display: flex; align-items: center; justify-content: center;"
|
||||||
|
class="rounded-lg bg-secondary-lighten pa-2"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
class="text-secondary-darken"
|
||||||
|
style="font-size: 1.5rem;"
|
||||||
|
icon="fluent:speaker-2-24-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="10">
|
||||||
|
<p class="font-weight-medium">PID</p>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="2" class="text-end">
|
||||||
|
<p class="font-weight-medium" style="color: slategray;">asd</p>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<v-row no-gutters>
|
||||||
|
<v-col cols="4">
|
||||||
|
<p class="font-weight-medium">Tanggal Lahir dan Umur</p>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="4" class="text-end">
|
||||||
|
<p class="font-weight-medium" style="color: slategray;">10-11-1999</p>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="4" class="text-end">
|
||||||
|
<p class="font-weight-medium" style="color: slategray;">24 Tahun 8 Bulan 21 Hari</p>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</div>
|
||||||
|
</v-container>
|
||||||
|
<v-container class="bg-white rounded-lg mt-5" fluid>
|
||||||
|
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
|
||||||
|
<v-row>
|
||||||
|
<v-col cols="10" align-self="center">
|
||||||
|
<h3 class="primary-lighten">STAF: NOVITA</h3>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="1" align-self="center" class="d-flex justify-end">
|
||||||
|
<div
|
||||||
|
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center;"
|
||||||
|
class="rounded-lg bg-primary-lighten pa-2"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
class="text-primary-darken"
|
||||||
|
style="font-size: 1.5rem;"
|
||||||
|
icon="fluent:note-add-24-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
</v-col>
|
||||||
|
<v-col cols="1" align-self="center" class="d-flex justify-end">
|
||||||
|
<div
|
||||||
|
style="height: 32px; width: 32px; display: flex; align-items: center; justify-content: center;"
|
||||||
|
class="rounded-lg bg-primary-lighten pa-2"
|
||||||
|
>
|
||||||
|
<iconify-icon
|
||||||
|
class="text-primary-darken"
|
||||||
|
style="font-size: 1.5rem;"
|
||||||
|
icon="fluent:notepad-person-24-regular"
|
||||||
|
></iconify-icon>
|
||||||
|
</div>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</div>
|
||||||
|
<v-data-table
|
||||||
|
:items="items"
|
||||||
|
:headers="headers"
|
||||||
|
hide-default-footer
|
||||||
|
>
|
||||||
|
<template v-slot:item="{ item }">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.specimen }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">{{ item.barcode }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">-</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class="font-weight-medium">-</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</template>
|
||||||
|
</v-data-table>
|
||||||
|
<div class="ml-5">
|
||||||
|
<v-chip class="mr-5 mt-5" color="primary">DARAH</v-chip>
|
||||||
|
<v-chip class="mr-5 mt-5" color="primary">SWAB/SEKRET</v-chip>
|
||||||
|
</div>
|
||||||
|
</v-container>
|
||||||
|
<v-container class="bg-white rounded-lg mt-5" fluid>
|
||||||
|
<div class="bg-secondary-lighten rounded-lg pa-5">
|
||||||
|
<h3 class="primary-lighten">PEMERIKSAAN</h3>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<v-chip class="mr-5 mt-5" color="success">Hematologi Lengkap</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>
|
||||||
|
</v-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "rightcomp",
|
||||||
|
components: {
|
||||||
|
|
||||||
|
},
|
||||||
|
mounted() {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
menu: false,
|
||||||
|
visible: false,
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
specimen: "EDTA Rutin",
|
||||||
|
barcode: "055000035LSE1A",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
specimen: "EDTA Rutin",
|
||||||
|
barcode: "0550000AA223FF",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
headers: [
|
||||||
|
{
|
||||||
|
title: "SPECIMEN",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "BARCODE",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "REQUIREMENT",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "AKSI",
|
||||||
|
align: "start",
|
||||||
|
sortable: false,
|
||||||
|
key: "name",
|
||||||
|
width: "20%",
|
||||||
|
class: "font-weight-bold",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
122
x-page/index.html
Normal file
122
x-page/index.html
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
<!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>
|
||||||
|
<script src="../globalscript/global.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 system from "../globalstore/globalstore.js";
|
||||||
|
|
||||||
|
// if (one_token()) {
|
||||||
|
// let usr = JSON.parse(localStorage.getItem("user"));
|
||||||
|
// location.replace("/" + usr.M_UserGroupDashboard);
|
||||||
|
// }
|
||||||
|
|
||||||
|
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);
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const messages = CustomMessages;
|
||||||
|
const browserLocale = navigator.language || navigator.languages[0];
|
||||||
|
const i18n = VueI18n.createI18n({
|
||||||
|
locale: browserLocale.startsWith("id") ? "id" : "en",
|
||||||
|
fallbackLocale: "en",
|
||||||
|
messages,
|
||||||
|
});
|
||||||
|
window.i18n = i18n;
|
||||||
|
|
||||||
|
moment.locale(browserLocale.startsWith("id") ? "id" : "en");
|
||||||
|
const store = Vuex.createStore({
|
||||||
|
modules: {
|
||||||
|
system: system,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const app = Vue.createApp({
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
bg_src: "",
|
||||||
|
loading: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
template: `
|
||||||
|
<main-component></main-component>
|
||||||
|
`,
|
||||||
|
});
|
||||||
|
|
||||||
|
const vuetify = Vuetify.createVuetify({
|
||||||
|
theme: {
|
||||||
|
themes: CustomTheme,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
app.use(store);
|
||||||
|
app.use(vuetify);
|
||||||
|
app.use(i18n);
|
||||||
|
|
||||||
|
const components = {
|
||||||
|
"main-component": "./components/main.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>
|
||||||
32
x-page/language.js
Normal file
32
x-page/language.js
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
var CustomMessages = {
|
||||||
|
en: {
|
||||||
|
message: {
|
||||||
|
login: "Log in",
|
||||||
|
title: "Log in to your account",
|
||||||
|
sublogin: "Enter your details below",
|
||||||
|
email: "Email",
|
||||||
|
password: "Password",
|
||||||
|
forgotPassword: "Forgot password?",
|
||||||
|
placeholderEmail: "Enter your email",
|
||||||
|
placeholderPassword: "Enter your password",
|
||||||
|
msgInfo: 'Enter the registered account',
|
||||||
|
errorQuery: "Error get data",
|
||||||
|
invalid: "Invalid username / password"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
id: {
|
||||||
|
message: {
|
||||||
|
login: "Masuk",
|
||||||
|
title: "Masuk ke akun Anda",
|
||||||
|
sublogin: "Masukkan detail Anda di bawah ini",
|
||||||
|
email: "Surel",
|
||||||
|
password: "Kata Sandi",
|
||||||
|
forgotPassword: "Lupa kata sandi?",
|
||||||
|
placeholderEmail: "Isikan email anda",
|
||||||
|
placeholderPassword: "Isikan kata sandi anda",
|
||||||
|
msgInfo: "Masukkan akun terdaftar",
|
||||||
|
errorQuery: "Gagal mendapatkan data",
|
||||||
|
invalid: "Nama pengguna / kata sandi tidak valid"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user