You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by jp...@apache.org on 2021/03/30 09:50:37 UTC
[camel-examples] branch master updated: Fix camel-fhir example
This is an automated email from the ASF dual-hosted git repository.
jpoth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-examples.git
The following commit(s) were added to refs/heads/master by this push:
new ffe7ade Fix camel-fhir example
ffe7ade is described below
commit ffe7ade09c3dc9ff8dba8bb77e7efe4103a9b103
Author: John Poth <po...@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}");
}