# Patient Queueing in Refapp

**URL:** <https://talk.openmrs.org/t/patient-queueing-in-refapp/18363>\
**Category:** Reference App\
**Tags:** queues\
**Created:** [June 5, 2018, 9:50am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363 "2018-06-05T09:50:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![slubwama](https://talk.openmrs.org/user_avatar/talk.openmrs.org/slubwama/32/8366_2.png) [@slubwama](https://talk.openmrs.org/u/slubwama)\
**Post date:** [June 5, 2018, 9:50am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/1 "2018-06-05T09:50:04Z")

</div>

Hello I Have some questions on Queueing of patients in Refapp

1. Is there a module that handles Queueing of patients (having ability to send patients from one point of care to another with assigned clinic providers).
2. I have not seen this happen in Refapp currently. Yet Its really necessary.
3. Is it possible to build it in Refapp

Here is a sample use case on this. A patient walks in the health centre and is registered. Then sent to triage for Vitals. After Triage patient is sent to either doctor, Lab or Pharmacy. The place where this patient is sent to can also send this patient to any place with specific people to see or services to carry out in a given place.

@dkayiwa @mogoodrich @ssmusoke @rkorytkowski @wyclif requesting that you join in this discussion

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [June 5, 2018, 10:03am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/2 "2018-06-05T10:03:06Z")

</div>

Is this module of help? [https://wiki.openmrs.org/display/docs/OpenHMIS+-+Patient+Lists+Module](https://wiki.openmrs.org/display/docs/OpenHMIS+-+Patient+Lists+Module)

Just in case you find these links useful:

> [@Feedback on Patient List Module Design](https://talk.openmrs.org/t/feedback-on-patient-list-module-design/8145):
>
> The OpenHMIS team is working on a new module that will display lists of patients; a module we are calling the patient list module. In this post we are asking for feedback from the community on our design before we start the development of the module. Please note, this module is not intended to be a solution for patient queueing as we see that as beyond the scope of this module. The content below come from a more detailed module specification which can be found [here](https://docs.google.com/document/d/1zVPzo907rxNS6ikSSy9yrsGFyNIvS_oSKt4AoY9xQPw/edit?usp=sharing). Overview The patient list …

> [@New Modules Release: OpenHMIS Visit Tasks and Patient Lists](https://talk.openmrs.org/t/new-modules-release-openhmis-visit-tasks-and-patient-lists/14033):
>
> Hello Everyone, The BandaHealth (formerly OpenHMIS) team is glad to announce our new OpenHMIS Visit Tasks and Patient List modules. Visit Tasks Module This module allows users to create, track and manage common tasks carried out on patients during a hospital visit. Patient List Module With the Patient List module, users can create a custom lists of patients from specific selection rules/criteria on patient/visit details or attributes. You can access our [demo2](http://demo2.openhmisafrica.org/openmrs/login.htm) site which has been updated to…

cc [@BandaHealth](https://talk.openmrs.org/groups/bandahealth)

---

<div class="post-metadata">

**Author:** ![ssmusoke](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ssmusoke/32/8020_2.png) [@ssmusoke](https://talk.openmrs.org/u/ssmusoke)\
**Post date:** [June 6, 2018, 1:56pm UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/3 "2018-06-06T13:56:11Z")

</div>

@dkayiwa Thanks for the links and references

---

<div class="post-metadata">

**Author:** ![slubwama](https://talk.openmrs.org/user_avatar/talk.openmrs.org/slubwama/32/8366_2.png) [@slubwama](https://talk.openmrs.org/u/slubwama)\
**Post date:** [June 7, 2018, 5:06am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/4 "2018-06-07T05:06:48Z")

</div>

@dkayiwa thanks for the reference. will check it out and give you feedback.

---

<div class="post-metadata">

**Author:** ![slubwama](https://talk.openmrs.org/user_avatar/talk.openmrs.org/slubwama/32/8366_2.png) [@slubwama](https://talk.openmrs.org/u/slubwama)\
**Post date:** [June 12, 2018, 3:53pm UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/5 "2018-06-12T15:53:10Z")

</div>

@dkayiwa. I looked at Patient Lists and it could not provide what I envisioned for Patient Queueing. I will come up with a model then share it here. If possible include the data model in the OpenMRS Core.

---

<div class="post-metadata">

**Author:** ![slubwama](https://talk.openmrs.org/user_avatar/talk.openmrs.org/slubwama/32/8366_2.png) [@slubwama](https://talk.openmrs.org/u/slubwama)\
**Post date:** [July 7, 2019, 7:15am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/6 "2019-07-07T07:15:22Z")

</div>

@dkayiwa I would like to bring this discussion back with reference to a wiki page that I found about patient queueing [https://wiki.openmrs.org/display/projects/Queueing%2C+Especially+Patient+Queues](https://wiki.openmrs.org/display/projects/Queueing%2C+Especially+Patient+Queues) I am interested in working around this project and completing it. I would like to be guided on the following

1. How do I get a repository on the openmrs repository.
2. How do I get to modify the exciting design on the wiki to one that is quite simplified.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [July 7, 2019, 7:48pm UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/7 "2019-07-07T19:48:56Z")

</div>

> [@slubwama](#):
>
> How do I get a repository on the openmrs repository.

[https://wiki.openmrs.org/display/docs/Code+Repositories](https://wiki.openmrs.org/display/docs/Code+Repositories)

> [@slubwama](#):
>
> How do I get to modify the exciting design on the wiki to one that is quite simplified.

You could create a new wiki page for your design proposal and share it here.

---

<div class="post-metadata">

**Author:** ![slubwama](https://talk.openmrs.org/user_avatar/talk.openmrs.org/slubwama/32/8366_2.png) [@slubwama](https://talk.openmrs.org/u/slubwama)\
**Post date:** [July 8, 2019, 2:57pm UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/8 "2019-07-08T14:57:49Z")

</div>

Here is a Wiki to the Module. Kindly feel free to supplement to requirements. [https://wiki.openmrs.org/display/projects/Patient+Queueing+In+Reference+Application](https://wiki.openmrs.org/display/projects/Patient+Queueing+In+Reference+Application)

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [July 8, 2019, 3:16pm UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/9 "2019-07-08T15:16:38Z")

</div>

Thanks @slubwama for putting this up. Though it seems to be dealing with more than just patient queueing, correct?

---

<div class="post-metadata">

**Author:** ![slubwama](https://talk.openmrs.org/user_avatar/talk.openmrs.org/slubwama/32/8366_2.png) [@slubwama](https://talk.openmrs.org/u/slubwama)\
**Post date:** [July 9, 2019, 1:47am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/10 "2019-07-09T01:47:29Z")

</div>

Yes. I also Has a Clinician Dashboard which comes in handy for Clinicians to See their workload of the day

---

<div class="post-metadata">

**Author:** ![mksd](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mksd/32/11729_2.png) [@mksd](https://talk.openmrs.org/u/mksd)\
**Post date:** [July 9, 2019, 9:06am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/11 "2019-07-09T09:06:27Z")

</div>

Hi @slubwama, thanks for sharing this.

Is there already a POC to look at, or this is still being designed?

---

<div class="post-metadata">

**Author:** ![slubwama](https://talk.openmrs.org/user_avatar/talk.openmrs.org/slubwama/32/8366_2.png) [@slubwama](https://talk.openmrs.org/u/slubwama)\
**Post date:** [July 9, 2019, 9:42am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/12 "2019-07-09T09:42:10Z")

</div>

@mksd This is Still work in progress. Thou the first commit of code is ready. When the Repo is created by @dkayiwa I will commit it for review and in the process People can contribute more.

---

<div class="post-metadata">

**Author:** ![mksd](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mksd/32/11729_2.png) [@mksd](https://talk.openmrs.org/u/mksd)\
**Post date:** [July 9, 2019, 9:43am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/13 "2019-07-09T09:43:13Z")

</div>

This could have a great opportunity of being reused if it could be plugged elsewhere, will this come as an OWA?

---

<div class="post-metadata">

**Author:** ![slubwama](https://talk.openmrs.org/user_avatar/talk.openmrs.org/slubwama/32/8366_2.png) [@slubwama](https://talk.openmrs.org/u/slubwama)\
**Post date:** [July 9, 2019, 10:37am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/14 "2019-07-09T10:37:47Z")

</div>

Its Scaffolded as a module other than an owa. But If Its demanded, I could look into it.

---

<div class="post-metadata">

**Author:** ![mksd](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mksd/32/11729_2.png) [@mksd](https://talk.openmrs.org/u/mksd)\
**Post date:** [July 9, 2019, 10:43am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/15 "2019-07-09T10:43:42Z")

</div>

I’m afraid a good old module with GSP pages and fragments will hit the wall at some point.

Because of all what’s happening between OpenMRS React Components and the move to micro frontends, I would really strongly suggest to embrace all this.

Your views should be living in a reusable UI library (such as OpenMRS React Components), and the whole thing should be packaged as an OWA. As for the backend, it should be RESTful.

If your UI development is not too far yet and that it’s possible to go for the above, please yes, I would advocate for it.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [July 9, 2019, 11:19am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/16 "2019-07-09T11:19:37Z")

</div>

Just adding to the mix 🙂 , OWA is an obsolete standard. [An amazing future for OpenMRS](https://talk.openmrs.org/t/an-amazing-future-for-openmrs/22328)

---

<div class="post-metadata">

**Author:** ![slubwama](https://talk.openmrs.org/user_avatar/talk.openmrs.org/slubwama/32/8366_2.png) [@slubwama](https://talk.openmrs.org/u/slubwama)\
**Post date:** [July 9, 2019, 11:54am UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/17 "2019-07-09T11:54:57Z")

</div>

So If OWA is an obsolete standard Who do you Advise I work around this.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [July 9, 2019, 12:03pm UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/18 "2019-07-09T12:03:49Z")

</div>

Looping in @joeldenning who is leading the microfrontends squad: [https://wiki.openmrs.org/x/pQFiDQ](https://wiki.openmrs.org/x/pQFiDQ)

---

<div class="post-metadata">

**Author:** ![mksd](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mksd/32/11729_2.png) [@mksd](https://talk.openmrs.org/u/mksd)\
**Post date:** [July 9, 2019, 1:00pm UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/19 "2019-07-09T13:00:51Z")

</div>

Yes it’s an obsolete standard but 1) it is SPA/micro-frontend friendly, meaning that developing through an OWA will not cause troubles down the line, there is a clear path to SPA and 2) GSP is _completely_ obsolete.

I would put your UI components in OpenMRS React Components, if you do so, the place where you eventually bundle them for final delivery becomes much more of a detail, whether wrapped inside a GSP or bundled in an OWA.

---

<div class="post-metadata">

**Author:** ![slubwama](https://talk.openmrs.org/user_avatar/talk.openmrs.org/slubwama/32/8366_2.png) [@slubwama](https://talk.openmrs.org/u/slubwama)\
**Post date:** [July 9, 2019, 2:05pm UTC](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363/20 "2019-07-09T14:05:24Z")

</div>

Well This discussion seems to be Interesting. I will follow on from this. Let me put in some research to see how I transform what I have to be micro-front end friendly.

[Next page](https://talk.openmrs.org/t/patient-queueing-in-refapp/18363.md?page=2)
