diff --git a/resources/js/plugins/1.router/additional-routes.js b/resources/js/plugins/1.router/additional-routes.js
index 18c5fa5..bd05c22 100644
--- a/resources/js/plugins/1.router/additional-routes.js
+++ b/resources/js/plugins/1.router/additional-routes.js
@@ -123,6 +123,11 @@ export const routes = [
name: 'admin-provider-profile',
component: () => import('@/pages/providers/provider-profile.vue'),
},
+ {
+ path: '/admin/providers/patientprofile/:patient_id',
+ name: 'admin-providers-patientprofile',
+ component: () => import('@/pages/patients/patientprofile.vue'),
+ },
{
path: '/apps/email/filter/:filter',
name: 'apps-email-filter',
diff --git a/resources/js/store.js b/resources/js/store.js
index 70433bd..32edf27 100644
--- a/resources/js/store.js
+++ b/resources/js/store.js
@@ -8,6 +8,7 @@ import {
ADMIN_LAB_KIT_UPDATE_API,
ADMIN_LOGIN_DETAIL,
ADMIN_PATIENT_DETAIL_API,
+ ADMIN_PATIENT_PROFILE_API,
ADMIN_PROVIDER_DETAIL_API,
ADMIN_UPDATE_PASSWORD,
ADMIN_UPDATE_SITE_SETTING,
@@ -65,7 +66,8 @@ export default createStore({
checkLoginExpire: false,
labKitList: [],
patientDetail: null,
- providerDetail:null
+ providerDetail:null,
+ patientAnswers: null,
},
mutations: {
setLoading(state, payload) {
@@ -161,7 +163,9 @@ export default createStore({
setPatientPrescriptionStatus(state, payload) {
state.patientPrescriptionStatus = payload
},
-
+ setPatientAnswers(state, payload) {
+ state.patientAnswers = payload
+ },
@@ -1013,6 +1017,24 @@ export default createStore({
console.error('Error:', error);
});
},
+ async getAgentQuestionsAnswers ({commit},payload){
+ commit('setLoading', true)
+ await axios.post(ADMIN_PATIENT_PROFILE_API+payload.patient_id, {}, {
+ headers: {
+ 'Authorization': `Bearer ${localStorage.getItem('admin_access_token')}`,
+ }
+ })
+ .then(response => {
+ commit('setLoading', false)
+ console.log('Response:', response.data.data);
+ commit('setPatientAnswers', response.data.data)
+ })
+ .catch(error => {
+ commit('setLoading', false)
+ console.log('Error:', error);
+ });
+
+ },
},
getters: {
getIsLoading(state){
@@ -1090,5 +1112,8 @@ export default createStore({
getProviderDetail(state) {
return state.providerDetail
},
+ getPatientAnswers(state){
+ return state.patientAnswers
+ },
}
})
diff --git a/typed-router.d.ts b/typed-router.d.ts
index 85fcc1d..5589208 100644
--- a/typed-router.d.ts
+++ b/typed-router.d.ts
@@ -161,8 +161,10 @@ declare module 'vue-router/auto/routes' {
'patients-patient-profile': RouteRecordInfo<'patients-patient-profile', '/patients/patient-profile', Record, Record>,
'patients-patien-tab-overview': RouteRecordInfo<'patients-patien-tab-overview', '/patients/PatienTabOverview', Record, Record>,
'patients-patient-bio-panel': RouteRecordInfo<'patients-patient-bio-panel', '/patients/PatientBioPanel', Record, Record>,
+ 'patients-patientprofile': RouteRecordInfo<'patients-patientprofile', '/patients/patientprofile', Record, Record>,
'patients-patients': RouteRecordInfo<'patients-patients', '/patients/patients', Record, Record>,
'patients-prescription-panel': RouteRecordInfo<'patients-prescription-panel', '/patients/PrescriptionPanel', Record, Record>,
+ 'patients-question-progress-bar': RouteRecordInfo<'patients-question-progress-bar', '/patients/QuestionProgressBar', Record, Record>,
'providers-completed-meeting-tab': RouteRecordInfo<'providers-completed-meeting-tab', '/providers/CompletedMeetingTab', Record, Record>,
'providers-meeting-details': RouteRecordInfo<'providers-meeting-details', '/providers/meeting-details', Record, Record>,
'providers-meetings': RouteRecordInfo<'providers-meetings', '/providers/meetings', Record, Record>,