Package de.gematik.fhir.snapshots.helper
Class FixedSnapshotGeneratingValidationSupport
java.lang.Object
org.hl7.fhir.common.hapi.validation.support.SnapshotGeneratingValidationSupport
de.gematik.fhir.snapshots.helper.FixedSnapshotGeneratingValidationSupport
- All Implemented Interfaces:
ca.uhn.fhir.context.support.IValidationSupport
public class FixedSnapshotGeneratingValidationSupport
extends org.hl7.fhir.common.hapi.validation.support.SnapshotGeneratingValidationSupport
Modified from https://github.com/DAV-ABDA/eRezept-Referenzvalidator/blob/478e8a2e3f0e24f54a331d561f518eeb2817ed58/core/src/main/java/de/abda/fhir/validator/core/support/VersionIgnoringSnapshotGeneratingValidationSupport.java
Copyright 2022 Deutscher Apothekerverband (DAV), Apache License, Version 2.0
Originally, the custom snapshot generating class was created due to https://github.com/hapifhir/hapi-fhir/issues/3942
However, the bug is not reproducible with the current version of HAPI FHIR.
Nevertheless, the implementation below logs the validation messages generated during snapshot generation, which is not available in HAPI FHIR yet.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.uhn.fhir.context.support.IValidationSupport
ca.uhn.fhir.context.support.IValidationSupport.BaseConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.CodeValidationIssue, ca.uhn.fhir.context.support.IValidationSupport.CodeValidationIssueCode, ca.uhn.fhir.context.support.IValidationSupport.CodeValidationIssueCoding, ca.uhn.fhir.context.support.IValidationSupport.CodeValidationResult, ca.uhn.fhir.context.support.IValidationSupport.CodingConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.ConceptDesignation, ca.uhn.fhir.context.support.IValidationSupport.GroupConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.IssueSeverity, ca.uhn.fhir.context.support.IValidationSupport.LookupCodeResult, ca.uhn.fhir.context.support.IValidationSupport.StringConceptProperty, ca.uhn.fhir.context.support.IValidationSupport.TranslateCodeRequest, ca.uhn.fhir.context.support.IValidationSupport.ValueSetExpansionOutcome -
Field Summary
Fields inherited from interface ca.uhn.fhir.context.support.IValidationSupport
TYPE_CODING, TYPE_GROUP, TYPE_STRING, URL_PREFIX_VALUE_SET -
Constructor Summary
ConstructorsConstructorDescriptionFixedSnapshotGeneratingValidationSupport(ca.uhn.fhir.context.FhirContext theCtx) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.instance.model.api.IBaseResourcegenerateSnapshot(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, org.hl7.fhir.instance.model.api.IBaseResource theInput, String theUrl, String theWebUrl, String theProfileName) Methods inherited from class org.hl7.fhir.common.hapi.validation.support.SnapshotGeneratingValidationSupport
getFhirContext, getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.context.support.IValidationSupport
expandValueSet, expandValueSet, fetchAllConformanceResources, fetchAllNonBaseStructureDefinitions, fetchAllSearchParameters, fetchAllStructureDefinitions, fetchBinary, fetchCodeSystem, fetchResource, fetchStructureDefinition, fetchValueSet, invalidateCaches, isCodeSystemSupported, isEnabledValidationForCodingsLogicalAnd, isRemoteTerminologyServiceConfigured, isValueSetSupported, lookupCode, lookupCode, lookupCode, translateConcept, validateCode, validateCodeInValueSet
-
Constructor Details
-
FixedSnapshotGeneratingValidationSupport
public FixedSnapshotGeneratingValidationSupport(ca.uhn.fhir.context.FhirContext theCtx) Constructor- Parameters:
theCtx-FhirContext
-
-
Method Details
-
generateSnapshot
@Nullable public org.hl7.fhir.instance.model.api.IBaseResource generateSnapshot(ca.uhn.fhir.context.support.ValidationSupportContext theValidationSupportContext, org.hl7.fhir.instance.model.api.IBaseResource theInput, String theUrl, String theWebUrl, String theProfileName) - Specified by:
generateSnapshotin interfaceca.uhn.fhir.context.support.IValidationSupport- Overrides:
generateSnapshotin classorg.hl7.fhir.common.hapi.validation.support.SnapshotGeneratingValidationSupport
-