Skip to content

crs4/consent-cql-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstrator for the BBMRI.it Pilot project

This project is a demonstrator of the usage of the profiled FHIR BBMRI.it consent resource. It provides a series of sample resources, including Consent, that can be loaded into a FHIR server and then queried via CQL.

Provided resources

The following examples of resources are provided in the examples/ folder:

  • Person
  • Organization (for Biobanks and Collections)
  • Condition
  • Specimen
  • Consent

Requirements

Installation and run

First, load the fhir resources, launcing the .sh script;

./load_examples.sh

Then, run the cql query, launching the python script:

python3 run_cql_query.py

You can modufy the variables in the script:

  • CCEs: can be edited by adding or removing one or more conditions of use
  • CQL_QUERY_CONTEXT: if set to Patient, then the query provides the count or the detail of the Patients whose samples satisfy the CCEs; if set to Specimen, then the query provides the count or the detail of the Specimens that satisfy the CCEs.
  • CQL_QUERY_GRANULARITY: can be set to RESOURCE or COUNT, depending on whether you want the detail of the resources or just their count.

About

Scripts implementing CQL queries against a BBMRI Sample Locator backend, including Consent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages