Fwd: PatientView is not working properly

9 views
Skip to first unread message

David Brown

unread,
Jan 17, 2012, 12:55:50 AM1/17/12
to medic...@googlegroups.com
Hi,

Thanks for your interest in PatientView. Typically, we handle support for PatientView on our -users or -community lists when possible:

http://groups.google.com/forum/#!forum/medic-users
http://groups.google.com/forum/#!forum/medic-community

I've cross-posted the users list, but in the mean time: is there any specific error message when forms are failing to process in the 1.6.15 revision? Can I ask what the specific message you're sending is? This will help us reproduce the problem.

The issues with the 1.7-dev version are known -- they're due to active development -- and will be fixed soon.

Thanks,
--
David Brown \+/ CTO, Medic Mobile


> ---------- Forwarded message ----------
> From: Abda ANNE <gir...@gmail.com>
> Date: Mon, Jan 16, 2012 at 5:26 AM
> Subject: PatientView is not working properly
> To: he...@medicmobile.org
>
>
> Happy new year to all of you,I have troubles getting PatientView
> process forms. I've testing patientview for a while, but I'm encouring
> issues with FrontlineSMS-distribution-1.6.15-SNAPSHOT and
> frontlinesms-dist-1.7.00-beta-6-SNAPSHOT.
> With FrontlineSMS-distribution-1.6.15-SNAPSHOT, forms are not
> processed correctly. When I load the test data, forms submitted by
> thefirst CHW are processed (i.e mapped to a patient and a response
> sent to the submitter). The forms submitted by others are not
> processed.When skip loading the test data, forms are not processed at
> all.
> With frontlinesms-dist-1.7.00-beta-6-SNAPSHOT, built from sources I
> fetched from github.com , the issues are: date selector does work,
> Icannot add fields to profiles, Submitted forms are duplicated.
> I'm running patientView on Ubuntu 9.04 and Ubuntu 11.10 with mysql and
> h2 database engines.
> Would any of you be able to send a copy of PatientView that works well
> ? I would appreciate to have a copy of patientview that works
> properly.
> Best regards,---Abda
>


Abda ANNE

unread,
Jan 17, 2012, 12:42:21 PM1/17/12
to medic...@googlegroups.com
Dear David,
Thank you for your reply.

I'm working with Frontlisms 1.6.15-SNAPSHOT on Ubuntu 9.04 using the default database engine (H2).

I'm trying to submit forms. For the purpose of testing here what I've done today : 
1) Loaded the demo data
2) Logged in as aHarsha
3) Edited a CHW record (Teddy Groesbeck) to give a correct phone number
4) loaded "ARV adherence" form on Teddy's phone
5) Submitted a record
That form was received and processed correctly : the data is visible in both PV and Forms. A confirmation message was sent back to Teddy's Phone. Log file entries can be viewed at http://pastebin.com/F5r0xFMY

6) I created a new CHW (AKUN Anne)
7) Allocated to anne some patients 
8) loaded "ARV adherence" form on Anne's phone
9) Submitted a record
That form was not processed accuratly. The data is visible under forms but not in PV. None of the forms submitted by this one is processed correctly. 
The log file says : 
"""
net.frontlinesms.plugins.patientview.data.domain.response.MedicFormResponse.<init>(MedicFormResponse.java:63) - Done creating PV form response
[Incoming message processor] INFO  [17/01/12 16:54:58] net.frontlinesms.plugins.forms.FormsPluginController.incomingMessageEvent(FormsPluginController.java:172) - There was a problem handling incoming message as forms message.
java.lang.IndexOutOfBoundsException: toIndex = 5
at java.util.ArrayList.subListRangeCheck(ArrayList.java:885)
at java.util.ArrayList.subList(ArrayList.java:877)
at net.frontlinesms.plugins.patientview.listener.FormMatcher.getCandidatesForResponse(FormMatcher.java:213)
at net.frontlinesms.plugins.patientview.listener.FormMatcher.getFinalCandidate(FormMatcher.java:251)
at net.frontlinesms.plugins.patientview.listener.FormMatcher.handleFormResponse(FormMatcher.java:139)
at net.frontlinesms.plugins.patientview.listener.FormMatcher.notify(FormMatcher.java:268)
at net.frontlinesms.events.impl.FrontlineEventBus.notifyObservers(FrontlineEventBus.java:39)
at net.frontlinesms.data.repository.hibernate.BaseHibernateDao.saveWithoutDuplicateHandling(BaseHibernateDao.java:70)
at net.frontlinesms.plugins.forms.data.repository.hibernate.HibernateFormResponseDao.saveResponse(HibernateFormResponseDao.java:44)
at net.frontlinesms.plugins.forms.FormsPluginController.handleDataSubmissionRequest(FormsPluginController.java:215)
at net.frontlinesms.plugins.forms.FormsPluginController.incomingMessageEvent(FormsPluginController.java:160)
at net.frontlinesms.IncomingMessageProcessor.processIncomingMessageDetails(IncomingMessageProcessor.java:173)
at net.frontlinesms.IncomingMessageProcessor.run(IncomingMessageProcessor.java:129)
[Incoming message processor] TRACE [17/01/12 16:54:58] net.frontlinesms.ui.UiGeneratorController.incomingMessageEvent(UiGeneratorController.java:1486) - ENTER
[Incoming message processor] TRACE [17/01/12 16:54:58] net.frontlinesms.ui.handler.message.MessageHistoryTabHandler.addMessageToList(MessageHistoryTabHandler.java:743) - ENTER
[Incoming message processor] DEBUG [17/01/12 16:54:58]
"""
Full log file entries can be viewed here : http://pastebin.com/n9N1hZ9Y



Best regards


Abda ANNE

unread,
Jan 19, 2012, 6:25:49 PM1/19/12
to Medic Mobile Users Group
Dear all,
I think that I discovered why forms submitted from a mobile where not
processed in PatientView. The error described in my previous occurs
when the submitting CHW has less than 5 patients. I solved the problem
by allocating 5 patients to each of my CHW.

Best regards.

---
Abda

David Brown

unread,
Jan 20, 2012, 1:36:44 PM1/20/12
to medic...@googlegroups.com
Hi Abda,

We've confirmed this issue and have a fix available in our source control system.

Try this patch:
https://github.com/medic/PatientView/commit/49c3fc04f7c27b5777d674e79594540e02915cec

Thanks,
--
David Brown
\+/ CTO, Medic Mobile +1-503-683-3283

Reply all
Reply to author
Forward
0 new messages