cqframework / cqframework/cqf-tooling

TemplateToValueSetGenerator treating codes as numbers

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

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
22
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Codes seem to be being treated as number, resulting in an improper numeric representation for some large numbers, e.g., 27660001000004101 becomes 2.88761E+14 for 'History of methamphetamine abuse (situation)' in the 'Conditions documenting substance misuse disorder'

To Reproduce
Run the generator against the Opioid terminology spreadsheet (as of 3/28/2022), the the codes in the generated valueset mentioned above.

Expected behavior
Codes should be string values that match exactly and literally what is in the spreadsheet.

Desktop (please complete the following information):

  • OS: MacOS Monterey
  • Java Version 11

Contributor guide

Open the contributing guide

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 with the TemplateToValueSetGenerator and reproduce the issue using the Opioid terminology spreadsheet from 3/28/2022. Inspect how the spreadsheet codes become generated values, then verify that codes such as 27660001000004101 remain exact string values rather than numeric or scientific notation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.