Fix build

This commit is contained in:
jamesagnew 2016-05-30 06:57:01 -04:00
parent 820d1e0165
commit a2954ef181
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ public class ValidateDstu3Test {
Parameters params = new Parameters();
params.addParameter().setName("resource").setResource(patient);
params.addParameter().setName("profile").setValue(new StringType("http://foo"));
params.addParameter().setName("mode").setValue(new StringType(ValidationModeEnum.CREATE.name()));
params.addParameter().setName("mode").setValue(new StringType(ValidationModeEnum.CREATE.getCode()));
HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient/$validate");
httpPost.setEntity(new StringEntity(ourCtx.newXmlParser().encodeResourceToString(params), ContentType.create(Constants.CT_FHIR_XML, "UTF-8")));

View File

@ -70,7 +70,7 @@ public class ValidateHl7OrgDstu2Test {
Parameters params = new Parameters();
params.addParameter().setName("resource").setResource(patient);
params.addParameter().setName("profile").setValue(new StringType("http://foo"));
params.addParameter().setName("mode").setValue(new StringType(ValidationModeEnum.CREATE.name()));
params.addParameter().setName("mode").setValue(new StringType(ValidationModeEnum.CREATE.getCode()));
HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient/$validate");
httpPost.setEntity(new StringEntity(ourCtx.newXmlParser().encodeResourceToString(params), ContentType.create(Constants.CT_FHIR_XML, "UTF-8")));