fix bug in context around versioning

This commit is contained in:
Grahame Grieve 2019-03-15 13:18:52 +11:00
parent 4d464d790d
commit 8a506c94ab
1 changed files with 7 additions and 1 deletions

View File

@ -716,8 +716,14 @@ public abstract class BaseWorkerContext implements IWorkerContext {
} else if (class_ == StructureMap.class) {
return (T) transforms.get(uri);
} else if (class_ == ValueSet.class) {
return (T) valueSets.get(uri);
if (valueSets.containsKey(uri+"|"+version))
return (T) valueSets.get(uri+"|"+version);
else
return (T) valueSets.get(uri);
} else if (class_ == CodeSystem.class) {
if (codeSystems.containsKey(uri+"|"+version))
return (T) codeSystems.get(uri+"|"+version);
else
return (T) codeSystems.get(uri);
} else if (class_ == ConceptMap.class) {
return (T) maps.get(uri);