Skip to content

[HealthSamurai/smartbox#624] document the client-hl7B2b extension - #34

Merged
Seryiza merged 1 commit into
mainfrom
docs-b2b-client-extension-624
Aug 20, 2026
Merged

[HealthSamurai/smartbox#624] document the client-hl7B2b extension#34
Seryiza merged 1 commit into
mainfrom
docs-b2b-client-extension-624

Conversation

@Seryiza

@Seryiza Seryiza commented Aug 20, 2026

Copy link
Copy Markdown
Member

The hl7-b2b organization_id claim is not emitted automatically. Aidbox builds it from a client-hl7B2b extension on the Client plus the referenced Organization's identifier. authentication.md said no configuration was required, and the member-match test datasets still registered Basic-auth clients with Client.details.identifier, which now fail closed with 403.

  • authentication.md: Organization + Client registration example (asymmetric and secret variants), sub-extension table, claim-assembly mapping, CARIN BB payerid note, and a "claim missing" checklist.
  • bulk-member-match, provider-member-match, payer-to-payer: test datasets split into a /fhir bundle and an Aidbox-endpoint bundle carrying the Clients; token request added; examples switched from Basic to Bearer.
  • provider-access: caller identity comes from the B2B claim, not from Client.details.identifier (interop no longer reads that field).

Clients must be written through the Aidbox base endpoint. With BOX_FHIR_CORRECT_AIDBOX_FORMAT enabled, /fhir rewrites the extension's valueReference/valueUri/valueCoding into Aidbox's internal union format, which the token builder does not read, so the token is issued without the claim. Verified against aidboxone:edge with the quickstart settings: every example on the four pages was replayed end to end, and the issued JWTs carry the documented claim for client_secret and private_key_jwt.

The hl7-b2b organization_id claim is not emitted automatically. Aidbox
builds it from a client-hl7B2b extension on the Client plus the referenced
Organization's identifier. authentication.md said no configuration was
required, and the member-match test datasets still registered Basic-auth
clients with Client.details.identifier, which now fail closed with 403.

- authentication.md: Organization + Client registration example,
  sub-extension table with what each part contributes to the token, CARIN
  BB payerid note, and a "claim missing" checklist.
- bulk-member-match, provider-member-match: test datasets split into a
  /fhir bundle and an Aidbox-endpoint bundle carrying the Clients;
  examples switched from Basic to Bearer. Auth sections stay at the
  reference-page size and link to authentication.md for the token request.
- payer-to-payer: dropped its copy of the test dataset in favour of a link
  to the reference page.
- provider-access: caller identity comes from the B2B claim, not from
  Client.details.identifier (interop no longer reads that field).

Clients must be written through the Aidbox base endpoint. With
BOX_FHIR_CORRECT_AIDBOX_FORMAT enabled, /fhir rewrites the extension's
valueReference/valueUri/valueCoding into Aidbox's internal union format,
which the token builder does not read, so the token is issued without the
claim. Verified against aidboxone:edge with the quickstart settings: the
dataset bundles and registration examples were replayed end to end, and
the issued JWTs carry the documented claim for client_secret and
private_key_jwt.
@Seryiza
Seryiza merged commit 93afdb6 into main Aug 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant