-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCtsHome.vue
More file actions
80 lines (74 loc) · 3.22 KB
/
Copy pathCtsHome.vue
File metadata and controls
80 lines (74 loc) · 3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<template>
<div v-if="loadHome">
<h1>Competency Tracking System (CTS)</h1>
<p>
The Council on Education has mandated that veterinary graduates must have the basic scientific knowledge,
skills and values to practice veterinary medicine, independently, at the time of graduation. At a minimum,
graduates must be competent in providing entry-level health care for a variety of animal species.
</p>
<p>
The Council on Education has also charged each school with addressing clinical competencies. The Council has
defined 9 areas of "clinical competency outcomes" in which a school must prove their graduates are
competent. This means that schools must establish objectives for the stated clinical competencies, collect
evidence-based data for each competency, and demonstrate how these data are being used to determine that
graduates are prepared for entry-level veterinary practice.
</p>
<p>
In order to move UC Davis toward reaching the accreditation requirements, the school has established a set
of DVM Learning Outcomes and CORE DVM Clinical Competencies in which ALL GRADUATES must demonstrate
proficiency regardless of senior track selection and then DVM Clinical Competencies for each of the species
tracks.
</p>
<p>
We have designed the Competency Tracking System (CTS) to work together with CREST to link session content
with DVM Clinical Competencies.
</p>
</div>
</template>
<script setup lang="ts">
import { useQuasar } from "quasar"
import { ref, inject, onMounted } from "vue"
import { useRoute, useRouter } from "vue-router"
import { useFetch } from "@/composables/ViperFetch"
import { useUserStore } from "@/store/UserStore"
const route = useRoute()
const router = useRouter()
const baseUrl = inject<string>("apiURL")
const userStore = useUserStore()
const $q = useQuasar()
const loadHome = ref(false)
async function initPage() {
$q.loading.show({
message: "Logging in",
delay: 250,
})
const { get } = useFetch()
const r = await get(baseUrl + "loggedInUser")
if (!r.success || !r.result.userId) {
window.location.href =
import.meta.env.VITE_VIPER_HOME +
"welcome?ReturnUrl=" +
encodeURIComponent(import.meta.env.VITE_VIPER_HOME + "CTS/" + window.location.search)
} else {
userStore.loadUser(r.result)
}
$q.loading.hide()
if (userStore.isLoggedIn) {
if (route.query.sendBackTo !== undefined && route.query.sendBackTo !== null) {
const redirect = route.query.sendBackTo.toString()
let paramString = redirect.split("?")[1]
let params = {} as Record<string, string>
if (paramString) {
let queryString = new URLSearchParams(paramString)
queryString.forEach((val: string, key: string) => {
params[key] = val
})
}
router.push({ path: redirect.split("?")[0], query: params })
} else {
loadHome.value = true
}
}
}
onMounted(() => initPage())
</script>