Skip to content

#164 prescription module - #179

Merged
dcollie2 merged 2 commits into
ruby-for-good-2026from
164-prescription-module
Aug 30, 2026
Merged

#164 prescription module#179
dcollie2 merged 2 commits into
ruby-for-good-2026from
164-prescription-module

Conversation

@dcollie2

Copy link
Copy Markdown
Collaborator

What this does

Modifies medicine and adds other models to build out full prescription module.

Issue

Closes #164

@dpowers1
dpowers1 changed the base branch from main to ruby-for-good-2026 August 29, 2026 22:43

@dpowers1 dpowers1 left a comment

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.

No blockers, just nits and questions

Comment thread app/helpers/medication_forms_helper.rb Outdated
@@ -0,0 +1,2 @@
module MedicationFormsHelper

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.

Probably can rm this


# What has happened since it started, or nil when there is nothing to say.
def prescription_stopped(prescription)
stopped = prescription_date(prescription.stop_date)

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.

From Claude "summary": "prescription_stopped returns nil for an inactive prescription with no stop_date, leaving a blank sub-note alongside a 'Stopped' badge — indistinguishable from a data gap.",

I was wondering if this could be a problem since stop_date is optional?

t.string :time_of_day
t.string :prescribing_doctor
t.text :purpose
t.boolean :active

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.

Should we default this to true?

@dcollie2
dcollie2 merged commit ee18247 into ruby-for-good-2026 Aug 30, 2026
6 checks passed
@dcollie2
dcollie2 deleted the 164-prescription-module branch August 30, 2026 10:59
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.

[FEATURE] Add Prescription Module

2 participants