19 Commits

Author SHA1 Message Date
c5c958b58e fix: support partial PATCH updates across controllers and PatVisit
Allow update endpoints to validate only provided fields, avoid overwriting unchanged data, and preserve existing PatDiag when omitted from PatVisit PATCH payloads.
2026-04-06 15:38:30 +07:00
root
2bcdf09b55 chore: repo-wide normalization + rules test coverage
Normalize formatting/line endings across configs, controllers, models, tests, and OpenAPI specs.

Update rule expression/rule engine implementation and remove obsolete RuleAction controller/model.

Add unit tests for rule expression syntax and multi-action behavior, and include docs updates.
2026-03-16 07:24:50 +07:00
5e0a7f21f5 feat: add TestMapDetail controller, model and migration for test site mapping
- Add TestMapDetailController for managing test mapping details
- Create TestMapDetailModel with CRUD operations
- Add migration for TestSiteID column in testmap table
- Update TestMapController and TestMapModel
- Update routes, seeder and PatVisitModel
- Regenerate API documentation bundle
2026-02-26 16:48:10 +07:00
d974e2f3c1 fix patvisit endpoint: add validation, soft delete, fix tests, remove sequence from update 2026-02-12 16:50:21 +07:00
118d490bbd refactor: update TestSeeder to use dynamic ValueSet lookups
- Implemented dynamic VID retrieval from ValueSetModel for all test definitions
- Aligned ResultType, RefType, and SpcType with the valueset table
- Updated sample data for Hematology, Chemistry, and Urinalysis tests
- Ensured consistency between ValueSetSeeder and TestSeeder data
2025-12-29 12:55:31 +07:00
8af8fea0ba preworking pvadt 2025-11-13 13:49:24 +07:00
21abee1831 fix patvisit InternalPID 2025-11-12 16:02:31 +07:00
2096ede1e5 update patvisit 2025-11-12 15:58:01 +07:00
bfee374eef fix patvisit 2025-11-12 15:26:18 +07:00
4fea4e1385 fix pv showByPatient show latest id 2025-10-27 11:13:12 +07:00
d4c92af9e4 fix pvadt 2025-10-27 10:37:44 +07:00
a71a587573 add pva cr 2025-10-23 12:16:52 +07:00
2df524c890 fix patvisit 2025-10-23 11:05:20 +07:00
f7d7e8483d fix patvisit showByPatient 2025-10-23 09:29:20 +07:00
33d904e83b update patvisit show, add prefix for all createdate 2025-10-23 09:25:10 +07:00
a3b025ef6c change DeathDate to TimeOfDeath 2025-10-21 10:27:31 +07:00
e28b58282e fix patvisit route 2025-10-21 09:55:28 +07:00
6c809d4905 fix patvisit 2025-10-16 13:44:22 +07:00
33e7c84fc4 broken patvisit 2025-10-16 12:55:55 +07:00