Documentation
¶
Overview ¶
Package medicalhistory is a demo module: selectsearch.SelectSearch (now widget.Filterable — see github.com/tinywasm/components v0.5.0) drives a rightpanel.RightPanel master-detail. Pick a patient from today's agenda, their history loads on the other side. It is the pattern to copy for a real "select one, load its detail" module — the same role platformd/modules/devices plays for full CRUD.
Index ¶
Constants ¶
const Icon = svg.Icon("mod-medicalhistory")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct{}
Module is the platformd.UIModule. It carries no state of its own — View() builds a fresh *View per call, which is where the demo's state (the signals, the fake agenda) actually lives.
func (*Module) IconSvg ¶
IconSvg registers the module's glyph: a plain plus/cross built only from straight lines (no curves to get wrong) in a 24x24 box. tinywasm/ssr fuses every IconSvg() in the graph into one sprite injected into <body>.
The receiver is instantiated as a zero value (&medicalhistory.Module{}), so this method must not touch any field — it only returns definitions.
type Patient ¶
Patient and Visit are LOCAL FAKE types for this demo only. A real deployment replaces todayAgenda/visits below with router.Caller calls into appointment_booking (today's reservations for a staff member) and clinical_encounter (ListVisitsByPatient) — this repo never imports either.