More troubleshooting.

This commit is contained in:
Diederik Muylwyk 2019-09-24 15:36:06 -04:00
parent 46a6b7aaef
commit bf5d6acef4
1 changed files with 3 additions and 3 deletions

View File

@ -758,16 +758,16 @@ public class ResourceProviderR4ValueSetTest extends BaseResourceProviderR4Test {
ValueSet updatedValueSet = valueSet;
updatedValueSet.setName(valueSet.getName().concat(" - MODIFIED"));
String requestUrl = ourClient.getServerBase().concat("/").concat(myExtensionalVsId.getValueAsString());
String url = ourClient.getServerBase().concat("/").concat(myExtensionalVsId.getValueAsString());
Bundle bundle = new Bundle();
bundle.setType(Bundle.BundleType.TRANSACTION);
bundle
.addEntry()
.setFullUrl(updatedValueSet.getUrl())
.setFullUrl(url)
.setResource(updatedValueSet)
.getRequest()
.setMethod(Bundle.HTTPVerb.PUT)
.setUrl(requestUrl);
.setUrl(url);
ourLog.info("Transaction Bundle:\n" + myFhirCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(bundle));
ourClient.transaction().withBundle(bundle).execute();