Also related to issue #705, added an explicit check for DSTU2.1 as well when the client checks the server's conformance statement FHIR version

This commit is contained in:
Clayton Bodendein 2017-08-06 21:27:05 -05:00
parent 1743d108b6
commit 9a32202d03
1 changed files with 2 additions and 0 deletions

View File

@ -329,6 +329,8 @@ public abstract class RestfulClientFactory implements IRestfulClientFactory {
serverFhirVersionEnum = FhirVersionEnum.DSTU1;
} else if (serverFhirVersionString.equals(FhirVersionEnum.DSTU2.getFhirVersionString())) {
serverFhirVersionEnum = FhirVersionEnum.DSTU2;
} else if (serverFhirVersionString.equals(FhirVersionEnum.DSTU2_1.getFhirVersionString())) {
serverFhirVersionEnum = FhirVersionEnum.DSTU2_1;
} else if (serverFhirVersionString.equals(FhirVersionEnum.DSTU3.getFhirVersionString())) {
serverFhirVersionEnum = FhirVersionEnum.DSTU3;
} else {