Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-alpine
FROM node:24-alpine

# Create app directory
WORKDIR /app
Expand Down
7 changes: 4 additions & 3 deletions tx/cs/cs-snomed.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { CodeSystemProvider, CodeSystemContentMode, Designation, CodeSystemFactoryProvider} = require('./cs-api');
const { CodeSystemProvider, CodeSystemContentMode, CodeSystemFactoryProvider} = require('./cs-api');
const {
SnomedStrings, SnomedWords, SnomedStems, SnomedReferences,
SnomedDescriptions, SnomedDescriptionIndex, SnomedConceptList,
Expand All @@ -9,6 +9,7 @@ const {
SnomedExpressionServices, SnomedExpression, SnomedConcept,
SnomedExpressionParser, NO_REFERENCE, SnomedServicesRenderOption
} = require('../sct/expressions');
const {DesignationUse} = require("../library/designations");

// Context kinds matching Pascal enum
const SnomedProviderContextKind = {
Expand Down Expand Up @@ -507,7 +508,7 @@ class SnomedProvider extends CodeSystemProvider {
if (disp) return disp;

if (ctxt.isComplex()) {
return this.sct.expressionServices.displayExpression(ctxt.expression);
return this.sct.expressionServices.renderExpression(ctxt.expression, SnomedServicesRenderOption.FillMissing);
} else {
return this.sct.getDisplayName(ctxt.getReference(), this.sct.defaultLanguage);
}
Expand Down Expand Up @@ -558,7 +559,7 @@ class SnomedProvider extends CodeSystemProvider {
// For complex expressions, just add the display
const display = await this.display(context);
if (display) {
displays.addDesignation(true, 'active', new Designation('en-US', null, display));
displays.addDesignation(true, 'active', 'en-US', DesignationUse.PREFERRED, display);
}
} else {
// Get all designations for the concept
Expand Down
2 changes: 1 addition & 1 deletion tx/workers/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class ReadWorker extends TerminologyWorker {
json.version = cs.version();
}
if (cs.iteratable()) {
json.content = "conplete",
json.content = "complete",
json.concept = [];
let csp = cs.build(this.opContext, []);
let iter = await csp.iteratorAll();
Expand Down