HL7Exception when submitting Xform forms in standalone server

1 view
Skip to first unread message

Joseph Waweru

unread,
Mar 25, 2013, 4:27:58 AM3/25/13
to d...@openmrs.org
Hi, I've been trying to save data using some forms I developed for a diabetes clinic using the x-forms module but I'm getting this error : http://listarchives.openmrs.org/HL7Exception-when-submitting-Xform-forms-in-standalone-server-td7036394.html. I had developed a similar form using the HTML Form Entry Module and it saves the data it captures without any hitches. I read through the Hl7 OpenMRS Wiki Page where I found out about ORUR01Handler which according to this LINK seems to be the cause of the exceptions. I'd like to request for all your help on this, it seems only to happen on the standalone versions of OpenMRS. By the way, I tried using the Basic Form which comes by default with OpenMRS and I still got the same error message. I am using OpenMRS version 1.9.2. By the way my forms use some custom made concepts, so you might run into some trouble if you try to use them.

Here is the PasteBin Link


Any suggestions?
Patient.xml
Physical-Exam-Form(4).xml
XFORM---PMH.xml

Joseph Waweru

unread,
Mar 25, 2013, 6:50:38 AM3/25/13
to d...@openmrs.org
I bundled up all the concepts I used in the development of these forms and I've attached them here. I did not use the latest MVP/CIEL dictionary though.
DM_Concepts_v1.1-1.zip

Daniel Kayiwa

unread,
Mar 25, 2013, 6:59:06 AM3/25/13
to d...@openmrs.org
Try do the following:

- On the "Administration" page select "Manage Forms"
- Select the form
- Double click the "OBS" node
- Set the "Field Type" to "Concept"
- Click the "Select" button under it and choose the "MEDICAL RECORD OBSERVATIONS" concept
- Click Save
- Go to the form designer, right click on the form name under "Form Fields" and select "Refresh"
- Then save
- Try again to see if this time you can submit the form.

--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org
Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/
 
 



--
If we keep uppermost in our minds the unkind and unjust acts of others, we shall find it impossible to love them as Christ has loved us; but if our thoughts dwell upon the wondrous love and pity of Christ for us, the same spirit will flow out to others.

Joseph Waweru

unread,
Mar 25, 2013, 8:08:08 AM3/25/13
to d...@openmrs.org
Hey dkayiwa, it worked but it not only changed my controls but I also got some very unexpected output when I tried to view the data saved. I've attached screenshots of the output I got and another screenshot of output from another form. I'm going to try and restructure the form back to its original format to see how it will save the data then.


On Monday, March 25, 2013 11:27:58 AM UTC+3, Joseph Waweru wrote:
Actual ouput.jpg
Expected output.jpg

Daniel Kayiwa

unread,
Mar 25, 2013, 8:12:05 AM3/25/13
to d...@openmrs.org
On the Administration screen choose "Settings" and then under "Xforms" set the value for "Use Encounter Xform" to true
Then click the "Edit Encounter" link on the top right hand side and see if the form that comes up is what you are looking for?

--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org
Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/
 
 

Joseph Waweru

unread,
Mar 25, 2013, 8:24:29 AM3/25/13
to d...@openmrs.org
dkayiwa, That was already enabled, thanks! It worked! Just one more thing. When I changed the OBS section tag, the form changed its format back to its defaults. Was that supposed to happen?


On Monday, March 25, 2013 11:27:58 AM UTC+3, Joseph Waweru wrote:

Daniel Kayiwa

unread,
Mar 25, 2013, 8:26:33 AM3/25/13
to d...@openmrs.org
NO it was not supposed to happen.

--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org
Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/
 
 

Joseph Waweru

unread,
Mar 25, 2013, 8:34:22 AM3/25/13
to d...@openmrs.org
Thanks dkayiwa! You are a life saver! I have enabled the "XML Layout" tab in the X-Forms designer. Daniel Shortend was able to solve this on a web version by just refreshing the XML Layout tab then saving. I tried the same on the stand alone but it failed. All in all, thank you very much. I hope to learn more from you and others in future. Good evening!


On Monday, March 25, 2013 11:27:58 AM UTC+3, Joseph Waweru wrote:
Reply all
Reply to author
Forward
0 new messages