Wednesday, November 4, 2015

Web Services and Web Resources

We are frequently asked about DRG assignment as a web service or a web resource.

Our standard response is that you could easily make your own DRG assigning web service or web resource using either DRGFilt or one of our embeddable DRG Assignment Engines (DAEs).

We have not ever published such a thing because we assumed that our clients would want control over the details. However we have some proof-of-concept projects which we may be making into projects over the next few months or years.

WEB HELPER
A web helper is an app which provides functionality to a particular CGI script or dynamic web page. We confirmed that DRGFilt works as a helper when we wrapped DRGFilt in a perl script to create our on-line demo, which is accessible here.

WEB RESOURCE
 A web resource is an app which can be accessed by any CGI script or dynamic web page using HTTP; the caller then processes the output as required. We are playing with the following API to access a thin wrapper on DRGFilt, with the output coming back as XML:

http://yourhost/cgi-bin/daeres.cgi?sex=1&age=55&ds=1&exempt=Z&dxs=B5881,I1201&poas=Y,&procs=0210093,02UG3JZ

<drggrouping>
  <grc>0</grc>
  <drg>231</drg>
  <mdc>5</drg>
  <morp>P</morp>
  <desc>CORONARY BYPASS W PTCA W MC</desc>
  <weight>78.0560</weight>
  <gmlos>9.90</gmlos>
  <version>33</version>
</drggrouping>

WEB SERVICE
A web service i a web app which follows input and output standards to ensure interoperability. We are looking at SOAP and company to try out a DRG assigning service and using this tutorial as a guide:

http://www.w3schools.com/xml/xml_services.asp