Skip to content

feature: add allergies field to patient record - #38

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1789402339-patient-allergies
Open

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1789402339-patient-allergies

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a free-text allergies field to the patient record, distinct from the existing structured allergies table (domain/clinical/Allergy): this is a simple demographic-level note captured at registration.

  • V4__add_patient_allergies.sql: ALTER TABLE patients ADD COLUMN allergies TEXT;
  • Patient.allergies (@Column(columnDefinition = "TEXT")) and PatientDTO.allergies — MapStruct PatientMapper picks it up by name, so POST/PUT /v1/patients and all reads now round-trip allergies with no controller/service changes.

Companion web PR: COG-GTM/demos-coghealth-ehr-web#76

Devin-Org: engineering

Link to Devin session: https://app.devin.ai/sessions/ce44618dd766405e8e37b4073bb21c37
Open in Devin Desktop: https://app.devin.ai/desktop/session/ce44618dd766405e8e37b4073bb21c37?variant=devin
Requested by: @rushcromer

Co-Authored-By: Rush Cromer II <rush.cromerii@cognition.ai>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

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.

0 participants