rubyforgood / rubyforgood/alongwithyou

[FEATURE] Add Prescription Module

Open
#164 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement RFG Conference
Dominant language
TypeScript
Stars
9
Forks
4
Avg merge
9h 34m
Merged PRs (30d)
16

Description

Description

A prescription belongs to a patient
A patient can have multiple/many prescription
A patient adds a prescription
Prescription:

  • Belongs to a Medication (Required)
  • Dosage (String)
  • Frequency (String)
  • Time of Day (String)
  • Form (String)
  • Prescribing Doctor (String)
  • Purpose (Text)
  • Active (Boolean)
  • Start Date (Date)
  • Stop Date (Date)
  • Notes (Text)
    Relationships: Medication and MedicationType
Acceptance Criteria

A patient saves the prescription
Mandatory/Required fields: Name
Patient can select a Medication, MedicationType and MedicationForm

Medication
A medication have have many prescriptions
Name (String)
Side Effects (Text)
Relationships: Prescription and MedicationType
Table is seeded with

Lisinopril,"Dry cough, dizziness, headache"
Atorvastatin,"Muscle aches, nausea, joint pain"
Metformin,"Nausea, diarrhea, stomach upset"
Levothyroxine,"Weight changes, insomnia, tremor"
Amlodipine,"Swollen ankles, flushing, fatigue"
Metoprolol,"Fatigue, dizziness, slow heartbeat"
Omeprazole,"Headache, gas, constipation"
Albuterol,"Jitteriness, rapid heartbeat, headache"
Gabapentin,"Drowsiness, dizziness, coordination problems"
Sertraline,"Nausea, insomnia, dry mouth"
Ibuprofen,"Stomach upset, heartburn, dizziness"
Acetaminophen,"Nausea, rash"
Amoxicillin,"Diarrhea, nausea, rash"
Prednisone,"Increased appetite, insomnia, mood changes"
Warfarin,"Easy bruising, bleeding, nausea"

MedicationType
MedicationType has many medications
Name (String)
Table is seeded with prescription, over-the-counter, vitamin or supplement, herbal or natural

MedicationForm
MedicationForm has many prescriptions
Table is seeded with Capsule, Liquid, Suspension, Syrup, Chewable tablet, Dissolvable tablet, Powder, Injection, Inhaler, Nebulizer solution
Patch, Cream, Ointment, Gel, Drops, Suppository, Spray

Acceptance Criteria

This applies to Medication, MedicationType and MedicationForm
A user saves the Medication, MedicationType and MedicationForm

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by locating the existing patient, medication, and persistence entry points, then trace how related records and seed data are handled. Done means patients can save prescriptions, medications, medication types, and medication forms with the listed relationships, required fields, and seed values.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.