mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
fix(visits): reach every lab result, condition, document and visit from the link pickers
The visit form's lab picker offered the newest 200 results, the condition picker the newest 100 conditions, the document pickers the newest thousand documents and the document sheet's visit picker the newest 100 visits. On a long record everything older could not be linked. Each picker now opens on the records around the date of the thing being linked, pages older and newer from there, and searches through the list route itself. Records already linked always show, from the labels the record's own read carries and from what was picked in the sheet. The lab list takes a q filter over analyte and panel, the condition list from/to/q/offset/sortDir, and the visit list an offset.
This commit is contained in:
1 parent
dad9a7778e
commit
73c4dda224
35 files changed
+1714
-251
No files matched your search
@@ -15,10 +15,14 @@ export const illnessKeys = {
|
||||
illness: () => ["illness"] as const,
|
||||
illnessEpisodes: (includeResolved: boolean) =>
|
||||
["illness", "episodes", includeResolved] as const,
|
||||
// The visit form's episode picker, with its own page size (the illness
|
||||
// pages read the route's default); a shared key would serve one to the other.
|
||||
illnessEpisodesPicker: (limit: number) =>
|
||||
["illness", "episodes-picker", limit] as const,
|
||||
// The visit form's episode picker: one paged direction from the visit's
|
||||
// date or a search, with its own page shape; a shared key would serve one
|
||||
// read to the other.
|
||||
illnessEpisodesPicker: (
|
||||
direction: string,
|
||||
pivot: string | null,
|
||||
term: string,
|
||||
) => ["illness", "episodes-picker", direction, pivot ?? "", term] as const,
|
||||
illnessEpisode: (id: string) => ["illness", "episode", id] as const,
|
||||
illnessDayLog: (episodeId: string, date: string) =>
|
||||
["illness", "day-log", episodeId, date] as const,
|
||||
|
||||
Reference in new issue
Block a user