Repository navigation
Conversation
…HIR side of supplements and reserved code spaces: the workspace and the CodeSystem write The FHIR layer's part of OCL's supplements and reserved code spaces (fhir-452-c-core holds OCL's model). Nothing here changes an answer yet: the engine still refuses supplements until the next commit. - workspace: Workspace(supplements=[...]); supplements a request carries load lazily as supplement sources (global, named or declared), never as code systems; names with no language get none (ANY_LANGUAGE); nameless supplement concepts are allowed; valueset-supplement goes into Collection.declared_supplements; codesystem-reservedCodeSpace into Source.reserved_code_spaces (a malformed extension is skipped); member_entries and held_row give reserved members as rows with no concept, which the readers leave for the FHIR layer to write - the FHIR CodeSystem write, for supplement sources only: concepts may have no name; a designation or display with no language is stored with none (a supplement that says no language has none); its properties are kept as extras, with its declarations. Every other code system keeps every rule - with the FHIR update's save onto HEAD (update_head, #1101), whether a write is a supplement and its language are read from HEAD, which it saves onto, and a supplement with no language keeps none (keep_no_language) in the HEAD it prepares Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
… and reserved code spaces in $expand, $lookup and $validate-code FHIR only: OCL's core decides (fhir-452-c-core), and everything runs in the request's workspace under its FHIR rules. Nothing changes for API users. - Inputs: useSupplement goes to the request's workspace and evaluation; the value set answered for declares supplements (valueset-supplement); global supplements a request carries apply to the code system versions they supplement, pins respected - Presentation (core/fhir/engine/supplemented.py): designations from OCL's merge, each once, with source; a name with no language is valid in any language; in each language the code system's own name wins the display and the supplement's stays valid; definitions from the merge; properties as each supplement declares them; concept extensions (itemWeight, codesystem-label, rendering-*) from a carried supplement's resource - $expand reports used-supplement, from what OCL's expansion and the value sets it imports recorded, and with includeDefinition repeats the value set's extensions; $lookup lists designations with source and each used-supplement, and with no property asked for also parent and child; $validate-code checks displays over the merged names - Reserved code spaces and extension-codes supplements: a code in a reserved space no concept defines is presented with the names of the extension-codes supplement that defines it, else its space's default display. A global supplement's display is the code system's own (another is an error, or a warning with lenient-display-validation); a named or declared one's is one valid display among others (a warning); a default display is a placeholder. An expansion holding every code of a reserved space is valueset-unclosed - Not found: a supplement named or declared that applies to none of the code system versions used is VALUESET_SUPPLEMENT_MISSING - Still refused, as not-supported: supplements on stored content, and in $subsumes and $translate - A code holding a NUL is unknown (4xx), never a server error; CodeSystem $validate-code of an unknown code no longer reports a version the coding didn't name Tests: core/fhir/tests_tx_supplements.py and the workspace's, engine and stored tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…ose.inactive is its include_retired, so activeOnly stays the request's A carried ValueSet's compose.inactive is loaded as the collection version's own rule on inactive codes (Collection.include_retired, #1102), as a ValueSet written through FHIR keeps it: false leaves them out wherever the value set is evaluated, imports included. The expansion's parameters no longer turn it into activeOnly, which stays what the request gave. Tests: the loaded rule for false, true and none, activeOnly left as given, and the rule reaching an import. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…cks a carried value set's definition with OCL's own core.value_sets.compose, the check a ValueSet write refuses a compose with (#1102), now reports structured problems (kind, where, message, values); compose_errors and modifier_errors give their messages as before. The FHIR layer's check of a carried value set's definition (core.fhir.engine.definition.check_definition, and the compose's own modifier extensions) raises the IG's issue for the first one, in the order it reported them before: codes or filters with no code system, an unknown modifier extension, a filter with no value, then the rest. What a carried definition is refused for now matches what a write refuses: a modifier extension on the compose, a listed code or a designation (before: an include, exclude or filter only), and codes and filters in one include (FHIR R4's vsd-3). Tests: each place a modifier extension is refused, codes and filters together, and the order of report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…R: their listed codes' designations and extensions in $expand and $validate-code A ValueSet written through FHIR keeps each listed code's designations and extensions (CollectionReference.concept_details, #1102). The FHIR layer now reads them as a carried value set's own entry for a code (core.fhir.ops.concepts.listed_concepts), one query for a value set created through FHIR and none for any other: - stored $expand: a listed code repeats the extensions an expansion repeats on a code (valueset-deprecated, standards-status, valueset-concept-definition, rendering), and with includeDesignations its designations follow the concept's names. Its display stays the concept's - stored ValueSet $validate-code: a listed designation is a right display, and a code the value set marks deprecated has the warning CONCEPT_DEPRECATED_IN_VALUESET, as the engine gives it - the engine's reading of a stored value set (a CodeableConcept of several codings, or one a carried value set imports): the listed entry is the member's value set entry, as a carried value set's is Its compose.inactive (Collection.include_retired) already holds in its stored expansion, which both operations read: tests show an inactive code left out of $expand whatever activeOnly says, and not a member in $validate-code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…fhir-452-c-fhir Phase C's storage migrations and collections/0081 bound their lock waits; an import's stored expansion isn't read as it is when a supplement may apply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…s managed properties and inactive codes come from HEAD An update saves onto HEAD (update_head, #1101), so what it reads of the stored declarations is HEAD's: - a supplement's values of the properties declared before the update, which it writes whole, are those HEAD declared, read with HEAD locked; not those of the release the URL resolved, whose declaration HEAD may since have dropped and whose name an OCL edit may have used for an extra of its own, which the update then deleted; - an update that says nothing of the declarations keeps HEAD's, so a concept's value under an inactive code HEAD declares is read as inactive, where it was ignored and the concept left active. Tests: an extra named as a property only the release declared is kept; a value under HEAD's inactive code retires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…n, for stored imports in the engine, inactive designations; one compose order Fixes from the review of the FHIR follow-ups: - A stored value set's listed entries are kept by the version their include names (listed_entry): stored $expand and $validate-code read the one for the version a member is reported in, so two includes listing one code in two releases each keep their own designations and extensions. - The engine's $expand: a member only a stored value set it imports holds takes that value set's listed entry, as a carried import's member takes its include's; and a stored code system's member is written with the value set's own entry for it as stored $expand writes one (with_listed, shared). - Stored ValueSet $validate-code: a listed designation whose status is inactive (deprecated, withdrawn, retired) is INACTIVE_DISPLAY_FOUND, as the engine reports it, not a right display. - The engine reads a stored value set's listed entries once a request, not once a coding. - Designations and extensions stored that aren't objects are left out when read, never a server error. - One compose check: codes or filters with no code system are found before the shape of what they list, so the IG's first issue stays codes_need_system. Tests: each, in core/fhir/tests_listed_codes.py and the engine's compose check test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…fhir-452-c-fhir An import is evaluated again only when a supplement applies to a version it used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…fhir-452-c-fhir The migrations bound their lock waits before their first DDL, both ways. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…y, only an import that holds the member, case as the code system has it Fixes from the second review pass of the FHIR follow-ups: - A member reported in a release takes the entry of an include naming a version it matches, else of one naming none; never another release's. - The engine takes a stored import's entry for a member only when that import's expansion, as the request read it, holds the member. - In a code system that ignores case, a listed code matches a member's code in any case (exact first). - A designation's own extensions that aren't objects are left out too. - A display that both an active and an inactive listed designation give is right, as the engine checks one. - One compose check: the modifier extensions of the listed codes, designations and filters that can be read are found before the shape of the rest, so the IG's first issue stays VALUESET_MODIFIER_EXTENSION_UNKNOWN. Tests: each, in core/fhir/tests_listed_codes.py (with listed_entry's own) and the engine's compose check test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…, read-once caches as cached properties, one cleaning pass From the simplification review: - a value set's designation's status (its standards-status, else active) is one function in core.fhir.engine.designations, which stored $validate-code calls too; - StoredMembership.listed and the engine's stored_listed are cached properties; - a stored listed entry is cleaned in one pass (cleaned). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…tries only through an include importing one value set, case and versions together Fixes from the third review pass: - Stored $expand works out how a member's code system compares codes only for a value set created through FHIR, and reads its source's version with the page: an ordinary collection's page cost a query per member whose source says nothing of case. - The engine takes a stored import's entry for a member only through an include that imports that value set alone; an include intersecting value sets gives none of theirs. - In a code system that ignores case, the rules on versions run over the exact and the case-folded entries together, the exact spelling first in each. - A designation's extension that isn't a list is dropped, and a standards-status that isn't a code reads as active. - One compose check: a readable filter with no value is found before the shape of the rest. Tests: each, in core/fhir/tests_listed_codes.py and the engine's compose check test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…lds a member gives its entries; one case-folded index; no crash on a scalar Fixes from the final review check: - The engine takes a stored value set's listed entry for a member through an include of stored value sets that selected it: each value set the include imports holds the member, as the request read them (an intersection holding it gives the entry of one that lists it; one holding nothing gives none). - In a code system that ignores case, a member's listed entries are looked up in an index by code in any case, built once a value set (Listed.folded), not by scanning every listed code for each member. - An extension container that isn't a list is left out without iterating it, so a scalar never raises. Tests: a non-empty intersection, the index, and a scalar extension in stored $expand and $validate-code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
…ted entries aren't attributed to its members The engine's $expand took a member's listed entry from a stored value set the request's value set imports. Which import selected a member, in which release and through which exclusions, isn't evaluated for stored imports (it is for carried ones, selected_by), so the attribution was wrong in intersections, across releases and through nested exclusions, and cost a query per member. It's taken out. The engine still writes a stored code system's member with the carried value set's own entry for it, and stored $expand and $validate-code still read a stored value set's own listed entries. Test: a carried value set's own entry for a stored code is presented; a stored import's isn't. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k
This was referenced Dec 1, 2026
…fhir-452-c-fhir $validate-code reads a carried value set's stored import as $expand does (e3e7bfc, 870fa43). Resolutions: - core/fhir/workspace/workspace.py: held_row reads held_entries, which keeps this branch's rows for codes in a reserved code space (reserved_rows). - core/fhir/workspace/membership.py: a member of an import evaluated again gets what this branch gives the stored expansion's read: a supplement that would apply to its release is refused, and the value set's own entry for a code it lists (designations and extensions) is read for it. tests_listed_codes covers the entry through an import evaluated again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…IG and the FHIR spec Ten docstrings and comments (from OpenConceptLab/ocl_online#451 and #993) credited another terminology server for a behaviour, or pointed to one for an example. They now describe it in FHIR's own terms: $validate-code leaves display case to the code system, the IG's tx-issue-type codes, OCL's ConceptMaps declaring no scope, a published ICD-10 supplement. No code changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Review fixes to the stored-import membership (05da1ac). Resolution: core/fhir/workspace/workspace.py: held_entries keeps this branch's rows for codes in a reserved code space (reserved_rows), with the exact spelling preferred within each release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Review fix to the stored-import membership (450bd1b). Resolution: core/fhir/workspace/membership.py: members read from OCL's evaluation (read_members) refuse a supplement that would apply to a stored release, as the stored expansion's read does, and an import evaluated again gives each member the value set's own entry for it (listed_entry). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…he operation's inputs Two docstrings in core/fhir/tests_translate.py credited another FHIR server for the POST request's form. They now describe it as FHIR does: a Parameters resource holding the operation's inputs. No code changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Simplifications from review of the stored-import membership (c72e47d). Resolution: core/fhir/workspace/membership.py: StoredMembership.evaluated_matches reads its rows through the shared filter (held_in) and keeps this branch's listed entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Final review fixes to the stored-import membership (a236bbe). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
Two lines of the rewording (core/fhir/outcomes.py, core/fhir/tests_translate.py) ran past pylint's 120 characters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Final review fixes to the stored-import membership (4e50dd6). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Final review fixes to the stored-import membership (77a2ee6). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Stored imports: open answers judged in the release kept; an unknown version reported (43d9543). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Review fixes to the stored-import membership (0456bf1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Review fixes to the stored-import membership (535a15b). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Review fixes to the stored-import membership (36ea663). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Simplifications from review of the stored-import membership (c385bd2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Final review fix to the stored-import membership (45d8f96). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qXgSvP7oUQhCRnPJAH
…fhir-452-c-fhir Takes #1099's new head, which brings in master (#1089, #1109 and #1106): REFERENCE_SEARCH_OPTIONS_TOGGLE is on in every environment, as on master. Merged cleanly; no change to this branch's own code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVQviVc1p6MQwqUUed
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.
Branch
fhir-452-c-fhir, basefhir-452-b-ops(#1099). The last PR of the FHIR series for OpenConceptLab/ocl_online#452: its tree is the whole, with code system supplements (OpenConceptLab/ocl_issues#3036) and three follow-ups of #1102. Not part of the Dec 1 run.Updated Dec 1:
$expandreads it), keeping this branch's supplement refusal, reserved-code rows and listed entries for an import read through OCL's evaluation.e1583edd: pylint 10.00; 5,407 tests OK (3 skipped), 823 search-index tests OK, coverage 97%; HL7 Terminology Ecosystem IG test cases 1.11.0, general mode: 788 of 789 (onlymetadata).FHIR only: OCL's model decides (#1104), and FHIR presents it. Carried content runs in the request's workspace under its FHIR rules, behind
FHIR_WORKSPACE_TOGGLE. Nothing changes for API users.Size
Twelve commits (and three merges of its base's new heads), 35 files, +3,142/−250: 1,442 lines of code and 1,700 of tests and test fixtures.
Commits, in reading order
80cac0fe(Core: supplements in OCL's model ocl_issues#3092, #3093) The FHIR side of supplements and reserved code spaces.codesystem-reservedCodeSpaceintoSource.reserved_code_spaces, andvalueset-supplementintoCollection.declared_supplements; reserved codes come back as member rows with no concept.core/fhir/workspace/loader.py,workspace.py,readers.py,core/code_systems/serializers.py; testscore/fhir/workspace/tests_supplements.py,tests_reserved_codes.py,core/code_systems/tests.py.664efc8d(FHIR operations: honour supplements in $lookup, $expand and $validate-code ocl_issues#3036) FHIR applies supplements and reserved code spaces in$expand,$lookupand$validate-code.useSupplement,valueset-supplement, and global supplements a request carries (pins respected).core/fhir/engine/supplemented.py): designations from OCL's merge, each once, withsource; the code system's own name is the display in each language; definitions, properties and concept extensions from the supplements.$expandreportsused-supplement;$lookuplists designations withsource;$validate-codechecks displays over the merged names, with the IG's display strictness for global, named and default displays.valueset-unclosed.VALUESET_SUPPLEMENT_MISSING. Supplements on stored content, and in$subsumesand$translate, are still refused as not supported.core/fhir/engine/supplemented.py,expand.py,lookup.py,validate.py,definition.py, thencontext.py,api.py,core/fhir/stored.py; testscore/fhir/tests_tx_supplements.py.f442abafA carried value set'scompose.inactiveis itsinclude_retired(OpenConceptLab/ocl_online#798 | A ValueSet written through FHIR keeps what its compose says #1102's rule), loaded by the workspace, so the expansion'sactiveOnlystays what the request gave. Read:workspace/loader.py,workspace.py.778f8791One compose check.core/value_sets/compose.py, which a ValueSet write refuses a compose with, now reports structured problems; the FHIR layer's check of a carried definition raises the IG's issue for the first, in the order it used before. A carried definition is now also refused for a modifier extension on the compose, a listed code or a designation, and for codes and filters in one include (FHIR R4's vsd-3), as a write is. Read:core/value_sets/compose.py,core/fhir/engine/definition.py.9c17f79dStored value sets written through FHIR: their listed codes' designations and extensions. Stored$expandrepeats a listed code's extensions (valueset-deprecatedand the others an expansion repeats) and, withincludeDesignations, its designations; stored$validate-codetakes an active listed designation as a right display, reports an inactive one asINACTIVE_DISPLAY_FOUND, and warns of a code the value set marks deprecated (CONCEPT_DEPRECATED_IN_VALUESET); the engine reads a stored value set's listed entry as a carried one's when it validates against it, and writes a stored code system's member with the carried value set's own entry. An entry is the one for the release a member is reported in; a code system that ignores case matches it in any case. One query for a value set created through FHIR, none for any other. Read:core/fhir/ops/concepts.py(listed_concepts,listed_entry,with_listed),ops/expand.py,ops/validate_code.py,workspace/membership.py; testscore/fhir/tests_listed_codes.py.eb957c77The FHIR CodeSystem update reads a supplement's managed properties and the inactive codes from HEAD, which it saves onto.ed8e0ea5to6c56e588: review fixes, one simplification, and taking out the engine's attribution of a stored import's entries (below); each fix with its test, and the commit messages list them.Outside
core/fhir/core/code_systems/serializers.py,constants.py,tests.py: the FHIR CodeSystem write (already in OpenConceptLab/ocl_online#452 | FHIR on stored content: CodeSystem properties and filters, full $lookup, CodeSystem $subsumes #1084's file list), on OpenConceptLab/ocl_online#798 | A FHIR update saves onto HEAD from HEAD, and its new version is made from that HEAD #1101's save onto HEAD.core/value_sets/compose.py,constants.py: the FHIR ValueSet compose check (OpenConceptLab/ocl_online#798 | A ValueSet written through FHIR keeps what its compose says #1102's) and thevalueset-supplementURL.What changes for FHIR clients
useSupplement,valueset-supplement, global packs;used-supplement, designationsource, display choice and checks, reserved codes,valueset-unclosedfor reserved spaces$lookupwith nopropertyalso listsparentandchild$validate-codeof an unknown code no longer reports aversionthe coding didn't name$expandwithincludeDefinitionrepeats the value set's extensionscompose.inactiveis the value set's own rule, andactiveOnlystays the request's$expandand$validate-codeThe whole
506f087a) merged with OpenConceptLab/ocl_online#798 | A ValueSet written through FHIR keeps what its compose says #1102's head, plus the three follow-ups and the review fixes. The merge's conflicts are resolved by keeping both sides:Collection.include_retiredbesidedeclared_supplements; the CodeSystem write's supplement handling on OpenConceptLab/ocl_online#798 | A FHIR update saves onto HEAD from HEAD, and its new version is made from that HEAD #1101's save onto HEAD; and the storage PR's newer migrations (with bounded lock waits). Every other file that differs is a follow-up's or a review fix's:core/fhir/workspace/(loader, workspace, membership, tests),core/fhir/engine/(definition, designations, expand, messages, tests),core/fhir/ops/(concepts, expand, validate_code),core/fhir/adapters/r4.py,core/fhir/stored.py,core/value_sets/compose.py,core/code_systems/(serializer and tests) andcore/fhir/tests_listed_codes.py.bbe77978: 788 of 789 pass, the 81 supplement tests and the 707 in scope; onlymetadatafails, out of scope by choice. No test changed status since9c17f79d.6c56e588, local: the IG tier 788 of 789; the two-interfaces tier 114,808 cases, 0 failing differences (FHIR's answers agree with the OCL API's on the same content); the edge, load and access tier 1,070 checks, no 5xx and no failure (its latency and row limits are set from the first staging run).Tests
6c56e588, aspr.ymlruns it: pylint 10.00; 5,374 tests OK (3 skipped) and 823 search-index tests OK; coverage 97% (FHIR 97%).core/fhir/tests_tx_supplements.py,core/fhir/workspace/tests_supplements.py,tests_reserved_codes.py,core/fhir/tests_listed_codes.py, the engine's compose check (core/fhir/engine/tests_expand.py), and the CodeSystem write's (core/code_systems/tests.py). Each review fix's test fails without its fix.Review
The supplement layer (commits 1 and 2) had three Codex defect passes, a simplification review and five later checks on its own branch. On this PR, three more passes, a simplification review and three final checks:
$expand; one case-folded index.$expand. Which stored import selected a member, in which release and through which exclusions, isn't evaluated for stored imports, so it was wrong in intersections and across releases, and cost a query per member. A possible next step.🤖 Generated with Claude Code
https://claude.ai/code/session_01AaZ4qWapJWFsFc1Xjopf9k