Skip to content

Feature/adds slash to r and dialogue#40

Merged
rkboyce merged 4 commits into
mainfrom
feature/adds-slash-to-R-and-dialogue
May 9, 2026
Merged

Feature/adds slash to r and dialogue#40
rkboyce merged 4 commits into
mainfrom
feature/adds-slash-to-R-and-dialogue

Conversation

@rkboyce
Copy link
Copy Markdown
Collaborator

@rkboyce rkboyce commented May 9, 2026

No description provided.

rkboyce added 4 commits May 9, 2026 11:45
…tions cleanly until later

updated [R/OHDSIAssistant/R/strategus_cohort_methods_shell.R](/ai-agent/HadesProject/OHDSI-Study-Agent/R/OHDSIAssistant/R/strategus_cohort_methods_shell.R:2014) so the shell now:
- distinguishes recommendation identifiers cleanly,
- treats only numeric IDs and `ohdsi:<id>` as directly computable in this workflow,
- shows non-computable recommendations with their original identifier instead of just `?`,
- stops with a clear message if a user selects an unsupported descriptive phenotype such as `cipher:<id>`.

I also added a narrow regression test in [tests/test_cohort_methods_shell_recommendation_support.py](/ai-agent/HadesProject/OHDSI-Study-Agent/tests/test_cohort_methods_shell_recommendation_support.py:1) to lock in that behavior.
The shell was correctly selecting OHDSI cohort `1039`, but the source-definition lookup still assumed `definitions/1039.json`. I updated [R/OHDSIAssistant/R/strategus_cohort_methods_shell.R](/ai-agent/HadesProject/OHDSI-Study-Agent/R/OHDSIAssistant/R/strategus_cohort_methods_shell.R:2399) so it now resolves source files using the current index naming scheme:
- numeric OHDSI IDs can resolve to `ohdsi__<id>.json`
- namespaced IDs can resolve via `:` → `__` conversion, such as `ohdsi:1039` → `ohdsi__1039.json`
@rkboyce
Copy link
Copy Markdown
Collaborator Author

rkboyce commented May 9, 2026

This PR hardens the cohort method ACP/MCP support fixes some bugs due to the replacement of the phenotype indexing methods with one that scales to include CIPHER (mostly non-computable), and brings in the new /ohdsi slash command for context-relevant question answering

@rkboyce rkboyce merged commit 1909daf into main May 9, 2026
2 checks passed
@rkboyce rkboyce deleted the feature/adds-slash-to-R-and-dialogue branch May 9, 2026 19:57
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.

1 participant