result verification
This commit is contained in:
240
result-verification/components/detailPatient.vue
Normal file
240
result-verification/components/detailPatient.vue
Normal file
@@ -0,0 +1,240 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-row>
|
||||
<v-col cols="12">
|
||||
<v-container class="bg-white rounded-lg">
|
||||
|
||||
<v-row class="pb-5">
|
||||
<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="4">
|
||||
<v-text-field
|
||||
label="No Reg / Nama / Jenis Kelamin"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="3">
|
||||
<v-text-field
|
||||
label="DOB / Umur"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="3">
|
||||
<v-text-field
|
||||
label="Pengirim"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="xdetails"
|
||||
return-object
|
||||
hide-default-footer
|
||||
>
|
||||
<template v-slot:item="{ item }">
|
||||
<tr>
|
||||
<td class="text-left" v-if="item.is_result == 'N'" colspan="8">
|
||||
<p class="font-weight-medium">{{ item.t_testname }}</p>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<p class="font-weight-medium">{{ item.t_testname }}</p>
|
||||
</td>
|
||||
<td class="text-left">
|
||||
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<p>{{ item.result_flag }}</p>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
{{ item.normal_note }}
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
{{ item.unit_name }}
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
{{ item.methode_name }}
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
{{ item.note }}
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<div class="d-flex justify-center">
|
||||
<v-btn fab
|
||||
variant="tonal"
|
||||
small
|
||||
color="error"
|
||||
class="bg-error-lighten ma-0 float-left">
|
||||
<iconify-icon
|
||||
style="font-size: 2rem;"
|
||||
icon="fluent:dismiss-24-regular"
|
||||
></iconify-icon>
|
||||
</v-btn>
|
||||
<v-btn fab
|
||||
variant="tonal"
|
||||
small
|
||||
color="success"
|
||||
class="bg-success-lighten ml-1 ma-0 float-left">
|
||||
<iconify-icon
|
||||
style="font-size: 2rem;"
|
||||
icon="fluent:checkmark-24-regular"
|
||||
></iconify-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-left" v-if="item.is_result == 'Y'">
|
||||
<div class="d-flex">
|
||||
<v-sheet class="font-weight-medium ma-1 pa-1">VR</v-sheet>
|
||||
<v-sheet class="font-weight-medium ma-1 pa-1">VL</v-sheet>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
|
||||
</v-container>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
|
||||
<script type="module">
|
||||
export default {
|
||||
name: "DetailPatient",
|
||||
data() {
|
||||
return {
|
||||
menu: false,
|
||||
headers: [
|
||||
{
|
||||
align: 'start',
|
||||
key: 'name',
|
||||
sortable: false,
|
||||
width: "10%",
|
||||
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: "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: "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",
|
||||
},
|
||||
{
|
||||
align: 'start',
|
||||
key: 'name',
|
||||
sortable: false,
|
||||
width: "10%",
|
||||
title: "MR",
|
||||
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>
|
||||
97
result-verification/components/listPatient.vue
Normal file
97
result-verification/components/listPatient.vue
Normal file
@@ -0,0 +1,97 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-row>
|
||||
<v-col cols="12">
|
||||
<v-container class="bg-white rounded-lg">
|
||||
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="xpatients"
|
||||
return-object
|
||||
hide-default-footer
|
||||
>
|
||||
<template v-slot:top>
|
||||
<v-toolbar flat class="bg-secondary-lighten">
|
||||
<v-toolbar-title>{{ $t('message.toolbalTitle') }}</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
</template>
|
||||
|
||||
<template v-slot:item="{ item }">
|
||||
<tr>
|
||||
<td v-bind:class="{'blue-lighten-5':isSelected(item)}" @click="selectMe(item)">
|
||||
<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 v-bind:class="{'blue-lighten-5':isSelected(item)}" @click="selectMe(item)">
|
||||
<p>{{ item.name }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-container>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</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(c) {
|
||||
console.log(c)
|
||||
}
|
||||
},
|
||||
wacth: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
55
result-verification/components/mainVerif.vue
Normal file
55
result-verification/components/mainVerif.vue
Normal file
@@ -0,0 +1,55 @@
|
||||
<template>
|
||||
<v-app id="inspire">
|
||||
<one-navbar></one-navbar>
|
||||
<v-main>
|
||||
<div class="pa-5 bg-primary-lighten ml-2 rounded-xl h-100">
|
||||
<v-row>
|
||||
<v-col cols="12" md="12" sm="12" xs="12">
|
||||
<search-component></search-component>
|
||||
</v-col>
|
||||
<v-col cols="12" md="4" sm="12" xs="12">
|
||||
<list-patient-component></list-patient-component>
|
||||
</v-col>
|
||||
<v-col cols="12" md="8" sm="12" xs="12">
|
||||
<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>
|
||||
151
result-verification/components/searchPatient.vue
Normal file
151
result-verification/components/searchPatient.vue
Normal file
@@ -0,0 +1,151 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-row>
|
||||
<v-col cols="12">
|
||||
<v-card class="bg-white rounded-lg pa-5">
|
||||
<v-row>
|
||||
<v-col cols="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-col>
|
||||
<v-col cols="2">
|
||||
<v-menu
|
||||
v-model="menuEndDate"
|
||||
:close-on-content-click="false"
|
||||
transition="scale-transition"
|
||||
offset-y
|
||||
min-width="auto"
|
||||
max-width="290px"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-text-field
|
||||
:model-value="formatDate()"
|
||||
label="Tanggal Selesai"
|
||||
prepend-inner-icon="mdi-calendar"
|
||||
hide-details
|
||||
readonly
|
||||
variant="outlined"
|
||||
v-bind="props"
|
||||
></v-text-field>
|
||||
</template>
|
||||
<v-date-picker
|
||||
hide-header
|
||||
show-adjacent-months
|
||||
rounded="lg"
|
||||
color="primary"
|
||||
v-model="date"
|
||||
@update:modelValue="menuEndDate=false"
|
||||
></v-date-picker>
|
||||
</v-menu>
|
||||
</v-col>
|
||||
<v-col cols="3">
|
||||
<v-text-field
|
||||
label="No Reg / Nama"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
append-inner-icon="mdi-magnify"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="3">
|
||||
<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="2">
|
||||
<div style="height: 100%;">
|
||||
<v-row class="pt-3 justify-space-between">
|
||||
<div
|
||||
style="height: 100%;"
|
||||
class="rounded-lg bg-primary pa-2 mr-2 h-100"
|
||||
>
|
||||
<iconify-icon
|
||||
style="font-size: 2rem;"
|
||||
icon="fluent:search-20-regular"
|
||||
></iconify-icon>
|
||||
</div>
|
||||
<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-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
||||
<script type="module">
|
||||
export default {
|
||||
name: "SearchPatient",
|
||||
data() {
|
||||
return {
|
||||
menuStartDate: false,
|
||||
menuEndDate: false,
|
||||
visible: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
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",
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
2095
result-verification/modules/verification.js
Normal file
2095
result-verification/modules/verification.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user