fcaf9b74ea
feat: Restructure OpenAPI documentation with modular components
...
- Add OpenApiDocs controller for serving bundled API docs
- Split monolithic api-docs.yaml into modular components/
- Add organized paths/ directory with endpoint definitions
- Create bundling scripts (JS, PHP, Python) for merging docs
- Add API_DOCS_README.md with documentation guidelines
- Update Routes.php for new API documentation endpoints
- Update swagger.php view and TestDefSiteModel
2026-02-16 14:20:52 +07:00
8c44cc84a2
Update files
2026-02-16 10:16:07 +07:00
c2eec916e9
chore: clean up PRD and fix API docs formatting
2026-02-16 07:03:40 +07:00
8806b007ab
Add PatVisit controller and use case documentation
...
- Add PatVisitController with CRUD operations
- Add use case documentation (docx and md files)
- Update API documentation in api-docs.yaml
- Remove USER_STORIES.md (migrated to docs/)
- Update TODO.md with current tasks
- Update Routes.php for new endpoints
- Update DummySeeder with additional test data
2026-02-15 21:05:25 +07:00
f30755c830
Update seeders and models, remove MinimalMasterDataSeeder, update API docs
2026-02-13 16:51:24 +07:00
5085b8270f
Resolve merge conflicts in PatVisitController and add CORS headers to AuthFilter; update ValueSet API documentation
2026-02-13 06:35:05 +07:00
c38f9d2f91
feat(patvisits): add index method for paginated patient visits listing
2026-02-12 07:24:17 +07:00
a9384fbe96
fix(api-docs): update OpenAPI spec to match actual implementation
...
- Fix Patient schema fields (NameFirst, NameLast, EmailAddress1)
- Update Occupation schema (OccCode, OccText)
- Update MedicalSpecialty schema (SpecialtyText)
- Update Counter schema (CounterDesc, CounterValue)
- Fix Location schema (LocCode, LocFull)
- Update PatVisitADT doctor fields to integer (ContactID refs)
- Add proper request/response schemas for all endpoints
- Fix OrderStatus and Priority enums
- Add missing query parameters
2026-02-10 15:37:12 +07:00
89e7bfae38
refactor: clean up agent configs and consolidate API documentation
2026-02-10 13:28:32 +07:00
f47a43b061
refactor: reorganize ValueSet endpoints - Move user valueset items to /api/valueset/user/items - Move valueset definitions to /api/valueset/user/def - Keep lib valueset at /api/valueset/*
2026-02-10 10:05:44 +07:00
fcdbc3f20a
feat(patient): handle array format for Custodian and LinkTo fields
...
- PatientModel: Convert Custodian from array to integer InternalPID when received as object
- PatientModel: Convert LinkTo from array of objects to comma-separated InternalPID string
- API docs: Add LinkedPatient, Custodian, and PatAttEntry schema definitions
- API docs: Extend Patient schema with DeathIndicator, TimeOfDeath, PatCom,
PatAtt, Province, City, Country, Race, MaritalStatus, Religion, Ethnic fields
- Add AGENTS.md to .gitignore
2026-01-29 11:21:34 +07:00
6a20682d18
refactor(api): standardize ValueSet label transformation across controllers
...
Replace manual label lookup code with ValueSet::transformLabels() helper
for consistent API responses across all controllers.
Updated controllers:
- ContactController: Specialty, Occupation
- OrderTestController: Priority, OrderStatus
- PatientController: Sex
- ContainerDefController: ConCategory, CapColor, ConSize
- SpecimenCollectionController: CollectionMethod, Additive, SpecimenRole
- SpecimenController: SpecimenType, SpecimenStatus, BodySite
- SpecimenStatusController: Status, Activity
- DemoOrderController: Priority, OrderStatus
- TestMapController: HostType, ClientType
- TestsController: Reference range fields
Also updated api-docs.yaml field naming convention to PascalCase
2026-01-29 09:05:40 +07:00
e5ac1957fe
● refactor: update API responses to use {field}Label format
...
- Transform coded fields to lowercase with Label suffix for display text - Controllers: OrderTestController, DemoOrderController, SpecimenController,
SpecimenStatusController, SpecimenCollectionController, ContainerDefController,
ContactController, TestMapController
- Example: Priority: "R" → priority: "R", priorityLabel: "Routine"
- Update api-docs.yaml with new OpenAPI schema definitions
- Add API docs reminder to CLAUDE.md
2026-01-28 17:31:00 +07:00