
Package org.hl7.fhir.r5.utils.validation
Interface IValidatorResourceFetcher
public interface IValidatorResourceFetcher
-
Method Summary
Modifier and TypeMethodDescriptionfetch(IResourceValidator validator, Object appContext, String url) fetchCanonicalResource(IResourceValidator validator, Object appContext, String url) this is used when the validator encounters a reference to a structure definition, value set or code system at some random URL reference while validating.fetchCanonicalResourceVersions(IResourceValidator validator, Object appContext, String url) booleanfetchesCanonicalResource(IResourceValidator validator, String url) Whether to try calling fetchCanonicalResource for this reference (not whether it will succeed - just throw an exception from fetchCanonicalResource if it doesn't resolve.byte[]fetchRaw(IResourceValidator validator, String url) booleanresolveURL(IResourceValidator validator, Object appContext, String path, String url, String type, boolean canonical, List<CanonicalType> targets)
-
Method Details
-
fetch
Element fetch(IResourceValidator validator, Object appContext, String url) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRExceptionIOException
-
resolveURL
boolean resolveURL(IResourceValidator validator, Object appContext, String path, String url, String type, boolean canonical, List<CanonicalType> targets) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
fetchRaw
- Throws:
IOException
-
setLocale
-
fetchCanonicalResource
CanonicalResource fetchCanonicalResource(IResourceValidator validator, Object appContext, String url) throws URISyntaxException this is used when the validator encounters a reference to a structure definition, value set or code system at some random URL reference while validating.Added in v5.2.2. return null to leave functionality as it was before then.
- Returns:
- an R5 version of the resource
- Throws:
URISyntaxException
-
fetchesCanonicalResource
Whether to try calling fetchCanonicalResource for this reference (not whether it will succeed - just throw an exception from fetchCanonicalResource if it doesn't resolve. This is a policy thing.Added in v5.2.2. return false to leave functionality as it was before then.
- Parameters:
url-- Returns:
-
fetchCanonicalResourceVersions
Set<String> fetchCanonicalResourceVersions(IResourceValidator validator, Object appContext, String url)
-