Skip to content

UCUM loading consistent with all other sources#195

Closed
costateixeira wants to merge 5 commits intoHealthIntersections:mainfrom
costateixeira:ucum-loading
Closed

UCUM loading consistent with all other sources#195
costateixeira wants to merge 5 commits intoHealthIntersections:mainfrom
costateixeira:ucum-loading

Conversation

@costateixeira
Copy link
Copy Markdown
Contributor

@costateixeira costateixeira commented Apr 4, 2026

Caution

POSSIBLY BREAKING CHANGE: Existing ucum: paths in library.yml configs must/should be updated.
Old: ucum:data/terminology-cache/ucum-essence-2.2.xml
New: ucum:ucum-essence-2.2.xml
(haven't tested, but probably it will just download another copy and it will be ok)

Note

Can amend the PR with a failsafe option

UCUM was the only terminology source using a path relative to the app root instead of resolving from the terminology-cache folder via getOrDownloadFile. This made config inconsistent — UCUM required data/terminology-cache/ prefix while LOINC, SNOMED, etc. did not. Now ucum:ucum-essence-2.2.xml works the same as loinc:loinc-2.81-b.db.

costateixeira and others added 5 commits April 4, 2026 21:36
…rces

UCUM was the only terminology source using a path relative to the app root
instead of resolving from the terminology-cache folder via getOrDownloadFile.
This made config inconsistent — UCUM required `data/terminology-cache/` prefix
while LOINC, SNOMED, etc. did not. Now `ucum:ucum-essence-2.2.xml` works the
same as `loinc:loinc-2.81-b.db`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy ucum-essence.xml to defaults/data/terminology-cache/ and update
test-cases.yml and tx.fhir.org.yml to use the cache-relative path,
consistent with the new getOrDownloadFile behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@grahamegrieve
Copy link
Copy Markdown
Contributor

given that the tx.fhir.org configuration for ucum is ucum:tx/data/ucum-essence.xml, and that is correct and working, I don't understand why this is an issue

@costateixeira
Copy link
Copy Markdown
Contributor Author

https://storage.googleapis.com/tx-fhir-org/ucum-essence.xml does not exist. that is when i spotted this difference in behaviour - all the other cache files work the same except for this.

@grahamegrieve
Copy link
Copy Markdown
Contributor

right, it comes from the file in the source code, as it must

@costateixeira
Copy link
Copy Markdown
Contributor Author

so the deployment step to other instances should include manually copying it? which one? in storage we have ucum-essence-2.2.xml

@grahamegrieve
Copy link
Copy Markdown
Contributor

grahamegrieve commented Apr 6, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants