ios - Saving "data sessions" with CoreData -


i'm writing app keep track of patients see during shift. right now, i've got app list can add patients to, each represented different nsmanagedobject, , each of these objects has name, room number, , several aspects of care need dealt (exam, labs, imaging, etc, each has state of "to done", "in process", or "done"). coredata, i'm able save state of eat of aspects of care , specific patient data , reload each time app starts. however, next step integrating "shift", user can start or shift empty list , add patients seen on shift. when shift ends, can save list can load later , see saw on specific shift, can start new shift totally separate list. there way save these shifts lists independently can brought separately later?

it sounds want create new shift entity in data model, relationship current patient entity. shift have relationship called patients led patient entity. to-many relationship since each shift has multiple patients. patient entity have inverse relationship called either shift or shifts, depending on whether each patient instance can belong 1 or multiple shifts.

later on existing instances of shift or create new instances.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -