Skip to content

O1528#13

Merged
james-opusvl merged 3 commits intoprodfrom
O1528
Mar 13, 2018
Merged

O1528#13
james-opusvl merged 3 commits intoprodfrom
O1528

Conversation

@james-opusvl
Copy link
Copy Markdown

Adds an additional column to the mobile view. The new column lists all patients, not just those assigned to the current user.

Comment thread nh_eobs_mobile/controllers/main.py Outdated
@http.route(URLS['all_patients'], type='http', auth="user")
def get_all_patients(self, *args, **kw):
"""
Returns the patient task list for patients.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returns the patient task list for all patients

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot. Updating now...


cr, uid, context = request.cr, request.session.uid, request.context
patient_api = request.registry['nh.eobs.api']
patient_api.unassign_my_activities(cr, uid)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems unusual, why are activities unassigned, simply by listing 'All Patients' view?

I'm guessing it's what the other lists do

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea, it's just a copy of the get_patients function with the uid removed from the domain.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, np. I think sticking to what it does now is the safest bet. Just seems a little unusual

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.

2 participants