Skip to main content

Tooling to execute CQL-like Python against FHIR resources.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

CQLpy

CQLpy is a Python implementation of the Clinical Quality Language (CQL). It is intended to be a complete implementation of the CQL specification and is currently in development.

See CONTRIBUTING.md for information on contributing to this project.

Installation

pip install cqlpy

Usage

from cqlpy.context import Context
from cqlpy.providers import RosettaValuesetProvider

rosetta = RosettaValuesetProvider("<api-key>")
context = Context(rosetta, bundle_file_name="./fhir-bundle.json")

office_visit_valueset = ValueSet("http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001")
office_visits = context["Encounter", office_visit_valueset, "type"]

See cqlpy_syntax_basics for more examples.

Specification Implementation

1. Types

2. Logical Operators

3. Type Operators

4. Nullological Operators

5. Comparison Operators

6. Arithmetic Operators

7. String Operators

8. Date and Time Operators

9. Interval Operators

10. List Operators

11. Aggregate Functions

12. Clinical Operators

13. Errors and Messaging

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cqlpy-0.3.1.tar.gz (80.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cqlpy-0.3.1-py3-none-any.whl (118.6 kB view details)

Uploaded Python 3

File details

Details for the file cqlpy-0.3.1.tar.gz.

File metadata

  • Download URL: cqlpy-0.3.1.tar.gz
  • Upload date:
  • Size: 80.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure

File hashes

Hashes for cqlpy-0.3.1.tar.gz
Algorithm Hash digest
SHA256 cdff9fd4db71fc03c6f2102c68fae6e20a9ca7101d859e7ac60372967d9e1ab8
MD5 0b9004bfd6ec7711ea86fefd929e3230
BLAKE2b-256 f44afbcb8916d9e22625cc5ab4a1b85daa0c37092fd3b7d9081a9c5c712831e8

See more details on using hashes here.

File details

Details for the file cqlpy-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: cqlpy-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 118.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure

File hashes

Hashes for cqlpy-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff8617d258892d69f80565f330241fb323691fc7d84c459d4124c591dc3648a2
MD5 148992fec4e0c4ed42c2d0b5d66cf10d
BLAKE2b-256 263c3dfd17b35ecde73a0511639d8587e60fb1578335db5af080db5faeecf35a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page