cqframework / cqframework/cql-tests

Add hours to a Cql Date should result in an exception

Open
#111 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
7
Forks
8
Avg merge
12d 5h
Merged PRs (30d)
2

Description

From the CQL spec:
"For Date values, the quantity unit must be one of: years, months, weeks, or days."

Adding anything besides these units, e.g. an hour should result in an exception.
During the May 2026 Connectathon, we agreed that this should only be possible with using a dateTime explicitly.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing tests for adding quantities to CQL Date values. Verify how supported units are handled, then add coverage for an hour quantity and confirm that it raises an exception while years, months, weeks, and days remain valid.

Written by the indexing model from the issue text.

Assessment

Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.