public class SimpleWorkerContext extends BaseWorkerContext implements IWorkerContext, ProfileUtilities.ProfileKnowledgeProvider
| Modifier and Type | Class and Description |
|---|---|
static interface |
SimpleWorkerContext.IContextResourceLoader |
static interface |
SimpleWorkerContext.IValidatorFactory |
BaseWorkerContext.NullTranslatorIWorkerContext.ILoggingService, IWorkerContext.ValidationResultProfileUtilities.ProfileKnowledgeProvider.BindingResolutionexpParameters, logger, name, noTerminologyServer, tsServer, txCache, txServer, validationCache| Constructor and Description |
|---|
SimpleWorkerContext() |
SimpleWorkerContext(SimpleWorkerContext other) |
addNonSupportedCodeSystems, allConformanceResources, cacheResource, cacheVS, copy, doValidateCode, dropResource, dropResource, expandVS, expandVS, expandVS, expandVS, fetchCodeSystem, fetchResource, fetchResourceById, fetchResourceWithException, fetchTypeDefinition, findMapsForSource, getExpandCodesLimit, getExpansionParameters, getLogger, getName, getOverrideVersionNs, getResourceNamesAsSet, getSearchParameter, getStructure, getTransform, hasResource, initTS, isAllowLoadingDuplicates, isCanRunWithoutTerminology, isNoTerminologyServer, listMaps, listNonSupportedSystems, listStructures, listTransforms, oid2Uri, reportStatus, setAllowLoadingDuplicates, setCanRunWithoutTerminology, setExpandCodesLimit, setExpansionProfile, setLogger, setName, setOverrideVersionNs, setTranslator, supportsSystem, tlog, totalCount, translator, validateCode, validateCode, validateCode, validateCode, validateCode, validateCodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallConformanceResources, cacheResource, expandVS, expandVS, expandVS, fetchCodeSystem, fetchResource, fetchResourceById, fetchResourceWithException, fetchTypeDefinition, findMapsForSource, getExpansionParameters, getLogger, getOverrideVersionNs, getResourceNamesAsSet, getTransform, hasResource, isNoTerminologyServer, listTransforms, oid2Uri, setExpansionProfile, setLogger, setOverrideVersionNs, supportsSystem, translator, validateCode, validateCode, validateCode, validateCode, validateCode, validateCodepublic SimpleWorkerContext() throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic SimpleWorkerContext(SimpleWorkerContext other) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionprotected void copy(SimpleWorkerContext other)
public static SimpleWorkerContext fromPack(String path) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
path - filename of the validation packIOExceptionFileNotFoundExceptionorg.hl7.fhir.exceptions.FHIRExceptionExceptionpublic static SimpleWorkerContext fromPackage(org.hl7.fhir.utilities.cache.NpmPackage pi, boolean allowDuplicates) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic static SimpleWorkerContext fromPackage(org.hl7.fhir.utilities.cache.NpmPackage pi) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic static SimpleWorkerContext fromPackage(org.hl7.fhir.utilities.cache.NpmPackage pi, SimpleWorkerContext.IContextResourceLoader loader) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic static SimpleWorkerContext fromPack(String path, boolean allowDuplicates) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic static SimpleWorkerContext fromPack(String path, SimpleWorkerContext.IContextResourceLoader loader) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic static SimpleWorkerContext fromClassPath() throws IOException, org.hl7.fhir.exceptions.FHIRException
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic static SimpleWorkerContext fromClassPath(String name) throws IOException, org.hl7.fhir.exceptions.FHIRException
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic static SimpleWorkerContext fromDefinitions(Map<String,byte[]> source) throws IOException, org.hl7.fhir.exceptions.FHIRException
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic static SimpleWorkerContext fromDefinitions(Map<String,byte[]> source, SimpleWorkerContext.IContextResourceLoader loader) throws IOException, org.hl7.fhir.exceptions.FHIRException
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic String connectToTSServer(String url) throws URISyntaxException
URISyntaxExceptionpublic String connectToTSServer(FHIRToolingClient client) throws URISyntaxException
URISyntaxExceptionpublic void loadFromFile(InputStream stream, String name, SimpleWorkerContext.IContextResourceLoader loader) throws IOException, org.hl7.fhir.exceptions.FHIRException
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic void loadFromPackage(org.hl7.fhir.utilities.cache.NpmPackage pi, SimpleWorkerContext.IContextResourceLoader loader, String... types) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic void loadFromFile(String file, SimpleWorkerContext.IContextResourceLoader loader) throws IOException, org.hl7.fhir.exceptions.FHIRException
IOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic IParser getParser(ParserType type)
IWorkerContextgetParser in interface IWorkerContextpublic IParser getParser(String type)
IWorkerContextgetParser in interface IWorkerContextpublic IParser newJsonParser()
IWorkerContextnewJsonParser in interface IWorkerContextpublic IParser newXmlParser()
IWorkerContextnewXmlParser in interface IWorkerContextpublic INarrativeGenerator getNarrativeGenerator(String prefix, String basePath)
IWorkerContextgetNarrativeGenerator in interface IWorkerContextpublic IResourceValidator newValidator() throws org.hl7.fhir.exceptions.FHIRException
IWorkerContextnewValidator in interface IWorkerContextorg.hl7.fhir.exceptions.FHIRExceptionpublic List<String> getResourceNames()
getResourceNames in interface IWorkerContextpublic List<String> getTypeNames()
getTypeNames in interface IWorkerContextpublic String getAbbreviation(String name)
IWorkerContextgetAbbreviation in interface IWorkerContextpublic boolean isDatatype(String typeSimple)
isDatatype in interface ProfileUtilities.ProfileKnowledgeProviderpublic boolean isResource(String t)
isResource in interface ProfileUtilities.ProfileKnowledgeProviderpublic boolean hasLinkFor(String typeSimple)
hasLinkFor in interface ProfileUtilities.ProfileKnowledgeProviderpublic String getLinkFor(String corePath, String typeSimple)
getLinkFor in interface ProfileUtilities.ProfileKnowledgeProviderpublic ProfileUtilities.ProfileKnowledgeProvider.BindingResolution resolveBinding(StructureDefinition profile, ElementDefinition.ElementDefinitionBindingComponent binding, String path)
resolveBinding in interface ProfileUtilities.ProfileKnowledgeProviderpublic String getLinkForProfile(StructureDefinition profile, String url)
getLinkForProfile in interface ProfileUtilities.ProfileKnowledgeProviderpublic Questionnaire getQuestionnaire()
public void setQuestionnaire(Questionnaire questionnaire)
public Set<String> typeTails()
typeTails in interface IWorkerContextpublic List<StructureDefinition> allStructures()
allStructures in interface IWorkerContextpublic void loadBinariesFromFolder(String folder) throws FileNotFoundException, Exception
FileNotFoundExceptionExceptionpublic void loadBinariesFromFolder(org.hl7.fhir.utilities.cache.NpmPackage pi) throws FileNotFoundException, Exception
FileNotFoundExceptionExceptionpublic void loadFromFolder(String folder) throws FileNotFoundException, Exception
FileNotFoundExceptionExceptionpublic Map<String,byte[]> getBinaries()
public boolean prependLinks()
prependLinks in interface ProfileUtilities.ProfileKnowledgeProviderpublic boolean hasCache()
hasCache in interface IWorkerContextpublic String getVersion()
IWorkerContextgetVersion in interface IWorkerContextpublic List<StructureMap> findTransformsforSource(String url)
public SimpleWorkerContext.IValidatorFactory getValidatorFactory()
public void setValidatorFactory(SimpleWorkerContext.IValidatorFactory validatorFactory)
protected void seeMetadataResource(MetadataResource r, Map map, boolean addId) throws org.hl7.fhir.exceptions.FHIRException
seeMetadataResource in class BaseWorkerContextorg.hl7.fhir.exceptions.FHIRExceptionpublic org.fhir.ucum.UcumService getUcumService()
getUcumService in interface IWorkerContextpublic void setUcumService(org.fhir.ucum.UcumService ucumService)
public boolean isIgnoreProfileErrors()
public void setIgnoreProfileErrors(boolean ignoreProfileErrors)
Copyright © 2014–2018 University Health Network. All rights reserved.