cqframework / cqframework/cqf-tooling
TemplateToValueSetGenerator treating codes as numbers
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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