From 64b9b5086cc9a6968f43a972d758573110f9bba6 Mon Sep 17 00:00:00 2001 From: apgupta3303 Date: Sun, 10 Mar 2024 20:24:04 -0700 Subject: [PATCH] Fixing REUSE --- Intake/Allergy Records/AllergyRecords.swift | 40 ++++++++--------- Intake/LLMFiltering.swift | 7 +++ Intake/Resources/Localizable.xcstrings | 48 +++++++++++++++------ 3 files changed, 61 insertions(+), 34 deletions(-) diff --git a/Intake/Allergy Records/AllergyRecords.swift b/Intake/Allergy Records/AllergyRecords.swift index 0914ec9..fccfd87 100644 --- a/Intake/Allergy Records/AllergyRecords.swift +++ b/Intake/Allergy Records/AllergyRecords.swift @@ -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 = """ @@ -170,6 +150,26 @@ 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) + } + } + private func submitAction() { navigationPath.path.append(NavigationViews.menstrual) } diff --git a/Intake/LLMFiltering.swift b/Intake/LLMFiltering.swift index b261b3d..95191a8 100644 --- a/Intake/LLMFiltering.swift +++ b/Intake/LLMFiltering.swift @@ -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 diff --git a/Intake/Resources/Localizable.xcstrings b/Intake/Resources/Localizable.xcstrings index e37db7d..e22b9c5 100644 --- a/Intake/Resources/Localizable.xcstrings +++ b/Intake/Resources/Localizable.xcstrings @@ -121,13 +121,14 @@ "Auto-fill Intake Form" : { }, - - "Calculation" : { }, "Chat" : { + }, + "Chief Complaint:" : { + }, "CHIEF_COMPLAINT_SYSTEM_PROMPT" : { "extractionState" : "manual", @@ -225,6 +226,9 @@ } } } + }, + "Date" : { + }, "Date of Birth" : { @@ -261,6 +265,9 @@ }, "Ex: Smoked for 10 years, quit 5 years ago..." : { + }, + "Female" : { + }, "FHIR_RESOURCES_CHAT_CANCEL" : { @@ -326,6 +333,9 @@ }, "Inactive" : { + }, + "Intake Form" : { + }, "Integrate your Records" : { @@ -349,7 +359,9 @@ "John Doe" : { }, - + "Last Menstrural Period" : { + + }, "Last period's end date" : { }, @@ -381,10 +393,11 @@ "Medical History" : { }, + "MEDICAL HISTORY" : { + }, "Medical History Assistant" : { - }, "Medical Intake Form" : { @@ -395,12 +408,13 @@ "Medications" : { }, - "Medications Assistant" : { }, - "Menstrual Information" : { + "Medications:" : { + }, + "Menstrual Information" : { }, "Message" : { @@ -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" : { @@ -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" : {