fix bug validating unknown code system

This commit is contained in:
Grahame Grieve 2019-01-29 21:46:02 +11:00
parent 1049584c41
commit 6d2e2075c9
3 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ import org.hl7.fhir.r4.conformance.ProfileUtilities;
import org.hl7.fhir.r4.context.TerminologyCache.CacheToken;
import org.hl7.fhir.r4.model.BooleanType;
import org.hl7.fhir.r4.model.CodeSystem;
import org.hl7.fhir.r4.model.CodeSystem.CodeSystemContentMode;
import org.hl7.fhir.r4.model.CodeSystem.ConceptDefinitionComponent;
import org.hl7.fhir.r4.model.CodeableConcept;
import org.hl7.fhir.r4.model.Coding;
@ -285,7 +286,7 @@ public abstract class BaseWorkerContext implements IWorkerContext {
@Override
public boolean supportsSystem(String system) throws TerminologyServiceException {
synchronized (lock) {
if (codeSystems.containsKey(system))
if (codeSystems.containsKey(system) && codeSystems.get(system).getContent() != CodeSystemContentMode.NOTPRESENT)
return true;
else if (supportedCodeSystems.contains(system))
return true;

BIN
r4 test resources.lnk Normal file

Binary file not shown.

Binary file not shown.