Hit this bug when handling resource expansions for an STU3 IG. This code would never have worked, so apparently nothing called it before now.

This commit is contained in:
Lloyd McKenzie 2022-03-04 10:03:55 -07:00
parent 38e84a46f2
commit 65853819d3
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public class TerminologyClientR3 implements TerminologyClient {
@Override
public ValueSet expandValueset(ValueSet vs, Parameters p, Map<String, String> params) throws FHIRException {
org.hl7.fhir.dstu3.model.ValueSet vs2 = (org.hl7.fhir.dstu3.model.ValueSet) VersionConvertorFactory_30_50.convertResource(vs);
org.hl7.fhir.dstu3.model.ExpansionProfile p2 = (org.hl7.fhir.dstu3.model.ExpansionProfile) VersionConvertorFactory_30_50.convertResource(p);
org.hl7.fhir.dstu3.model.Parameters p2 = (org.hl7.fhir.dstu3.model.Parameters) VersionConvertorFactory_30_50.convertResource(p);
vs2 = client.expandValueset(vs2, p2, params); // todo: second parameter
return (ValueSet) VersionConvertorFactory_30_50.convertResource(vs2);
}