Wiki Spaces
Documentation
Projects
Resources
Get Help from Others
Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack
When interfacing with external applications like mobile clients, the following urls are used for various functions:
You can also optionally add another parameter with name "xsltKey" which should have a value of the OpenMRS global property having an xslt document to transform the xform to your custom format. For example, if you are using a JavaRosa based client, you could add something like: xsltKey=xforms.xsltJR where you have an OpenMRS global property, called xforms.xsltJR, having the xslt document.
For form data upload, you can as well just dump the forms on the file system in the xforms queue. The queue folder is determined by the global property "xforms.queue_dir". Just ensure that the xforms queue task is scheduled and running.
When connecting using Bluetooth, you will need to ensure that the "XForms Bluetooth Task" is running, after setting a few properties.
You find this task by selecting "Manage Scheduler" on the Administration screen.
On selecting this task and click "Properties", you can set the following properties:
When connecting using SMS, you will need to ensure that the "XForms SMS Task" is running, after setting a few properties.
You find this task by selecting "Manage Scheduler" on the Administration screen, then click "Properties".
On selecting this task and click "Properties", you can set the following properties:
Filling of forms using basic text SMS is done by sending an SMS according to the structure as explained below:
For instance one can fill the basic form displayed in the xforms designer screen shot XForms Module Form Designer by sending an sms with these contents:
"daniel daniel123 1 2=3 3=1 4=67.5 9=ID001" where "daniel" is the user name, "daniel123" is the password, "1" is the formId, "2" is the position of the location question in the xform, "3" is the third location as per the location list in the xform, "3" is the position of the xform provider question, "1" is the first provider in the xform provider list, "4" is the position of the weight question, "67.5" is the value of weight, "9" is the position of the medical record number question, and "ID001" is the value of the medical record number.
Since medical record number is the patient identifier, a new encounter will be created for patient with identifier "ID001".
If no such patient exists, then a new patient will be created and the encounter added to him or her. For new patient creation, the sex, family name, and birth date questions have to also be filled together with another question for the identifier type.
When processing the xform on the server, all validation in the xform will be applied and any errors sent back as an SMS to the phone sender.
You can download a set of patients in a given cohort by passing the cohort identifier or you can download a set of patient that match a given patient identifier or name.
When you download forms to external applications, the default just downloads only those forms you uploaded into the database by either using the "Upload XForm" link or saving from the xforms designer. For now this is the only way of allowing you to select which forms are to be downloaded on the normally resource constrained devices. But if you want to download all forms as automatically created by the module, then on the Administration screen, select "Manage Global Properties" and set the value of the "xforms.useStoredXform" to "false"