Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add improved user Profile and Contacts views #6

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

cbaker6
Copy link
Member

@cbaker6 cbaker6 commented Apr 22, 2022

Coding tasks from final. Look at Files changed to see modifications made. Be sure to complete all leftover tasks.

  1. Replace current ContactView with Searchable contact view
Click to expand!

ContactView

profile myContact myContact

  1. Files modified:
    • MainTabs/Care/CareView.swift
    • MainTabs/Contact/ContactView.swift
  2. Files added:
    • MainTabs/Contact/ContactViewModel.swift
    • MainTabs/Contact/CustomContactViewController.swift
  3. Things ToDo in order to receive full credit. All items should work, contacts should be searchable and new contacts should be able to be added from the phone book
  1. Change the ProfileView to use a Form view
Click to expand!

ProfileView & MyContactView

profile myContact

  1. Files modified:
    • MainTabs/Profile/ProfileView.swift
    • MainTabs/Profile/ProfileViewModel.swift
    • Models/User.swift
    • Models/MainView.swift
    • Extensions/Logger.swift
    • Extensions/OCKSynchronizedStoreManager+Publishers.swift
    • Models/MainView.swift
  2. Files added:
    • MainTabs/Profile/ImagePicker.swift
    • Extensions/OCKBiologicalSex+Hashable.swift
    • MainTabs/Profile/MyContact/MyContactView.swift
    • MainTabs/Profile/MyContact/MyContactViewModel.swift
    • MainTabs/Profile/MyContact/MyContactViewController.swift
  3. Things ToDo in order to receive full credit. All items should persist (save/remain) locally and to your parse-hipaa server
    • Need to edit the About section to accept the following form properties and save to OCKPatient:
      • allergies (only need to except one string item, don't worry about parsing an array of multiple items)
    • Need to edit the Contact section to accept the following form properties and save to OCKContact:
      • emailAddresses (only need to except one string item, don't worry about parsing an array of multiple items)
      • messagingNumbers (only need to except one string item, don't worry about parsing an array of multiple items)
      • phoneNumbers (only need to except one string item, don't worry about parsing an array of multiple items)
      • otherContactInfo (only need to except one string item, don't worry about parsing an array of multiple items)
    • Add a NavigationLink to MyContactView from ProfileView. This view is intended to only show the contact information of the logged in user. OCKContact:
      • Solve the TODO in MainTabs/Profile/MyContact/MyContactViewController.swift
  1. Tie all OCKCarePlans to the logged in OCKPatient
Click to expand!

Patients & CarePlans

  1. Files modified:
    • Extensions/OCKStore+Default.swift
    • Extensions/OCKHealthKitPassthroughStore+Default.swift
    • MainTabs/Profile/ProfileViewModel.swift - specifically the savePatientAfterSignUp() where patient.uuid is passed to populateSampleData
  2. Things ToDo in order to receive full credit. All OCKCarePlan's should be tied to the logged in OCKPatient. All OCKTasks should be tied to OCKCarePlan's. All ties should persist to the local and parse-hipaa database stores

@cbaker6 cbaker6 changed the title Edit user contact feat: add improved user Profile and Contacts views Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant