initial commit
This commit is contained in:
314
resources/js/views/pages/questionere/medical-history-form.js
Normal file
314
resources/js/views/pages/questionere/medical-history-form.js
Normal file
@@ -0,0 +1,314 @@
|
||||
export default {
|
||||
steps: {
|
||||
page0: {
|
||||
elements: [
|
||||
'h4',
|
||||
'blood_pressure',
|
||||
'divider_1',
|
||||
],
|
||||
// conditions: [
|
||||
// [
|
||||
// 'heart_attack',
|
||||
// 'empty',
|
||||
// ],
|
||||
// ],
|
||||
},
|
||||
page1: {
|
||||
elements: [
|
||||
'h1',
|
||||
'heart_attack',
|
||||
],
|
||||
},
|
||||
page2: {
|
||||
elements: [
|
||||
'h1_1',
|
||||
'high_cholesterol',
|
||||
],
|
||||
},
|
||||
page3: {
|
||||
elements: [
|
||||
'h4_21',
|
||||
'stroke',
|
||||
'container_1',
|
||||
],
|
||||
},
|
||||
page4: {
|
||||
elements: [
|
||||
'h4_2',
|
||||
'atrial_fib_arrhythmia ',
|
||||
],
|
||||
},
|
||||
page5: {
|
||||
elements: [
|
||||
'h4_3',
|
||||
'hole_in_heart',
|
||||
],
|
||||
},
|
||||
page6: {
|
||||
elements: [
|
||||
'h4_4',
|
||||
'cancer',
|
||||
],
|
||||
},
|
||||
page7: {
|
||||
elements: [
|
||||
'h4_5',
|
||||
'clotting_disorder',
|
||||
],
|
||||
},
|
||||
page8: {
|
||||
elements: [
|
||||
'h4_6',
|
||||
'diabetes',
|
||||
],
|
||||
},
|
||||
page9: {
|
||||
elements: [
|
||||
'h4_7',
|
||||
'kidney_disease',
|
||||
],
|
||||
},
|
||||
},
|
||||
schema: {
|
||||
h4: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'High blood pressure',
|
||||
},
|
||||
blood_pressure: {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
},
|
||||
divider_1: {
|
||||
type: 'static',
|
||||
tag: 'hr',
|
||||
},
|
||||
h1: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'Heart attack?',
|
||||
},
|
||||
heart_attack: {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
rules: [
|
||||
'required',
|
||||
],
|
||||
},
|
||||
h1_1: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'High cholesterol?',
|
||||
},
|
||||
high_cholesterol: {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
rules: [
|
||||
'required',
|
||||
],
|
||||
},
|
||||
h4_21: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'Stroke ?',
|
||||
},
|
||||
stroke: {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
},
|
||||
container_1: {
|
||||
type: 'group',
|
||||
schema: {
|
||||
h4_1: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'Stroke/TIA',
|
||||
},
|
||||
stroke_tia: {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
},
|
||||
h4_22: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'Mini Stroke',
|
||||
},
|
||||
mini_stroke: {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
conditions: [
|
||||
[
|
||||
'stroke',
|
||||
'in',
|
||||
[
|
||||
'yes',
|
||||
],
|
||||
],
|
||||
],
|
||||
},
|
||||
h4_2: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'Atrial Fib/Arrhythmia ',
|
||||
},
|
||||
'atrial_fib_arrhythmia ': {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
},
|
||||
h4_3: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'PFO/ Hole in Heart',
|
||||
},
|
||||
hole_in_heart: {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
},
|
||||
h4_4: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'Cancer',
|
||||
},
|
||||
cancer: {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
},
|
||||
h4_5: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'Coagulopathy/Clotting disorder',
|
||||
},
|
||||
clotting_disorder: {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
},
|
||||
h4_6: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'Diabetes ',
|
||||
},
|
||||
diabetes: {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
},
|
||||
h4_7: {
|
||||
type: 'static',
|
||||
tag: 'h4',
|
||||
content: 'Kidney disease',
|
||||
},
|
||||
kidney_disease: {
|
||||
type: 'radiogroup',
|
||||
items: [
|
||||
{
|
||||
value: 'yes',
|
||||
label: 'Yes',
|
||||
},
|
||||
{
|
||||
value: 'no',
|
||||
label: 'No',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user