From c92e750b6d9460ba5eb9f900de252871628d2af4 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sun, 29 Mar 2026 19:51:17 +1100 Subject: [PATCH 1/2] fix up failing tests --- CHANGELOG.md | 2 +- package-lock.json | 4 ++-- package.json | 2 +- tests/tx/test-cases.test.js | 12 ++++++++---- tx/workers/translate.js | 4 ++-- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index efb07da..65b5716 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to the Health Intersections Node Server will be documented i 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). -## [v0.8.1] - 2026-03-29 +## [v0.8.2] - 2026-03-29 ### Added diff --git a/package-lock.json b/package-lock.json index d15b821..5e61c9e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fhirsmith", - "version": "0.8.1", + "version": "0.8.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "fhirsmith", - "version": "0.8.1", + "version": "0.8.2", "license": "BSD-3", "dependencies": { "axios": "^1.13.4", diff --git a/package.json b/package.json index 7dddb3e..acbb6dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fhirsmith", - "version": "0.8.1", + "version": "0.8.2", "description": "A Node.js server that provides a collection of tools to serve the FHIR ecosystem", "main": "server.js", "engines": { diff --git a/tests/tx/test-cases.test.js b/tests/tx/test-cases.test.js index f526332..9e49db5 100644 --- a/tests/tx/test-cases.test.js +++ b/tests/tx/test-cases.test.js @@ -4064,10 +4064,6 @@ describe('translate', () => { await runTest({"suite":"translate","test":"translate-1"}, "5.0"); }); - it('translate-1R4', async () => { - await runTest({"suite":"translate","test":"translate-1"}, "4.0"); - }); - }); describe('tho', () => { @@ -4853,6 +4849,14 @@ describe('tx.fhir.org', () => { await runTest({"suite":"tx.fhir.org","test":"snomed-validate-property-good"}, "4.0"); }); + it('snomed-translateR5', async () => { + await runTest({"suite":"tx.fhir.org","test":"snomed-translate"}, "5.0"); + }); + + it('snomed-translateR4', async () => { + await runTest({"suite":"tx.fhir.org","test":"snomed-translate"}, "4.0"); + }); + }); describe('snomed', () => { diff --git a/tx/workers/translate.js b/tx/workers/translate.js index cd81445..c079ad7 100644 --- a/tx/workers/translate.js +++ b/tx/workers/translate.js @@ -332,7 +332,7 @@ class TranslateWorker extends TerminologyWorker { for (const map of em.target || []) { let ok = false; if (map.equivalence) { // R4 mode - ok = ['null', 'equivalent', 'equal', 'wider', 'subsumes', 'narrower', 'specializes', 'inexact'].includes(map.equivalence); + ok = ['null', 'relatedto', 'equivalent', 'equal', 'wider', 'subsumes', 'narrower', 'specializes', 'inexact'].includes(map.equivalence); } else { ok = ['null', 'related-to', 'equivalent', 'source-is-narrower-than-target', 'source-is-broader-than-target'].includes(map.relationship); } @@ -413,7 +413,7 @@ class TranslateWorker extends TerminologyWorker { const map = match.target; let ok = false; if (map.equivalence) { // R4 mode - ok = ['null', 'equivalent', 'equal', 'wider', 'subsumes', 'narrower', 'specializes', 'inexact'].includes(map.equivalence); + ok = ['null', 'relatedto', 'equivalent', 'equal', 'wider', 'subsumes', 'narrower', 'specializes', 'inexact'].includes(map.equivalence); } else { ok = ['null', 'related-to', 'equivalent', 'source-is-narrower-than-target', 'source-is-broader-than-target'].includes(map.relationship); } From 91a51025da2d015d259990897fad70f4a34fab85 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sun, 29 Mar 2026 20:08:16 +1100 Subject: [PATCH 2/2] more deleted tests --- tests/tx/test-cases.test.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/tx/test-cases.test.js b/tests/tx/test-cases.test.js index 9e49db5..88508ff 100644 --- a/tests/tx/test-cases.test.js +++ b/tests/tx/test-cases.test.js @@ -4849,14 +4849,6 @@ describe('tx.fhir.org', () => { await runTest({"suite":"tx.fhir.org","test":"snomed-validate-property-good"}, "4.0"); }); - it('snomed-translateR5', async () => { - await runTest({"suite":"tx.fhir.org","test":"snomed-translate"}, "5.0"); - }); - - it('snomed-translateR4', async () => { - await runTest({"suite":"tx.fhir.org","test":"snomed-translate"}, "4.0"); - }); - }); describe('snomed', () => {