diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java index a1c23af68..1aa573eb5 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java @@ -3157,11 +3157,14 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte private T doFindTxResource(Class 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)) { + System.out.println("doFindTxResource - in cache"); svs = txCache.getValueSet(canonical); } else { + System.out.println("doFindTxResource - not in cache"); svs = terminologyClientManager.findValueSetOnServer(canonical); txCache.cacheValueSet(canonical, svs); } diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/https___www.humanservices.gov.au_organisations_health-professionals_enablers_air-vaccine-code-formats.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/https___www.humanservices.gov.au_organisations_health-professionals_enablers_air-vaccine-code-formats.cache index f2b35ce13..72ecf45bf 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/https___www.humanservices.gov.au_organisations_health-professionals_enablers_air-vaccine-code-formats.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/https___www.humanservices.gov.au_organisations_health-professionals_enablers_air-vaccine-code-formats.cache @@ -15,7 +15,6 @@ v: { "system" : "https://www.humanservices.gov.au/organisations/health-professionals/enablers/air-vaccine-code-formats", "version" : "20210222", "server" : "http://tx-dev.fhir.org/r4", - "unknown-systems" : "", "issues" : { "resourceType" : "OperationOutcome" } @@ -32,6 +31,28 @@ v: { "valueString" : "http://hl7.org/fhir/ExpansionProfile/dc8fd4bc-091a-424a-8a3b-6198ef146891" }] }}#### +v: { + "display" : "COVID-19 Vaccine AstraZeneca", + "code" : "COVAST", + "system" : "https://www.humanservices.gov.au/organisations/health-professionals/enablers/air-vaccine-code-formats", + "version" : "20210222", + "server" : "http://tx-dev.fhir.org/r4", + "issues" : { + "resourceType" : "OperationOutcome" +} + +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "https://www.humanservices.gov.au/organisations/health-professionals/enablers/air-vaccine-code-formats", + "code" : "COVAST" +}, "valueSet" :null, "langs":"", "useServer":"true", "useClient":"true", "guessSystem":"false", "activeOnly":"false", "membershipOnly":"false", "displayWarningMode":"false", "versionFlexible":"false", "profile": { + "resourceType" : "Parameters", + "parameter" : [{ + "name" : "profile-url", + "valueString" : "http://hl7.org/fhir/ExpansionProfile/dc8fd4bc-091a-424a-8a3b-6198ef146891" + }] +}}#### v: { "display" : "COVID-19 Vaccine AstraZeneca", "code" : "COVAST",