Skip to content

Commit

Permalink
Modifying Questionnaire to Emotion Survey (#4)
Browse files Browse the repository at this point in the history
modified social support questionnaire with emotion survey

# Task 4: Add a questionnaire 

## ♻️ Current situation & Problem
The application currently has a Social Support Questionnaire. To make it
more relevant to the Behavior Project, I added different questions
regarding emotions, feeling of accomplishments, and actual goals
completed. The questionnaire also includes conditional questions
(depending on the user's answers on their emotions and challenges).


## ⚙️ Release Notes 
- User is reminded to take daily survey 
- Questionnaire opens as a screen/modal 
- Questionnaire allows user to close it and come back at a later time 
- Questionnaire entry button is disabled if user already filled out the
daily form


## 📚 Documentation
- Reference for HL7 FHIR: https://hl7.org/fhir/R4/questionnaire.html
- Created new questionnaire using Phoenix Survey Builder:
https://stanfordbdhg.github.io/phoenix/
- Debugging discussion: https://github.com/orgs/CS342/discussions/47


## ✅ Testing
- While testing my modifications, I found that the xcode simulator was
not loading my changes. The modified questionnaire does show up when
running the iPhone simulator though so this would be the best way to
test the changes made.

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [ ] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).

## Screenshots of Questionnaire: 


![simulator_screenshot_1FE943DA-60EB-46B4-85BE-2AAE053CA283](https://github.com/CS342/2024-Behavior/assets/89322465/09731e5b-6ffe-4095-a797-3a237aff8205)

![simulator_screenshot_F6F642D1-8D69-4D6F-AF38-4DBE25DE29CB](https://github.com/CS342/2024-Behavior/assets/89322465/5233b6aa-2eba-4dfa-b3e8-6aaff03fa058)
  • Loading branch information
carolinentran authored Jan 23, 2024
1 parent eca33c2 commit 9180af0
Show file tree
Hide file tree
Showing 7 changed files with 320 additions and 715 deletions.
15 changes: 11 additions & 4 deletions Behavior.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
2FB099B32A875DF100B20952 /* FirebaseFirestoreSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 2FB099B22A875DF100B20952 /* FirebaseFirestoreSwift */; };
2FB099B62A875E2B00B20952 /* HealthKitOnFHIR in Frameworks */ = {isa = PBXBuildFile; productRef = 2FB099B52A875E2B00B20952 /* HealthKitOnFHIR */; };
2FBD738C2A3BD150004228E7 /* SpeziScheduler in Frameworks */ = {isa = PBXBuildFile; productRef = 2FBD738B2A3BD150004228E7 /* SpeziScheduler */; };
2FC3439029EE6346002D773C /* SocialSupportQuestionnaire.json in Resources */ = {isa = PBXBuildFile; fileRef = 2FE5DC5529EDD811004B9AB4 /* SocialSupportQuestionnaire.json */; };
2FC3439029EE6346002D773C /* EmotionQuestionnaire.json in Resources */ = {isa = PBXBuildFile; fileRef = 2FE5DC5529EDD811004B9AB4 /* EmotionQuestionnaire.json */; };
2FC3439129EE6349002D773C /* AppIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = 2FE5DC2A29EDD78D004B9AB4 /* AppIcon.png */; };
2FC3439229EE634B002D773C /* ConsentDocument.md in Resources */ = {isa = PBXBuildFile; fileRef = 2FE5DC2C29EDD78E004B9AB4 /* ConsentDocument.md */; };
2FC975A82978F11A00BA99FE /* Home.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FC975A72978F11A00BA99FE /* Home.swift */; };
2FE5DC2629EDD38A004B9AB4 /* Contacts.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FE5DC2529EDD38A004B9AB4 /* Contacts.swift */; };
Expand Down Expand Up @@ -58,6 +59,7 @@
2FE5DCB129EE6107004B9AB4 /* AccountOnboarding.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FE5DCAC29EE6107004B9AB4 /* AccountOnboarding.swift */; };
2FF53D8B2A8725DE00042B76 /* SpeziMockWebService in Frameworks */ = {isa = PBXBuildFile; productRef = 2FF53D8A2A8725DE00042B76 /* SpeziMockWebService */; };
2FF53D8D2A8729D600042B76 /* BehaviorStandard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FF53D8C2A8729D600042B76 /* BehaviorStandard.swift */; };
35B8E0BD2B5F3915005F64F4 /* EmotionQuestionnaire.json.license in Resources */ = {isa = PBXBuildFile; fileRef = 35B8E0BC2B5F3915005F64F4 /* EmotionQuestionnaire.json.license */; };
5661551D2AB8384200209B80 /* SwiftPackageList in Frameworks */ = {isa = PBXBuildFile; productRef = 5661551C2AB8384200209B80 /* SwiftPackageList */; };
566155292AB8447C00209B80 /* Package+LicenseType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 566155282AB8447C00209B80 /* Package+LicenseType.swift */; };
5661552E2AB854C000209B80 /* PackageHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5661552D2AB854C000209B80 /* PackageHelper.swift */; };
Expand Down Expand Up @@ -123,9 +125,10 @@
2FE5DC4B29EDD7FA004B9AB4 /* BehaviorTaskContext.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BehaviorTaskContext.swift; sourceTree = "<group>"; };
2FE5DC4C29EDD7FA004B9AB4 /* BehaviorScheduler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BehaviorScheduler.swift; sourceTree = "<group>"; };
2FE5DC4D29EDD7FA004B9AB4 /* Bundle+Questionnaire.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Bundle+Questionnaire.swift"; sourceTree = "<group>"; };
2FE5DC5529EDD811004B9AB4 /* SocialSupportQuestionnaire.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = SocialSupportQuestionnaire.json; sourceTree = "<group>"; };
2FE5DC5529EDD811004B9AB4 /* EmotionQuestionnaire.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = EmotionQuestionnaire.json; sourceTree = "<group>"; };
2FE5DCAC29EE6107004B9AB4 /* AccountOnboarding.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AccountOnboarding.swift; sourceTree = "<group>"; };
2FF53D8C2A8729D600042B76 /* BehaviorStandard.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BehaviorStandard.swift; sourceTree = "<group>"; };
35B8E0BC2B5F3915005F64F4 /* EmotionQuestionnaire.json.license */ = {isa = PBXFileReference; lastKnownFileType = text; path = EmotionQuestionnaire.json.license; sourceTree = "<group>"; };
566155282AB8447C00209B80 /* Package+LicenseType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Package+LicenseType.swift"; sourceTree = "<group>"; };
5661552D2AB854C000209B80 /* PackageHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PackageHelper.swift; sourceTree = "<group>"; };
5680DD382AB8983D004E6D4A /* PackageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PackageCell.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -239,7 +242,9 @@
653A255428338800005D4D48 /* Assets.xcassets */,
2FA0BFEC2ACC977500E0EF83 /* Localizable.xcstrings */,
2FE5DC2C29EDD78E004B9AB4 /* ConsentDocument.md */,
2FE5DC5529EDD811004B9AB4 /* SocialSupportQuestionnaire.json */,
2FE5DC2A29EDD78D004B9AB4 /* AppIcon.png */,
2FE5DC5529EDD811004B9AB4 /* EmotionQuestionnaire.json */,
35B8E0BC2B5F3915005F64F4 /* EmotionQuestionnaire.json.license */,
);
path = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -519,8 +524,10 @@
buildActionMask = 2147483647;
files = (
2FC3439229EE634B002D773C /* ConsentDocument.md in Resources */,
35B8E0BD2B5F3915005F64F4 /* EmotionQuestionnaire.json.license in Resources */,
2FC3439129EE6349002D773C /* AppIcon.png in Resources */,
653A255528338800005D4D48 /* Assets.xcassets in Resources */,
2FC3439029EE6346002D773C /* SocialSupportQuestionnaire.json in Resources */,
2FC3439029EE6346002D773C /* EmotionQuestionnaire.json in Resources */,
2FA0BFED2ACC977500E0EF83 /* Localizable.xcstrings in Resources */,
2F6025CB29BBE70F0045459E /* GoogleService-Info.plist in Resources */,
);
Expand Down

This file was deleted.

Loading

0 comments on commit 9180af0

Please sign in to comment.