- Add orders API module with CRUD operations (src/lib/api/orders.js)
- Create orders page with search, list, form, and detail modals
- Add patient visits ADT form modal for admission/discharge/transfer
- Update test management: add Requestable field to BasicInfoTab
- Add API documentation for orders and patient visits endpoints
- Update visits page to integrate with orders functionality
Features:
- Order creation with auto-grouped specimens by container type
- Order status tracking (ORD, SCH, ANA, VER, REV, REP)
- Priority levels (Routine, Stat, Urgent)
- Order detail view with specimens and tests
- ADT (Admission/Discharge/Transfer) management for visits
- Add new organization sub-pages: codingsys, hostapp, hostcompara
- Update organization API client and main page
- Update Sidebar navigation for organization section
- Remove deprecated backup test files
- Update testmap and tests components
- Consolidate fragmented test modal components into unified TestFormModal.svelte
- Reorganize reference range components into organized tabs (RefNumTab, RefTxtTab)
- Add new tab components: BasicInfoTab, TechDetailsTab, CalcDetailsTab, MappingsTab, GroupMembersTab
- Move test-related type definitions to src/lib/types/test.types.ts for better type organization
- Delete old component files: TestModal.svelte and 10+ sub-components
- Add backup directory for old component preservation
- Update AGENTS.md with coding guidelines and project conventions
- Update tests.js API client with improved structure
- Add documentation for frontend test management architecture
- Move TestModal from lib/components to routes/(app)/master-data/tests
- Add technical configuration form (ResultType, RefType, SpcType, units, etc.)
- Add GroupMembersTab for managing group test members
- Enhance reference ranges with refvset and refthold support
- Update API to handle new test fields (ReqQty, Factor, Decimal, TAT, etc.)
- Add database schema documentation (DBML format)
- Remove old test-types-reference.md documentation
- UI improvements: compact design, updated sidebar, modal sizing
- Update DataTable, Modal, SelectDropdown components for compact style
- Enhance patient and visit modals with compact layout
- Create TestModal component with tabbed interface for test creation/editing
- Add BasicInfoForm for test metadata (name, code, category, etc.)
- Implement multiple reference range types:
* NumericRefRange for numeric value ranges
* TextRefRange for qualitative results
* ThresholdRefRange for threshold-based results
* ValueSetRefRange for predefined value sets
- Add ReferenceRangeSection to manage all reference range types
- Create config store for application configuration management
- Add static config.json for environment settings
- Update DataTable styling
- Refactor tests page to integrate new TestModal
- Add reference range utility functions
- Include comprehensive test types documentation
- Update API documentation to remove SpecimenType from examples
- Remove SpecimenType from tests API client
- Remove specimen type dropdown and handling from tests page
- Add VisitADTHistoryModal for ADT tracking
- Create specimens API client
- Add HelpTooltip component
- Enhance all master data pages with improved UI
- Update patient pages and visit management
- Add implementation plans and API docs
- Initialize SvelteKit project with Tailwind CSS and DaisyUI
- Configure API base URL and environment variables
- Create base API client with JWT token handling (src/lib/api/client.js)
- Implement login/logout flow (src/lib/api/auth.js, src/routes/login/+page.svelte)
- Create root layout with navigation (src/routes/+layout.svelte)
- Set up protected route group with auth checks (src/routes/(app)/+layout.svelte)
- Create dashboard homepage (src/routes/(app)/dashboard/+page.svelte)
- Add auth state store with localStorage persistence (src/lib/stores/auth.js)
All Phase 0 foundation items completed per implementation plan.