Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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

Metadata

Release files for cqlpy 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cqlpy 0.3.1
File Size Uploaded
cqlpy-0.3.1.tar.gz 80.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cqlpy 0.3.1
File Interpreter ABI Platform
cqlpy-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 199.0 kB

Release files / cqlpy-0.3.1.tar.gz

Download URL cqlpy-0.3.1.tar.gz
Size 80.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cdff9fd4db71fc03c6f2102c68fae6e20a9ca7101d859e7ac60372967d9e1ab8
BLAKE2b-256 checksum
How to use checksums
f44afbcb8916d9e22625cc5ab4a1b85daa0c37092fd3b7d9081a9c5c712831e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure

Release files / cqlpy-0.3.1-py3-none-any.whl

Download URL cqlpy-0.3.1-py3-none-any.whl
Size 118.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff8617d258892d69f80565f330241fb323691fc7d84c459d4124c591dc3648a2
BLAKE2b-256 checksum
How to use checksums
263c3dfd17b35ecde73a0511639d8587e60fb1578335db5af080db5faeecf35a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page