Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment 1, Task 2 - Update onboarding flow #6

Merged
merged 7 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions Intake/Onboarding/InterestingModules.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,32 @@ struct InterestingModules: View {

var body: some View {
nriedman marked this conversation as resolved.
Show resolved Hide resolved
SequentialOnboardingView(
title: "INTERESTING_MODULES_TITLE",
subtitle: "INTERESTING_MODULES_SUBTITLE",
title: "Medical Intake Form",
subtitle: "Together we will summarize...",
content: [
SequentialOnboardingView.Content(
title: "INTERESTING_MODULES_AREA1_TITLE",
description: "INTERESTING_MODULES_AREA1_DESCRIPTION"
title: "Main reason(s) for visit",
description: "What brings you in today? Identify your primary concern(s)."
),
SequentialOnboardingView.Content(
title: "INTERESTING_MODULES_AREA2_TITLE",
description: "INTERESTING_MODULES_AREA2_DESCRIPTION"
title: "Medical History",
description: "Summarize your medical history."
),
SequentialOnboardingView.Content(
title: "INTERESTING_MODULES_AREA3_TITLE",
description: "INTERESTING_MODULES_AREA3_DESCRIPTION"
title: "Surgical History",
description: "Summarize your surgical history."
),
SequentialOnboardingView.Content(
title: "INTERESTING_MODULES_AREA4_TITLE",
description: "INTERESTING_MODULES_AREA4_DESCRIPTION"
title: "Medications",
description: "List your current medications."
),
SequentialOnboardingView.Content(
title: "Allergies",
description: "List all your allgeries."
),
SequentialOnboardingView.Content(
title: "Review of Systems",
description: "Other important questions."
)
],
actionText: "INTERESTING_MODULES_BUTTON",
Expand Down
24 changes: 12 additions & 12 deletions Intake/Onboarding/Welcome.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,35 @@ struct Welcome: View {

var body: some View {
nriedman marked this conversation as resolved.
Show resolved Hide resolved
OnboardingView(
title: "WELCOME_TITLE",
subtitle: "WELCOME_SUBTITLE",
title: "Welcome to ReForm",
subtitle: "This application will help autocomplete your medical intake form.",
areas: [
OnboardingInformationView.Content(
icon: {
Image(systemName: "apps.iphone")
Image(systemName: "folder.fill.badge.plus")
.accessibilityHidden(true)
},
title: "WELCOME_AREA1_TITLE",
description: "WELCOME_AREA1_DESCRIPTION"
title: "Integrate your Records",
description: "Download your medical records from your health system."
),
OnboardingInformationView.Content(
icon: {
Image(systemName: "shippingbox.fill")
Image(systemName: "list.bullet.rectangle.fill")
.accessibilityHidden(true)
},
title: "WELCOME_AREA2_TITLE",
description: "WELCOME_AREA2_DESCRIPTION"
title: "Auto-fill Intake Form",
description: "Review summary of your medical history."
),
OnboardingInformationView.Content(
icon: {
Image(systemName: "list.bullet.clipboard.fill")
Image(systemName: "square.and.arrow.up.fill")
.accessibilityHidden(true)
},
title: "WELCOME_AREA3_TITLE",
description: "WELCOME_AREA3_DESCRIPTION"
title: "Submit your Form",
description: "Share with provider of your choice."
)
],
actionText: "WELCOME_BUTTON",
actionText: "Get Started",
action: {
onboardingNavigationPath.nextStep()
}
Expand Down
88 changes: 88 additions & 0 deletions Intake/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
}
}
}
},
"Allergies" : {

},
"Auto-fill Intake Form" : {

},
"CLOSE" : {
"comment" : "MARK: General",
Expand Down Expand Up @@ -133,6 +139,12 @@
}
}
}
},
"Download your medical records from your health system." : {

},
"Get Started" : {

},
"HEALTHKIT_PERMISSIONS_BUTTON" : {
"localizations" : {
Expand Down Expand Up @@ -174,8 +186,12 @@
}
}
}
},
"Integrate your Records" : {

},
"INTERESTING_MODULES_AREA1_DESCRIPTION" : {
"extractionState" : "stale",
nriedman marked this conversation as resolved.
Show resolved Hide resolved
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -186,6 +202,7 @@
}
},
"INTERESTING_MODULES_AREA1_TITLE" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -196,6 +213,7 @@
}
},
"INTERESTING_MODULES_AREA2_DESCRIPTION" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -206,6 +224,7 @@
}
},
"INTERESTING_MODULES_AREA2_TITLE" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -216,6 +235,7 @@
}
},
"INTERESTING_MODULES_AREA3_DESCRIPTION" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -226,6 +246,7 @@
}
},
"INTERESTING_MODULES_AREA3_TITLE" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -236,6 +257,7 @@
}
},
"INTERESTING_MODULES_AREA4_DESCRIPTION" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -246,6 +268,7 @@
}
},
"INTERESTING_MODULES_AREA4_TITLE" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -266,6 +289,7 @@
}
},
"INTERESTING_MODULES_SUBTITLE" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -277,6 +301,7 @@
},
"INTERESTING_MODULES_TITLE" : {
"comment" : "MARK: Interesting Modules",
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand Down Expand Up @@ -305,6 +330,24 @@
}
}
}
},
"List all your allgeries." : {

},
"List your current medications." : {

},
"Main reason(s) for visit" : {

},
"Medical History" : {

},
"Medical Intake Form" : {

},
"Medications" : {

},
"MOCK_WEB_SERVICE_TAB_TITLE" : {
"comment" : "MARK: - Mock Upload Data Storage Provider",
Expand Down Expand Up @@ -357,6 +400,9 @@
}
}
}
},
"Other important questions." : {

},
"PROJECT_LICENSE_DESCRIPTION" : {
"localizations" : {
Expand All @@ -377,6 +423,12 @@
}
}
}
},
"Review of Systems" : {

},
"Review summary of your medical history." : {

},
"SCHEDULE_LIST_TITLE" : {
"localizations" : {
Expand All @@ -398,6 +450,21 @@
}
}
}
},
"Share with provider of your choice." : {

},
"Submit your Form" : {

},
"Summarize your medical history." : {

},
"Summarize your surgical history." : {

},
"Surgical History" : {

},
"TASK_CONTEXT_ACTION_QUESTIONNAIRE" : {
"localizations" : {
Expand Down Expand Up @@ -448,8 +515,18 @@
}
}
}
},
"This application will help autocomplete your medical intake form." : {

},
"Together we will summarize..." : {

},
"Welcome to ReForm" : {

},
"WELCOME_AREA1_DESCRIPTION" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -460,6 +537,7 @@
}
},
"WELCOME_AREA1_TITLE" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -470,6 +548,7 @@
}
},
"WELCOME_AREA2_DESCRIPTION" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -480,6 +559,7 @@
}
},
"WELCOME_AREA2_TITLE" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -490,6 +570,7 @@
}
},
"WELCOME_AREA3_DESCRIPTION" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -500,6 +581,7 @@
}
},
"WELCOME_AREA3_TITLE" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -510,6 +592,7 @@
}
},
"WELCOME_BUTTON" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -520,6 +603,7 @@
}
},
"WELCOME_SUBTITLE" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -531,6 +615,7 @@
},
"WELCOME_TITLE" : {
"comment" : "MARK: Welcome",
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -539,6 +624,9 @@
}
}
}
},
"What brings you in today? Identify your primary concern(s)." : {

}
},
"version" : "1.0"
Expand Down