Skip to content

Commit 587aa09

Browse files
Ken Stevensclaude
andcommitted
GL-7: Scope ARCHITECTURE.md forbidden imports as aspirational
Existing code has legacy violations of the REST exception import rule. Add note acknowledging these as tech debt to be migrated over time, not blockers for new contributions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 642bb9f commit 587aa09

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ARCHITECTURE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ As you cross boundaries in an application, the primary domain model shifts. Each
3838

3939
### Forbidden Imports in Core Modules
4040

41-
The following modules MUST NOT import from `ca.uhn.fhir.rest.server.exceptions`:
41+
**New code** in the following modules MUST NOT import from `ca.uhn.fhir.rest.server.exceptions`:
4242

4343
- `cqf-fhir-cr`
4444
- `cqf-fhir-cql`
4545
- `cqf-fhir-utility`
4646

4747
These modules are used by the CLI, by Android clients, and by other non-REST consumers. REST/HTTP concepts do not belong here.
4848

49+
> **Note:** Existing code has legacy violations of this rule. These should be migrated over time but are not blockers for new contributions.
50+
4951
### Exception Handling Pattern
5052

5153
**Core modules** throw domain-appropriate exceptions:

0 commit comments

Comments
 (0)