diff --git a/resources/js/constants.js b/resources/js/constants.js
index 0cc2604..0d34c31 100644
--- a/resources/js/constants.js
+++ b/resources/js/constants.js
@@ -18,6 +18,10 @@ export const LABS_INFO_API = MAIN_DOMAIN + "/api/admin/labs/"
export const LABS_UPDATE_API = MAIN_DOMAIN + "/api/admin/labs-update/"
export const LABS_DELETE_API = MAIN_DOMAIN + "/api/admin/labs-delete/"
+export const MEETING_PRESCREPTIONS_API = MAIN_DOMAIN + "/api/admin/get-patient-prescriptions/"
+export const MEETING_NOTES_API = MAIN_DOMAIN + "/api/admin/get-note/"
+export const APPOINTMENT_DETAILS_API = MAIN_DOMAIN + "/api/admin/get-appointment/"
+
diff --git a/resources/js/pages/pages/patient-meetings/notes.vue b/resources/js/pages/pages/patient-meetings/notes.vue
new file mode 100644
index 0000000..af65176
--- /dev/null
+++ b/resources/js/pages/pages/patient-meetings/notes.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ p_note.note }}
+
+
+ mdi-file-image
+
+
+
+ {{ p_note.doctor }}
+
+ {{ p_note.date }}
+
+
+
+
+
+
+
+
+ No data found
+
+
+
+
diff --git a/resources/js/pages/pages/patient-meetings/prescription.vue b/resources/js/pages/pages/patient-meetings/prescription.vue
new file mode 100644
index 0000000..c7b9f35
--- /dev/null
+++ b/resources/js/pages/pages/patient-meetings/prescription.vue
@@ -0,0 +1,244 @@
+
+
+
+
+
+
+ {{ item.name }}
+
+
#{{ appointmentId }} By {{ item.doctor }}
+ {{ item.date }}
+
+
+
+
+
+
+ Pending
+
+
+ {{ item.status }}
+
+
+
+
+
+
+
+ Brand:
+
+
+ {{ item.brand }}
+
+
+
+
+ From:
+
+
+ {{ item.from }}
+
+
+
+
+ Dosage:
+
+
+ {{ item.dosage }}
+
+
+
+
+ Quantity:
+
+
+ {{ item.quantity }}
+
+
+
+
+ Direction Quantity:
+
+
+ {{ item.direction_quantity }}
+
+
+
+
+ Direction One:
+
+
+ {{ item.direction_one }}
+
+
+
+
+ Direction Two:
+
+
+ {{ item.direction_two }}
+
+
+
+
+ Refill Quantity:
+
+
+ {{ item.refill_quantity }}
+
+
+
+
+
+ Status:
+
+
+ Pending
+ {{ item.status }}
+
+
+
+
+ Comments:
+
+
+ {{ item.comments }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No data found
+
+
+
+
+
+
+
diff --git a/resources/js/pages/patients/meeting-details.vue b/resources/js/pages/patients/meeting-details.vue
new file mode 100644
index 0000000..223b6d2
--- /dev/null
+++ b/resources/js/pages/patients/meeting-details.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+ #{{ appointmentID }} By {{ doctorName }}
+ Meeting duration: {{ duration }}
+
+
+
+
+
+
+ Notes
+
+
+
+ Prescriptions
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/js/pages/patients/meetings.vue b/resources/js/pages/patients/meetings.vue
index 6f1c782..6e8c981 100644
--- a/resources/js/pages/patients/meetings.vue
+++ b/resources/js/pages/patients/meetings.vue
@@ -99,6 +99,10 @@ onMounted(async () => {
await getPatientMeetingList();
});
onUnmounted(() => {});
+const historyDetail = (item) => {
+ console.log('item', item)
+ router.push('/admin/patient/meeting-details/' + route.params.id + '/' + item.id);
+}
@@ -133,7 +137,8 @@ onUnmounted(() => {});
-
+ Detail
+
diff --git a/resources/js/plugins/1.router/additional-routes.js b/resources/js/plugins/1.router/additional-routes.js
index abc19e1..f515dc5 100644
--- a/resources/js/plugins/1.router/additional-routes.js
+++ b/resources/js/plugins/1.router/additional-routes.js
@@ -48,6 +48,11 @@ export const routes = [
name: 'admin-patient-meeitngs',
component: () => import('@/pages/patients/meetings.vue'),
},
+ {
+ path: '/admin/patient/meeting-details/:patient_id/:id',
+ name: 'admin-patient-meeitng-details',
+ component: () => import('@/pages/patients/meeting-details.vue'),
+ },
{
path: '/admin/providers',
name: 'admin-providers',
diff --git a/resources/js/store.js b/resources/js/store.js
index 4bb6e0f..f652832 100644
--- a/resources/js/store.js
+++ b/resources/js/store.js
@@ -2,9 +2,12 @@ import axios from 'axios';
import { createStore } from 'vuex';
import {
+ APPOINTMENT_DETAILS_API,
LABS_DELETE_API,
LABS_LIST_API,
LABS_UPDATE_API,
+ MEETING_NOTES_API,
+ MEETING_PRESCREPTIONS_API,
PATIENT_DELETE_API,
PATIENT_LIST_API,
PATIENT_MEETING_LIST_API,
@@ -22,7 +25,10 @@ export default createStore({
patientList:[],
patientMeetingList:[],
providersList:[],
- labsList:[]
+ labsList:[],
+ singlePatientAppointment: null,
+ patientPrescription:null,
+ patientNotes: null,
},
mutations: {
setLoading(state, payload) {
@@ -40,7 +46,17 @@ export default createStore({
},
setLabsList(state, payload) {
state.labsList = payload
- }
+ },
+ setPrescription(state, payload) {
+ state.patientPrescription = payload
+ },
+ setSinglePatientAppointment(state, payload) {
+ state.singlePatientAppointment = payload
+ },
+ setPatientNotes(state, payload) {
+ state.patientNotes = payload
+ },
+
},
actions: {
@@ -276,6 +292,85 @@ export default createStore({
console.error('Error:', error);
});
},
+ async getAppointmentByIdAgent ({commit,state},payload){
+ commit('setLoading', true)
+ await axios.post(APPOINTMENT_DETAILS_API+payload.patient_id + '/' + payload.appointment_id, {}, {
+ headers: {
+ 'Authorization': `Bearer ${localStorage.getItem('admin_access_token')}`,
+ }
+ }) .then(response => {
+ commit('setLoading', false)
+ console.log('Response Notes:', response.data.data);
+ commit('setSinglePatientAppointment',response.data.data)
+ })
+ .catch(error => {
+ commit('setLoading', false)
+ console.error('Error:', error);
+ });
+ },
+ async getPrescriptions ({commit,state},payload){
+ commit('setLoading', true)
+ await axios.post(MEETING_PRESCREPTIONS_API+payload.patient_id + '/' + payload.appointment_id, {}, {
+ headers: {
+ 'Authorization': `Bearer ${localStorage.getItem('admin_access_token')}`,
+ }
+ }) .then(response => {
+ commit('setLoading', false)
+ let doctor={}
+ let itemsPrescriptions=[]
+ for (let data of response.data) {
+ let dataObject = {}
+ dataObject.first_name = data.patient.first_name
+ dataObject.last_name = data.patient.last_name
+ dataObject.gender = data.patient.gender
+ dataObject.dob = data.patient.dob
+ dataObject.patient_address = data.patient.address+' '+ data.patient.city+' '+ data.patient.state +' ' +data.patient.country
+ dataObject.name = data.prescription.name
+ dataObject.brand = data.prescription.brand
+ dataObject.from = data.prescription.from
+ dataObject.direction_quantity = data.prescription.direction_quantity
+ dataObject.dosage = data.prescription.dosage
+ dataObject.quantity = data.prescription.quantity
+ dataObject.refill_quantity = data.prescription.refill_quantity
+ dataObject.actions = ''
+ dataObject.id = data.prescription.id
+ dataObject.comments = data.comments
+ dataObject.direction_one = data.direction_one
+ dataObject.direction_two = data.direction_two
+ dataObject.doctor = data.telemedPro
+ dataObject.status = data.status
+ dataObject.date = data.created_at
+ dataObject.agent_sign = data.telemedPro.name
+ dataObject.medical_license_number = data.telemedPro.medical_license_number
+ itemsPrescriptions.push(dataObject)
+
+ }
+ console.log('Response Notes:', response.data);
+
+ commit('setPrescription',itemsPrescriptions)
+ })
+ .catch(error => {
+ commit('setLoading', false)
+ commit('setPrescription',null)
+ console.error('Error:', error);
+ });
+ },
+ async getHistoryPatientNotes ({commit,state},payload){
+ commit('setLoading', true)
+ await axios.post(MEETING_NOTES_API+payload.patient_id + '/' + payload.appointment_id, {}, {
+ headers: {
+ 'Authorization': `Bearer ${localStorage.getItem('admin_access_token')}`,
+ }
+ }) .then(response => {
+ commit('setLoading', false)
+ console.log('Response Notes:', response.data.data);
+ commit('setPatientNotes',response.data.data)
+ })
+ .catch(error => {
+ commit('setLoading', false)
+ console.error('Error:', error);
+ });
+ },
},
getters: {
getIsLoading(state){
@@ -294,5 +389,14 @@ export default createStore({
getLabsList(state){
return state.labsList
},
+ getSinglePatientAppointment(state){
+ return state.singlePatientAppointment
+ },
+ getPrescriptionList(state){
+ return state.patientPrescription
+ },
+ getPatientNotes(state){
+ return state.patientNotes
+ },
}
})
diff --git a/typed-router.d.ts b/typed-router.d.ts
index c48b244..7c2a0a9 100644
--- a/typed-router.d.ts
+++ b/typed-router.d.ts
@@ -147,9 +147,12 @@ declare module 'vue-router/auto/routes' {
'pages-icons': RouteRecordInfo<'pages-icons', '/pages/icons', Record, Record>,
'pages-misc-coming-soon': RouteRecordInfo<'pages-misc-coming-soon', '/pages/misc/coming-soon', Record, Record>,
'pages-misc-under-maintenance': RouteRecordInfo<'pages-misc-under-maintenance', '/pages/misc/under-maintenance', Record, Record>,
+ 'pages-patient-meetings-notes': RouteRecordInfo<'pages-patient-meetings-notes', '/pages/patient-meetings/notes', Record, Record>,
+ 'pages-patient-meetings-prescription': RouteRecordInfo<'pages-patient-meetings-prescription', '/pages/patient-meetings/prescription', Record, Record>,
'pages-pricing': RouteRecordInfo<'pages-pricing', '/pages/pricing', Record, Record>,
'pages-typography': RouteRecordInfo<'pages-typography', '/pages/typography', Record, Record>,
'pages-user-profile-tab': RouteRecordInfo<'pages-user-profile-tab', '/pages/user-profile/:tab', { tab: ParamValue }, { tab: ParamValue }>,
+ 'patients-meeting-details': RouteRecordInfo<'patients-meeting-details', '/patients/meeting-details', Record, Record>,
'patients-meetings': RouteRecordInfo<'patients-meetings', '/patients/meetings', Record, Record>,
'patients-patients': RouteRecordInfo<'patients-patients', '/patients/patients', Record, Record>,
'providers-providers': RouteRecordInfo<'providers-providers', '/providers/providers', Record, Record>,