Skip to content

Fix concept-code lookups containing slashes - #13

Merged
alex-omophub merged 13 commits into
developfrom
codex/fix-by-code-path-encoding
Oct 22, 2026
Merged

alex-omophub merged 13 commits into
developfrom
codex/fix-by-code-path-encoding

Conversation

@konstjar

@konstjar konstjar commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • percent-encode vocabulary IDs and concept codes as individual URL path segments
  • preserve slash-containing ICD-O codes such as 8032/3 as a single route parameter
  • add a regression test for the reported SDK request shape

The Node SDK was also rechecked: its production code already uses encodeURIComponent for both segments and its current test suite already covers a slash-containing concept code, so no Node change is needed.

Validation

  • full testthat unit suite passed
  • 64 live integration tests skipped because no API key was configured
  • git diff --check

Summary by cubic

Fixes concept-code lookups in the R SDK so codes containing slashes (e.g., ICD-O code 8032/3) resolve correctly, including when hierarchy, synonym, relationship, or vocabulary-release query options are set. get_by_code now percent-encodes the vocabulary ID and concept code as individual URL path segments and treats literal percent sequences as literal segment input. The request builder preserves that encoding instead of letting query updates decode it.

This mirrors the Node SDK and adds regression tests covering the encoded request path with and without query options.

Written for commit b718fbd. Summary will update on new commits.

View guided diff Turn on auto-fix

alex-omophub and others added 10 commits April 10, 2026 16:44
Release version 1.6.0 with FHIR-to-OMOP concept resolution features
Release version 1.7.0 with new FHIR resolution features
Add FHIR Resolution section to pkgdown documentation
Add FHIR Resolution section to pkgdown documentation
@konstjar
konstjar force-pushed the codex/fix-by-code-path-encoding branch from f8d1372 to a38f82d Compare September 21, 2026 15:50

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread tests/testthat/test-concepts.R Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 3 reviewed files. 1 file intentionally excluded from review.

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread R/request.R Outdated
@alex-omophub
alex-omophub changed the base branch from main to develop October 21, 2026 21:16

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread R/concepts.R Outdated
Comment thread NEWS.md Outdated
@alex-omophub
alex-omophub merged commit fcf1a28 into develop Oct 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants