fix bug in external valueset processing

This commit is contained in:
Grahame Grieve 2024-01-17 23:39:02 +11:00
parent 8f5afdbcd1
commit 0a41d467b9
2 changed files with 9 additions and 4 deletions

View File

@ -3157,14 +3157,11 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
private <T extends Resource> T doFindTxResource(Class<T> class_, String canonical) {
// well, we haven't found it locally. We're going look it up
System.out.println("doFindTxResource: "+canonical);
if (class_ == ValueSet.class) {
SourcedValueSet svs = null;
if (txCache.hasValueSet(canonical)) {
svs = txCache.getValueSet(canonical);
System.out.println("doFindTxResource - in cache from "+svs.getServer());
} else {
System.out.println("doFindTxResource - not in cache");
svs = terminologyClientManager.findValueSetOnServer(canonical);
txCache.cacheValueSet(canonical, svs);
}

View File

@ -1,6 +1,14 @@
{
"http://loinc.org/vs/LL378-1" : null,
"http://www.rfc-editor.org/bcp/bcp13.txt" : null,
"http://loinc.org/vs/LL1971-2" : null,
"http://fhir.ch/ig/ch-ig/ValueSet/ch-ig-example" : null,
"https://healthterminologies.gov.au/fhir/ValueSet/australian-immunisation-register-vaccine-1" : {
"server" : "https://tx.ontoserver.csiro.au/fhir",
"filename" : "vs-85f7fe3d-bb1d-4112-ada7-72c47bf4b237.json"
}
},
"http://hl7.org/fhir/us/qicore/ValueSet/qicore-negation-reason" : null,
"http://fhir.ch/ig/ch-ig/ValueSet/OrganizationType" : null,
"http://loinc.org/vs/LL4048-6" : null,
"https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_ICD_SEITENLOKALISATION" : null
}