Don't use a null version advisor in the DSTU2 version converter
This commit is contained in:
parent
da182fca33
commit
1cfaeadcb8
|
@ -24,6 +24,7 @@ import org.apache.commons.lang3.Validate;
|
||||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||||
import org.fhir.ucum.UcumService;
|
import org.fhir.ucum.UcumService;
|
||||||
|
import org.hl7.fhir.convertors.NullVersionConverterAdvisor40;
|
||||||
import org.hl7.fhir.convertors.VersionConvertorAdvisor40;
|
import org.hl7.fhir.convertors.VersionConvertorAdvisor40;
|
||||||
import org.hl7.fhir.convertors.VersionConvertor_10_40;
|
import org.hl7.fhir.convertors.VersionConvertor_10_40;
|
||||||
import org.hl7.fhir.exceptions.FHIRException;
|
import org.hl7.fhir.exceptions.FHIRException;
|
||||||
|
@ -819,7 +820,8 @@ public class FhirInstanceValidator extends BaseValidatorBridge implements IValid
|
||||||
ValueSet convertedVs = null;
|
ValueSet convertedVs = null;
|
||||||
try {
|
try {
|
||||||
if (vs != null) {
|
if (vs != null) {
|
||||||
convertedVs = new VersionConvertor_10_40(null).convertValueSet(vs);
|
VersionConvertorAdvisor40 advisor40 = new NullVersionConverterAdvisor40();
|
||||||
|
convertedVs = new VersionConvertor_10_40(advisor40).convertValueSet(vs);
|
||||||
}
|
}
|
||||||
} catch (FHIRException e) {
|
} catch (FHIRException e) {
|
||||||
throw new InternalErrorException(e);
|
throw new InternalErrorException(e);
|
||||||
|
|
Loading…
Reference in New Issue