The Raxa-JSS EMR application is a loosely-coupled client-server application. The server needs to be able to provide REST resources that the client application can understand. The REST resources are an extension of the OpenMRS web services and builds upon it by providing additional REST resources.
The Raxa JSS EMR requires the following modules to be able to work with the client application:
This page contains documentation about those REST resources
TODO: Add details of REST resources provided by Raxa modules |
The server needs to be configured to accept CORS requests. Following are steps to make server CORS enabled.
<filter> <filter-name>CORS</filter-name> <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class> <init-param> <param-name>cors.allowOrigin</param-name> <param-value>*</param-value> </init-param> <init-param> <param-name>cors.supportedMethods</param-name> <param-value>GET, POST, HEAD, PUT, DELETE, OPTIONS</param-value> </init-param> <init-param> <param-name>cors.supportedHeaders</param-name> <param-value>Origin, Authorization, Content-Type, Last-Modified, Accept, X-Requested-With</param-value> </init-param> <init-param> <param-name>cors.exposedHeaders</param-name> <param-value>Set-Cookie</param-value> </init-param> <init-param> <param-name>cors.supportsCredentials</param-name> <param-value>true</param-value> </init-param> </filter> <filter-mapping> <filter-name>CORS</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> |
Restart tomcat and the CORS filter should be applied to all the requests that are made to the tomcat instance
If you are running Tomcat 7, you should add the following line at the end of catalina.properties in the conf folder:
org.apache.el.parser.SKIP_IDENTIFIER_CHECK=true |