
Package ca.uhn.fhir.jpa.validation
Class ValidatorResourceFetcher
java.lang.Object
ca.uhn.fhir.jpa.validation.ValidatorResourceFetcher
- All Implemented Interfaces:
org.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher
public class ValidatorResourceFetcher
extends Object
implements org.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher
Please note that this bean is not currently used as part of the $validate operation.
The FHIR Core validation library uses
WorkerContextValidationSupportAdapter to retrieve validation resources.-
Constructor Summary
ConstructorsConstructorDescriptionValidatorResourceFetcher(ca.uhn.fhir.context.FhirContext theFhirContext, ca.uhn.fhir.context.support.IValidationSupport theValidationSupport, DaoRegistry theDaoRegistry) -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.r5.elementmodel.Elementfetch(org.hl7.fhir.r5.utils.validation.IResourceValidator iResourceValidator, Object appContext, String theUrl) org.hl7.fhir.r5.model.CanonicalResourcefetchCanonicalResource(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, String url) fetchCanonicalResourceVersions(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, String url) booleanfetchesCanonicalResource(org.hl7.fhir.r5.utils.validation.IResourceValidator iResourceValidator, String s) byte[]booleanresolveURL(org.hl7.fhir.r5.utils.validation.IResourceValidator iResourceValidator, Object o, String s, String s1, String s2, boolean isCanonical, List<org.hl7.fhir.r5.model.CanonicalType> targets) org.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher
-
Constructor Details
-
ValidatorResourceFetcher
public ValidatorResourceFetcher(ca.uhn.fhir.context.FhirContext theFhirContext, ca.uhn.fhir.context.support.IValidationSupport theValidationSupport, DaoRegistry theDaoRegistry)
-
-
Method Details
-
fetch
public org.hl7.fhir.r5.elementmodel.Element fetch(org.hl7.fhir.r5.utils.validation.IResourceValidator iResourceValidator, Object appContext, String theUrl) throws org.hl7.fhir.exceptions.FHIRException - Specified by:
fetchin interfaceorg.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher- Throws:
org.hl7.fhir.exceptions.FHIRException
-
resolveURL
public boolean resolveURL(org.hl7.fhir.r5.utils.validation.IResourceValidator iResourceValidator, Object o, String s, String s1, String s2, boolean isCanonical, List<org.hl7.fhir.r5.model.CanonicalType> targets) - Specified by:
resolveURLin interfaceorg.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher
-
fetchRaw
public byte[] fetchRaw(org.hl7.fhir.r5.utils.validation.IResourceValidator iResourceValidator, String s) throws UnsupportedOperationException - Specified by:
fetchRawin interfaceorg.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher- Throws:
UnsupportedOperationException
-
setLocale
- Specified by:
setLocalein interfaceorg.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher
-
fetchCanonicalResource
public org.hl7.fhir.r5.model.CanonicalResource fetchCanonicalResource(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, String url) - Specified by:
fetchCanonicalResourcein interfaceorg.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher
-
fetchesCanonicalResource
public boolean fetchesCanonicalResource(org.hl7.fhir.r5.utils.validation.IResourceValidator iResourceValidator, String s) - Specified by:
fetchesCanonicalResourcein interfaceorg.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher
-
fetchCanonicalResourceVersions
public Set<String> fetchCanonicalResourceVersions(org.hl7.fhir.r5.utils.validation.IResourceValidator validator, Object appContext, String url) - Specified by:
fetchCanonicalResourceVersionsin interfaceorg.hl7.fhir.r5.utils.validation.IValidatorResourceFetcher
-