From 61a7f9ed6a0095085a5baa2351421df17b7605b4 Mon Sep 17 00:00:00 2001 From: Ken Stevens Date: Fri, 19 Feb 2021 20:51:52 -0500 Subject: [PATCH] added mdm flag --- .../java/ca/uhn/fhir/jpa/bulk/svc/BulkDataExportSvcImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/bulk/svc/BulkDataExportSvcImpl.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/bulk/svc/BulkDataExportSvcImpl.java index cd74be4c4f4..991bc95bf9f 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/bulk/svc/BulkDataExportSvcImpl.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/bulk/svc/BulkDataExportSvcImpl.java @@ -240,6 +240,7 @@ public class BulkDataExportSvcImpl implements IBulkDataExportSvc { throw new InvalidRequestException("Invalid output format: " + theBulkDataExportOptions.getOutputFormat()); } + // FIXME GGG can we encode BulkDataExportOptions as a JSON string as opposed to this request string. Feels like it would be a more extensible encoding... StringBuilder requestBuilder = new StringBuilder(); requestBuilder.append("/").append(JpaConstants.OPERATION_EXPORT); requestBuilder.append("?").append(JpaConstants.PARAM_EXPORT_OUTPUT_FORMAT).append("=").append(escapeUrlParam(outputFormat)); @@ -257,6 +258,7 @@ public class BulkDataExportSvcImpl implements IBulkDataExportSvc { if (theBulkDataExportOptions instanceof GroupBulkDataExportOptions) { GroupBulkDataExportOptions groupOptions = (GroupBulkDataExportOptions) theBulkDataExportOptions; requestBuilder.append("&").append(JpaConstants.PARAM_EXPORT_GROUP_ID).append("=").append(groupOptions.getGroupId().getValue()); + requestBuilder.append("&").append(JpaConstants.PARAM_EXPORT_MDM).append("=").append(groupOptions.isMdm()); } String request = requestBuilder.toString();