Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.3.8
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Unfortunately, there isn't a good way for prescriptions to track when changes are made to associated contact information. Contacts, such as the doctor or pharmacy for a med, are retrieved from the on-device Contacts (AddressBook). An ABRecordID reference to the original AddressBook entry is stored in the CoreData object, along with a cached version of the combined-name of the contact, used for presenting the table list of contacts. The combined-name has to be cached in order for the NSFetchedResultsController to have something to sort and present.
However, if the user goes into their Contacts app and changes the name of a contact already associated with a med, that updated name will not be reflected in the med, as we cache it.
One compromise would be that whenever a med is saved, during the save processing we dereference the ABRecordID and update the cached information in the corresponding CoreData object. Therefore opening and saving a med would update its contact information.
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits