Repository navigation
Obligation CodeSystem: SHALLNOT/SHOULDNOT qualifiers, new MAY codes, strength hierarchy and fixes - #310
Draft
lmckenzi wants to merge 6 commits into
Draft
Obligation CodeSystem: SHALLNOT/SHOULDNOT qualifiers, new MAY codes, strength hierarchy and fixes#310lmckenzi wants to merge 6 commits into
lmckenzi wants to merge 6 commits into
Conversation
- Fix typos and grammar (coverse, specifially, shold, assembles, etc.) - Close unbalanced parenthesis in process definitions - Repair garbled sentence in no-error definitions - Clarify that leaf codes reference qualifiers via the qualifier property - Correct MAY:alter to refer to exchangers, not producers - Disambiguate MAY:ignore wording - Remove references to non-existent use-dar codes in std - Add SHALL:populate-if-known / SHOULD:populate-if-known parents to SHALL:populate / SHOULD:populate to match generic hierarchy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lmckenzi
marked this pull request as draft
November 26, 2026 21:53
…es and 'generic' property - Add SHALLNOT and SHOULDNOT qualifier concepts - Add 22 qualified codes (6 MAY, 8 SHALLNOT, 8 SHOULDNOT) - Add generic 'alter' code; deprecate no-alter - Deprecate SHALL/SHOULD:no-alter (replaced by SHALLNOT/SHOULDNOT:alter) and SHALL/SHOULD:exclude-narrative (replaced by SHALLNOT/SHOULDNOT:in-narrative) using status and replacedByCode - Add 'generic' property linking qualified codes to their generic code; 'parent' now used only for subsumption - Add MAY:handle as parent of MAY:display/process/print; add SHALLNOT/SHOULDNOT display/process/print as parents of SHALL/SHOULD:ignore - Update generic definitions to list the full set of permitted qualifiers - Simplify no-error wording and drop the std note Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Remove the 'generic' property; qualified codes again inherit from their generic code - MAY codes are parents of SHOULD codes, SHOULD of SHALL, SHOULDNOT of SHALLNOT - Add SHALLNOT:handle and SHOULDNOT:handle (children of the corresponding display/process/print codes, since negation reverses specialization); SHALL/SHOULD:ignore now specialize them - Remove redundant parents already implied through another parent - Note on display and print that their relationship to handle depends on the specification's handling expectations - Generic handle definition covers the negated forms Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ption The exchanger-to-producer/consumer note on the generic alter code only holds for SHALL NOT and SHOULD NOT; under MAY the application remains an exchanger. Removed the strength-hierarchy sentence from the CodeSystem description per review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Flag as security-dependent: alter, SHALLNOT:alter, SHOULDNOT:alter (redaction in transit), persist and its SHALL/SHOULD/MAY forms (consent withdrawal, erasure, retention limits), handle and its SHALL/SHOULD/MAY forms (to match display/process/print), and the composites v2-re, ihe-r2 and std (security-dependent components). Drop the notes on alter and SHOULDNOT:alter and the deprecation sentence on exclude-narrative per review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… replacedByCode replacedByCode is an R6 concept property; this is an R5 IG, so deprecated concepts point to their replacements with the R5 codesystem-replacedby extension. The status property is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Editorial fixes to the Obligation CodeSystem, plus SHALLNOT/SHOULDNOT qualifiers, additional MAY codes, and a specialization hierarchy based on strength.
Explicit MAY codes support traceability: an element flagged MAY records that an external requirement was explicitly asserted at MAY strength. Unflagged elements still behave as MAY, but have no associated requirement.
A spreadsheet listing every candidate combination (with rationale) and every change to an existing concept is available for review.
New concepts
SHALLNOT(SHALL NOT),SHOULDNOT(SHOULD NOT), both not-selectablealter(exchanger obligation, not-selectable)populate-if-known,populate,exclude-narrative,reject-invalid,accept-invalid,handlepopulate,in-narrative,user-input,persist,alter,handle,display,process,printOther combinations were reviewed and excluded, mostly because they would duplicate an existing code (e.g. SHALLNOT:ignore = SHALL:handle) or because the negation is meaningless (e.g. SHALLNOT:no-error).
Deprecations
These use the standard
statusconcept property (= deprecated) and, because this is an R5 IG, thecodesystem-replacedbyextension rather than the R6replacedByCodeproperty.SHALL:exclude-narrative->SHALLNOT:in-narrative;SHOULD:exclude-narrative->SHOULDNOT:in-narrative. The genericexclude-narrativestays active to supportMAY:exclude-narrative.SHALL:no-alter->SHALLNOT:alter;SHOULD:no-alter->SHOULDNOT:alter. The genericno-alteris deprecated with no replacement code.Hierarchy (relationship changes)
parentmeans specialization: whenever the child applies, the parent also applies, and a parent obligation can legitimately be tightened to the child.alter, and its converse isSHALLNOT:alter.display, because it inherits it through SHOULD:display.Security-dependent
A flag on a generic code means that obligations matching it might be overridden by privacy or security policy. A specialization can drop the flag where its narrower meaning is not affected, so most SHALLNOT/SHOULDNOT codes are not flagged.
Definition changes
Editorial
No codes or display names were changed by the editorial fixes.
For discussion
explainis categorised under ResourceProducerObligations, but its example is about a consumer handling Patient.active.🤖 Generated with Claude Code