Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Overview

In some cases you will need to transform a list of CDA documents into vMR in order to be able to consume the OpenCDS service.  Here, we describe how to take advantage of the open-source CDA Redaction Web service developed by the SHARPS DS2 project.  We have packaged the CDA Redaction Web service along with other SHARP applications into the cdatovmr docker container.  In order to describe its functionality, we make use of three components: cdatovmr container, opencds container and soapui as Web service client.  The following figure provides an overview of the interaction between these components.

    

Create opencds docker container

Please check the wiki page OpenCDS container for more details about how to build the opencds docker image.  The following command will create a new container called opencds based on the image opencds/opencds:ubuntu   

$ sudo docker run -d --name opencds opencds/opencds:ubuntu

Run the following command in order to find out the URL assigned by docker to the opencds container.  In this case the URL assigned by Docker is 172.17.0.6

$ sudo docker inspect opencds | grep IPAddress
        "IPAddress": "172.17.0.6",
        "SecondaryIPAddresses": null,

Verify that opencds service is available by opening a browser on the URL http://172.17.0.6:8080/opencds-decision-support-service/evaluate?wsdl 

Create cdatovmr docker container

Please check the wiki page cda2vmr container for more details about how to build the image.  Before building the image edit the    

sudo docker run -p 8081:8080 -p 2223:22 -p 4848:4848 -p 8181:8181 -p 9009:9009 --name cdatovmr -i -t opencds/cdatovmr

Check that the following applications are available:

For this demonstration we will only use the Predicate reducer Web service http://localhost:8081/CdaService/Evaluate?wsdl 

CDA document

The following CDA document is used in CDA Redaction Web service call

SoapUI setup

 

SOAP request

The following figure shows the SOAP request.  The XML element payload contains the base64 version of the CDA document

 

vMR document

 

SOAP response

 

 

Conclusion 

 


 

 

  • No labels