From 817b3a30ee8d0ee4b974caa6c3fe9935cecfbea1 Mon Sep 17 00:00:00 2001 From: Berkant Karduman Date: Wed, 15 Nov 2023 19:21:29 +0300 Subject: [PATCH] Update PlainBatchParameterProcessor.java Composite key added for ref_type search parameters. Signed-off-by: Berkant Karduman --- .../params/database/PlainBatchParameterProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhir-persistence-params/src/main/java/org/linuxforhealth/fhir/persistence/params/database/PlainBatchParameterProcessor.java b/fhir-persistence-params/src/main/java/org/linuxforhealth/fhir/persistence/params/database/PlainBatchParameterProcessor.java index eeb064ae694..306754657f8 100644 --- a/fhir-persistence-params/src/main/java/org/linuxforhealth/fhir/persistence/params/database/PlainBatchParameterProcessor.java +++ b/fhir-persistence-params/src/main/java/org/linuxforhealth/fhir/persistence/params/database/PlainBatchParameterProcessor.java @@ -333,7 +333,7 @@ public void process(String requestShard, String resourceType, String logicalId, try { PlainPostgresParameterBatch dao = getParameterBatchDao(resourceType); - dao.addReference(logicalResourceId, parameterNameValue.getParameterNameId(), refLogicalResourceId.getLogicalResourceId(), parameter.getRefVersionId()); + dao.addReference(logicalResourceId, parameterNameValue.getParameterNameId(), refLogicalResourceId.getLogicalResourceId(), parameter.getRefVersionId(),parameter.getCompositeId()); } catch (SQLException x) { throw new FHIRPersistenceException("Failed inserting security params for '" + resourceType + "'"); }