jecihjoy
(Jacinta Gichuhi)
March 7, 2019, 12:47pm
16
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
/**
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/
package org.openmrs.module.webservices.rest.web.v1_0.resource.openmrs1_10;
import io.swagger.models.Model;
import io.swagger.models.ModelImpl;
import io.swagger.models.properties.DateProperty;
import io.swagger.models.properties.RefProperty;
import io.swagger.models.properties.StringProperty;
import org.apache.commons.lang.StringUtils;
import org.openmrs.CareSetting;
import org.openmrs.Order;
import org.openmrs.OrderType;
This file has been truncated. show original
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