You should create a new controller that uses the same PatientResource.  If
your hl7patientcontroller extends the same parent class it will get all the
goodness.  I don't think the PatientController adds that much.

Ben

On Fri, Apr 27, 2012 at 4:19 AM, Suranga Kasthurirathne <
[email protected]> 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<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
> OpenMRS Developers' mailing list

_________________________________________

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]

Reply via email to