Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix cdmresults drill-down reports - #2257

Merged
chrisknoll merged 2 commits into
OHDSI:masterfrom
TomWhite-MedStar:fix_drilldown_sql
Apr 25, 2023
Merged

chrisknoll merged 2 commits into
OHDSI:masterfrom
TomWhite-MedStar:fix_drilldown_sql

Conversation

@TomWhite-MedStar

Copy link
Copy Markdown
Contributor

Three files had minor typos breaking drill-down report components.
Also fixes issue #2248 in Heracles Full Reports where analysis # 200 is concatenated to the next one (# 500).

@chrisknoll
chrisknoll merged commit 7d288ef into OHDSI:master Apr 25, 2023
Comment on lines -22 to -27
vo1.place_of_service_CONCEPT_ID
vo1.place_of_service_CONCEPT_ID;
--}
--{@CDM_version == '5'}?{
vo1.visit_CONCEPT_ID
vo1.visit_CONCEPT_ID;
--}
; No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly odd fix here: to move the trailing ; from the end into each of the branches of the SqlRender if-then block...but I don't think it's a problem.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisknoll , this looked like the safest solution. Of the dozens of files that contains the --{, and --} syntax, this is the only one that has --} immediately before the closing semi-colon. I tried adding extra newlines, but the parser for Spark seems to do a greedy match for whitespace after --}, so no matter how many newlines I added, I always got --; (but only in the Spark translation)

anton-abushkevich pushed a commit that referenced this pull request May 4, 2023
Fixes #2248.

(cherry picked from commit 7d288ef)
konstjar pushed a commit that referenced this pull request Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants