From 760aa2d1261d8b3e2b35dcd1e23b9423cfadb802 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 4 Dec 2026 16:35:38 +1100 Subject: [PATCH] set up release --- CHANGELOG.md | 36 +++++++++++++++++++++++++------ package-lock.json | 54 +++++++++++++++++++++++------------------------ package.json | 4 ++-- 3 files changed, 58 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 569031b6..89f4c06a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to Health Intersections FHIRsmith will be documented in this The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.0.13] - 2026-mm-dd +## [1.1.0] - 2026-12-04 ### Security @@ -14,8 +14,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- tx: support for a new common sqlite format for large code systems such as SNOMED CT, LOINC and RxNorm - tx: the `generalizes` filter on a code system resource (the code and its ancestors) - tx: `vsacCfg.enabled: false` - a server whose library names VSAC (`internal:vsac`) doesn't load it, and needs no API key: a library such as tx.fhir.org.yml can be used by a server without a VSAC account. Before, the server wouldn't start +- tx: modifier extensions: a resource or parameter with a modifier extension the server doesn't understand can't be used, wherever it is - on a value set, code system, supplement or concept map, or any element in one, or on a parameter or a part of one - whether or not the operation reads that element: a 422 (400 for a parameter) whose issue says where. The Java convertors' equivalence modifier on a concept map is understood +- tx: stored expansions: a value set's own expansion (`ValueSet.expansion`) is used when its compose can't be (there isn't one, or a code system it includes isn't available), as an expansion made with the parameters it records. `count`, `offset`, `filter`, `activeOnly`, `excludeNotForUI` and `excludeNested` are applied to it; the display language, designations, properties, code system versions and supplements must match what it was made with, and so must a filter, or it is refused (`VALUESET_STORED_EXPANSION_*`). The same for an import of such a value set, and for `$validate-code`, where only what decides membership must match. A stored expansion sent as R4 or R3 has its properties, `next` and `additionalUse` lifted out of the extensions +- tx: implicit VCL value sets: `http://fhir.org/VCL?v1={VCL}` is the value set the expression is, for `$expand` and `$validate-code` by url and as an `include.valueSet` - which is how the VCL parser now writes a sub-expression that one include can't hold (an exclusion inside a union, say) +- tx: `ValueSet/$compare` by GET (`thisUrl` and `otherUrl` at the type level, `otherUrl` on an instance) +- tx: supplement properties for every provider (LOINC, SNOMED CT and the rest, not only CodeSystem resources): `$expand` and `$lookup` report a supplement's properties with the uri it defines, alongside the code system's own +- tx: an R3 code system's `codesystem-subsumes` is converted to a declared `child` property, so its hierarchy is used for subsumption; a `child exists` filter works with or without a declared child property +- tx-import: `loinc --languages cs,fr,de` imports only the language variants asked for; a variant that isn't in the release fails before the import starts (PR #445) +- tx: the HTML view of a resource shows its tags and security labels, linked to the code where the server knows it ### Changed @@ -27,6 +36,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - tx: a display for a code with no display, only other designations (a synonym), that is none of them: the message says there is no known display, and names the designations (`NO_KNOWN_DISPLAY`), on every path. It was a warning with a garbled message ("one of 0 choices: ") - tx: SNOMED CT ECL: an exclusion has one expression on each side, so `A MINUS B MINUS C` needs brackets (it was accepted); `<<125605004.363698007` (a dotted attribute with no spaces) is accepted - a number with a decimal point is only read as one after `#` - tx: `check-system-version` never influences which version of a code system is used (community decision on Zulip, Terminology Service Test Cases, check-system-version semantics): the version is chosen as if it weren't there - from the coding, the value set, `system-version`/`force-system-version`, or the default - and the operation fails (`VALUESET_VERSION_CHECK`) if that version doesn't match. Before, when nothing else named a version, the check's version was used. This includes the edition of an implicit SNOMED CT value set, and `$closure` tables. It is no longer echoed in expansion parameters. `check-valueset-version` is unchanged +- tx: the VCL parser is rewritten to follow the grammar, and checked against the shared VCL test cases (fhir-test-cases `vcl/vcl-tests.json`, which core's parser runs too). Large expressions - long unions and intersections of codes or filters, nested ones, ones across many systems - take linear time; nested filter lists (`{...}`) count towards the nesting limit +- tx: UCUM: complexity limits on a unit (exponents, components, terms, nesting), and multiplying long digit strings uses BigInt (`Ym30.Ym30` took cubic time). No unit at all is unity in arithmetic, but not a valid code +- tx: `$translate` reports `match.product` as each version has it: attribute and value[x] for R5, element and concept for R4 and R3 +- tx.fhir.org.yml: RxNorm is loaded from a sqlite-v2 file (`rxnorm-v2:`); config-check knows the `snomed-v2`, `loinc-v2` and `rxnorm-v2` source types +- publisher, shl and extension-tracker use `node:sqlite` (built into Node), through `library/sql/node-sqlite.js`, not the sqlite3 package - the start of moving off it. What they store is unchanged +- tx: RxNorm keeps the codes it has looked up (most recently used), so a later provider in the same request doesn't ask the database again +- tx: the text index store starts again if its database is damaged (the machine stopped part way through a write, or its -wal was lost), or an index's build didn't finish: it is only a cache +- rest: the module has a paragraph in the daily report: each endpoint's reads, searches, writes and transactions +- library: FHIRPath: `toDate()`, and Java's function codes (`convertsToTime`, not `isTime`); the R4 <-> R6 convertors follow the Java convertors' latest changes - tx-import: the sqlite-v2 importers (`loinc-v2`, `loinc-v2-classic`, `snomed-v2`, `snomed-v2-from-cache`, `rxnorm-v2`) take the classic importers' options: `-v, --version` for the release's version (`snomed-v2`'s was `--snomed-version`) and `-y, --yes` to replace an existing destination; without `-y` an existing destination is asked about. The earlier names (`--loinc-version`, `--rxnorm-version`, `--snomed-version`, `--overwrite`) still work. Documented in tx/importers/readme.md ### Fixed @@ -42,20 +60,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - tx: UCUM's unit `1`: a wrong display listed '1' (en) twice - tx: a code system version that is known but can't be used for codes (content example or not-present) was listed among the valid versions when it was the one asked for; it is still listed, and says so (`CODESYSTEM_VERSION_NOT_USABLE`) - tx: `$expand` with more than one version of a code system: the codes of an imported value set had no version, the others did +- tx: `count=0` totals with `activeOnly` or `excludeNotForUI` counted the codes the expansion would leave out (inactive, abstract), and a code that two includes both bring in twice; the totals are now the size of the expansion they stand for, for every provider (A9) +- tx: `activeOnly` with a text filter kept a code marked inactive by the `inactive` property (not by status), in a full expansion, a page, or `count=0` (A10) +- tx: `$expand` didn't report the issues of the value sets it imports (an unknown code in the import, say); it now does, and an issue it finds itself is reported once (A11) +- tx: `$lookup` parent and child descriptions are in the language asked for, by `displayLanguage` as well as `Accept-Language`, and from the supplements in use, as the display is (A13, A14). A designation with no language, in a supplement with no language, is not taken to be in the language asked for +- tx: OMOP `$lookup`: the `valid-start-date` and `valid-end-date` values are `valueDateTime`, not `valueDate`, which a `$lookup` property can't have (A6) +- tx: `$subsumes` wrote the issue code `not found` (with a space), so its OperationOutcome wasn't valid FHIR; every issue code the server writes is now an IssueType, checked by a test of the source (A7) +- tx: a filter value that should be true or false, or that a media type filter can't use, was a server error (500); it is a 422 (invalid) +- tx: the products of an unmatched target in a concept map were lost in the conversion through R5 (A3) - tx: converting a ValueSet or CodeSystem to R3 treated the `generalizes` filter operator as one R3 doesn't have (a CodeSystem's was dropped, a ValueSet filter's put in the filter.op extension); STU3's filter-operator has it, as R4's does - tx: ValueSet and ConceptMap `getFHIRVersion()` and `getInfo().fhirVersion` gave the resource's own version, not the FHIR version it was read as; ConceptMap `getInfo()` failed outright; ValueSet `getCode()`/`hasCode()` without a version didn't find a code whose expansion entry has one -- tests: the ValueSet, ConceptMap and NamingSystem library tests (tests/library/*.tests.js, 104 tests) were never run, as jest runs only *.test.js; renamed, and a test now fails when a file of tests is one jest won't run - tx: a request with no client side cache over uncachedMaxBodyMB, behind the cluster launcher, mostly got a 502 "the tx process did not answer (EPIPE)", not the 413 too-costly: the process answered and closed the connection with the body still coming. It now takes the rest of the body (without parsing it) and then answers (#461) - tx: a JSON Bundle (a search page, say) was made in one go: a search for CodeSystems, 200 a page, with no _summary or _elements, made a page of 89 MB and held the server for 3 seconds (tx.fhir.org). A Bundle is now made an entry at a time, letting other requests run between, and written out in its parts (with no ETag: it isn't hashed) +- tests: the ValueSet, ConceptMap and NamingSystem library tests (tests/library/*.tests.js, 104 tests) were never run, as jest runs only *.test.js; renamed, and a test now fails when a file of tests is one jest won't run - The shl module and the VSAC value set database turned on sqlite3's verbose mode, which is for the whole process: every query of every module (the XIG and packages on npm.fhir.org) then captured a stack trace and formatted its arguments, to make the stack of an error longer. It is no longer turned on -### Removed - -- - ### Tx Conformance Statement -(paste) +FHIRsmith v1.1.0 passed all 6529 HL7 terminology service tests (modes tx.fhir.org+omop+general+snomed+mimetypes+icd-11+icf+closure+loinc, tests v1.12.0, runner v7.0.9) ## [1.0.12] - 2026-12-01 diff --git a/package-lock.json b/package-lock.json index cd7828b8..1f081be0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fhirsmith", - "version": "1.0.13-snapshot", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "fhirsmith", - "version": "1.0.13-snapshot", + "version": "1.1.0", "license": "BSD-3-Clause", "dependencies": { "axios": "^1.13.4", @@ -7501,9 +7501,9 @@ } }, "node_modules/mongodb": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-7.8.0.tgz", - "integrity": "sha512-p2NKagbQ41+daACG/ZSvhTzeAo+DoEyWE9Cmpf/SyP3pTC43+X0mwKE/44PpKtCxp5wOxnXz+t2pXEZRSkt9Yg==", + "version": "7.9.1", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-7.9.1.tgz", + "integrity": "sha512-OWtk/bcf8tx4Qe6lB8OsMksOwGGhC2FH+zl5UNwE+L7uz2VQDhCcnJThAvInEaBrEDaSsUWlMRbuFR4/TjF44w==", "license": "Apache-2.0", "dependencies": { "@mongodb-js/saslprep": "^1.5.0", @@ -7547,27 +7547,27 @@ } }, "node_modules/mongodb-connection-string-url": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-7.0.2.tgz", - "integrity": "sha512-ZoS07RoFqpKYQwAk59qmrx8+jJHNHU30UjlU96QktiGn1ltvDr+vCznLX5DiUBLEpMAHatHNWV1nM/74ul66kA==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-7.0.3.tgz", + "integrity": "sha512-5I/pX3C2gPEz1EDdYMdZwBx1b/jE/f+J+KItSUJ02uQZ66bbe7kHKjv2uqCHJWaMCagem3dyfWqoAcv+XYZ6aw==", "license": "Apache-2.0", "dependencies": { "@types/whatwg-url": "^13.0.0", - "whatwg-url": "^14.1.0" + "whatwg-url": "^15.0.1" }, "engines": { "node": ">=20.19.0" } }, "node_modules/mongoose": { - "version": "9.12.1", - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-9.12.1.tgz", - "integrity": "sha512-wPw1NKurTDShT+kr/JJvhdwPKIJkxFJv5GEbv++QahN8snPR9Fp/BFg6nQbbCyUHBB8DexwwlCQW6SfBD99QCg==", + "version": "9.13.2", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-9.13.2.tgz", + "integrity": "sha512-feQdih/gpEsJmbsI/DkC8hHj6Fmh+HAh4ll7nezQx4eiKctKl8Yr6aQnDyQpsWDxCwbA3r/V5mr5vHEWfuwtqA==", "license": "MIT", "dependencies": { "@standard-schema/spec": "^1.1.0", "kareem": "3.4.1", - "mongodb": "~7.8", + "mongodb": "~7.9", "mpath": "0.9.0", "mquery": "6.0.1", "ms": "2.1.3", @@ -9832,15 +9832,15 @@ } }, "node_modules/tr46": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.1.1.tgz", - "integrity": "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz", + "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==", "license": "MIT", "dependencies": { "punycode": "^2.3.1" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "node_modules/triple-beam": { @@ -10172,25 +10172,25 @@ } }, "node_modules/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz", + "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==", "license": "BSD-2-Clause", "engines": { - "node": ">=12" + "node": ">=20" } }, "node_modules/whatwg-url": { - "version": "14.2.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz", - "integrity": "sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-15.1.0.tgz", + "integrity": "sha512-2ytDk0kiEj/yu90JOAp44PVPUkO9+jVhyf+SybKlRHSDlvOOZhdPIrr7xTH64l4WixO2cP+wQIcgujkGBPPz6g==", "license": "MIT", "dependencies": { - "tr46": "^5.1.0", - "webidl-conversions": "^7.0.0" + "tr46": "^6.0.0", + "webidl-conversions": "^8.0.0" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "node_modules/which": { diff --git a/package.json b/package.json index cc946e1f..ae0b72fc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fhirsmith", - "version": "1.0.13-snapshot", - "txVersion": "1.11.1-snapshot", + "version": "1.1.0", + "txVersion": "1.12.0", "description": "A Node.js server that provides a collection of tools to serve the FHIR ecosystem", "main": "server.js", "engines": {