You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2022/03/15 09:42:30 UTC

[camel] 01/02: CAMEL-17789: Set R4 as the default FHIR version in the dataformat base class

This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit d62f278dd9269af41e5fa4c39cbf34ee8adecf8f
Author: James Netherton <ja...@gmail.com>
AuthorDate: Tue Mar 15 08:00:15 2022 +0000

    CAMEL-17789: Set R4 as the default FHIR version in the dataformat base class
---
 .../src/main/java/org/apache/camel/component/fhir/FhirDataFormat.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-fhir/camel-fhir-component/src/main/java/org/apache/camel/component/fhir/FhirDataFormat.java b/components/camel-fhir/camel-fhir-component/src/main/java/org/apache/camel/component/fhir/FhirDataFormat.java
index 1da4383..b89af0b 100644
--- a/components/camel-fhir/camel-fhir-component/src/main/java/org/apache/camel/component/fhir/FhirDataFormat.java
+++ b/components/camel-fhir/camel-fhir-component/src/main/java/org/apache/camel/component/fhir/FhirDataFormat.java
@@ -237,7 +237,7 @@ public abstract class FhirDataFormat extends ServiceSupport implements DataForma
             FhirVersionEnum version = FhirVersionEnum.valueOf(fhirVersion);
             fhirContext = new FhirContext(version);
         } else if (fhirContext == null) {
-            fhirContext = FhirContext.forDstu3();
+            fhirContext = FhirContext.forR4();
         }
         if (ObjectHelper.isNotEmpty(parserOptions)) {
             fhirContext.setParserOptions(parserOptions);