That restmodule has been replaced by https://wiki.openmrs.org/display/docs/Webservices.rest+Module. You can see example of how to extend that with other modules on its wiki page(s). The benefit here is that you have a whole framework that will convert to/from json for you.
If you have only something simple to accept and send, you could write your own module that mimics restmodule and just accepts on a url and then sends something back. But you'd have to hand construct your json to/from objects. Ben On Thu, Mar 29, 2012 at 10:09 AM, Thomas Brennan < [email protected]> wrote: > Dear all, > > We're running a clinical trial in South Africa, using SMS to support > patients with hypertension. The study is using bi-directional SMS to remind > patients of their appointment days and if needs be, change their > appointment date via SMS. > > We've engaged a SMS gateway that can callback a URL on our server when an > incoming SMS is received. What I want to know is how to extend the REST > module to handle an incoming json call from a 3rd party. > > Something along the lines of > http://ourserver/openmrs/moduleServlet/restmodule/json/obs?pCellNo=patientCellNo&sText=smsText > > We'd then search our database to find the patient and then proceed along a > communication protocol as needs be (flagging them, sending them a reply SMS > etc.) > > Any tips, hints or insights you could offer would be appreciated. > > -- > BEng, DPhil (Oxon) > Wellcome Trust/EPSRC Research Assistant > Institute of Biomedical Engineering, University of Oxford > c/o Dept of Medicine, Old Main Building, Groote Schuur Hospital > T: +27 (0)21 406 6820 F: +27 (0)21 406 6513 > C: +27 (0)76 388 2579 S: 'tombombadl' > > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-implement-l>from > OpenMRS Implementers' mailing list _________________________________________ To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-implement-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]

