diff --git a/tx/workers/expand.js b/tx/workers/expand.js index 0756944..1f6050c 100644 --- a/tx/workers/expand.js +++ b/tx/workers/expand.js @@ -626,7 +626,7 @@ class ValueSetExpander { } else if (cs.contentMode() === 'supplement') { throw new Issue('error', 'business-rule', null, null, 'The code system definition for ' + cset.system + ' defines a supplement, so this expansion cannot be performed', 'invalid'); } else if (this.params.incompleteOK) { - this.addParamUri(cs.contentMode, cs.system + '|' + cs.version); + this.addParamUri(cs.contentMode(), cs.system + '|' + cs.version); } else { throw new Issue('error', 'business-rule', null, null, 'The code system definition for ' + cset.system + ' is a ' + cs.contentMode() + ', so this expansion is not permitted unless the expansion parameter "incomplete-ok" has a value of "true"', 'invalid', 422); } diff --git a/tx/workers/validate.js b/tx/workers/validate.js index 2c71585..044fb1d 100644 --- a/tx/workers/validate.js +++ b/tx/workers/validate.js @@ -597,11 +597,11 @@ class ValueSetChecker { defLang.value = cs.defLang(); this.checkCanonicalStatus(path, op, cs, this.valueSet); ver.value = cs.version(); - contentMode.value = cs.contentMode; + contentMode.value = cs.contentMode(); let ctxt = cs.locate(code); if (ctxt.context === null) { unkCodes.push(system + '|' + version + '#' + code); - if (cs.contentMode !== 'complete') { + if (cs.contentMode() !== 'complete') { result = true; cause.value = 'code-invalid'; this.worker.opContext.addNote(this.valueSet, 'Not found in Incomplete Code System', this.indentCount);