Skip to content

Commit

Permalink
Adding framwork for social history
Browse files Browse the repository at this point in the history
  • Loading branch information
apgupta3303 committed Mar 9, 2024
1 parent 63a9a3c commit 6fbec51
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 6 deletions.
27 changes: 21 additions & 6 deletions Intake/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@
},
"Active" : {

},
"Active" : {

},
"Add Field" : {

Expand All @@ -81,6 +78,9 @@
},
"Additional Details" : {

},
"Additional Details: " : {

},
"Additional details: %@" : {

Expand Down Expand Up @@ -217,6 +217,9 @@
},
"DELETE_REACTION" : {

},
"details" : {

},
"DETAILS" : {

Expand All @@ -229,6 +232,12 @@
},
"Edit Surgery" : {

},
"End" : {

},
"end date" : {

},
"End Date: %@" : {

Expand All @@ -241,9 +250,6 @@
},
"Ex: Smoked for 10 years, quit 5 years ago..." : {

},
"Export to PDF" : {

},
"FHIR_RESOURCES_CHAT_CANCEL" : {

Expand Down Expand Up @@ -497,6 +503,9 @@
},
"Other important questions." : {

},
"Pack Years:" : {

},
"Pack years: %.2f" : {

Expand Down Expand Up @@ -640,12 +649,18 @@
},
"Start" : {

},
"start date" : {

},
"Start Date: %@" : {

},
"START_CALENDAR" : {

},
"Start:" : {

},
"Status" : {

Expand Down
54 changes: 54 additions & 0 deletions Intake/ScrollablePDF.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}

Check warning on line 119 in Intake/ScrollablePDF.swift

View check run for this annotation

Codecov / codecov/patch

Intake/ScrollablePDF.swift#L97-L119

Added lines #L97 - L119 were not covered by tests
}

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)
}
}
}
}

Check warning on line 142 in Intake/ScrollablePDF.swift

View check run for this annotation

Codecov / codecov/patch

Intake/ScrollablePDF.swift#L126-L142

Added lines #L126 - L142 were not covered by tests
}


private struct MedicationSection: View {
@Environment(DataStore.self) private var data
Expand Down Expand Up @@ -199,6 +251,8 @@ struct ScrollablePDF: View {
SurgerySection()
MedicationSection()
Allergy()
MenstrualSection()
SmokingSection()

Check warning on line 255 in Intake/ScrollablePDF.swift

View check run for this annotation

Codecov / codecov/patch

Intake/ScrollablePDF.swift#L254-L255

Added lines #L254 - L255 were not covered by tests
}
.navigationTitle("Patient Form")
.onAppear(perform: {
Expand Down

0 comments on commit 6fbec51

Please sign in to comment.