Skip to content

[codex] Title-case drug interaction responses - #429

Open
Dreamstore2046 wants to merge 1 commit into
harystyleseze:mainfrom
Dreamstore2046:codex/careguard-drug-title-case-14
Open

[codex] Title-case drug interaction responses#429
Dreamstore2046 wants to merge 1 commit into
harystyleseze:mainfrom
Dreamstore2046:codex/careguard-drug-title-case-14

Conversation

@Dreamstore2046

Copy link
Copy Markdown

Summary

  • normalize drug interaction response names to Title Case while keeping lowercase matching internally
  • return the response medications array in Title Case for matched and no-interaction results
  • return interaction drug1 and drug2 fields in Title Case regardless of input casing
  • add Vitest coverage for all-lowercase, ALL-UPPERCASE, and MixedCase inputs producing identical output

Closes #14

Validation

  • npm test -- services/drug-interaction-api/__tests__/check-interactions.test.ts services/drug-interaction-api/__tests__/drug-normalization.test.ts services/drug-interaction-api/__tests__/sort-pairs.test.ts
  • npx tsc --noEmit --target ES2022 --module ESNext --moduleResolution bundler --allowImportingTsExtensions --esModuleInterop --allowSyntheticDefaultImports --strict --skipLibCheck --types node,vitest services/drug-interaction-api/logic.ts services/drug-interaction-api/__tests__/check-interactions.test.ts
  • git diff --cached --check

Notes

  • Both the unified server and the standalone drug interaction service call services/drug-interaction-api/logic.ts, so this keeps their behavior in sync.

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

@Dreamstore2046 is attempting to deploy a commit to the Harrison Eze's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

checkInteractions returns original-cased drug names while matching on lowercase — subtle output drift

1 participant