Sharing a sample module to create an implementation specific dashboard

0 views
Skip to first unread message

Craig A.

unread,
Mar 19, 2015, 12:14:08 AM3/19/15
to d...@openmrs.org
Hi Everyone,

We have a number of people on Ask OpenMRS trying to figure out how to create a new fragment for their openmrs 2.x dashboard. I had this problem when I started as a developer and made a sample "MyDashboard" module that allows individuals to get up quickly. It simply creates a new dashboard based on the clinicianfacing dashboard in coreapps and links the findPatient, RegisterPatient and ActiveVisits to that dashboard. 

I couldn't find anything else like this. Can you take a look through the code and make sure it's complete? Is this something that you think would be good to integrate into the main openmrs github repo?


Sincerely,
Craig

Craig A.

unread,
Mar 19, 2015, 12:31:43 AM3/19/15
to dev
Hi again,

I just had a realization. Maybe the implementation specific dashboard isn't needed. Maybe users just need an example of how to write a fragment view, controller and app extension to add it to the current clinician facing dashboard. Do you see a use case for this? Which would you give priority (full dashboard vs. fragment extension)?

Sincerely,
Craig

--
OpenMRS Developers: http://om.rs/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions: http://om.rs/id
 
Visit OpenMRS Talk at http://om.rs/talk for chat and discussions!

Darius Jazayeri

unread,
Mar 19, 2015, 12:39:53 AM3/19/15
to dev
I think that an example of adding something to the existing patient dashboard is probably higher priority.

(Also, presumably you've seen this? https://wiki.openmrs.org/x/EgBFB )

-Darius

Craig A.

unread,
Mar 20, 2015, 1:46:43 PM3/20/15
to dev
Hi Darius,

I didn't realize that page existed. I'll add information to it in the morning. I just finished the sample fragment module. It's incredibly simple, but contains all the pieces necessary to get a fragment up. The challenge would be to make it relevant to a new developer so they can see how to identify the right dependencies and build the right controller. These have been my greatest hurdles so far.

Sincerely,
Craig
Reply all
Reply to author
Forward
0 new messages