
Package org.hl7.fhir.dstu3.context
Class SimpleWorkerContext
java.lang.Object
org.hl7.fhir.utilities.i18n.I18nBase
org.hl7.fhir.dstu3.context.BaseWorkerContext
org.hl7.fhir.dstu3.context.SimpleWorkerContext
- All Implemented Interfaces:
ProfileUtilities.ProfileKnowledgeProvider
,IWorkerContext
@Deprecated
public class SimpleWorkerContext
extends BaseWorkerContext
implements IWorkerContext, ProfileUtilities.ProfileKnowledgeProvider
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Deprecated.static interface
Deprecated.Nested classes/interfaces inherited from interface org.hl7.fhir.dstu3.context.IWorkerContext
IWorkerContext.ILoggingService, IWorkerContext.ValidationResult
Nested classes/interfaces inherited from interface org.hl7.fhir.dstu3.conformance.ProfileUtilities.ProfileKnowledgeProvider
ProfileUtilities.ProfileKnowledgeProvider.BindingResolution
-
Field Summary
Fields inherited from class org.hl7.fhir.dstu3.context.BaseWorkerContext
allowLoadingDuplicates, cache, cacheValidation, codeSystems, dataElements, expansionCache, expProfile, extensionDefinitions, logger, maps, name, nonSupportedCodeSystems, noTerminologyServer, operations, profiles, questionnaires, searchParameters, transforms, tsServer, txServer, validationCache, validationCachePath, valueSets
Fields inherited from class org.hl7.fhir.utilities.i18n.I18nBase
KEY_DELIMITER, PLURAL_SUFFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.connectToTSServer
(String url, String userAgent) Deprecated.<T extends Resource>
TfetchResource
(Class<T> class_, String uri) Deprecated.Find an identified resource.<T extends Resource>
TfetchResourceWithException
(Class<T> class_, String uri) Deprecated.Deprecated.static SimpleWorkerContext
Deprecated.static SimpleWorkerContext
fromClassPath
(String name) Deprecated.static SimpleWorkerContext
fromDefinitions
(Map<String, byte[]> source) Deprecated.static SimpleWorkerContext
fromDefinitions
(Map<String, byte[]> source, SimpleWorkerContext.IContextResourceLoader loader) Deprecated.static SimpleWorkerContext
Deprecated.static SimpleWorkerContext
Deprecated.Load the working context from the validation packstatic SimpleWorkerContext
Deprecated.static SimpleWorkerContext
fromPack
(String path, SimpleWorkerContext.IContextResourceLoader loader) Deprecated.static SimpleWorkerContext
fromPackage
(org.hl7.fhir.utilities.npm.NpmPackage pi) Deprecated.static SimpleWorkerContext
fromPackage
(org.hl7.fhir.utilities.npm.NpmPackage pi, boolean allowDuplicates) Deprecated.static SimpleWorkerContext
fromPackage
(org.hl7.fhir.utilities.npm.NpmPackage pi, SimpleWorkerContext.IContextResourceLoader loader) Deprecated.getAbbreviation
(String name) Deprecated.returns the recommended tla for the typeDeprecated.getLinkFor
(String corePath, String typeSimple) Deprecated.getLinkForProfile
(StructureDefinition profile, String url) Deprecated.getNarrativeGenerator
(String prefix, String basePath) Deprecated.Get a generator that can generate narrative for the instanceDeprecated.Get a parser to read/write instances.getParser
(ParserType type) Deprecated.Get a parser to read/write instances.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Get the versions of the definitions loaded in contextboolean
hasCache()
Deprecated.boolean
hasLinkFor
(String typeSimple) Deprecated.<T extends Resource>
booleanhasResource
(Class<T> class_, String uri) Deprecated.find whether a resource is available.boolean
isDatatype
(String typeSimple) Deprecated.boolean
isResource
(String t) Deprecated.void
loadFromFile
(InputStream stream, String name, SimpleWorkerContext.IContextResourceLoader loader) Deprecated.void
loadFromFile
(String file, SimpleWorkerContext.IContextResourceLoader loader) Deprecated.void
loadFromFolder
(String folder) Deprecated.void
loadFromPackage
(org.hl7.fhir.utilities.npm.NpmPackage pi, SimpleWorkerContext.IContextResourceLoader loader, String... types) Deprecated.Deprecated.Get a JSON parserDeprecated.Get a validator that can check whether a resource is validDeprecated.Get an XML parserDeprecated.boolean
Deprecated.resolveBinding
(StructureDefinition profile, ElementDefinition.ElementDefinitionBindingComponent binding, String path) Deprecated.void
seeProfile
(String url, StructureDefinition p) Deprecated.void
seeResource
(String url, Resource r) Deprecated.void
seeValueSet
(String url, ValueSet vs) Deprecated.void
setCache
(ValueSetExpansionCache cache) Deprecated.void
setQuestionnaire
(Questionnaire questionnaire) Deprecated.void
setValidatorFactory
(SimpleWorkerContext.IValidatorFactory validatorFactory) Deprecated.int
Deprecated.Deprecated.Methods inherited from class org.hl7.fhir.dstu3.context.BaseWorkerContext
cacheResource, dropCodeSystem, dropExtensionDefinition, dropProfile, dropResource, dropValueSet, expandOnServer, expandVS, expandVS, fetchCodeSystem, fetchTypeDefinition, findMapsForSource, getCodeSystems, getDataElements, getExpandCodesLimit, getExpansionProfile, getExtensionDefinitions, getMaps, getName, getNonSupportedCodeSystems, getOperations, getProfiles, getQuestionnaires, getResourceNamesAsSet, getValueSets, initTS, isAllowLoadingDuplicates, isCanRunWithoutTerminology, isNoTerminologyServer, loadValidationCache, reportStatus, seeCodeSystem, seeExtensionDefinition, seeOperation, seeQuestionnaire, setAllowLoadingDuplicates, setCanRunWithoutTerminology, setExpandCodesLimit, setExpansionProfile, setLogger, setName, supportsSystem, validateCode, validateCode, validateCode, validateCode, validateCode
Methods inherited from class org.hl7.fhir.utilities.i18n.I18nBase
formatMessage, formatMessagePlural, getLocale, getMessagesSourceFileName, getPluralKey, getPluralKeys, getPluralSuffixes, getRootKeyFromPlural, isWarnAboutMissingMessages, messageKeyExistsForLocale, setLocale, setPluralRules, setValidationMessageLanguage, setWarnAboutMissingMessages, typeOfString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.dstu3.context.IWorkerContext
expandVS, expandVS, fetchCodeSystem, fetchTypeDefinition, findMapsForSource, formatMessage, getExpansionProfile, getLocale, getResourceNamesAsSet, isNoTerminologyServer, setExpansionProfile, setLocale, setLogger, setValidationMessageLanguage, supportsSystem, validateCode, validateCode, validateCode, validateCode, validateCode
-
Constructor Details
-
SimpleWorkerContext
public SimpleWorkerContext()Deprecated.
-
-
Method Details
-
fromPack
public static SimpleWorkerContext fromPack(String path) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.Load the working context from the validation pack- Parameters:
path
- filename of the validation pack- Returns:
- Throws:
IOException
FileNotFoundException
org.hl7.fhir.exceptions.FHIRException
Exception
-
fromNothing
public static SimpleWorkerContext fromNothing() throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRExceptionDeprecated.- Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
fromPackage
public static SimpleWorkerContext fromPackage(org.hl7.fhir.utilities.npm.NpmPackage pi, boolean allowDuplicates) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.- Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
fromPackage
public static SimpleWorkerContext fromPackage(org.hl7.fhir.utilities.npm.NpmPackage pi) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.- Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
fromPackage
public static SimpleWorkerContext fromPackage(org.hl7.fhir.utilities.npm.NpmPackage pi, SimpleWorkerContext.IContextResourceLoader loader) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.- Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
fromPack
public static SimpleWorkerContext fromPack(String path, boolean allowDuplicates) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.- Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
fromPack
public static SimpleWorkerContext fromPack(String path, SimpleWorkerContext.IContextResourceLoader loader) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.- Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
fromClassPath
public static SimpleWorkerContext fromClassPath() throws IOException, org.hl7.fhir.exceptions.FHIRExceptionDeprecated.- Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
fromClassPath
public static SimpleWorkerContext fromClassPath(String name) throws IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.- Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
fromDefinitions
public static SimpleWorkerContext fromDefinitions(Map<String, byte[]> source) throws IOException, org.hl7.fhir.exceptions.FHIRExceptionDeprecated.- Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
fromDefinitions
public static SimpleWorkerContext fromDefinitions(Map<String, byte[]> source, SimpleWorkerContext.IContextResourceLoader loader) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRExceptionDeprecated.- Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
connectToTSServer
Deprecated.- Throws:
URISyntaxException
-
loadFromFile
public void loadFromFile(InputStream stream, String name, SimpleWorkerContext.IContextResourceLoader loader) throws IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.- Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
seeResource
Deprecated.- Throws:
org.hl7.fhir.exceptions.FHIRException
-
seeValueSet
Deprecated.- Overrides:
seeValueSet
in classBaseWorkerContext
- Throws:
org.hl7.fhir.exceptions.DefinitionException
-
seeProfile
public void seeProfile(String url, StructureDefinition p) throws org.hl7.fhir.exceptions.FHIRException Deprecated.- Overrides:
seeProfile
in classBaseWorkerContext
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
loadFromPackage
public void loadFromPackage(org.hl7.fhir.utilities.npm.NpmPackage pi, SimpleWorkerContext.IContextResourceLoader loader, String... types) throws FileNotFoundException, IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.- Throws:
FileNotFoundException
IOException
org.hl7.fhir.exceptions.FHIRException
-
loadFromFile
public void loadFromFile(String file, SimpleWorkerContext.IContextResourceLoader loader) throws IOException, org.hl7.fhir.exceptions.FHIRException Deprecated.- Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
getParser
Deprecated.Description copied from interface:IWorkerContext
Get a parser to read/write instances. Use the defined type (will be extended as further types are added, though the only currently anticipate type is RDF) XML/JSON - the standard renderers XHTML - render the narrative only (generate it if necessary)- Specified by:
getParser
in interfaceIWorkerContext
- Parameters:
type
-- Returns:
-
getParser
Deprecated.Description copied from interface:IWorkerContext
Get a parser to read/write instances. Determine the type from the stated type. Supported value for type: - the recommended MIME types - variants of application/xml and application/json - _format values xml, json- Specified by:
getParser
in interfaceIWorkerContext
- Parameters:
type
-- Returns:
-
newJsonParser
Deprecated.Description copied from interface:IWorkerContext
Get a JSON parser- Specified by:
newJsonParser
in interfaceIWorkerContext
- Returns:
-
newXmlParser
Deprecated.Description copied from interface:IWorkerContext
Get an XML parser- Specified by:
newXmlParser
in interfaceIWorkerContext
- Returns:
-
hasResource
Deprecated.Description copied from interface:IWorkerContext
find whether a resource is available. Implementations of the interface can assume that if hasResource ruturns true, the resource will usually be fetched subsequently- Specified by:
hasResource
in interfaceIWorkerContext
- Parameters:
class_
-uri
-- Returns:
-
getNarrativeGenerator
Deprecated.Description copied from interface:IWorkerContext
Get a generator that can generate narrative for the instance- Specified by:
getNarrativeGenerator
in interfaceIWorkerContext
- Returns:
- a prepared generator
-
newValidator
Deprecated.Description copied from interface:IWorkerContext
Get a validator that can check whether a resource is valid- Specified by:
newValidator
in interfaceIWorkerContext
- Returns:
- a prepared generator
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fetchResource
Deprecated.Description copied from interface:IWorkerContext
Find an identified resource. The most common use of this is to access the the standard conformance resources that are part of the standard - structure definitions, value sets, concept maps, etc. Also, the narrative generator uses this, and may access any kind of resource The URI is called speculatively for things that might exist, so not finding a matching resouce, return null, not an error The URI can have one of 3 formats: - a full URL e.g. http://acme.org/fhir/ValueSet/[id] - a relative URL e.g. ValueSet/[id] - a logical id e.g. [id] It's an error if the second form doesn't agree with class_. It's an error if class_ is null for the last form- Specified by:
fetchResource
in interfaceIWorkerContext
- Returns:
-
fetchResourceWithException
public <T extends Resource> T fetchResourceWithException(Class<T> class_, String uri) throws org.hl7.fhir.exceptions.FHIRException Deprecated.- Specified by:
fetchResourceWithException
in interfaceIWorkerContext
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
totalCount
Deprecated. -
setCache
Deprecated. -
getResourceNames
Deprecated.- Specified by:
getResourceNames
in interfaceIWorkerContext
-
getTypeNames
Deprecated.- Specified by:
getTypeNames
in interfaceIWorkerContext
-
getAbbreviation
Deprecated.Description copied from interface:IWorkerContext
returns the recommended tla for the type- Specified by:
getAbbreviation
in interfaceIWorkerContext
- Parameters:
name
-- Returns:
-
isDatatype
Deprecated.- Specified by:
isDatatype
in interfaceProfileUtilities.ProfileKnowledgeProvider
-
isResource
Deprecated.- Specified by:
isResource
in interfaceProfileUtilities.ProfileKnowledgeProvider
-
hasLinkFor
Deprecated.- Specified by:
hasLinkFor
in interfaceProfileUtilities.ProfileKnowledgeProvider
-
getLinkFor
Deprecated.- Specified by:
getLinkFor
in interfaceProfileUtilities.ProfileKnowledgeProvider
-
resolveBinding
public ProfileUtilities.ProfileKnowledgeProvider.BindingResolution resolveBinding(StructureDefinition profile, ElementDefinition.ElementDefinitionBindingComponent binding, String path) Deprecated.- Specified by:
resolveBinding
in interfaceProfileUtilities.ProfileKnowledgeProvider
-
getLinkForProfile
Deprecated.- Specified by:
getLinkForProfile
in interfaceProfileUtilities.ProfileKnowledgeProvider
-
getQuestionnaire
Deprecated. -
setQuestionnaire
Deprecated. -
typeTails
Deprecated.- Specified by:
typeTails
in interfaceIWorkerContext
-
allStructures
Deprecated.- Specified by:
allStructures
in interfaceIWorkerContext
-
allConformanceResources
Deprecated.- Specified by:
allConformanceResources
in interfaceIWorkerContext
-
oid2Uri
Deprecated.- Specified by:
oid2Uri
in interfaceIWorkerContext
-
loadFromFolder
Deprecated.- Throws:
FileNotFoundException
Exception
-
getBinaries
Deprecated. -
prependLinks
Deprecated.- Specified by:
prependLinks
in interfaceProfileUtilities.ProfileKnowledgeProvider
-
hasCache
Deprecated.- Specified by:
hasCache
in interfaceIWorkerContext
-
getVersion
Deprecated.Description copied from interface:IWorkerContext
Get the versions of the definitions loaded in context- Specified by:
getVersion
in interfaceIWorkerContext
- Returns:
-
getTransforms
Deprecated. -
findTransformsforSource
Deprecated. -
getValidatorFactory
Deprecated. -
setValidatorFactory
Deprecated.
-