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

Patient document preview #452

Merged
merged 2 commits into from
May 30, 2016

Conversation

mbayopanda
Copy link
Contributor

This PR add :

  • Patient documents components which help to get documents for a particular patient, upload new documents. This component is configurable for a better user experience
  • Patient document page
  • Bytes filter for display bytes size in a human readable format (Kb, Mb, ...)

And in this PR we update the patient_document table by adding mimetype, size, user_id columns

bindings: {
onSearchComplete : '&', // bind callback
enablePatientDetails : '<', // bind boolean (true|false) : Enable patient details option
enableOptionBar : '<', // bind boolean (true|false) : Enable option for add, display list or display thumbnail in a bar
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can most of these options be bound as attributes @ to avoid too many $watch() statements? Or must they be dynamic?

@jniles
Copy link
Collaborator

jniles commented May 30, 2016

@mbayopanda, I've completed an initial review.

The behavior is excellent! The decision to use a component instead of a <ui-view> is proactive, and acceptable here. We'll look at potentially migrating this to a <ui-view when we understand ui-router better, if it is appropriate.

There are some minor code issues, but overall, this was a well designed, well executed module. Well done!

I'll give you a chance to review the comments and then merge once the fixes land or discussion finishes.

All failing tests can be fixed with a git rebase, I think. There was some broken dependencies in master which are now fixed in #453.

@jniles
Copy link
Collaborator

jniles commented May 30, 2016

@mbayopanda, let me know when you are ready for a second review.

@mbayopanda
Copy link
Contributor Author

@jniles could you review this PR again...

@@ -404,6 +405,12 @@
"SERVICE" : "Service",
"SET_DATE" : "Changer la Date",
"SEX" : "Sexe",
"SIZE_BYTES" : "Octets",
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

@jniles
Copy link
Collaborator

jniles commented May 30, 2016

Everything LGTM!

@jniles jniles merged commit 8d0ee38 into IMA-WorldHealth:master May 30, 2016
major component implementation

Use of documents component in the patient module

Fix and enhancement of patient document component and module
@mbayopanda mbayopanda deleted the patient_document_preview branch September 14, 2016 08:56
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