Skip to content

Commit

Permalink
Fixing REUSE
Browse files Browse the repository at this point in the history
  • Loading branch information
apgupta3303 committed Mar 11, 2024
1 parent 802ee93 commit 64b9b50
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 34 deletions.
40 changes: 20 additions & 20 deletions Intake/Allergy Records/AllergyRecords.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,26 +119,6 @@ struct AllergyList: View {
}
}
}

private func allergyEntryRow(index: Int) -> some View {
HStack {
Text(data.allergyData[index].allergy)
.foregroundColor(.black)
Spacer()
Image(systemName: "chevron.right")
.foregroundColor(.gray)
.accessibilityLabel(Text("DETAILS"))
}
}

private func allergyButton(index: Int) -> some View {
Button(action: {
self.selectedIndex = index
self.showingReaction = true
}) {
allergyEntryRow(index: index)
}
}

init() {
let systemPrompt = """
Expand Down Expand Up @@ -170,6 +150,26 @@ struct AllergyList: View {
)
}

Check warning on line 151 in Intake/Allergy Records/AllergyRecords.swift

View check run for this annotation

Codecov / codecov/patch

Intake/Allergy Records/AllergyRecords.swift#L139-L151

Added lines #L139 - L151 were not covered by tests

private func allergyEntryRow(index: Int) -> some View {
HStack {
Text(data.allergyData[index].allergy)
.foregroundColor(.black)
Spacer()
Image(systemName: "chevron.right")
.foregroundColor(.gray)
.accessibilityLabel(Text("DETAILS"))
}
}

private func allergyButton(index: Int) -> some View {
Button(action: {
self.selectedIndex = index
self.showingReaction = true
}) {
allergyEntryRow(index: index)
}
}

private func submitAction() {
navigationPath.path.append(NavigationViews.menstrual)
}
Expand Down
7 changes: 7 additions & 0 deletions Intake/LLMFiltering.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
//
// Created by Akash Gupta on 3/8/24.
//
//
// This source file is part of the Intake based on the Stanford Spezi Template Application project
//
// SPDX-FileCopyrightText: 2023 Stanford University
//
// SPDX-License-Identifier: MIT
//

import Foundation
import SpeziLLM
Expand Down
48 changes: 34 additions & 14 deletions Intake/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,14 @@
"Auto-fill Intake Form" : {

},


"Calculation" : {

},
"Chat" : {

},
"Chief Complaint:" : {

},
"CHIEF_COMPLAINT_SYSTEM_PROMPT" : {
"extractionState" : "manual",
Expand Down Expand Up @@ -225,6 +226,9 @@
}
}
}
},
"Date" : {

},
"Date of Birth" : {

Expand Down Expand Up @@ -261,6 +265,9 @@
},
"Ex: Smoked for 10 years, quit 5 years ago..." : {

},
"Female" : {

},
"FHIR_RESOURCES_CHAT_CANCEL" : {

Expand Down Expand Up @@ -326,6 +333,9 @@
},
"Inactive" : {

},
"Intake Form" : {

},
"Integrate your Records" : {

Expand All @@ -349,7 +359,9 @@
"John Doe" : {

},

"Last Menstrural Period" : {

},
"Last period's end date" : {

},
Expand Down Expand Up @@ -381,10 +393,11 @@
"Medical History" : {

},
"MEDICAL HISTORY" : {

},
"Medical History Assistant" : {


},
"Medical Intake Form" : {

Expand All @@ -395,12 +408,13 @@
"Medications" : {

},

"Medications Assistant" : {

},
"Menstrual Information" : {
"Medications:" : {

},
"Menstrual Information" : {

},
"Message" : {
Expand Down Expand Up @@ -553,22 +567,22 @@
"Pack years: %.2f" : {

},
"Patient Form" : {
"Past Medical History:" : {

},
"Performed" : {
"Past Surgical History:" : {

},
"Please add your past surgeries" : {
"Patient did not enter chief complaint." : {

},
"Past Medical History:" : {
"Patient Form" : {

},
"Past Surgical History:" : {
"Performed" : {

},
"Patient did not enter chief complaint." : {
"Please add your past surgeries" : {

},
"Please list conditions you have had" : {
Expand Down Expand Up @@ -672,20 +686,26 @@
"SETTINGS_TITLE" : {

},
"Sex:" : {
"Sex" : {

},
"Sex" : {
"Sex:" : {

},
"Share" : {

},
"Share Intake form" : {

},
"Share with provider of your choice." : {

},
"Skip" : {

},
"Smoking history" : {

},
"Smoking History" : {

Expand Down

0 comments on commit 64b9b50

Please sign in to comment.