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

Group items in CareCard and SymptomTracker Views #57

Closed
ninoguba opened this issue May 31, 2016 · 8 comments
Closed

Group items in CareCard and SymptomTracker Views #57

ninoguba opened this issue May 31, 2016 · 8 comments

Comments

@ninoguba
Copy link
Contributor

ninoguba commented May 31, 2016

It would be great if the activities that appear in both the Care Card and Symptom Tracker views can be grouped based on the CarePlan Activity's group identifier.

And to go further, it would be ideal if the order of these groups and items can be programmatically controlled.

@YuanZhu-apple
Copy link
Contributor

@ninoguba This may relate to #51

@akshay-yadav-apple
Copy link
Collaborator

Hey @ninoguba ,

Do you need further assistance with this issue?

@ninoguba
Copy link
Contributor Author

@akshay-yadav-apple @YuanZhu-apple can we tag this as an enhancement request? #51 i agree can be related to this as that asks to control the display order while this asks for displaying group headings, both pertaining to the activities that show on the care card and symptom tracker.

@ninoguba
Copy link
Contributor Author

I was just able to group my activities on the Symptom Tracker and control their display order a bit a hackish way by modifying and adding the necessary UITableViewDelegate and UITableViewDataSource methods in OCKSymptomTrackerViewController.m directly.

I was also able to change the font size and colors of the table view cells and headers.

If others need help on this I can share the code. I can work on making my custom code more generic and will contribute it back when I get the chance if there is any interest.

simulator screen shot mar 17 2017 12 18 03 am

@xmlmodeling
Copy link
Contributor

Hi @ninoguba
The your UI for grouping and sorting activities in very close to an enhancement needed for my app, are you still willing to share the code? I started working on iOS dev 2 years ago with Swift and not so comfortable with Objective C enhancements (hoping that a future release of CareKit will be all native Swift). I looked at your repos and see a fork of CareKit, but it does not appear to include this enhancement.

Thanks!
Dave

@xmlmodeling
Copy link
Contributor

@ninoguba Thanks Nino for your quick response! I am researching use of the FHIR CarePlan standard to define all content of a care plan, and a generalized app that can read the care plan from any FHIR server, map to CareKit data structure, and present to the user. I am interested in grouping both interventions and assessments in CareKit UI using categories from FHIR CarePlan.

@ninoguba
Copy link
Contributor Author

ninoguba commented May 5, 2017

@xmlmodeling that is a worthwhile effort. I suggest extending the Care Card and Symptom Tracker view controllers or its delegates to support displaying the events with dynamic groupings and sort orders. Let me know if you need help on this.

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

No branches or pull requests

4 participants