October 2026 Feature Updates
October opened with a week of authentication hardening and a new self-service sign-up flow (verification codes, invitations, a bot check), then built SMART App Launch out from standalone to EHR launch: a $launch operation, launch context carried on tokens and refresh tokens, and patient/ scopes bound to one compartment. Mid-month rebuilt the server's request pipeline around typed lanes, exposed every FHIR operation as an MCP tool with a conformance suite behind it, and landed the FHIR asynchronous request pattern. The last ten days were worked largely from the new agent task board: dozens of FHIRPath functions and operators, a dozen FHIR search result parameters and prefixes, AccessPolicyV3 and DeidentificationPolicy definitions, a TestScript suite for the ONC (g)(10) test kit, and a conformance site that reports every suite. The final week, through November 1, closed out SQL on FHIR against a TestScript suite built from the specification's tests, ran the HL7 FHIRPath test suite inside the crate and fixed what it found, added _revinclude, ImplementationGuide/$install for FHIR packages, token introspection and a consent screen that grants a subset of scopes, and brought US Core 7.0.0 and CARIN Blue Button suites into CI beside the (g)(10) kit, which now runs on US Core 7.0.0.
Backend Changes
SMART App Launch: EHR launch
ClientApplication/{id}/$launchstarts an EHR launch of an app for a patient and, optionally, one of the patient's encounters. Haste Health plays the EHR: the operation saves the launch context and returns the app'slaunchUri(a newClientApplicationelement) withissandlaunchadded to its query. The launch value expires after five minutes, only a signed-in user can start one, and the same user must then authorize the app.- The authorize endpoint accepts
launchalongside thelaunchscope and resolves it before consent, so nobody is asked to approve an app for a launch that cannot be used, and anaudparameter must name the project's FHIR base URL. The token response carriespatient,encounterandneed_patient_banner, the launch context rides on the refresh token so a refreshed token stays bound to the same patient and encounter, and a user who is a patient may only launch an app for themselves. - Follow-ups from the (g)(10) work:
smart_style_urlin launch token responses, backed by asmart-style.jsonendpoint; the OpenID configuration served at the id token issuer (/w/{tenant}/{project}/.well-known/openid-configuration) with the SMART configuration'sissuermatching it; an unparseable scope redirected to the registeredredirect_uriwitherror=invalid_scopeandstateinstead of answered with a 501; andauthorize-post,permission-v1,context-banner,context-standalone-patientandcontext-styleadvertised as capabilities. - A public client may omit
client_idwhen refreshing, since the refresh token names the client it was issued to. The SMART on FHIR and client registration docs were rewritten around the flow. - The token endpoint answers as RFC 6749 writes it: a bad, expired or reused code or a PKCE verifier mismatch is
invalid_grant(400), a wrong or missing client secret or an unknownclient_idisinvalid_client(401 withWWW-Authenticate) instead ofaccess_deniedor a 500, and every response from the endpoint carriesCache-Control: no-storeandPragma: no-cache. - PRs: #1057, #1059, #1062, #1065, #1066, #1067, #1070, #1068, #1315, #1316, #1317, #1321, #1322, #1395.
Patient-scoped access
- SMART v1
patient/scopes are issued as read and search only, bound to one Patient compartment. The patient comes from the Membership's link or from the EHR launch; a patient-bound scope with no patient in context is dropped rather than issued unbound, and the response'sscopetells the client what was issued. - A search on a compartment type runs with a filter over the R4 compartment parameters, a read outside the compartment answers exactly as one that does not exist, and writes, history, system-level search, chained and
_hasparameters are refused because none of them can be bounded. Reference data that noCompartmentDefinitioncan place (shared types) stays readable as a whole. - R4's Patient
CompartmentDefinitionlistsDevicewith no parameter, so a patient scope refused every Device request andPatient/[id]/Devicefound nothing. A patch on the hl7-core package links Device to the compartment through itspatientsearch parameter, and everything that reads the definition follows: the patient-scope filter, reads outside the compartment (404),Patient/[id]/Deviceand$everything. Two (g)(10) Device checks left the known failures. - TestScript suites under
backend/testscripts/access-controlcover patient, user and system scopes and the SMART launch. A headless login script and an access-control workflow run them in CI, and the CLI gainedlogin --no-browserandadmin user set-passwordso a pipeline can sign in without a browser. - PRs: #1048, #1049, #1052, #1428.
Consent, scope ceilings and token introspection
- The scope approval page lists each requested scope with a checkbox, all checked, so the user can grant an app a subset of what it asked for;
openidand the launch context scopes stay checked because the flow needs them. The code and the token are issued for the approved scopes only, approving none counts as a denial, and the headless sign-in script can uncheck scopes, which the (g)(10) limited-access scenario uses to request every US Core type and grant three. - A client's registered scopes are a ceiling checked by coverage rather than by string:
patient/*.rscoverspatient/Medication.rs, andpatient/Medication.rscoverspatient/Medication.s, while a write permission never implies a read. Six access-control TestScripts pin the granted and refused cases for patient and system scopes. POST [base]/oidc/auth/introspectlets a resource server check an access token the server issued, authenticated as a confidential client of the project. A token is active when the project's FHIR API would accept it, and the response carriesscope,client_id,exp,sub,aud,iss,fhirUserand the launch context (patient,encounter,need_patient_banner,smart_style_url); anything else answers{"active": false}. Access tokens now carryclient_id(RFC 9068) and the launch's encounter, and the SMART configuration listsintrospection_endpoint.- PRs: #1414, #1394, #1415.
Asynchronous requests
- Operation invocations accept
Prefer: respond-async: the server queues a job, answers202 Acceptedwith the job's status URL inContent-Location, and runs it in the background with exactly the permissions the request had. Every check the synchronous form makes (authentication, scopes, access policies, rate limits, that the operation exists) happens before the job is accepted. GETon the status URL answers202withX-ProgressandRetry-Afterwhile the job runs, then the response the synchronous request would have had, or the operation's own error.DELETEcancels. Results stay available for 24 hours by default, a project may have ten queued or running jobs at once, and the CORS layer exposes the headers a browser client needs.- Jobs live in a new
async_jobstable and run from the worker, which split intohaste-health worker indexingandhaste-health worker async-jobsso the two can scale on their own. - PRs: #1115, #1116, #1273, #1274, #1275, #1276.
FHIRPath
- The evaluator closed most of its gap to the specification. New functions:
all,allTrue,anyTrue,allFalse,anyFalse,subsetOf,supersetOf,distinct,isDistinct,select,single,last,tail,skip,take,union,combine,intersect,exclude,iif,not, the math functions,indexOf,substring,length,toChars,replace,matches,replaceMatches,startsWith,endsWith,contains,trace,is, everytoXandconvertsToXconversion including dates, times and quantities,now,today,timeOfDay, and$indexinside iteration functions. - New operators:
in,contains,implies,div,mod, unary+and-,&,~and!~, and ordered comparisons on strings as well as numbers. Date, DateTime, Time and Quantity literals parse, and+and-work between a date or time value and a time-valued quantity, with month ends clamped. The parser resolves string escapes (so the regexes in R4 invariants reachmatchesintact) and accepts comments. - The FHIR-specific functions (
extension,hasValue,getValue,htmlChecks,memberOf,subsumes,subsumedBy,conformsToand a realresolve) arrived behind aFHIRServicestrait; the server does not wire its terminology service into it yet. and,orandxorfollow three-valued logic for empty operands. This changes whatPatient-deceasedindexes for patients withoutdeceased[x], so existing Patient data needs a reindex.- Compiled regular expressions are cached by pattern, like the expression ASTs, and the specification's own examples run as tests in the crate.
- PRs: #1063, #1159, #1160, #1206, #1208, #1209, #1210, #1211, #1212, #1213, #1214, #1215, #1227, #1255, #1257, #1258, #1277, #1278, #1293.
FHIRPath: the HL7 test suite
- The HL7 FHIRPath test suite (1,055 cases) runs as a test of the
fhirpathcrate against aknown_failures.txtthat every fix shrinks and CI regenerates. It went in at 738 passing and ends the month at 859; what remains is filed as issues under the FHIRPath umbrella, with the fixes below coming through the task board. - Dates, dateTimes and times compare:
=,~and the ordering operators go one precision at a time, give empty when one value stops before the other, and compare offsets in UTC. DateTime literals may stop at the hour or minute (@2015-02-04T10:00), held as the engine's own partial DateTime so the FHIR model and search indexing are unchanged, and the other comparisons settle the type by name first so they run as fast as before. - Quantities: same-unit quantities compare by value and a unary minus negates one; a calendar duration keyword and its UCUM unit are one unit at week and below (
7 days = 1 week) while year and month compare only with the same unit;toString()prints1 weekand1 'wk'rather than1.0 'week'; and adding'mo','a'or a non-time unit to a date is an error rather than empty. - Numbers and collections:
+,-and*on two integers give an integer (empty on overflow) and/by zero gives empty;=and!=compare whole collections in order;positiveIntandunsignedInttake part in comparison and arithmetic; andrepeat()adds a projected item only when no equal item is already in its output, so a projection that keeps yielding new values is stopped by a 10,000 item budget per evaluation rather than running forever. - Types, variables and the parser:
is,asandofTyperesolveFHIR.andSystem.qualifiers and the System type names, with System types matching only values the engine made, as the suite requires;%sct,%loinc,%ucum,%vs-[name]and%ext-[name]are defined by the engine; and the parser accepts backtick identifiers, requires four hex digits after\u, allows line breaks in strings and whitespace before a unary minus.trim()came from an outside contributor (below), andreplaceMatches('', x)returns its input unchanged. - PRs: #1334, #1331, #1332, #1397, #1386, #1388, #1390, #1387, #1389, #1347, #1400, #1403, #1385, #1391, #1405.
FHIR search: result parameters and prefixes
_include=*andType:*expand to every reference parameter of the matched types; a system-level search resolves_includeand marks every entry'ssearch.mode;_typefilters a system-level search;_count=0returns an accurate total with no entries;_sortaccepts number, quantity and uri parameters;_summary=datadropstext, and matches trimmed by_elementsor_summarycarry theSUBSETTEDtag;_formatand_prettyare accepted on searches; and_listrestricts a search to a List's items (PostgreSQL only).- URI parameters gained
:aboveand:below. Escaped\,,\|and\$in parameter values are honored by the server and the TypeScript client, andneon a quantity negates the whole match, value and unit, on every backend. - Modifier and prefix parsing moved into shared enums used by the PostgreSQL, Elasticsearch and in-memory backends, and the in-memory backend now runs the same clause semantics as the other two.
- New TestScripts pin
:missingacross parameter types,eqon numbers with the specification's precision examples, and every quantity prefix. - PRs: #1074, #1235, #1251, #1252, #1253, #1254, #1259, #1260, #1261, #1262, #1263, #1266, #1267, #1268, #1269, #1271, #1285.
FHIR search: _revinclude, project parameters and embedded resources
_revincluderesolves from the page the backend returned, like_include: one search per directive per hop with every page id as the value, answered from the reference index and confined to the caller's compartment.:iteratefollows the referrers of what an earlier hop added in either direction, system-level searches get the same, and the bounds on included resources, results per directive and iteration depth truncate rather than fail. A base TestScript covers ten shapes of the parameter, and 42 (g)(10) checks left the known failures.- Repeated query parameters survive parsing:
_revinclude=A&_revinclude=Bkept only the last one, since the query string was collected into a map. It is now parsed as ordered pairs (an outside contribution, below), and a_searchbody is combined with the query the same way. - A project's own
SearchParameters are resolved by one resolver shared by the PostgreSQL and Elasticsearch backends and cached per process for fifteen minutes, with two early refreshes: the indexing worker indexes a batch'sSearchParameters first and drops the project's copy, and a lookup by name that misses rebuilds it once, so a new parameter is searchable as soon as it is indexed. A TestScript creates a parameter and searches by it. - Bundle
compositionandmessageselect the first entry's resource rather than a Reference, so they never matched::missing=truefound every Bundle and an id found none. Reference indexing now indexes an embedded resource as its own type and id on all three backends, and a patch narrows the two expressions toas Compositionandas MessageHeader, as R5 does. Chaining into the embedded resource is not supported. :exacton a string comparesLOWER(value)as well as the value itself, so the lowered index finds the rows while the match stays case-sensitive; the bare equality read every row of the parameter.- PRs: #1396, #1406, #1326, #1413, #1409.
Search totals
_total=estimateand_total=accurateon PostgreSQL count exactly up to a bound (10,000 rows or 100 ms for an estimate, 50,000 rows or 500 ms for accurate) before falling back to the planner's estimate, and the page corrects the result: a short page is exact, a full page is a lower bound, an empty page past the start is an upper bound. A TestScript checks the total on every page shape.- PRs: #1108, #1260.
SQL on FHIR
- A TestScript suite under
backend/testscripts/sql-on-fhir, built from the specification's test cases, runs in its own e2e workflow with the scripts that fail listed by cause inknown-failures.txt. It went in at 48 of 106 passing; the first run's failures were filed as issues, and the fixes below leave it at 89 of 108. $viewdefinition-runkeeps only resources of the view'sresourcetype (a Bundle of another type still stands for its entries); a column typed with a FHIR primitive accepts the FHIRPath System value that maps to it, so anidcolumn fedResource.id, a literal or%rowIndexno longer fails; and integer, boolean and decimal constants reach FHIRPath as primitives rather than as the choice enum that held them.- Nested
selectandunionAllare evaluated recursively per focus node (own columns, nested rows and union branches in order), andforEachOrNullover nothing gives one all-null row covering the nested columns.repeatis walked by the runner rather than by FHIRPath'srepeat(): every path from each node, each item emitted and then walked the same way, once by identity and under the 10,000 item budget, sorepeat: ["$this"]answers one row instead of hanging. - A
wherepath that evaluates to empty excludes the resource, an undefined constant is an error (400) rather than empty, and an invalid FHIRPath expression anywhere in the view answers 400 instead of 500. - PRs: #1333, #1330, #1329, #1349, #1348, #1351, #1345, #1346, #1353.
Operations
- A
GETon/$op,/[type]/$opor/[type]/[id]/$opruns the operation when itsaffectsStateis false, with the query string typed intoParametersfrom theOperationDefinition. A state-changing operation answers 405, and the destructive built-ins ($delete-refresh-token,$delete-scope,$launch,$tenant-customization) are now markedaffectsState = true. - The built-in operations'
OperationDefinitionresources are served beside a project's own through an in-memory search backend: a read of a built-in's id returns it, a type search lists it ahead of the project's, and a project definition that would shadow a built-in is refused. - Invocation responses come back at the level they were invoked at, so the typed client methods work for instance and type invocations, and
ValueSet/{id}/$expandand$validate-coderead the instance they target.$viewdefinition-runno longer needs_since: it walks the type's history, keeps each resource's current version, leaves deleted ones out, and the Binary it returns carries acontentType. - A resource that fails profile validation answers 422 with the validator's OperationOutcome, and the
structure,required,valueandinvariantissue codes map to 400; both were 500s. The CapabilityStatement lists every active constraint StructureDefinition in the project underrest.resource.supportedProfileand the project's active SearchParameters undersearchParam, and its cache expires after thirty seconds so profiles loaded later appear without a restart. - PRs: #1319, #1074, #1107, #1314, #1318.
Implementation guides
ImplementationGuide/$installinstalls a FHIR package into a project from the package registry (name@version,name@6.1.x, ornamefor the latest) or from an uploaded.tgz, with the packages it depends on, breadth first; the FHIR core and large terminology packages are skipped by default. A package's StructureDefinitions, ValueSets, CodeSystems, SearchParameters, ConceptMaps and NamingSystems are written in one transaction under their package ids, tagged with the package and recorded as anImplementationGuidenamed for it. Reinstalling replaces the installed version and deletes what it no longer has, resources the package did not install are never replaced,$uninstallreverses it, and the canonical resolver forgets the project's entries on install so installed profiles apply at once.- The install is bounded: packages come only from the configured https registry (redirects stay on it, and an empty registry URL allows uploads only), one install may fetch at most 50 packages and unpack 200 MiB, one install runs at a time per server by default, and the Free tier may start one install every two minutes, with one Free tier install a minute across all tenants. Da Vinci PDex 2.2.0, QI-Core 7.0.2 and US Core 9.0.0 fit the defaults.
- A new
fhir-packagecrate reads packages under size and file limits and talks to the registry. The CLI gainedpackage install | uninstall | list, the admin app a Packages page, the docs an Implementation Guides guide, and the US Core and (g)(10) pipelines install their packages throughhaste-health package install <folder> --no-dependenciesinstead of a script, which puts the CLI and$installunder CI. - PRs: #1416, #1418, #1420.
Profile validation
- A slice defined by its binding alone (no
fixed[x]orpattern[x]) is matched by avaluediscriminator through the codes its required value set'scomposeallows, read without expanding it, so US Core's category slices validate. Apatterndiscriminator is checked the same way asvalue, which R4 gives the same rule and R5 deprecates as a synonym; US Core 7.0.0 slices category withpatternon binding-only slices, which had failed in 89 TestScripts. fixedBoolean,fixedInteger,fixedDecimal,fixedPositiveIntandfixedUnsignedIntrefused every resource claiming the profile with "Failed to downcast value to boolean": the reflection layer'sBox<T>handed back the Box instead of its content on a downcast. A Box is now transparent, and a base TestScript creates profiles with each fixed primitive and checks that differing resources are refused.- PRs: #1402, #1412, #1426.
Error origins
OperationOutcomeErrorrecords where it came from: the construction site (track_calleron the constructors and the derivedFrom, so a?is the origin), a context trail, the source chain, and a backtrace for 5xx whenERROR_BACKTRACESis on. The type is boxed to one pointer, so theOkpath costs nothing, andanyhowis gone. Every request gets anx-request-id; failed requests are logged with method, URI, request id and origin (error for 5xx, warn for 501, debug for rejected requests) and sent to Sentry; and a database failure answers 500 instead of 400.- The errors the server raised inline in more than one place became enums:
AuthErrorfor the authentication flows (one CSRF rejection, 403 everywhere),TransactionErrorfor the shared-client case, andServerError, which keeps serde and URL causes for the log instead of formatting them into the diagnostic. - PRs: #1422, #1424.
Request pipeline
- The server's FHIR client was rebuilt around one
PipelineofMiddlewarelayers ending in aHandler, generic over a singleBackendtype that names the repository, search engine and terminology, withNextborrowing the rest of the chain so a hop costs no allocation. The old generic middleware chain infhir-clientwas removed. - A request is then dispatched to a typed lane (clinical, artifact, OperationDefinition, project auth, tenant auth, operation, capabilities), each a pipeline of its own. An interaction a lane does not serve answers not supported, and every variant is matched so a new one fails to compile unhandled.
- Writes refuse a body whose
resourceTypediffers from the URL and an update whose body id differs from the URL id. The CapabilityStatement is cached per (tenant, project) rather than process-wide, since it lists a project's custom operations, and batch entries run with the audit repository attached. - PRs: #1078, #1079, #1109, #1110, #1089, #1090.
Sign-up, invitations and roles
- Self-service sign-up and login run through a verification-code flow with an optional Cloudflare Turnstile check and rate limiting. A
logemail backend writes the codes to the server log for local development, andsignup.enabled = falseturns self-service tenant creation off on a deployment that creates tenants with the CLI. - A user a tenant creates for someone else is an invitation: the person proves they own the address and accepts or declines, and
emailVerified, which clients cannot set, is required to log in. - Writes to
Userenforce a role hierarchy: owners may modify any user, admins may modify admins and members, and a conditional update or delete needs an owner, so an admin cannot mint, demote or delete an owner. Tenant and project ids are lowercase letters and digits joined by single hyphens, at least three characters, so{tenant}--{project}is a valid subdomain label that splits back apart. - PRs: #1021, #1044, #1038, #1036, #1081, #1039.
Authentication hardening
- OIDC: only the
coderesponse type is advertised or accepted; a code issued to a PKCE request can only be redeemed with its verifier, andS256is computed as RFC 7636 writes it; a confidential grant is refused for a client with no stored secret; registered redirect URIs are regex-escaped before matching; an error raised before the redirect URI is validated is answered directly rather than redirected; the session id rotates on login, TOTP verification and the federated callback; a password change revokes the user's refresh tokens; and OAuth errors use theerroranderror_descriptionnames from RFC 6749. - Federated login verifies that the provider's id token is signed with an asymmetric algorithm by a key in its JWKS and names the configured client id in
aud. Haste Health's own id token took the same shape:audis the client,issis the project's issuer URL, and it carriesemail,fhirUser, tenant, project and role claims. - Timing: auth string comparisons are constant time, and login and password reset take the same time whether or not the account exists. HTML pages are sent uncompressed so a CSRF token cannot be read off response sizes, the MFA create route checks CSRF, and the TOTP redirect stays local.
- The wrong-guess counter for one-time sign-up and login codes lived in the session, whose per-request copies lost increments under concurrent requests, so the five-attempt cap never tripped. Guesses are now counted in the database-backed rate limiter, keyed by the code's salted hash and serialized by a per-key advisory lock, before the code is compared.
- Smaller changes: Basic auth's cached tokens live five minutes;
$evaluate-policylets only owners and admins evaluate as another user; login, expired and security issue types map to 401 and 403 instead of 500; PostgreSQL error detail stays in the log rather than the OperationOutcome; scope approval reads the client application's stored id and scope; and tenant logo uploads have a size limit. - PRs: #1024, #1026, #1027, #1030, #1041, #1042, #1043, #1045, #1047, #1053, #1054, #1055, #1056, #1064, #1082, #1083, #1084, #1085, #1086, #1087, #1088, #1091, #1093, #1094, #1327.
New resource definitions
AccessPolicyV3andAccessPolicyV3Assignmentlanded as StructureDefinitions, value sets and search parameters, with a validation lane that checks rule shapes: a constraint rule needs data and no condition, a decision rule carries no data, andfieldandobligationappear only on permit rules. Evaluation stays with the V2 engine for now.DeidentificationPolicydescribes how$deidentifywill treat elements. Each rule targets apath,typeorextension, checked against the StructureDefinitions; the parameters for each action are validated; and amergelets a policy build on a parent, with the child's rules overriding by target.- PRs: #1283, #1284.
Resource author
- The author extension on
metais a canonical (https://haste.health/fhir/Membership/<id>) rather than a Reference, since an author can be a Haste Health type that other FHIR systems reject as a reference target. The server overwrites any author a client sends, and_haste-health-authorfinds a resource by it. - PRs: #1072.
HL7v2 parser
- A malformed message is rejected as
invalid(HTTP 400) instead of indexing past the end of its bytes,MSH-2is kept as one value rather than split on the encoding characters it defines, and the empty-value marker is set only on fields that are empty. - PRs: #1040, #1112, #1113.
Document storage
- A new
document-storagecrate defines aDocumentStoragetrait for document bodies (Binary content, attachments, exports) with a Google Cloud Storage provider behind a feature flag. Nothing in the server uses it yet. - PRs: #1077.
Product and UX
MCP: operations as tools
- Every invocable operation is an MCP tool named
fhir_op_<code>, discovered fromOperationDefinitionresources, so a project's own Deno-backed operations show up intools/listwith a typed schema and no registration. Tools carry annotations (read-only, destructive, idempotent) and human titles, and the FHIR version comes from the token. - The server sends
instructionson initialize: the order to work in, FHIR search syntax, and when to confirm with the user. Search parameter descriptions include each type's value syntax, an example and the modifiers it accepts, and a mistyped resource type gets the closest supported one as a suggestion. - A tool that runs and fails returns a result with
isErrorand every OperationOutcome issue on its own line with its element path, so a model can correct the call. Unknown tools and server faults stay JSON-RPC protocol errors, authentication and rate-limit failures stay HTTP statuses, and Bundle schemas no longer requireentry. - A specification-based conformance suite in
frontend/packages/mcp-conformanceruns the protocol and every listed tool against a live server in CI, with the known gaps in a continue-on-error step. - PRs: #996, #1096, #1097, #1098, #1099, #1100, #1101, #1102, #1103, #1104, #1105, #1106, #1111, #1114.
Admin console
- Operation invocation panels in the components package build an input form from an
OperationDefinition's parameters at the system, type or instance level, run it, and show the output parameters. The console and the resource editor both use them. - A launch button on Patient and Encounter views starts a SMART EHR launch of any
ClientApplicationwith alaunchUri, opening the app in a new tab signed in as the console user. The ViewDefinition view's state handling was fixed, and console routes refuse resource types and ids that are not valid before joining them into a URL. - The admin app is deployed to Cloudflare Workers by a hand-started release workflow, and a Packages page installs, lists and uninstalls FHIR packages.
- PRs: #1058, #1069, #1076, #1095, #1080, #1416.
Website
- The homepage was restyled and then laid out as a product grid: nine feature tiles, an agent session walkthrough, a conformance grid, and a facts plugin that pulls resource-type, search-parameter, check and MCP-tool counts from the generated reports at build time. The contact and pricing pages followed the new system, and the social card is generated by a script.
- Conformance moved from one core page to a page per suite (FHIR R4 core, US Core, ONC (g)(10), SMART access control) plus an overview. A
test-suitesgenerate step turns each suite's TestReports into static JSON, and the homepage's automated-checks figure is the total across suites. - SQL on FHIR and CARIN Blue Button got conformance pages of their own, the US Core page groups its profile scripts by version, and suite pages render each known gap's reason with its issue link and say whether gaps are skipped or run and expected to fail. For a suite whose known failures still run in CI, a listed script that passes is no longer shown as a gap.
- PRs: #1019, #1037, #1117, #1295, #1354, #1410, #1425.
TypeScript client
- The HTTP client refuses a request whose URL resolves outside the FHIR base, so a resource type or id taken from a browser route cannot send the bearer token to another origin or path. Query parsing honors escaped separators.
- PRs: #1095, #1263.
Platform and Runtime
Indexing watermark and sequence index
max_safe_seqmakes one pass overpg_locksgrouped by pid instead of a self-join that rescanned the lock table once per registrant: 20 to 170 ms per call became 0.8 ms under the same load. The registration marker lock now blocks instead of silently dropping a writer out of the watermark, and the indexing loop's idle sleep is configurable (poll_interval_ms).- The resources sequence index leads with (tenant, project, sequence). A poll for a caught-up project whose sibling in the same tenant was a million rows ahead read about 805k buffers for zero rows; it now reads six.
- PRs: #1018, #1023.
Search backend fixes
_countand_offsetare capped at what the backends accept, and wildcard characters in string searches are escaped on both Elasticsearch and PostgreSQL (the PostgreSQL fix came from an outside contributor, below), with a TestScript pinning the behaviour.- A PostgreSQL B-tree entry must fit in a third of a page, and a long string such as a
ValueSet.descriptiondoes not: the CARIN Blue Button package has five, and inserting them stalled the project's indexing for good. The string prefix index is now overLOWER(LEFT(value, 512)), with the prefix and:exactclauses comparing that expression (a longer prefix compares the whole value, and:containskeeps the trigram index over the whole value). A batch insert that PostgreSQL rejects for its data (SQLSTATE classes 22, 23 and 54) is retried one resource per transaction and the rejected ones are parked where$indexing-errorslists them, rather than failing the batch on every pass. - PRs: #1025, #1046, #1264, #1427.
Validation performance
- Profile validation looks up each slice's discriminator definition once, on first use, and reuses it for the other values instead of walking the StructureDefinition per value. A benchmark and slicing tests came with it.
- PRs: #1288.
Custom operation runtime
- The Deno pool worker enters its tokio runtime for the whole loop, so warm isolates built between jobs no longer abort the process when V8 posts a delayed task.
- PRs: #1092.
Testing
- Property tests (
proptest) cover the pure parsing and range code in six crates, with FHIR primitive generators behind atestingfeature. They found and fixed four bugs: short years were not padded, impossible days such as2023-02-30now carry into the next month instead of failing, number range bounds lost their rounding tolerance above about seven significant digits, and a search number written with an exponent (1e2) got the implicit range of a plain integer. - The TestScript runner gained HTTP-level assertions (
responseCode,headerField,contentType), plain HTTP requests for URLs that are not FHIR interactions, and a poll-while extension that repeats a request while its status matches and honorsRetry-After. An async-requests TestScript uses all three. backend/testscripts/g10holds 441 TestScripts for the checks of the ONC (g)(10) Standardized API test kit that a TestScript can express: SMART standalone, limited and EHR launch, the US Core 7 Single Patient API, Bulk Data, and v1 and fine-grained scopes. Aknown-failures.txtlists what does not pass yet, and a dedicated workflow runs the suite on the PostgreSQL backend.- The e2e workflows share one build of the server across every suite, so no suite runs a binary built with different compiler settings.
- The US Core TestScripts moved under
backend/testscripts/us-core/<version>, each naming the version it tests, and run in their own workflow on both search backends: 247 for 9.0.0 (218 examples, 29 profiles) and 241 for 7.0.0, whose package is installed exactly as HL7 publishes it. The (g)(10) suite runs against US Core 7.0.0, one of the versions the program certifies, waits for the CapabilityStatement to list the 46 US Core 7 profiles before thesupportedProfilecheck, and asks for_count=1000on searches that can match more than one page, so a check no longer depends on which 50 results come first. backend/testscripts/carin-bb/2.2.0tests the CARIN Blue Button 2.2.0 package, added underartifacts/r4exactly as HL7 publishes it: every example it publishes (42) written with its profile claimed, and one conformance TestScript per profile the guide's server CapabilityStatement lists (11), each filling the profile's required and must-support elements and running every search parameter the guide adds. All 53 pass on PostgreSQL, in their own workflow.- The runner's
--index-wait-msalso waits before an operation, since$everything,$expandand$viewdefinition-runsearch for what they return, and tracks only the latest write per resource. An action that cannot run (a read of a fixture that a refused create never produced) fails its test in the TestReport instead of ending the run with no report, so--allow-failurecovers it and the website shows what happened. - PRs: #1118, #1282, #1294, #1289, #1410, #1412, #1419, #1421, #1425, #1352, #1423.
Artifacts, Tooling, and Maintenance
Releases and distribution
- Every release sets one version across the Cargo workspace and the pnpm packages, and the login pages show it as a watermark. Linux binaries are static musl builds for x86_64 and arm64, with OpenSSL gone from the dependency tree, alongside Apple Silicon.
- The CLI is on npm as
haste-health: a wrapper package picks the binary for the platform. The README and CLI docs cover the install. release-plz no longer pushes a tag per crate when it publishes; the repository is versioned by its own release tags. - PRs: #1031, #1032, #1033, #1034, #1035, #1328.
Agent task board
AGENTS.md, imported byCLAUDE.md, carries the protocol for coding agents working the issue board: onlyready-for-agentissues are eligible, one PR per issue againstmain, proposals are filed asagent-proposed, and anything security-sensitive goes to the private repository. New issue templates require machine-checkable acceptance criteria, and labeling an issueready-for-agentfires a workflow that dispatches it. Most of the FHIRPath and search PRs above came through it.
Dependency audits
- An audit autofix workflow opens a PR when the cargo, frontend or Docker image audit fails on
main, and leaves that audit alone until the PR is merged or closed; nine such PRs merged this month (quinn-proto, rustls, ctutils, handlebars, storybook, body-parser, multer, undici, zstd, follow-redirects and joi). When the autofix could not reach zstd, which arrives through rust-embed's compression feature, include-flate and pulldown-cmark were bumped by hand. The cargo audit scans the lockfile and its ignores moved to.cargo/audit.toml, andcrypto-bigintis ignored until jsonwebtoken moves to elliptic-curve 0.14. - PRs: #1060, #1061, #1071, #1073, #1075, #1265, #1270, #1280, #1029, #1162, #1290, #1393, #1399, #1408.
Dependency upgrades
- sqlx moved to a git pin of upstream
mainfor a dangling-transaction fix. The unusedwal-workercrate was removed, and backend and frontend dependencies were brought current across several Dependabot rounds. - PRs: #1015, #1016, #1020, #1050, #1051, #1204, #1291.
CI hygiene
- GitHub Actions are pinned to commit SHAs, the Rust toolchain is pinned for clippy so a new release cannot fail PRs, and three rounds of Sonar fixes went in across the frontend packages and the server, the last for the package install code.
- PRs: #1028, #1017, #1022, #1418.
Docs
- The SMART on FHIR, client registration, federated login and refresh grant pages were rewritten for the launch work, asynchronous requests and the
[signup]configuration got pages of their own, and the OAuth error and MCP endpoint docs were corrected. Token introspection and implementation guides got pages, and every package on npm (the 19@haste-healthlibraries, the 8 FHIR artifact packages and the CLI) and every crate on crates.io (26) got a README of the same shape: what it does and where it sits in the stack, install, a usage example taken from its own code or tests, and links to the API reference, the source and the docs. - PRs: #1068, #1064, #1081, #1276, #1035, #1392, #1415, #1416.
Standalone Commits (No PR Link)
- Agent task board:
AGENTS.mdand theCLAUDE.mdimport, the issue templates, and theready-for-agentpickup workflow. - CI: workflows renamed into
test_*,release_*andaudit_*groups, Postgres pulled frommirror.gcr.io, and audit autofix adjustments. - Tests: a TestScript for
LIKEwildcards in string searches, plus clippy and borrow fixes in the search crates and the HL7v2 parser. - CLI: the
fhirpathandapicommands read a multi-line resource from stdin, andhaste-health profile create | list | show | use | deletereplacesconfig create-profileandconfig show-profile: every prompt can be passed as an option so a script can create a profile, and client secrets, passwords and tokens live in~/.haste_health/.secrets.tomlrather thanconfig.toml. - MCP conformance: operation tool cases, and a fix to the documentation release workflow.
- npm: publish config for the
haste-healthpackage, and the TypeScript CLI made private. - Small backend follow-ups: the server client's remaining unimplemented typed methods filled in, and a formatting pass.
- Version bumps: automated since #1031, from
841f36ef4(0.126.3) to25f1ba895(0.129.1).
Contributors
Thanks to masyarakatai for escaping %, _ and backslash in PostgreSQL string searches (#1264): the generated LIKE predicates now carry an explicit ESCAPE clause, exact-match values are left as they are, and unit tests cover both.
Thanks to huong8373tt-beep for the FHIRPath trim() function (#1391): it trims spaces, tabs, carriage returns and line feeds at either end, leaves non-breaking spaces alone, errors on a collection, and let six of the HL7 suite's tests out of the known failures.
Thanks to murtaza-motorwala for preserving repeated query parameters in FHIR requests (#1406): a search with two _revinclude directives kept only the last one, since the query string was collected into a map, and it is now parsed as ordered pairs, for _search bodies as well.
