Giter Club home page Giter Club logo

cds_server's Introduction

CDS Server for cql execution

This repository is intended to include examples showing how to use the cql-execution library. Currently, there is a single example, demonstrating how to use cql-execution with the cql-exec-fhir data source and cql-exec-vsac code service.

The cql-exec-vsac code service requires a valid UMLS account to download value sets. If you do not have an UMLS account, you can request one here: https://uts.nlm.nih.gov/license.html

NOTE: These are simplified examples, designed only for the purpose of demonstrating how to use the cql-execution and its corresponding modules. These examples are NOT clinically validated and should NOT be used in a clinical setting.

Setting Up the Environment

To use this project, you should perform the following steps:

  1. Install Node.js
  2. Run 'npm install' inside the cloned project folder
  3. Run 'node server.js'

Running the Example

The first time you run the example, It may take a while as it will download valuesets from vsac. from the second time you should get the response immediately.

To execute a CQL one should post a call with the following data:

Request URL: http://<server_url[here:localhost:3000]>/execute_cql Request Type: application/json Request Method: POST Request body: {"cql":"<CQL_NAME>","request_for":"decision/requirements","patientFhir":<PATIENT_DATA>}}

For Example: {"cql":"AdultLiverTransplantation","patientFhir":{ "resourceType": "Bundle", "id": "Prathima", "type": "collection", "entry": [ { "resource": { "resourceType": "Patient", "id": "Prathima", "gender": "female", "birthDate": "2008-09-18" } }, { "resource": { "resourceType": "Condition", "id": "6-1", "clinicalStatus": "active", "verificationStatus": "confirmed", "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "708248004", "display": "End Stage Liver Disease (disorder)" } ] }, "subject": { "reference": "Patient/Prathima" }, "onsetDateTime": "2017-05-30" } }, { "resource": { "resourceType": "Procedure", "id": "6-2", "subject": { "reference": "Patient/Prathima" }, "status": "completed", "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "18027006", "display": "Transplantation of liver (procedure)" } ] }, "performedDateTime": "2017-05-30" } } ] } }

cds_server's People

Contributors

vnprathima avatar kumarerubandi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.