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

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

commit ffe7ade09c3dc9ff8dba8bb77e7efe4103a9b103
Author: John Poth <poth.j...@gmail.com>
AuthorDate: Tue Mar 30 11:49:59 2021 +0200

    Fix camel-fhir example
---
 .../src/main/java/org/apache/camel/example/fhir/Application.java     | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/examples/fhir/src/main/java/org/apache/camel/example/fhir/Application.java 
b/examples/fhir/src/main/java/org/apache/camel/example/fhir/Application.java
index c4ea683..b89a77b 100644
--- a/examples/fhir/src/main/java/org/apache/camel/example/fhir/Application.java
+++ b/examples/fhir/src/main/java/org/apache/camel/example/fhir/Application.java
@@ -61,11 +61,8 @@ public class Application {
                     patient.setId(patientId);
                     exchange.getIn().setBody(patient);
                 })
-                // marshall to JSON for logging
-                .marshal().fhirJson("{{fhirVersion}}")
-                .log("Inserting Patient: ${body}")
                 // create Patient in our FHIR server
-                
.to("fhir://create/resource?inBody=resourceAsString&serverUrl={{serverUrl}}&fhirVersion={{fhirVersion}}")
+                
.to("fhir://create/resource?inBody=resource&serverUrl={{serverUrl}}&fhirVersion={{fhirVersion}}&log=true&prettyPrint=true")
                 // log the outcome
                 .log("Patient created successfully: ${body.getCreated}");
         }

Reply via email to