Yay ! curl did the trick ! thanks Roger, you got me over the first hurdle !!!
PS: Unfortunately, it seems to me that the TEST link on the REST module is not working as it is supposed to. I cant confirm this, since i'm a total newbie on the subject :-) Best Regards, Suranga On Tue, Apr 10, 2012 at 1:43 AM, Friedman, Roger (CDC/CGH/DGHA) (CTR) < [email protected]> wrote: > If you are Windows-based, try this**** > > ** ** > > *From:* [email protected] [mailto:[email protected]] *On Behalf Of *Suranga > Kasthurirathne > *Sent:* Monday, April 09, 2012 3:15 PM > *To:* [email protected] > *Subject:* [OPENMRS-DEV] Sending Hl7 messages into OpenMRS via the REST > module**** > > ** ** > > ** ** > > Hi everyone,**** > > ** ** > > I'm looking into the possibility of sending Hl7 messages into OpenMRS via > the REST module. I've spent the day studying this up (thanks to > the wiki and mailing list archives)**** > > Now, I'd like to clarify the following-**** > > ** ** > > 1. I can send HL7 messages into the rest module only using the url format > POST > /openmrs/ws/rest/v1/hl7. I should not use urls which direct to patients or > encounters even if the HL7 message contains an encounter or a patient. The > HL7 queue takes care of converting the HL7 into the object is > really represents. That is, if I send a HL7 with a create encounter action, > it will go ahead and create an encounter.**** > > ** ** > > 2. As per the wiki page, I've been trying to use the TEST link on the > OpenMRS REST web services to test out the module. I started up the HL7 > process task, and navigated to the 'testing REST Uri's page. The fields of > this page are already populated with the following data-**** > > ** ** > > 1.TYPE : GET**** > > 2.URI : /openmrs/ws/**** > > mrest/v1/patient/495b10c4-56bd-11df-a35e-0027136865c4**** > > 3. Body content : {patient:'39234823'}**** > > ** ** > > Now since this is a GET request, there cant be a body, so I took the > liuberty of removing the body content. I then re-tried with the 'body > content' field intect.**** > > In both attempts, I got a '404: page / object not found.**** > > ** ** > > Can anyone point me to the mistake im committing here please ?**** > > ** ** > > ** ** > > -- > Best Regards,**** > > ** ** > > Suranga**** > > ** ** > ------------------------------ > > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list > **** > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list -- Best Regards, Suranga _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

