Fix broken JUnit test.

This commit is contained in:
ianmarshall 2020-09-25 22:55:01 -04:00
parent 1dc4a533d6
commit 732624bfaf
2 changed files with 3 additions and 4 deletions

View File

@ -133,7 +133,6 @@ public class BaseJpaResourceProviderValueSetDstu3 extends JpaResourceProviderDst
}
@SuppressWarnings("unchecked")
@Operation(name = JpaConstants.OPERATION_VALIDATE_CODE, idempotent = true, returnParameters = {
@OperationParam(name = "result", type = BooleanType.class, min = 1),
@OperationParam(name = "message", type = StringType.class),
@ -164,9 +163,9 @@ public class BaseJpaResourceProviderValueSetDstu3 extends JpaResourceProviderDst
IFhirResourceDaoValueSet<ValueSet, Coding, CodeableConcept> dao = (IFhirResourceDaoValueSet<ValueSet, Coding, CodeableConcept>) getDao();
UriType valueSetIdentifier;
if (theValueSetVersion != null) {
valueSetIdentifier = new UriType(theValueSetUrl.getValue() + "|" + theValueSetVersion);
valueSetIdentifier = new UriType(url.getValue() + "|" + theValueSetVersion);
} else {
valueSetIdentifier = theValueSetUrl;
valueSetIdentifier = url;
}
UriType codeSystemIdentifier;
if (theSystemVersion != null) {

View File

@ -363,7 +363,7 @@ public class CommonCodeSystemsTerminologyService implements IValidationSupport {
case DSTU2_HL7ORG:
case DSTU2_1:
default:
throw new IllegalArgumentException("Can not handle version: " + theValueSet.getStructureFhirVersionEnum());
version=null;
}
return version;
}