fhirsmith 0.9.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/package.json +1 -1
- package/translations/Messages.properties +3 -1
- package/tx/cs/cs-api.js +2 -1
- package/tx/cs/cs-areacode.js +1 -1
- package/tx/cs/cs-country.js +1 -1
- package/tx/cs/cs-cpt.js +1 -1
- package/tx/cs/cs-cs.js +1 -1
- package/tx/cs/cs-currency.js +1 -1
- package/tx/cs/cs-hgvs.js +1 -1
- package/tx/cs/cs-lang.js +1 -1
- package/tx/cs/cs-loinc.js +1 -1
- package/tx/cs/cs-ndc.js +1 -1
- package/tx/cs/cs-omop.js +1 -1
- package/tx/cs/cs-rxnorm.js +1 -1
- package/tx/cs/cs-snomed.js +603 -22
- package/tx/cs/cs-ucum.js +1 -1
- package/tx/importers/import-sct.module.js +167 -79
- package/tx/library.js +3 -0
- package/tx/sct/ecl.js +98 -49
- package/tx/tx.js +6 -2
- package/tx/vs/vs-database.js +213 -92
- package/tx/vs/vs-vsac.js +151 -55
- package/tx/workers/expand.js +42 -24
- package/tx/workers/related.js +1 -1
- package/tx/workers/validate.js +21 -24
- package/tx/workers/worker.js +16 -1
package/tx/workers/worker.js
CHANGED
|
@@ -340,10 +340,25 @@ class TerminologyWorker {
|
|
|
340
340
|
* @param {string} version - ValueSet version (optional, overrides URL version)
|
|
341
341
|
* @returns {ValueSet|null} Found ValueSet or null
|
|
342
342
|
*/
|
|
343
|
-
async findValueSet(url, version = '') {
|
|
343
|
+
async findValueSet(url, version, source = '') {
|
|
344
344
|
if (!url) {
|
|
345
345
|
return null;
|
|
346
346
|
}
|
|
347
|
+
if (url.startsWith("#")) {
|
|
348
|
+
if (source) {
|
|
349
|
+
if (source.jsonObj) {
|
|
350
|
+
source = source.jsonObj;
|
|
351
|
+
}
|
|
352
|
+
for (const contained of source.contained || []) {
|
|
353
|
+
if (contained.id === url.substring(1)) {
|
|
354
|
+
const ret = this.wrapRawResource(contained);
|
|
355
|
+
ret.isContained = true;
|
|
356
|
+
return ret;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
return null;
|
|
361
|
+
}
|
|
347
362
|
|
|
348
363
|
// Parse URL|version format
|
|
349
364
|
let effectiveUrl = url;
|