From 6fbec51a4b0574e58f69f9e1079e5cafc578cb5b Mon Sep 17 00:00:00 2001 From: apgupta3303 Date: Fri, 8 Mar 2024 18:37:58 -0800 Subject: [PATCH] Adding framwork for social history --- Intake/Resources/Localizable.xcstrings | 27 ++++++++++--- Intake/ScrollablePDF.swift | 54 ++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 6 deletions(-) diff --git a/Intake/Resources/Localizable.xcstrings b/Intake/Resources/Localizable.xcstrings index bc26cd7..4bb9088 100644 --- a/Intake/Resources/Localizable.xcstrings +++ b/Intake/Resources/Localizable.xcstrings @@ -66,9 +66,6 @@ }, "Active" : { - }, - "Active" : { - }, "Add Field" : { @@ -81,6 +78,9 @@ }, "Additional Details" : { + }, + "Additional Details: " : { + }, "Additional details: %@" : { @@ -217,6 +217,9 @@ }, "DELETE_REACTION" : { + }, + "details" : { + }, "DETAILS" : { @@ -229,6 +232,12 @@ }, "Edit Surgery" : { + }, + "End" : { + + }, + "end date" : { + }, "End Date: %@" : { @@ -241,9 +250,6 @@ }, "Ex: Smoked for 10 years, quit 5 years ago..." : { - }, - "Export to PDF" : { - }, "FHIR_RESOURCES_CHAT_CANCEL" : { @@ -497,6 +503,9 @@ }, "Other important questions." : { + }, + "Pack Years:" : { + }, "Pack years: %.2f" : { @@ -640,12 +649,18 @@ }, "Start" : { + }, + "start date" : { + }, "Start Date: %@" : { }, "START_CALENDAR" : { + }, + "Start:" : { + }, "Status" : { diff --git a/Intake/ScrollablePDF.swift b/Intake/ScrollablePDF.swift index 1f27083..482f337 100644 --- a/Intake/ScrollablePDF.swift +++ b/Intake/ScrollablePDF.swift @@ -90,6 +90,58 @@ struct ScrollablePDF: View { } } + private struct MenstrualSection: View { + @Environment(DataStore.self) private var data + @Environment(NavigationPathWrapper.self) private var navigationPath + + var body: some View { + Section(header: HeaderTitle(title: "Menstrual Cycle", nextView: NavigationViews.menstrual)) { + List { + HStack { + Text("Start:") + Spacer() + Text("start date") + .foregroundColor(.secondary) + } + HStack { + Text("End") + Spacer() + Text("end date") + .foregroundColor(.secondary) + } + HStack { + Text("Additional Details: ") + Text("details") + .foregroundColor(.secondary) + } + } + } + } + } + + private struct SmokingSection: View { + @Environment(DataStore.self) private var data + @Environment(NavigationPathWrapper.self) private var navigationPath + + var body: some View { + Section(header: HeaderTitle(title: "Smoking", nextView: NavigationViews.smoking)) { + List { + HStack { + Text("Pack Years:") + Spacer() + Text("start date") + .foregroundColor(.secondary) + } + HStack { + Text("Additional Details: ") + Text("details") + .foregroundColor(.secondary) + } + } + } + } + } + private struct MedicationSection: View { @Environment(DataStore.self) private var data @@ -199,6 +251,8 @@ struct ScrollablePDF: View { SurgerySection() MedicationSection() Allergy() + MenstrualSection() + SmokingSection() } .navigationTitle("Patient Form") .onAppear(perform: {