Suranga,

Do you mean HL7 as an alternative to JSON – i.e., you can request via the
header json, xml, or HL7?

There are official media types for JSON (application/json) and XML
(text/xml); however, I don't believe there's an official media type
registered for HL7.  What have you chosen?  text/hl7?

-Burke

On Fri, Apr 27, 2012 at 4:19 AM, Suranga Kasthurirathne <
suranga...@gmail.com> wrote:

>
> Hi Gents,
>
> A recent development from my foray into the REST web services module.
>
> I had made some improvements on top of the REST module. Specifically, I
> had modified the PatientController to return HL7 instead of JSON.
> Now, I want to develop a new module which depends on REST, and move my
> changes into that. In this case, I created the new module, and introduced a
> new Controller class which extends the PatientController.
> So of course, needless to say, I get an exception asking me to define a
> different URL (because both Controllers have the same URL)
>
> So I was wondering, can I extend a controller class (assuming that I
> introduce a new URL to the mix ? ) if I do so (since the parent and child
> have different URLs) wouldn't I have to manually call methods in the parent
> class from my Child class ? I dont think I have a alternative other than
> that.....
>
> --
> Best Regards,
>
> Suranga
>
>  ------------------------------
> Click here to 
> unsubscribe<lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l>from 
> OpenMRS Developers' mailing list

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
lists...@listserv.iupui.edu with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l]

Reply via email to