Repository navigation
Directory: NDH STU2 CapabilityStatement, directory options first, IG options on a switch - #47
Merged
Merged
Conversation
…ing it The page fell back on the NDH 1.0.0-ballot (2022) CapabilityStatement, which offers the parameters STU2 removed (access-control-mechanism, dynamic-registration-trust-profile). It now ships STU2's ndh-server statement (2.0.0-ballot, CI build of 2026-11-16) as wwwroot/ndh/CapabilityStatement-ndh-server-2.0.0-ballot.json, tags IG-only options "(NDH STU2)", and names the file in one place, UdapEdConstants.NationalDirectory, for the WebAssembly and MAUI loaders. In the published WebAssembly build the Firely parser throws IndexOutOfRangeException (FhirJsonNode.deriveMainName) on the statement's _searchInclude/_searchRevInclude/_supportedProfile members, so the deployed page failed on load; Debug builds parse it fine. The loader drops the _-prefixed members first (nothing reads those extensions) and carries on without the IG fallback if loading still fails. UtilityTests copies the file into its output and checks it is STU2 without the removed parameters; FhirUtilityTests reads it instead of a path in the local FHIR package cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ptions" is on The pickers now come from the directory's /metadata alone. The switch adds the NDH STU2 IG options it does not list, greyed, for testing what a directory should support; turning it off drops any checked IG-only include. The IG stays the full fallback when /metadata cannot be read. Read the IG CapabilityStatement with System.Text.Json. The Firely parser still threw IndexOutOfRangeException on it in the published WebAssembly build after the primitive extensions were stripped, so the IG options never loaded on the deployed site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes the National Directory page on the deployed site and makes the directory's own CapabilityStatement the authority.
IndexOutOfRangeException(FhirJsonNode.deriveMainName) on the IG CapabilityStatement. That took/ndhdown. The IG statement is now read with System.Text.Json; the page only needs resource types, search parameter names and includes.ndh-serverCapabilityStatement (2.0.0-ballot) in place of the 1.0.0-ballotnational-directory-api-serverone. Its location is named once inUdapEdConstants.NationalDirectoryand shared by the WASM and MAUI lookups and the tests./metadataalone. Show NDH STU2 options adds the IG options it does not list, greyed and tagged, for testing what a directory should support. Turning it off drops any checked IG-only include. The IG is the full fallback when/metadatacannot be read.Tests:
DirectorySearchTests, 16 passing, including reading the shipped STU2 file. Checked on a local Release publish: no console errors; with the switch off CMS offersOrganization:partof, with it onOrganization:endpoint (NDH STU2)is added.🤖 Generated with Claude Code