nuVistA/htdocs/RoutePatientOrders.vue

46 lines
1.3 KiB
Vue
Raw Normal View History

2023-04-24 23:10:19 -04:00
<template>
2023-05-06 12:05:13 -04:00
<Subtitle value="Orders" />
2023-05-08 18:48:29 -04:00
<Subtitle :value="patient_info.name" />
<div class="card mb-3 shadow">
<div class="card-header">Order entry</div>
<div class="card-body"><ViewOrderMenu :client="client" :dfn="patient_dfn" /></div>
2023-04-24 23:10:19 -04:00
</div>
2023-05-08 18:48:29 -04:00
<div class="card mb-3 shadow">
<div class="card-header d-flex justify-content-between align-items-center">
<span>Order view</span>
<OrderFilterPicker :client="client" v-model="orders_filter" />
<DateRangePicker range="6M" direction="-1" v-model:date="orders_date" v-model:date_end="orders_date_begin" />
2023-04-24 23:10:19 -04:00
</div>
2023-05-08 18:48:29 -04:00
<div class="card-body"><ViewOrders :client="client" :dfn="patient_dfn" :filter="orders_filter" :date_begin="orders_date_begin" :date_end="orders_date" /></div>
2023-04-24 23:10:19 -04:00
</div>
</template>
<script>
2023-05-06 12:05:13 -04:00
import Subtitle from './Subtitle.vue';
2023-04-24 23:10:19 -04:00
import DateRangePicker from './DateRangePicker.vue';
import OrderFilterPicker from './OrderFilterPicker.vue';
import ViewOrderMenu from './ViewOrderMenu.vue';
import ViewOrders from './ViewOrders.vue';
var now = new Date();
export default {
components: {
2023-05-06 12:05:13 -04:00
Subtitle, DateRangePicker, OrderFilterPicker, ViewOrderMenu, ViewOrders
2023-04-24 23:10:19 -04:00
},
props: {
2023-05-08 18:48:29 -04:00
client: Object,
sensitive: Boolean,
patient_dfn: String,
patient_info: Object
2023-04-24 23:10:19 -04:00
},
data() {
return {
orders_filter: 2,
orders_date: now,
orders_date_begin: now
};
}
};
</script>