errors extending order class in a module while creating new order types

hello @dkayiwa i would greatly appreciate your help on this

I have created a class ProcedureOrder that extends Order class

This is its ResourceSubclasshandler

I have editted the save method here to accomodate saving my procedure order.

FROM THIS TO

TO THIS

https://pastebin.com/rfcGYpfe

if i do a post of ordertype: testorder, it is saved successfully but a post of ordertype: procedureorder i’m getting this error https://pastebin.com/yWm4LrLc

what is causing this yet i have defined a subclass resource handler for the class ProcedureOrder

as a test case, i have moved the test subclasshandler resource to my module and i’m getting a similar error. This is the error https://pastebin.com/6rhXF111 This was however working when the rosource was on the openmrs-module-webservices.rest @dkayiwa @darius @mssavai @samprogramiz @corneliouzbett