You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/03/25 13:02:07 UTC
[camel-kamelets] 01/05: Added Fhir Source Kamelet
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch fhir-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 3c3b559896872d42bd7db7011a5c657da4c4bf78
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 25 13:44:03 2021 +0100
Added Fhir Source Kamelet
---
fhir-source.kamelet.yaml | 77 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
diff --git a/fhir-source.kamelet.yaml b/fhir-source.kamelet.yaml
new file mode 100644
index 0000000..883841a
--- /dev/null
+++ b/fhir-source.kamelet.yaml
@@ -0,0 +1,77 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: fhir-source
+ annotations:
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ labels:
+ camel.apache.org/kamelet.type: "source"
+spec:
+ definition:
+ title: "Fhir Source"
+ description: |-
+ Receive data from Fhir server.
+ required:
+ - serverUrl
+ - username
+ - password
+ properties:
+ serverUrl:
+ title: Server URL
+ description: The Fhir server url
+ type: string
+ url:
+ title: URL
+ description: The Fhir resource type url
+ type: string
+ default: "/Patient"
+ encoding:
+ title: encoding
+ description: Encoding to use for all request. Possible values are JSON and XML
+ type: string
+ default: "JSON"
+ fhirVersion:
+ title: Fhir version
+ description: The FHIR Version to use. There are 6 enums and the value can be one of DSTU2, DSTU2_HL7ORG, DSTU2_1, DSTU3, R4, R5
+ type: string
+ default: "R4"
+ username:
+ title: Username
+ description: The username to access the Fhir server
+ type: string
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ password:
+ title: Password
+ description: The password to access the Fhir server
+ type: string
+ x-descriptors:
+ - urn:alm:descriptor:com.tectonic.ui:password
+ prettyPrint:
+ title: Json Pretty Print
+ description: Define if the Json must be pretty print or not
+ type: boolean
+ x-descriptors:
+ - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+ default: true
+ types:
+ out:
+ mediaType: application/json
+ flow:
+ from:
+ uri: "fhir://search/searchByUrl"
+ parameters:
+ serverUrl: "{{serverUrl}}"
+ url: "{{url}}"
+ encoding: "{{encoding}}"
+ fhirVersion: "{{fhirVersion}}"
+ prettyPrint: "{{prettyPrint}}"
+ username: "{{username}}"
+ password: "{{password}}"
+ steps:
+ - marshal:
+ fhirJson:
+ fhir-version: "{{fhirVersion}}"
+ pretty-print: "{{prettyPrint}}"
+ - to: "kamelet:sink"