41 Commits

Author SHA1 Message Date
22ee1ebfd1 feat: update organization pages and test modal
- Update organization discipline and site pages with new features
- Enhance TestFormModal component
- Refactor GroupMembersTab implementation
- Update API documentation
- Add organization API methods
2026-03-10 16:40:44 +07:00
695ee3de91 feat(tests): implement proper group member sequencing and cleanup deprecated skills
**Test Group Member Management:**
- Refactor member data structure from simple ID array to object array with sequence numbers
- Update member objects to include both TestSiteID and Member (sequence) fields
- Fix addMember() to assign sequential Member numbers automatically
- Fix removeMember() to re-sequence remaining members after removal
- Fix moveMember() to properly swap and re-sequence members
- Add sorting by sequence number in members list display
- Update payload builder in tests.js to use proper object structure for API
- Update TestFormModal.svelte member mapping for edit mode

**Documentation:**
- Add TypeScript Types section to AGENTS.md with TestType and TestSummary examples
- Reorganize TODO.md with new test type categories and backend notes

**Cleanup:**
- Remove deprecated OpenSpec skills from .opencode/ directory:
  - opsx-apply.md, opsx-archive.md, opsx-explore.md, opsx-propose.md
  - openspec-apply-change/SKILL.md, openspec-archive-change/SKILL.md
  - openspec-explore/SKILL.md, openspec-propose/SKILL.md

**New Files:**
- Add .serena/memories/ for code style conventions and task tracking
2026-03-09 16:50:35 +07:00
09bfe6fb3e delete openspec 2026-03-09 11:18:48 +07:00
ad8b79c0c8 feat: add user and specimen management, setup OpenSpec workflow and Serena config 2026-03-09 06:59:36 +07:00
94af37dae5 refactor: improve patient form validation and order management 2026-03-05 16:05:42 +07:00
afd8028a21 feat(reports,results): add complete reports and results management modules
Add new Reports module:
- Create reports page with listing and viewer functionality
- Add ReportViewerModal for viewing generated reports
- Implement reports API client with endpoints

Add new Results module:
- Create results page for lab result entry and management
- Add ResultEntryModal for entering test results
- Implement results API client with validation support

API and Store Updates:
- Update auth.js API client with improved error handling
- Enhance client.js with new request utilities
- Update auth store for better session management

UI/UX Improvements:
- Update dashboard page layout and styling
- Enhance OrderFormModal with better test selection
- Improve login page styling and validation
- Update main app layout with new navigation items

Documentation:
- Add bundled API documentation (api-docs.bundled.yaml)
- Remove outdated component organization docs
- Delete deprecated YAML specification files

Cleanup:
- Remove cookies.txt from tracking
- Delete COMPONENT_ORGANIZATION.md
- Consolidate documentation files
2026-03-04 16:48:03 +07:00
807cfc8e7a feat(orders): implement complete orders management module with specimens and tests
- 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
2026-03-03 13:51:07 +07:00
77ae55ca98 feat(tests): update RefNumTab component in test modal 2026-03-03 06:03:35 +07:00
69f2fd6956 Add TODO.md and update visits components with search parameters and UI improvements 2026-03-02 11:44:44 +07:00
96f3b14fd4 feat(tests): update test module API endpoints and search functionality
- Change API endpoints from /api/tests to /api/test (singular form)
- Refactor search: split single search field into separate code and name inputs
- Add new ThresholdTab.svelte component for threshold management
- Update TestFormModal to include threshold configuration
- Refactor RefNumTab, RefTxtTab, and TechDetailsTab for improved UX
- Update tests page to use separate TestSiteCode and TestSiteName search params
- Improve test data table with better pagination and search handling
2026-03-02 07:02:25 +07:00
b693f279e8 feat(organization): add coding system, host app, and host compara sub-pages
- 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
2026-02-27 16:32:55 +07:00
9eef675a52 refactor(testmap): reorganize testmap docs and update components 2026-02-26 16:48:27 +07:00
ecc4822a38 Add focus-within input patterns, update Sidebar, TestMapModal, and PatientSearchBar components 2026-02-25 16:38:28 +07:00
ad1618efec Refactor patients and visits modules
- Extract patient utilities to src/lib/utils/patients.js
- Split patient page into modular components
- Create dedicated visits page and route
- Move visit-related modals to visits directory
- Add Sidebar navigation for visits
2026-02-25 07:12:24 +07:00
ae806911be feat(equipment,organization): add equipment API client and complete organization module structure
- Add equipment.js API client with full CRUD operations
- Add organization sub-routes: account, department, discipline, instrument, site, workstation
- Create EquipmentModal and DeleteConfirmModal components
- Update master-data navigation and sidebar
- Update tests, containers, counters, geography, locations, occupations, specialties, testmap, and valuesets pages
- Add COMPONENT_ORGANIZATION.md documentation
2026-02-24 16:53:04 +07:00
8f75a1339c feat(testmap): update test map page and modal components 2026-02-24 06:12:17 +07:00
beb3235470 feat: add test map management module 2026-02-23 16:53:52 +07:00
3b8a935b46 feat(organization): add CRUD operations for disciplines and departments 2026-02-23 05:11:30 +07:00
52d4fc7322 feat(tests): add modals directory and update test management components 2026-02-20 16:49:34 +07:00
99d622ad05 refactor(tests): consolidate test management modal 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
2026-02-20 13:51:54 +07:00
mikael-zakaria
a96a6ee279 build fix 2026-02-19 16:42:03 +07:00
2e2e65a9f4 feat: Add environment-specific config management
- Remove static/config.json from git tracking
- Add .env.example and config.json.example as templates
- Update config store to fallback to VITE_API_URL env variable
- Add build.sh script for dev/prod builds
2026-02-19 16:34:29 +07:00
1af4adddf7 feat: Update test modal UX and improve DataTable/Modal components 2026-02-19 16:30:41 +07:00
995cdd3fec Update test modal components with improved UX and add TestTypeSelector 2026-02-19 07:12:11 +07:00
8d77370357 refactor(tests): Move TestModal to route folder and add technical config support
- 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
2026-02-18 16:31:20 +07:00
f0f5889df4 Add comprehensive test management module with reference range support
- 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
2026-02-18 07:14:09 +07:00
5aab10df04 chore: cleanup docs and update configs
- Remove outdated documentation files (MVP plan, API docs, frontend plan)
- Add deployment configuration (DEPLOY.md, apache-config)
- Update AGENTS.md with build commands
- Fix geography and tests API endpoints
- Update Tests page with improved functionality
- Update package.json and svelte.config.js
2026-02-16 15:58:06 +07:00
f917a0f018 refactor: Remove SpecimenType field from tests management
- Update API documentation to remove SpecimenType from examples

- Remove SpecimenType from tests API client

- Remove specimen type dropdown and handling from tests page
2026-02-16 07:03:25 +07:00
f7a884577f feat: Add ADT history, specimens API, and enhance master data pages
- 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
2026-02-15 17:58:42 +07:00
278498123d Add containers and tests master data modules
- Add containers management page with CRUD operations
- Add tests management page with test configuration
- Add organization API client
- Update SelectDropdown and Sidebar components
- Enhance PatientFormModal and VisitListModal
- Add VisitFormModal for visit management
2026-02-13 16:07:59 +07:00
d5864d40ec feat: Refactor patients page into modular components with separate modals 2026-02-13 07:02:54 +07:00
382b05d98e feat: Integrate visits management into patients page with full CRUD operations
- Add visit creation, editing, and deletion directly from patient details

- Add patient class selection and ADT status display

- Remove standalone visits page and sidebar navigation

- Update visit form with Episode ID, location, doctors, and dates
2026-02-12 16:28:24 +07:00
1e032e5278 feat: Add Visits Management module and integrate with patients
- Add Visits API client and page routes
- Add Calendar icon and Visits menu item to Sidebar
- Add patient visits view modal in patients page
- Update AGENTS.md to use pnpm commands
2026-02-12 07:32:31 +07:00
4641668f78 fix: Improve SelectDropdown handling and valueset caching 2026-02-11 20:04:46 +07:00
4accf7b6d6 feat: Implement Patient Management module (Phase 2a)
- Add patients API client with CRUD operations
- Create patient list page with search and pagination
- Implement multi-step patient form (4 steps):
  1. Basic Info (PatientID, Name, Sex, Birthdate, etc.)
  2. Address (Street, ZIP, Province/City dropdowns)
  3. Contact & ID (Phone, Email, ID documents)
  4. Additional (Demographics, Death Indicator, Comments)
- Add province/city cascading dropdowns
- Integrate ValueSets for dropdown options
- Update implementation plan
2026-02-11 08:26:11 +07:00
f7cb3d50d4 feat: Add Master Data modules and UI components 2026-02-10 17:00:05 +07:00
5df9523d5a Make sidebar sections collapsible with Master Data default collapsed 2026-02-10 16:58:45 +07:00
0f8ec8362b feat: Add AGENTS.md and update login with Lucide icons, add API proxy config 2026-02-10 06:43:07 +07:00
6a270e181c feat: Complete Phase 0 foundation
- 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.
2026-02-09 21:39:14 +07:00
d0350388a0 clean lets init with simple svelte 2026-02-09 16:45:07 +07:00
bae48fab29 first commit 2026-02-08 17:39:53 +07:00