rwslib : A Rave Web Services Library
Medidata’s business is enabling pharmaceutical and biotech companies to plan and execute their clinical trials with greater speed and efficiency, getting medicines approved and to patients faster. Part of that process involves collecting data from physicians but also increasingly from devices, from the patients themselves and from labs. The primary repository for this data is Rave, our Electronic Data Capture (EDC) system.
Rave has a set of web service API’s that enable data exchange using the Clinical Trial industry standard CDISC ODM - the Clinical Data Interchange Standards Consortium Operational Data Model.
The documentation for our Rave Web Service (RWS) API’s are available at http://rws-webhelp.s3.amazonaws.com/WebHelp_ENG/index.html
You can also learn about CDISC and the ODM at http://www.cdisc.org/odm
Our Web Service API’s are RESTful - based on HTTP(S) authenticated using Basic Authentication (over HTTPS) or a form of HMAC Authentication called MAuth similar to the Amazon S3 REST authentication scheme.
Having a RESTful API make it easy to test things out with simple tools such as RESTClient but when you want to do more than view the data returned in a Browser you will need to turn to your programming language of choice and its HTTP libraries.
Installation is easy:
And it allows you to get started quickly:
The RWSConnection object manages the sending of request objects to the API endpoints. Each request has a return value based on the content of the response. In the above example the VersionRequest returns the RWS API version as a string but a request for a list of subjects would return a list of Subject objects, each with their own properties. But rwslib isn’t trying to hide its workings from you, all the HTTP status codes and headers are available via the last_result property of the connection:
The library provides a full set of request objects that match the endpoints available via the API including helpers that allow you to post data in the ODM format into Rave:
Creating ODM XML by hand can be error prone so rwslib provides a set of helpful builders to create valid ODM. The above ODM XML can be created using the Builder vocabulary:
Overall rwslib contains request objects that allow you to extract clinical data in ODM and CSV formats, download and upload study design metadata (forms, fields, codelist dictionaries etc) and to pull protocol deviations, comments and audit trail (historical data). We have used it to build systems that extract Protocol Deviations from Rave and transform them into a format that can be imported into Clinical Trial Management Systems, to upload data from wearable devices into Rave and to extract data for reporting.
Read the online documentation for rwslib.
We are making rwslib Open Source to encourage clients and third parties to build their own integrations with our systems. If you are not currently a client but are interested in working with Medidata’s API’s we have a developer program, it’s free to join. Please get in touch.