upgraded for new changes
This commit is contained in:
@@ -8,14 +8,24 @@ const date = ref()
|
||||
const initialize = () => {
|
||||
date.value = new Date().getFullYear();
|
||||
}
|
||||
|
||||
|
||||
|
||||
const constact = () => {
|
||||
// window.open('/terms-and-conditions', '_blank');
|
||||
window.open('https://purityselect.com/contact/')
|
||||
};
|
||||
const gotoTermsCondition = () => {
|
||||
router.push('/terms-and-conditions');
|
||||
// window.open('/terms-and-conditions', '_blank');
|
||||
window.open('https://purityselect.com/terms-and-condition/')
|
||||
};
|
||||
const gotoPrivacyPolicy = () => {
|
||||
router.push('/privacy-policy');
|
||||
// window.open('/privacy-policy', '_blank');
|
||||
window.open('https://purityselect.com/privacy-policy/')
|
||||
};
|
||||
const gotoRefundPolicy = () => {
|
||||
router.push('/refund-policy');
|
||||
// window.open('/refund-policy', '_blank');
|
||||
window.open('https://purityselect.com/refund-and-return-policy/')
|
||||
};
|
||||
</script>
|
||||
<template>
|
||||
@@ -107,7 +117,7 @@ const gotoRefundPolicy = () => {
|
||||
<!-- <span>Message and data rates may apply</span> -->
|
||||
</div>
|
||||
<div class="contact-icons">
|
||||
<a href="#">Contact Us</a>
|
||||
<a @click="constact()">Contact Us</a>
|
||||
</div>
|
||||
<div class="contact-icons">
|
||||
<a type="button" @click="gotoTermsCondition()">Terms & Conditions</a>
|
||||
|
@@ -123,7 +123,7 @@ const isAgentCall = () => {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<RouterLink v-if="!isDisableMeeting" to="/queue">
|
||||
<!-- <RouterLink v-if="!isDisableMeeting" to="/queue">
|
||||
<VBtn class="mt-3" color="rgb(var(--v-theme-yellow))">
|
||||
Go to Meeting Test{{ callEnd }}
|
||||
</VBtn>
|
||||
@@ -132,7 +132,7 @@ const isAgentCall = () => {
|
||||
<VBtn class="mt-3" color="rgb(var(--v-theme-yellow))" disabled>Go to
|
||||
Meeting Disabled
|
||||
</VBtn>
|
||||
</span>
|
||||
</span> -->
|
||||
<!-- <RouterLink to="/meeting">
|
||||
<VBtn class="mt-3" color="error" :disabled="isDisableMeeting">Go to Meeting
|
||||
</VBtn>
|
||||
|
@@ -216,7 +216,7 @@ const togglePanel = (index) => {
|
||||
<VBtn class="mt-3" color="error">Go to Meeting
|
||||
</VBtn>
|
||||
</RouterLink> -->
|
||||
<RouterLink v-if="isMeetingEnable" to="/queue" target="_blank">
|
||||
<!-- <RouterLink v-if="isMeetingEnable" to="/queue" target="_blank">
|
||||
<VBtn class="mt-3" color="rgb(var(--v-theme-yellow))">
|
||||
Go to Meeting
|
||||
</VBtn>
|
||||
@@ -224,7 +224,7 @@ const togglePanel = (index) => {
|
||||
<span v-else>
|
||||
<VBtn class="mt-3" color="rgb(var(--v-theme-yellow))" disabled>Go to Meeting
|
||||
</VBtn>
|
||||
</span>
|
||||
</span> -->
|
||||
</div>
|
||||
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
<script setup>
|
||||
import questionries from '@/views/pages/questionere/combine-questins';
|
||||
import axios from '@axios';
|
||||
import avatar1 from '@images/avatars/avatar-1.png';
|
||||
const profileDetail = ref();
|
||||
@@ -173,148 +174,7 @@ const getPatientMedicalHistory = async () => {
|
||||
// }
|
||||
// };
|
||||
|
||||
const questions = ref([
|
||||
{
|
||||
question_key: 'why_interested_hrt',
|
||||
question: "What aspects of hormone replacement therapy (HRT) intrigue you?",
|
||||
type: "text",
|
||||
},
|
||||
{
|
||||
question_key: 'goal_loss_weight',
|
||||
question: "Is your objective with the program to achieve weight loss?",
|
||||
type: "radio",
|
||||
options: ["Yes", "No"],
|
||||
},
|
||||
{
|
||||
question_key: 'what_biological_sex',
|
||||
question: "What is your assigned sex at birth?",
|
||||
type: "radio",
|
||||
options: ["Male", "Female"],
|
||||
},
|
||||
{
|
||||
question_key: '3_years_physical_test',
|
||||
question: "Have you undergone a comprehensive physical examination by a medical professional within the past three years, which included assessments of vital signs such as weight, blood pressure, and heart rate?",
|
||||
type: "radio",
|
||||
options: ["Yes", "No"],
|
||||
},
|
||||
{
|
||||
question_key: 'medical_problems',
|
||||
question: "Did you experience any medical issues? If so, could you please elaborate?",
|
||||
type: "radio",
|
||||
options: ["Yes", "No"],
|
||||
},
|
||||
{
|
||||
question_key: 'have_prostate_cancer',
|
||||
question: "Have you ever received a diagnosis of prostate cancer?",
|
||||
type: "radio",
|
||||
options: ["Yes", "No"],
|
||||
},
|
||||
{
|
||||
question_key: 'what_height',
|
||||
question: "How tall are you?",
|
||||
type: "dropdown",
|
||||
options: ["5 ft 1 in",
|
||||
"5 ft 2 in",
|
||||
"5 ft 3 in",
|
||||
"5 ft 4 in",
|
||||
"5 ft 5 in",
|
||||
"5 ft 6 in",
|
||||
"5 ft 7 in",
|
||||
"5 ft 8 in",
|
||||
],
|
||||
},
|
||||
{
|
||||
question_key: 'whight',
|
||||
question: "What is your weight?",
|
||||
type: "text",
|
||||
},
|
||||
// {
|
||||
// question_key: 'birthdate',
|
||||
// question: "When were you born?",
|
||||
// type: "date",
|
||||
// sub_title: 'To proceed with medication, kindly input your accurate date of birth using the format mm/dd/yyyy.'
|
||||
// },
|
||||
{
|
||||
question_key: 'past_harmone_treatments',
|
||||
question: "Have you been prescribed any hormone treatments currently or in the past?",
|
||||
type: "radio",
|
||||
options: ["thyroid_medication", "testosterone_treatment", "estrogen_blocker", "hgh", "ipamoreline", "colomipheine", "hcg", "other", "none"],
|
||||
},
|
||||
{
|
||||
question_key: 'take_medications',
|
||||
question: "Are you currently using or have you used any over-the-counter or prescription medications, excluding hormone treatments? (Please note that your responses will be cross-checked against prescription and insurance records. Failure to disclose current prescriptions and/or medical conditions may result in disapproval for your safety.)",
|
||||
type: "radio",
|
||||
options: ["Yes", "No"],
|
||||
},
|
||||
{
|
||||
question_key: 'have_medications_allegies',
|
||||
question: "Do you have any allergies to medications?",
|
||||
type: "radio",
|
||||
options: ["Yes", "No"],
|
||||
},
|
||||
{
|
||||
question_key: 'plan_children',
|
||||
question: "Do you intend to have children at some point in the future?",
|
||||
type: "radio",
|
||||
options: ["Yes", "No"],
|
||||
},
|
||||
{
|
||||
question_key: 'partner_pregnant',
|
||||
question: "Is your partner currently pregnant or breastfeeding?",
|
||||
type: "radio",
|
||||
options: ["Yes", "No", "not applicab_e"],
|
||||
},
|
||||
{
|
||||
question_key: 'experience_ed',
|
||||
question: "Are you currently experiencing any erectile dysfunction (ED) issues?",
|
||||
type: "radio",
|
||||
options: ["never", "almost_never", "occasionally", "almost_always", "always"],
|
||||
},
|
||||
{
|
||||
question_key: 'thyroid_disorders',
|
||||
question: "Have you ever been diagnosed with thyroid disorders such as hypothyroidism (underactive thyroid), hyperthyroidism (overactive thyroid), Hashimoto's Disease, or Graves' Disease?",
|
||||
type: "radio",
|
||||
options: ["Yes", "No"],
|
||||
},
|
||||
{
|
||||
question_key: 'family_history',
|
||||
question: "Does your family have a history of any of the following disorders?",
|
||||
type: "radio",
|
||||
options: ["drug_alcohol", "cancer", "heart_disease", "thyroid_disease", "low_testosterone",
|
||||
"none"],
|
||||
},
|
||||
{
|
||||
question_key: 'patient_concent',
|
||||
question: "Please read and accept",
|
||||
linktext: "Patient Content",
|
||||
type: "signalCheckbox",
|
||||
},
|
||||
{
|
||||
question_key: 'appointment_cancel',
|
||||
question: "Please read and accept",
|
||||
linktext: "Appointment Cancel",
|
||||
type: "signalCheckbox",
|
||||
},
|
||||
{
|
||||
question_key: 'medicare_disclaimer',
|
||||
question: "Please read and accept",
|
||||
linktext: "Medicare Disclaimer",
|
||||
type: "signalCheckbox",
|
||||
},
|
||||
{
|
||||
question_key: 'telehealth_concent',
|
||||
question: "Please read and accept",
|
||||
linktext: "Telehealth Concent",
|
||||
type: "signalCheckbox",
|
||||
},
|
||||
{
|
||||
question_key: 'secondary_contact',
|
||||
question: "Please read and accept",
|
||||
linktext: "Secondary Contact Disclosure(optional)",
|
||||
type: "signalCheckbox",
|
||||
},
|
||||
|
||||
]);
|
||||
const questions = ref(questionries);
|
||||
|
||||
const getCurrentDate = () => {
|
||||
const today = new Date();
|
||||
|
74
resources/js/views/pages/questionere/combine-questins.js
Normal file
74
resources/js/views/pages/questionere/combine-questins.js
Normal file
@@ -0,0 +1,74 @@
|
||||
import allergyasthma from './allergy-asthma-form.js';
|
||||
import antiaging from './anti-aging-form.js';
|
||||
import cardiology from './cardiology-form.js';
|
||||
import dermatology from './dermatology-form.js';
|
||||
import dnarepair from './dna-repair-form.js';
|
||||
import doctorintakerequest from './doctor-intake-request-form.js';
|
||||
import sleepquality from './sleep-quality.js';
|
||||
import hairgrowth from './hair-growth-form.js';
|
||||
import medicalhistory from './medical-history-form.js';
|
||||
import musclegrowth from './muscle-growth-form.js';
|
||||
import neurology from './neurology-form.js';
|
||||
import oncology from './oncology-form.js';
|
||||
import sexualwellness from './sexual-wellness-form.js';
|
||||
import urology from './urology-form.js';
|
||||
import weightloss from './weight-loss-form.js';
|
||||
import guthealth from './gut-health-form.js';
|
||||
import anxiety from './anxiety-form.js';
|
||||
import injuryrepair from './injury-repair-form.js';
|
||||
import menopause from './menopause-form.js';
|
||||
|
||||
function questionsMapping(data){
|
||||
const step = data.steps
|
||||
const schema = data.schema
|
||||
const questions = []
|
||||
for(let pageNo in step){
|
||||
const page = step[pageNo]
|
||||
let questionHeading = ""
|
||||
// let question = page.elements[2]
|
||||
for(let i = 0; i < page.elements.length; i++){
|
||||
const element = schema[page.elements[i]]
|
||||
if(!element)
|
||||
continue;
|
||||
if(element.type == "static" ) {
|
||||
|
||||
questionHeading += element.content+" "
|
||||
continue;
|
||||
}
|
||||
let questionObj = {
|
||||
pageNo: pageNo,
|
||||
label: i < 3 ? questionHeading: "",
|
||||
question: i < 3 ? questionHeading: "",
|
||||
// subHeading: schema[subHeading].content,
|
||||
key: page.elements[i],
|
||||
question_key: page.elements[i],
|
||||
type: 'exact_match'
|
||||
}
|
||||
questions.push(questionObj)
|
||||
}
|
||||
}
|
||||
return questions
|
||||
}
|
||||
export default [
|
||||
...questionsMapping(cardiology),
|
||||
...questionsMapping(oncology),
|
||||
...questionsMapping(dermatology),
|
||||
...questionsMapping(medicalhistory),
|
||||
...questionsMapping(urology),
|
||||
...questionsMapping(doctorintakerequest),
|
||||
...questionsMapping(allergyasthma),
|
||||
...questionsMapping(weightloss),
|
||||
...questionsMapping(musclegrowth),
|
||||
...questionsMapping(sexualwellness),
|
||||
...questionsMapping(hairgrowth),
|
||||
...questionsMapping(antiaging),
|
||||
...questionsMapping(dnarepair),
|
||||
...questionsMapping(sleepquality),
|
||||
...questionsMapping(guthealth),
|
||||
...questionsMapping(anxiety),
|
||||
...questionsMapping(injuryrepair),
|
||||
...questionsMapping(menopause),
|
||||
|
||||
]
|
||||
|
||||
console.log(JSON.stringify(questionsExport))
|
Reference in New Issue
Block a user