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, transforms, tsServer, txCache, txClient, txLog, validationCache| Constructor and Description |
|---|
SimpleWorkerContext() |
SimpleWorkerContext(SimpleWorkerContext other) |
allConformanceResources, cacheResource, cacheVS, copy, doValidateCode, dropResource, dropResource, expandVS, expandVS, expandVS, expandVS, fetchCodeSystem, fetchResourceById, fetchResourceWithException, fetchTypeDefinition, findMapsForSource, getExpandCodesLimit, getExpansionParameters, getLinkForUrl, getLogger, getName, getOverrideVersionNs, getResourceNamesAsSet, getSearchParameter, getStructure, getStructures, getTransform, getUcumService, hasResource, initTS, isAllowLoadingDuplicates, isCanRunWithoutTerminology, isNoTerminologyServer, isTlogging, listMaps, listStructures, listSupportedSystems, listTransforms, oid2Uri, reportStatus, seeMetadataResource, setAllowLoadingDuplicates, setCanRunWithoutTerminology, setExpandCodesLimit, setExpansionProfile, setLogger, setName, setOverrideVersionNs, setTlogging, setTranslator, setUcumService, supportsSystem, tlog, totalCount, translator, validateCode, validateCode, validateCode, validateCode, validateCode, validateCodeformatMessage, getLocale, isWarnAboutMissingMessages, setLocale, setValidationMessageLanguage, setWarnAboutMissingMessagesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallConformanceResources, cacheResource, expandVS, expandVS, expandVS, fetchCodeSystem, fetchResourceById, fetchResourceWithException, fetchTypeDefinition, findMapsForSource, formatMessage, getExpansionParameters, getLinkForUrl, getLocale, getLogger, getOverrideVersionNs, getResourceNamesAsSet, getStructures, getTransform, getUcumService, hasResource, isNoTerminologyServer, listTransforms, oid2Uri, setExpansionProfile, setLocale, setLogger, setOverrideVersionNs, setUcumService, setValidationMessageLanguage, supportsSystem, translator, validateCode, validateCode, validateCode, validateCode, validateCode, validateCodegetLinkForUrlpublic 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.npm.NpmPackage pi, boolean allowDuplicates) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic static SimpleWorkerContext fromPackage(org.hl7.fhir.utilities.npm.NpmPackage pi) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic static SimpleWorkerContext fromPackage(org.hl7.fhir.utilities.npm.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 FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException
FileNotFoundExceptionIOExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic String connectToTSServer(TerminologyClient client, String log) throws URISyntaxException, org.hl7.fhir.exceptions.FHIRException
URISyntaxExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic 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.npm.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 ProfileUtilities.ProfileKnowledgeProvider.BindingResolution resolveBinding(StructureDefinition profile, String url, 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.npm.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)
public <T extends Resource> T fetchResource(Class<T> class_, String uri)
IWorkerContextfetchResource in interface IWorkerContextfetchResource in class BaseWorkerContextpublic void generateSnapshot(StructureDefinition p) throws org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException
generateSnapshot in interface IWorkerContextorg.hl7.fhir.exceptions.DefinitionExceptionorg.hl7.fhir.exceptions.FHIRExceptionpublic boolean isIgnoreProfileErrors()
public void setIgnoreProfileErrors(boolean ignoreProfileErrors)
public String listMapUrls()
Copyright © 2014–2021 Health Level 7. All rights reserved.