Skip to main content

10 posts tagged with "Feature Update"

Feature update posts

View All Tags

October 2026 Feature Updates

· 40 min read
Ralph Parkison
Haste Health maintainer

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}/$launch starts 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's launchUri (a new ClientApplication element) with iss and launch added 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 launch alongside the launch scope and resolves it before consent, so nobody is asked to approve an app for a launch that cannot be used, and an aud parameter must name the project's FHIR base URL. The token response carries patient, encounter and need_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_url in launch token responses, backed by a smart-style.json endpoint; the OpenID configuration served at the id token issuer (/w/{tenant}/{project}/.well-known/openid-configuration) with the SMART configuration's issuer matching it; an unparseable scope redirected to the registered redirect_uri with error=invalid_scope and state instead of answered with a 501; and authorize-post, permission-v1, context-banner, context-standalone-patient and context-style advertised as capabilities.
  • A public client may omit client_id when 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 unknown client_id is invalid_client (401 with WWW-Authenticate) instead of access_denied or a 500, and every response from the endpoint carries Cache-Control: no-store and Pragma: 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's scope tells 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 _has parameters are refused because none of them can be bounded. Reference data that no CompartmentDefinition can place (shared types) stays readable as a whole.
  • R4's Patient CompartmentDefinition lists Device with no parameter, so a patient scope refused every Device request and Patient/[id]/Device found nothing. A patch on the hl7-core package links Device to the compartment through its patient search parameter, and everything that reads the definition follows: the patient-scope filter, reads outside the compartment (404), Patient/[id]/Device and $everything. Two (g)(10) Device checks left the known failures.
  • TestScript suites under backend/testscripts/access-control cover 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 gained login --no-browser and admin user set-password so a pipeline can sign in without a browser.
  • PRs: #1048, #1049, #1052, #1428.
  • 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; openid and 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/*.rs covers patient/Medication.rs, and patient/Medication.rs covers patient/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/introspect lets 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 carries scope, client_id, exp, sub, aud, iss, fhirUser and the launch context (patient, encounter, need_patient_banner, smart_style_url); anything else answers {"active": false}. Access tokens now carry client_id (RFC 9068) and the launch's encounter, and the SMART configuration lists introspection_endpoint.
  • PRs: #1414, #1394, #1415.

Asynchronous requests​

  • Operation invocations accept Prefer: respond-async: the server queues a job, answers 202 Accepted with the job's status URL in Content-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.
  • GET on the status URL answers 202 with X-Progress and Retry-After while the job runs, then the response the synchronous request would have had, or the operation's own error. DELETE cancels. 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_jobs table and run from the worker, which split into haste-health worker indexing and haste-health worker async-jobs so 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, every toX and convertsToX conversion including dates, times and quantities, now, today, timeOfDay, and $index inside 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 reach matches intact) and accepts comments.
  • The FHIR-specific functions (extension, hasValue, getValue, htmlChecks, memberOf, subsumes, subsumedBy, conformsTo and a real resolve) arrived behind a FHIRServices trait; the server does not wire its terminology service into it yet.
  • and, or and xor follow three-valued logic for empty operands. This changes what Patient-deceased indexes for patients without deceased[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 fhirpath crate against a known_failures.txt that 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() prints 1 week and 1 'wk' rather than 1.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; positiveInt and unsignedInt take part in comparison and arithmetic; and repeat() 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, as and ofType resolve FHIR. and System. 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), and replaceMatches('', 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=* and Type:* expand to every reference parameter of the matched types; a system-level search resolves _include and marks every entry's search.mode; _type filters a system-level search; _count=0 returns an accurate total with no entries; _sort accepts number, quantity and uri parameters; _summary=data drops text, and matches trimmed by _elements or _summary carry the SUBSETTED tag; _format and _pretty are accepted on searches; and _list restricts a search to a List's items (PostgreSQL only).
  • URI parameters gained :above and :below. Escaped \,, \| and \$ in parameter values are honored by the server and the TypeScript client, and ne on 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 :missing across parameter types, eq on 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​

  • _revinclude resolves 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. :iterate follows 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=B kept 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 _search body 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's SearchParameters 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 composition and message select the first entry's resource rather than a Reference, so they never matched: :missing=true found 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 to as Composition and as MessageHeader, as R5 does. Chaining into the embedded resource is not supported.
  • :exact on a string compares LOWER(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=estimate and _total=accurate on 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 in known-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-run keeps only resources of the view's resource type (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 an id column fed Resource.id, a literal or %rowIndex no longer fails; and integer, boolean and decimal constants reach FHIRPath as primitives rather than as the choice enum that held them.
  • Nested select and unionAll are evaluated recursively per focus node (own columns, nested rows and union branches in order), and forEachOrNull over nothing gives one all-null row covering the nested columns. repeat is walked by the runner rather than by FHIRPath's repeat(): every path from each node, each item emitted and then walked the same way, once by identity and under the 10,000 item budget, so repeat: ["$this"] answers one row instead of hanging.
  • A where path 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 GET on /$op, /[type]/$op or /[type]/[id]/$op runs the operation when its affectsState is false, with the query string typed into Parameters from the OperationDefinition. A state-changing operation answers 405, and the destructive built-ins ($delete-refresh-token, $delete-scope, $launch, $tenant-customization) are now marked affectsState = true.
  • The built-in operations' OperationDefinition resources 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}/$expand and $validate-code read the instance they target. $viewdefinition-run no 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 a contentType.
  • A resource that fails profile validation answers 422 with the validator's OperationOutcome, and the structure, required, value and invariant issue codes map to 400; both were 500s. The CapabilityStatement lists every active constraint StructureDefinition in the project under rest.resource.supportedProfile and the project's active SearchParameters under searchParam, and its cache expires after thirty seconds so profiles loaded later appear without a restart.
  • PRs: #1319, #1074, #1107, #1314, #1318.

Implementation guides​

  • ImplementationGuide/$install installs a FHIR package into a project from the package registry (name@version, name@6.1.x, or name for 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 an ImplementationGuide named for it. Reinstalling replaces the installed version and deletes what it no longer has, resources the package did not install are never replaced, $uninstall reverses 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-package crate reads packages under size and file limits and talks to the registry. The CLI gained package 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 through haste-health package install <folder> --no-dependencies instead of a script, which puts the CLI and $install under CI.
  • PRs: #1416, #1418, #1420.

Profile validation​

  • A slice defined by its binding alone (no fixed[x] or pattern[x]) is matched by a value discriminator through the codes its required value set's compose allows, read without expanding it, so US Core's category slices validate. A pattern discriminator is checked the same way as value, which R4 gives the same rule and R5 deprecates as a synonym; US Core 7.0.0 slices category with pattern on binding-only slices, which had failed in 89 TestScripts.
  • fixedBoolean, fixedInteger, fixedDecimal, fixedPositiveInt and fixedUnsignedInt refused every resource claiming the profile with "Failed to downcast value to boolean": the reflection layer's Box<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​

  • OperationOutcomeError records where it came from: the construction site (track_caller on the constructors and the derived From, so a ? is the origin), a context trail, the source chain, and a backtrace for 5xx when ERROR_BACKTRACES is on. The type is boxed to one pointer, so the Ok path costs nothing, and anyhow is gone. Every request gets an x-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: AuthError for the authentication flows (one CSRF rejection, 403 everywhere), TransactionError for the shared-client case, and ServerError, 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 Pipeline of Middleware layers ending in a Handler, generic over a single Backend type that names the repository, search engine and terminology, with Next borrowing the rest of the chain so a hop costs no allocation. The old generic middleware chain in fhir-client was 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 resourceType differs 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 log email backend writes the codes to the server log for local development, and signup.enabled = false turns 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 User enforce 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 code response type is advertised or accepted; a code issued to a PKCE request can only be redeemed with its verifier, and S256 is 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 the error and error_description names 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: aud is the client, iss is the project's issuer URL, and it carries email, 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-policy lets 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​

  • AccessPolicyV3 and AccessPolicyV3Assignment landed 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, and field and obligation appear only on permit rules. Evaluation stays with the V2 engine for now.
  • DeidentificationPolicy describes how $deidentify will treat elements. Each rule targets a path, type or extension, checked against the StructureDefinitions; the parameters for each action are validated; and a merge lets a policy build on a parent, with the child's rules overriding by target.
  • PRs: #1283, #1284.

Resource author​

  • The author extension on meta is 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-author finds 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-2 is 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-storage crate defines a DocumentStorage trait 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 from OperationDefinition resources, so a project's own Deno-backed operations show up in tools/list with 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 instructions on 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 isError and 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 require entry.
  • A specification-based conformance suite in frontend/packages/mcp-conformance runs 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 ClientApplication with a launchUri, 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-suites generate 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_seq makes one pass over pg_locks grouped 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​

  • _count and _offset are 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.description does not: the CARIN Blue Button package has five, and inserting them stalled the project's indexing for good. The string prefix index is now over LOWER(LEFT(value, 512)), with the prefix and :exact clauses comparing that expression (a longer prefix compares the whole value, and :contains keeps 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-errors lists 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 a testing feature. They found and fixed four bugs: short years were not padded, impossible days such as 2023-02-30 now 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 honors Retry-After. An async-requests TestScript uses all three.
  • backend/testscripts/g10 holds 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. A known-failures.txt lists 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 the supportedProfile check, and asks for _count=1000 on 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.0 tests the CARIN Blue Button 2.2.0 package, added under artifacts/r4 exactly 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-ms also waits before an operation, since $everything, $expand and $viewdefinition-run search 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-failure covers 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 by CLAUDE.md, carries the protocol for coding agents working the issue board: only ready-for-agent issues are eligible, one PR per issue against main, proposals are filed as agent-proposed, and anything security-sensitive goes to the private repository. New issue templates require machine-checkable acceptance criteria, and labeling an issue ready-for-agent fires 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, and crypto-bigint is 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 main for a dangling-transaction fix. The unused wal-worker crate 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-health libraries, 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.
  • Agent task board: AGENTS.md and the CLAUDE.md import, the issue templates, and the ready-for-agent pickup workflow.
  • CI: workflows renamed into test_*, release_* and audit_* groups, Postgres pulled from mirror.gcr.io, and audit autofix adjustments.
  • Tests: a TestScript for LIKE wildcards in string searches, plus clippy and borrow fixes in the search crates and the HL7v2 parser.
  • CLI: the fhirpath and api commands read a multi-line resource from stdin, and haste-health profile create | list | show | use | delete replaces config create-profile and config 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.toml rather than config.toml.
  • MCP conformance: operation tool cases, and a fix to the documentation release workflow.
  • npm: publish config for the haste-health package, 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) to 25f1ba895 (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.

September 2026 Feature Updates

· 12 min read
Ralph Parkison
Haste Health maintainer

September opened with dependency upgrades and a round of Elasticsearch indexing work (strict mappings, byte-sized bulk batches, per-tenant concurrency), then spent its middle weeks on two structural changes: a PostgreSQL search backend that runs alongside Elasticsearch, and a single shared artifacts/ directory with a patching pipeline for upstream HL7 files. The last week filled in the search surface on top of that backend (_include, chained parameters, POST _search, Patient/$everything), added a core TestScript for every resource type, and closed with a rewritten admin console built around one command bar.

Backend Changes​

PostgreSQL search backend​

  • A new pg_search module in fhir-search implements the SearchEngine trait on PostgreSQL, selected with HASTE_SEARCH.backend=postgres and indexing into its own database and connection pool. It covers the number, date, string, token, quantity, reference, and URI parameter types, with its own schema migration and indexing path.
  • Where a parameter is stored depends on whether it can repeat. A singular parameter becomes a scalar column on its resource type's table (r4_patient_idx), which is what lets an index answer ordered comparisons, prefix matches, and sorts. A repeating one becomes a row per value in a shared per-type table (r4_param_token_idx), keyed by a hashed parameter identity. Every table points back to an anchor row through a BIGINT res_key, so only the anchor carries tenant, project, type, and id.
  • Cardinality is decided at build time: a new generate search-param-cardinality command resolves each SearchParameter's FHIRPath expression against the StructureDefinition snapshots, per resource type, and emits a compiled table of single-valued parameters. Anything it cannot prove singular goes to the shared tables, since a scalar column would silently drop extra values.
  • PRs: #974, #986, #987, #988, #989.

Chained search parameters​

  • The PostgreSQL backend now supports chains such as Observation?subject:Patient.name=Smith. Each reference followed is a correlated EXISTS over the referenced resource's anchor row, nested one level per link, so the planner picks the join order from statistics and no capped id list can silently drop matches.
  • A reference with several target types needs a :Type modifier, the modifier must be one of the declared targets, and chain depth is capped. Chained search is PostgreSQL-only for now, with its own TestScript suite.
  • PRs: #1014.

_include, _revinclude, and POST _search​

  • A new search_includes middleware adds the resources a page of matches points at. It runs above the search backend, so it works on both Elasticsearch and PostgreSQL: references are deduplicated to distinct (type, id) pairs and read by primary key, which bounds the cost by the page instead of the corpus. :iterate follows up to two hops, and a per-search cap on included resources truncates instead of failing.
  • Included entries now go through the same access-policy check a direct read would face, so an include cannot return a resource the caller could not read, and _elements filtering applies to match entries only.
  • POST [base]/_search and POST [base]/{type}/_search accept form-encoded parameters, combined with any in the query string. The TypeScript client gained a matching option to send searches as POST, which keeps identifiers out of URLs.
  • PRs: #997, #999, #1012, #1013.

Patient $everything​

  • Patient/{id}/$everything returns the patient and every resource in their compartment as one searchset Bundle. The resource types and linking parameters come from the R4 Patient CompartmentDefinition, so nothing hard-codes a list of clinical types.
  • One search per (type, parameter) pair runs through the normal client, so access policies, scopes, and auditing apply as they would to the equivalent hand-written searches. _count, _type, _since, start, and end are supported, results are deduplicated, and a hard entry ceiling keeps one request from becoming a bulk export.
  • PRs: #995.

Versionless FHIR routes​

  • The FHIR endpoint dropped its version segment: /w/{tenant}/{project}/api/v1/fhir/r4 is now /w/{tenant}/{project}/api/v1/fhir, with the FHIR version treated as a property of the project. The same string is the token aud, so tokens issued against the old path are no longer valid. The TypeScript client, OpenAPI generator, and docs were updated to match.
  • The root and type-level route handlers were merged into one.
  • PRs: #985, #984.

Access policy assignments and federated login​

  • The token route now resolves a user's policies through AccessPolicyV2Assignment resources. Policies that still name the user in the deprecated AccessPolicyV2.target keep applying until they are migrated.
  • A new Project.identityProviderSetting lets a project list default access policies per identity provider. The first time a user signs in through that provider, one assignment per policy is created against their new Membership.
  • The federated callback now verifies state, surfaces the provider's error response when an authorization request is rejected, and fills the new user's name and email from the id token's profile and email claims when present.
  • PRs: #980, #982, #983.

Subscription tiers in one place​

  • A new subscription crate is the single source for what each tier allows: the request budget the rate limiter enforces, per-type resource caps, whether a tenant may set its own branding, and the price and support terms. Requests are weighted by what they cost the server (a write costs 25 points, a search 6, a read 1).
  • haste-health subscription export writes the table to JSON for the website's pricing page, with a check mode that fails when the published file is out of date, so prices cannot drift from enforced limits.
  • PRs: #1000.

HL7v2 over MLLP​

  • The hl7v2 CLI group gained a hardened listen command (connection limit, idle and partial-message timeouts, graceful shutdown) and a send command that waits for the acknowledgement.
  • The listener now answers with a real ACK message that echoes the sender's MSH-10 in MSA-2, using AA, AE, or AR to tell the sender whether to retry, instead of a bare control byte that interface engines treat as a failure.
  • The CLI's cached access token is now refreshed a minute before it expires, which long-running processes like the listener depend on.
  • PRs: #998, #1004.

Product and UX​

Admin console rewrite​

  • The admin app's resource views were rebuilt as a console with a single command bar. Everything it runs is a verb plus a target, so GET Patient?name=Smith and DELETE Patient?name=Smith are the same target with different consequences, and conditional writes need no separate shape. The workspace picks its view (results, resource, history, mutation editor) from the target level and the response.
  • Follow-ups added resource-type and panel headers, a form view built from the resource's StructureDefinition, and an inline project-creation form on the system landing page so a first sandbox needs no trip through the raw editor.
  • PRs: #1006, #1007, #1009.

FHIR search input with autocomplete​

  • A new FHIRSearchInput component in the components package completes resource types at the root, search parameters after the ?, modifiers and reference target types after a :, and prefixes or codes after the =, including the parameters reachable through a chain. It ships with syntax highlighting, a results table, and a useSearch hook, and is the editor behind the console's command bar.
  • PRs: #1005.

Access policy assignment UI​

  • The resource editor gained an assignments view for attaching access policies to memberships, client applications, and operations through AccessPolicyV2Assignment.
  • PRs: #981.

Platform and Runtime​

Search indexing: project-scoped cursors and sequence fixes​

  • The tenant-wide indexing cursor was replaced by a search_index_locks table with one row per (tenant, project, backend). Projects now index independently, and separate search backends keep separate progress markers. Existing projects inherit their tenant's Elasticsearch position.
  • The sequence functions behind the indexing watermark were rewritten to avoid catalog scans and to fix two skipped-row cases: a first-ever write that took no lock, and a lock-key filter that stopped matching once the sequence passed 2^32.
  • PRs: #1003, #971.

Elasticsearch indexing throughput​

  • _bulk requests are now batched by byte size (targeting 10MB) instead of document count, with each document serialized once and the same bytes sent on the wire.
  • The index mapping became strict, replica count is preserved across a rebuild, and the number of tenants indexed concurrently in one poll is configurable.
  • PRs: #967, #968, #969.

Search modifier fixes​

  • Modifier handling was pulled into a shared query module in fhir-search and corrected across the Elasticsearch and PostgreSQL clause builders for every parameter type.
  • PRs: #992.

Core TestScripts and conformance coverage​

  • backend/testscripts/core now holds a TestScript for every R4 resource type plus the Haste Health types, 155 in all, run in CI by a dedicated workflow. The website's conformance section gained a test-coverage page built from them.
  • The end-to-end workflow runs as a matrix over both search backends, and a separate workflow exercises HL7v2 ingest and replay.
  • The TestScript runner now honors requestHeader entries, with variables evaluated in header values.
  • PRs: #992, #993, #994, #991, #976.

Client and runtime internals​

  • The Rust HTTP FHIR client supports HTTP Basic authentication alongside bearer tokens.
  • Each ResourceType can deserialize its resource directly from raw bytes, transaction processing collects references by walking the entry in place, and the FHIRPath evaluator's allocation context moved to a synchronous mutex.
  • The server's listen port moved from a CLI flag into configuration (haste.toml and HASTE_* variables).
  • PRs: #975, #970, #973, #972, #990.

Artifacts, Tooling, and Maintenance​

Centralized artifacts​

  • FHIR artifacts (profiles, search parameters, terminology, operations, test data) moved to a single top-level artifacts/ directory read by both the Rust and TypeScript stacks, removing the second copy and roughly 1.7 million lines of duplicated JSON. Each package is both an npm package in the frontend workspace and a source of embedded resources for the backend.
  • PRs: #977, #978.

Artifact patching​

  • A new artifact-patcher crate changes upstream HL7 files without editing them. A package opts in with a patches/manifest.toml; RFC 6902 JSON Patch files target a resource by type and id or url, Rust rules run over every resource, and the result is written as .min.json.
  • haste-health artifacts build produces the outputs and artifacts diff lists every change from upstream, since each edit is recorded as it is applied.
  • PRs: #979.

Dependency upgrades​

  • Backend crates, frontend packages, Storybook, and the website's Docusaurus stack were all brought up to date, followed by a batch of Dependabot frontend updates at month end.
  • PRs: #963, #964, #965, #966, #1015.

Docs and website​

  • The generated FHIR reference pages were rebuilt on a set of FhirModel components (element tree, search parameters, model index), and the configuration, search, and Docker Compose docs were revised for the new search backend options.
  • PRs: #994, #1001, #1002, #1008.
  • Docs: rewritten platform architecture and access control pages, an admin app guide and README update, and a README for the artifacts/ directory.
  • Website: a new social card, header and margin adjustments, and the test-coverage page wired into the deploy.
  • CI: the core TestScripts workflow added on main, and Haste Health artifacts included in the search-parameter cardinality analysis.
  • Build/deploy: Docker Compose file updates, base image and audit workflow bumps, and a Wrangler bump.
  • Small backend follow-ups: a fix for system-level invocation in the HTTP client, a CORS change to mirror the request, and removal of an outdated test.
  • Version bumps: d87db8dc2.

Contributors​

Thanks to Luni-4 for continuing the clippy remediation into the remaining crates: the first pass over the server crate (#960), and fhir-generated-ops (#932), which fixed the lints at the source by changing the operation codegen.

August 2026 Feature Updates

· 12 min read
Ralph Parkison
Haste Health maintainer

August opened with a run of PostgreSQL storage internals and search-correctness fixes — batched transactional writes, Elasticsearch index migrations, and stricter _count/_offset parsing — running alongside the tail end of Luni-4's clippy remediation effort from July, then pivoted midmonth to a rebuilt MCP and OpenAPI surface and a hardened custom-operation runtime, before closing the month with tenant white-labeling, a from-scratch CLI OAuth flow, and ViewDefinition patient/group scoping.

Backend Changes​

ViewDefinition patient/group scoping​

  • A new compartment.rs module in sql-on-fhir resolves patient/group input parameters on a ViewDefinitionRun into a flat, deduplicated list of Patient/{id} references, expanding Group membership to its Patient members and fetching only resources within that compartment via the Patient CompartmentDefinition's declared search-parameter mapping.
  • Unscoped, history-based runs now page through _since/_count/_offset in 1000-row pages up to a hard 50,000-row cap, instead of a single unpaged fetch, and the frontend runner gained a "Scope & output options" panel for patient/group references, row limit, and CSV header toggle.
  • PRs: #954.

AccessPolicyV2Assignment​

  • A new first-class resource, AccessPolicyV2Assignment, decouples access-policy grants from the assignee: it holds just an accessPolicy reference and a link reference (to a ClientApplication, Membership, or OperationDefinition), turning what was previously an embedded lookup into a separate, queryable join resource, generated in both the Rust and TypeScript model layers.
  • PRs: #946.

Tenant customization and white-labeling​

  • A new HasteHealthTenantCustomization operation, gated to tenant owners, lets a tenant set a display name and a square logo (validated and resized to 150x150 via Lanczos3); a companion HasteHealthTenantBranding read op and a /w/{tenant}/branding/logo route serve it back.
  • Server-rendered chrome — login, signup, MFA, OIDC interaction, and error pages — now runs through a TenantContext and a tenant_banner() renderer showing the custom logo and tenant name, and the admin app picked up a matching useTenantBranding hook and AppLogo component wired into a reworked sidebar.
  • PRs: #940, #941.

FHIRUser SMART claim​

  • When a token request's approved scopes include the SMART fhirUser scope, the token route now resolves the authenticated Membership's link reference and embeds it as a fhir_user claim on the issued JWT; client-credentials tokens, which have no human membership, always get fhir_user: None.
  • PRs: #916.

CLI: browser-based OAuth login​

  • The CLI's prior login flow — a downloadable bundle shipping a fixed client_secret — was replaced with a real Authorization Code + PKCE flow: login.rs generates a code verifier/S256 challenge, opens the system browser to the authorize URL, and binds a one-shot local listener on the profile's configured redirect URI to catch the callback and exchange it for tokens.
  • Secret material was split out of the non-secret config.toml into its own .secrets.toml so client secrets and cached tokens never surface via config show-profile, CLI internals were reorganized under a dedicated cli/ module, and set-active-profile/delete-profile moved from free-text prompts to a Select dialog. Docs were updated to match, describing the new public-client, browser-login model.
  • PRs: #935, #947, #948, #949, #936.

Product and UX​

Admin app search modal rewrite​

  • SearchModal.tsx dropped its virtualized-list implementation for a categorized flat list combining a new set of static pages (Dashboard, Settings, All Resources, Event History, Indexing Errors, Bundle Import) with FHIR resource types, grouping resource types that already have a dedicated sidebar shortcut under that same category instead of a generic "Resources" bucket.
  • PRs: #912.

Indexing errors view​

  • A new admin-app IndexingErrors view and sidebar entry expose resources that failed search indexing and were "parked" rather than silently dropped, backed by a new indexing_errors operation and repository layer.
  • PRs: #911.
  • The ResourceEditor header gained a "Docs" button that opens the generated FHIR reference documentation for the resource type currently being edited in a new tab.
  • PRs: #951.

Platform and Runtime​

Elasticsearch index migrations​

  • Search-parameter canonical URLs are now flattened (. replaced with _) before being used as ES field names, since a literal . in a mapped field name creates a nested object path instead of a flat field — a gap that had been silently producing the wrong mapping shape.
  • create_mapping now diffs expected mapping properties against the live index: additive changes apply in place via put_mapping, while removed search parameters — which mappings can't drop in place — go through a staging-index reindex, swap, and reindex-back cycle when a prune_removed_search_parameters flag is enabled. The index itself moved from r4_search_index to r4_search_index_v2.
  • PRs: #950.

Custom-operation runtime hardening​

  • DenoPool moved from round-robin worker assignment to a shared work queue so an idle worker always grabs the next job, with a queue-depth cap that rejects new work once the pool is saturated. Each worker now keeps one warm, unused V8 isolate ready to hide isolate-construction latency from the request path, and a dedicated watchdog thread terminates any script that runs past a 10-second timeout, since a blocking tokio::time::timeout can't interrupt a synchronous runaway script.
  • Module imports in custom-operation scripts are now categorically rejected rather than read from disk, transpiled JS is cached to skip redundant TypeScript parsing on repeat invocations, and the scripting FHIR client surface was filled out to cover the full REST API — read, vread, patch, history, transaction, batch, and the remaining invoke/delete variants.
  • PRs: #945, #944, #943, #942.

MCP and OpenAPI schema rework​

  • MCP's tool list grew from search-only to the full REST surface — read, create, update, patch, delete, history, capabilities, transaction, and batch — with tool schemas referencing an external /schemas/fhir/{ResourceType} endpoint instead of inlining definitions.
  • A vendored, generated MCP types file (nearly 28,000 lines) was replaced with a hand-written ~840-line module covering the MCP spec's JSON-RPC types, and a new RESOURCE_SCHEMAS cache gives each resource and complex type its own isolated JSON Schema with cross-type references resolved as external $refs.
  • PRs: #915, #913, #914.

Search result shaping and parameter validation​

  • A new element_filtering middleware implements FHIR's _elements and _summary search result subsetting, with _elements taking precedence when both are present.
  • _count/_offset parsing was tightened twice this month: first fixing ES and PG history reads to reject negative values instead of silently clamping to zero, then requiring the parameters parse directly as u64 rather than falling back to a default on malformed input.
  • PRs: #920, #902, #875.

PostgreSQL storage: model separation and batched writes​

  • Repository model files moved under a dedicated pg/models/ directory, and create/update/delete on FHIRRepository were changed to take resources by value rather than by mutable reference, simplifying transaction-wrapping call sites.
  • A new buffered multi-row insert path lets transactional writes queue as owned rows and flush as a single batched INSERT, which is what lets FHIR transaction/batch bundle processing commit its member writes together instead of one row at a time — the same batching approach was then applied to startup artifact loading, cutting it from one request per resource to a single Bundle::batch call.
  • PRs: #887, #886, #888, #889, #896.

Testscript runner coverage​

  • The testscript runner picked up Batch, conditional UpdateCreate, Patch (sourced from a Binary fixture per the standard TestScript convention), and merged conditional-delete handling, plus improved logging detail in both the runner and the CLI's testscript command.
  • PRs: #937, #900.

Reliability, performance, and workspace hygiene​

  • The binary switched its global allocator to mimalloc and the release profile picked up thin LTO and single-codegen-unit builds; a hot path in FHIR structure-definition traversal that was compiling a regex per call was replaced with a plain string comparison, meaningfully speeding up FHIR profiling.
  • Failed search-indexing resources are now tracked and "parked" rather than silently dropped or retried forever, with a gap detector that warns when indexed counts don't match the expected sequence delta, and the operation_executor/wal_worker crate directories were renamed to match the workspace's hyphenated naming convention.
  • PRs: #927, #931, #919, #909, #908, #910, #923.

Artifacts, Tooling, and Maintenance​

Website: Headless EHR re-centering and a live MCP showcase​

  • Homepage messaging was repositioned around "Headless EHR," dropping the prior EHR-integration-logo framing in favor of a new data-flow diagram and a live-rendered MCP tool catalog, auto-categorized into read/create/update/delete/bulk badges from the generated tool list.
  • The homepage hero picked up a typing animation for its sample CLI command and JSON response (respecting prefers-reduced-motion), and a new /contact page lists business, developer, and security contact channels alongside GitHub Issues and Discussions links.
  • PRs: #925, #934, #891.

Generated docs and SEO​

  • The docs generator now produces a truncated meta description for every generated FHIR resource/data-type page, and category index pages across the API, auth, and reference sections picked up generated-index descriptions for better landing-page SEO; the full FHIR reference doc set was also regenerated to pick up the month's model and terminology changes.
  • PRs: #952, #926.

CI and dependency hygiene​

  • The Sonar scan workflow was split into a main-branch workflow and a build/analyze pair so PRs from forks can be analyzed without exposing repo secrets to untrusted fork code, and the frontend package pinned several transitive dependencies and expanded audit-ignore entries to keep the dependency audit gate green against upstream advisories.
  • PRs: #903, #890.
  • Frontend fixes: the SQL-on-FHIR raw-output panel no longer collapses to zero height in flex layouts, plus small follow-up styling fixes to the new contact page and homepage syntax highlighting.
  • Sonar/CI config: generated Rust and TypeScript model code was excluded from SonarQube analysis, an "expensive" test flag was toggled off in CI, and a one-line test workflow fix followed the new clippy-action PR.
  • Small backend follow-ups: a usize→u64 recast in the FHIR client storage middleware, and a stray .clone() removed from the search-indexing worker.
  • Docs and repo hygiene: README overview simplification, removal of a stale Postgres 16 benchmark section, an admin app URL fix, and a revised SECURITY.md with updated supported versions and reporting instructions.
  • Build/deploy: a Dockerfile build stage trim.
  • Version bumps: ade25825b, 759944b85.

Contributors​

Thanks to Luni-4 for carrying the crate-by-crate clippy remediation effort straight through August. The month opened with the repository crate (#874), then a four-PR day covering hl7v2 (#882), a batch of miscellaneous lints (#879), fhir-converter (#880), and encryption (#881). Mid-month brought fhirpath (#892) and sd-to-json-schema (#893), followed by a three-crate day covering worker (#897), wal_worker (#898), and macro-loads (#895), then fhir-search (#894) alongside a README development-section improvement (#901). fhir-subscription-processor (#906) and a second missing-lints sweep (#907) followed, then fhir-profiling (#905), and the effort wrapped with a three-PR day covering the first missing-lints sweep (#904), openapi-schema-generator (#921), and operation-executor (#922), before a final pass on sql-on-fhir (#924) closed out the workspace-wide effort begun back in July.

July 2026 Feature Updates

· 11 min read
Ralph Parkison
Haste Health maintainer

July opened with authentication and session hardening — multi-factor authentication landed end to end, CSRF protections were added across the interaction and OIDC flows, and password hashing moved to argon2 — then pivoted toward workspace health for the back half of the month: a SMART configuration discovery endpoint, a full documentation reorganization, and a long crate-by-crate clippy remediation pass that touched nearly every corner of the backend.

Backend Changes​

Multi-factor authentication, end to end​

  • A new encryption crate landed first, with pluggable encryptor providers (AWS, GCP, environment) behind a shared trait, later reorganized into an encryption submodule and extended with AES support.
  • A user_mfa table and repository layer (backend/crates/repository/src/pg/mfa.rs) were added, followed by MFA admin CRUD routes, an activation route, and a TOTP verification route wired into the login flow.
  • The login process now checks for and enforces MFA, and the admin app's Settings view gained links into MFA management that route to the new API endpoints.
  • PRs: #785, #786, #787, #788, #799, #804, #807, #814.

CSRF and session hardening​

  • A synchronizer token pattern was added across the global login, signup, and tenant-select routes via a new csrf_token extractor, then extended to the OIDC authorize, interaction login, password reset, and scope routes.
  • Authorization session state was reworked into explicit enums, tightening how the OIDC authorize, federated callback, interaction login/logout, and scope routes track session progress.
  • Password hashing was migrated from the previous scheme to argon2 in the user repository.
  • PRs: #775, #800, #801, #802.

Auditing and public metadata​

  • A new auditing middleware (fhir_client/middleware/auditing.rs) was added and wired into the FHIR client pipeline and MCP routes, disabled by default and gated by config, with a follow-up pass fixing storage/transaction interplay and re-enabling it.
  • cargo-audit was added as a CI workflow to catch vulnerable dependencies on every push.
  • The server capabilities/metadata endpoint gained a config flag to expose it publicly without authentication.
  • PRs: #774, #783, #784, #812.

Product and UX​

ViewDefinition editor follow-ups​

  • A batch of shared read-only components (AddressReadOnly, CodeableConceptReadOnly, HumanNameReadOnly, ReferenceReadOnly, and others) were reworked to prepare the Analytics ViewDefinition editor for a read-only mode.
  • The editor picked up an onchange-driven alteration flow and simplified sql-on-fhir component internals, and the resource view was reworked into a dedicated ViewDefinition view with that read-only mode and improved field grouping.
  • PRs: #772, #773, #782.

Platform and Runtime​

SMART configuration discovery​

  • A SMART configuration discovery document was added at /w/{tenant}/{project}/api/v1/.well-known/smart-configuration per spec, wired into the OIDC middleware and server routes, then corrected to nest properly under the FHIR root.
  • PRs: #833.

FHIRPath and search engine fixes​

  • FHIRPath gained its first custom function implementation alongside an exists() fix, followed by join(separator) support and, later in the month, numeric comparison operators (>, <, >=, <=).
  • Elasticsearch date search gained proper not-equals handling and correct range-overlap comparisons for dates, closing a long-standing search gap and landing with new base testscripts.
  • PRs: #770, #771, #859, #861.

Codegen and terminology: from consts to inline functions​

  • Generated terminology structs were migrated to snake_case const codes, touching the codegen templates, generated FHIR terminology, and downstream consumers in access-control, fhir-client, and fhir-profiling.
  • That migration continued with generated inline functions for the various terminology struct variants, then a second pass removed the old const arrays in favor of those inline functions across access-control and the codegen crate.
  • File loading in codegen was made deterministic by sorting inputs, since walkdir traversal order can differ across platforms, and a further clippy pass cleaned up the generated FHIR model output.
  • The legacy hand-written serializer/deserializer implementations in fhir-serialization-json and fhir-model's datetime handling were removed now that the generated equivalents cover the same ground.
  • The US Core profile load script gained a verification step confirming all profiles were actually indexed.
  • PRs: #810, #813, #830, #832, #834, #840, #852, #853, #873.

Reliability and dependency hygiene​

  • Panics in request handlers are now caught rather than taking down the server, via a new panic-catching layer in server.rs, and Sentry gained panic, backtrace, and transport features for better crash visibility.
  • The workspace's Cargo dependencies were deduplicated and pulled up to shared workspace versions, trimming Cargo.lock substantially and removing an unused dependency.
  • License metadata was corrected across several backend crates and frontend packages.
  • Import ordering in generated code was fixed to conform to rustfmt, and the workspace was brought under a rustfmt CI check with a full formatting pass.
  • PRs: #776, #803, #806, #808, #809.

Artifacts, Tooling, and Maintenance​

Frontend build migration and dependency maintenance​

  • The admin app moved from its previous bundler to Vite, replacing the old public index.html/config setup with vite.config.ts and updating Docker/nginx wiring to match.
  • Storybook was upgraded across the components package, and a dedicated frontend_build CI workflow and frontend_audit workflow were added, alongside a TypeScript version bump and inquirer bump.
  • A later audit pass fixed vulnerable dependencies flagged in the website package, and a broader round of frontend dependency bumps followed, touching the admin app's resource editor, search modal, and several project views.
  • PRs: #777, #778, #779, #780, #781, #824, #856.

CI, release, and local dev​

  • The local docker-compose setup switched to a generic Elasticsearch image so it also runs on non-arm64 hosts, and the Docker base image was bumped.
  • The experimental wal_worker crate was pinned and then pulled back out of the backend build while it's still being hardened, and a stray deno dependency was pinned to stop undefined-symbol errors during workspace builds.
  • Module functions in the binary crate were made private where they didn't need to be public, tightening the crate's API surface.
  • Test and e2e CI workflows picked up build caching that only persists once a run lands on main, the release workflow got a similar cache-based speedup, and the Docker build gained its own caching pass.
  • PRs: #790, #792, #793, #795, #796, #798, #829, #839, #843, #844, #860, #862.

Documentation overhaul​

  • The docs site was reorganized, splitting authentication and authorization into their own sections, and generated FHIR docs were refreshed to include the new HL7V2 and ViewDefinition resources.
  • New guides were written for profile validation, SQL on FHIR, and HL7v2, plus a server configuration reference linked from both the root and backend READMEs.
  • CLI command documentation is now generated from the binary itself via clap-markdown, and the root README picked up a "Running Locally" section and other updates.
  • Repo .gitattributes were adjusted to mark generated TypeScript as generated, so GitHub's language detection reports this as a Rust repository.
  • PRs: #815, #816, #817, #818, #819, #820, #821, #865, #866, #871, #872.

A workspace-wide clippy pass​

  • The last third of the month was dominated by a sequential, crate-by-crate clippy remediation effort covering access-control, artifacts, codegen, config, fhir-client, fhir-operation, fhir-operation-error, fhir-ops, fhir-query, fhir-reflect, fhir-serialization, fhir-terminology, fhirpath, jwt, pointer, testscript-runner, and the server crate itself, bringing the workspace much closer to a clean cargo clippy run.
  • PRs: #825, #826, #827, #828, #835, #837, #846, #848, #849, #850, #851, #854, #855, #858, #863, #867.
  • Backend/config fixes: re-enabled TLS for the SendGrid client, enabled a request-blocking client on the OTLP transport, nested the SMART configuration document under the FHIR root, and an ends_with reversion.
  • Docs and repo hygiene: a broken link fix, a clarification that SQL on FHIR does not yet support EHR launch, removal of a stale repository-structure section from the README, and a Sonar workflow condition update.
  • CI/deploy: a docker build-push-action change, a wrangler version bump, forcing a CI cache rebuild, a release-binary credentials listing fix, and a repo-root specifier fix for release binaries.
  • Version bumps: 54aa1e5ed, a43920942.

Contributors​

Thanks to Luni-4 for contributions all month long, starting with fixing local project builds on non-arm64 hosts and a stale deno_core pin (#790), making docker-compose more portable (#793), tightening module visibility in the binary crate (#795), deduplicating the Cargo workspace's dependencies (#803), and bringing the whole workspace under a consistent rustfmt style (#808). The back half of the month was carried almost entirely by their crate-by-crate clippy remediation effort, covering fhir-reflect and fhir-serialization (#825), fhir-query, pointer, and jwt (#826), fhir-client, fhir-operation, and fhirpath (#827), access-control (#828, #835), a pinned deno dependency fix (#839), artifacts and codegen (#846, #837, #867), fhir-ops, config, fhir-terminology, and fhir-operation-error (#848, #849, #850, #851), testscript-runner (#855), and fhir-client again (#858, #854).

June 2026 Feature Updates

· 6 min read
Ralph Parkison
Haste Health maintainer

June was dominated by two new engines landing side by side: HL7v2/MLLP message ingestion through a template-driven FHIR Converter, and a SQL on FHIR ViewDefinition runtime. Both picked up their own admin/analytics UI by month end, and FHIRPath grew new built-ins to support them.

Backend Changes​

HL7v2 ingestion and the FHIR Converter engine​

  • The hl7v2 crate matured quickly: an explicit structure definition, sub-component and nested-field parsing fixes, primitive From impls, FHIR model parsing, serialization back to wire format, and null-handling fixes found while running real messages through the pipeline.
  • A new fhir-converter crate became the conversion engine, experimenting with both minijinja and Liquid templating and settling on Jinja-style templates with partial support, plus dedicated FHIRPath and HL7v2 filters and reflection-driven fhir_type generation to keep templates aligned with the generated FHIR model.
  • An MLLP agent and listener were stood up and plugged into a new hl7v2 CLI command, with a custom hl7v2_parse operation and HL7v2 StructureDefinition added to the FHIR server and frontend artifacts regenerated to match.
  • Deserialization in fhir-model was hardened along the way to absorb the loosely structured data produced by conversion (empty strings, empty structs, vector edge cases).
  • PRs: #713, #714, #715, #716, #717, #718, #719, #720, #721, #722, #723, #724, #725, #726, #727, #728, #729, #730, #731, #732, #733, #734, #735, #736, #737, #738.

SQL on FHIR: a ViewDefinition execution engine​

  • ViewDefinition landed as a first-class resource with a run operation wired into the custom operations middleware, moved into its own standalone sql-on-fhir crate.
  • The projection engine grew column/select/forEach/forEachOrNull handling, cartesian products for repeating elements, null propagation, type inference, where-clause filtering, constants, and support for views that repeat over nested ViewDefinitions.
  • CSV output formatting and primitive conversion were built out, and task execution moved away from spawning a task per row for better throughput.
  • The run operation now supports JSON and NDJSON output in addition to CSV, including dedicated output writers in sql-on-fhir and format selection in the shared frontend components package.
  • PRs: #739, #740, #741, #744, #745, #746, #747, #748, #752, #753, #754, #755, #756, #757, #758, #759, #760, #761, #766.

Product and UX​

Analytics: a ViewDefinition editor​

  • Shipped the first cut of a ViewDefinition editor in the admin app's Analytics views, backed by a new sql-on-fhir component package (initially prototyped as fhir-on-sql), with a follow-up pass exploring alternate projection layouts.
  • Frontend FHIR types and generated ops were regenerated to pick up ViewDefinition and the HL7v2 additions.
  • Late in the month, the editor and artifacts were aligned to migrated ViewDefinition typing so generated backend/frontend models and artifact loading stayed in sync.
  • PRs: #749, #750, #751, #767.

Platform and Runtime​

  • FHIRPath gained getReferenceKey and getResourceKey built-ins so views can resolve and dedupe on references, plus a shared FHIRPath/rule-engine config builder used across fhirpath, sql-on-fhir, and x-fhir-query.
  • Type-choice serialization and deserialization were fixed up in fhir-model to correctly round-trip value[x]-style fields.
  • Parameter handling was simplified across the server: URL building in fhir-client, the search parameter resolver, OIDC token routes, project selection, and artifact loading were all trimmed down.
  • Server and worker startup moved to typed config loading (TOML + HASTE_ environment overlays) using Figment, replacing ad-hoc environment variable reads and unifying configuration paths across commands.
  • Deployment and local runtime wiring were updated to match nested config keys (HASTE_REPO.*, HASTE_SEARCH.*) in compose and CI paths.
  • PRs: #742, #762, #763, #764, #765, #768, #769.

Artifacts, Tooling, and Maintenance​

  • Dependency maintenance included bumping multer in the frontend, a SonarQube workflow version bump, and a couple of version bumps for the fhir-converter crate.
  • Auth docs got a round of URL corrections across the authorization code, client credentials, refresh token, and SMART on FHIR pages.
  • PRs: #743.

May 2026 Feature Updates

· 5 min read
Ralph Parkison
Haste Health maintainer

May was a heavy platform month. We shipped core runtime capabilities, expanded FHIR coverage, improved admin/history UX, and finished the week with worker orchestration and observability upgrades.

Backend Changes​

Serialization and deserialization overhaul​

Custom executor and Deno sandbox progression​

  • Added custom executor support, parameter validation, and the needed code input context.
  • Advanced Deno snapshot generation, OpState handling, return plumbing, entry updates, and plugin experimentation.
  • PRs: #617, #618, #619, #620, #621, #624, #626, #629, #630, #651, #652.

Worker and observability push this week​

  • Introduced trait-driven worker and sequence abstractions, stop-work behavior, and locking model updates.
  • Expanded tracing and OpenTelemetry work, including runtime OLTP config updates.
  • PRs: #703, #704, #705, #706, #707, #708, #709, #710, #711, #712.

Product and UX​

Admin, dashboard, and history​

Forms, auth, and website polish​

  • FHIR form generation completed remaining primitive + editable complex form components.
  • Auth/input polish included header client credentials and charset handling.
  • Website updates included storybook theming, link refreshes, dashboard reorg, banner sizing, and author/team-page docs polish.
  • PRs: #657, #658, #662, #663, #694.

Platform and Runtime​

  • FHIRPath and executor behavior improvements (upper/lower helpers, runtime stability, and performance tweaks).
  • Runtime/perf tuning included allocation separation and bundle full URL handling.
  • Admin/platform controls expanded with version UI, artifact command resets, project/IDP tier limits, and active-index filtering.
  • PRs: #627, #628, #631, #632, #634, #676, #677, #680, #691, #692, #693.

Artifacts, Tooling, and Maintenance​

  • Subscription artifact work landed with R5 Subscription Backports.
  • Codegen/docs workflow improved with operation-definition doc generation, naming cleanup, and line-split scripts.
  • Dependency and maintenance cleanup continued with package and repository maintenance updates.
  • PRs: #696, #697, #698, #699, #700, #701, #702, #687.

April 2026 Feature Updates

· 4 min read
Ralph Parkison
Haste Health maintainer

March 2026 Feature Updates

· 3 min read
Ralph Parkison
Haste Health maintainer

February 2026 Feature Updates

· 3 min read
Ralph Parkison
Haste Health maintainer

January 2026 Feature Updates

· 3 min read
Ralph Parkison
Haste Health maintainer