[FEATURE] Add Appointment and Appointment Type
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rails
- Domain
- database, full-stack
Research direction
Start by reading the existing Log delegated-type implementation, the Log index and show views, and analogous medication types and forms used in ApplicationHelper. Add the Appointment and AppointmentType scaffolding, appointment partial, admin registration, and seed entries while preserving the generic Log fallback. Done means the acceptance criteria pass, including model tests and appointment details on both Log pages.
Written by the indexing model from the issue text.
Description
Description
An appointment is a kind of log entry. It is a Log delegated type, and the Log carries the date.
Fields come from the journal's "Call and Meeting Log" table (Section 3), which records: Date, Appointment, Met/Spoke With, Purpose/Reason for Call/Visit, Brief Notes.
Appointment
- Is a
Logdelegated type (required) — the date lives on the Log - Belongs to an AppointmentType (required)
- Met/Spoke With (String)
- Purpose (Text)
- Notes (Text)
Relationships: Log, AppointmentType
AppointmentType
Lookup table. AppointmentType has many appointments.
- Name (String)
- Table is seeded with: health care provider, procedure, test, surgery, hospitalization
UI
Standard scaffolding for Appointment and AppointmentType, plus the pieces that make an appointment visible from the log:
- Register
AppointmentinLog'sdelegated_typelist so it appears in the log type selector. - Add a partial in
app/views/appointments/that renders an appointment's details in a log context. - Modify the Log index and show to render that partial next to the log entry, dispatching on the loggable type. Keep the generic fallback the Log ticket established for types that don't have a partial yet.
- Add AppointmentType to
admin_sectionsinApplicationHelper— it's reference data, same as medication types and forms.
Acceptance Criteria
- A user can add, view, edit and delete an appointment
- Saving an appointment requires a date and an appointment type
- The appointment type is selected from the seeded list
AppointmentTypeis seeded and manageable, and appears on/adminAppointmentappears in the log type selector- The log index shows appointment details next to each appointment log entry
- The log show page shows the appointment's full details
- Log entries of a type with no partial still render via the fallback — adding this partial must not break that
- Model tests cover both models
Notes
- The journal lists three appointment kinds (health care provider, procedure, test); the ERD adds surgery and hospitalization. Seeding all five.
- Meeting Notes (the questions-and-answers page in Section 3) is a separate concern — not in this ticket.
- "Met/Spoke With" is free text, matching the paper journal. The ERD has a
Providermodel, so this could become an association later.
- Dominant language
- TypeScript
- Stars
- 9
- Forks
- 4
- Avg merge
- 9h 34m
- Merged PRs (30d)
- 16
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rubyforgood/alongwithyou
-
bug RFG Conference ruby severity:minor triage
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
rubyforgood/alongwithyou#173 ·
-
needs-verification
Difficulty 1/5 Under an hour Newbie friendliness 72/100
rubyforgood/alongwithyou#100 ·
-
needs-verification
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rubyforgood/alongwithyou#99 ·
-
severity:minor
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rubyforgood/alongwithyou#95 ·
-
good first issue severity:minor
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
rubyforgood/alongwithyou#93 ·
All issues in rubyforgood/alongwithyou
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·