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:06 UTC

[camel-kamelets] branch fhir-source created (now d3a4188)

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

acosentino pushed a change to branch fhir-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.


      at d3a4188  Added Fhir Source Kamelet

This branch includes the following new commits:

     new 3c3b559  Added Fhir Source Kamelet
     new 86d231c  Added Fhir Source Kamelet
     new 3f450a9  Added Fhir Source Kamelet
     new 7a34df4  Added Fhir Source Kamelet
     new d3a4188  Added Fhir Source Kamelet

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[camel-kamelets] 02/05: Added Fhir Source Kamelet

Posted by ac...@apache.org.
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 86d231ce39558d08c38dc60ea647db5876d3a432
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 25 13:44:22 2021 +0100

    Added Fhir Source Kamelet
---
 docs/modules/ROOT/nav.adoc                          | 1 +
 docs/modules/ROOT/pages/aws-ddb-streams-source.adoc | 7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index ea98523..c8fedb9 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -9,6 +9,7 @@
 * xref:ROOT:dropbox-sink.adoc[image:kamelets/dropbox-sink.svg[] Dropbox Sink]
 * xref:ROOT:dropbox-source.adoc[image:kamelets/dropbox-source.svg[] Dropbox Source]
 * xref:ROOT:earthquake-source.adoc[image:kamelets/earthquake-source.svg[] Earthquake Source]
+* xref:ROOT:fhir-source.adoc[image:kamelets/fhir-source.svg[] Fhir Source]
 * xref:ROOT:file-watch-source.adoc[image:kamelets/file-watch-source.svg[] File Watch Source]
 * xref:ROOT:ftp-source.adoc[image:kamelets/ftp-source.svg[] FTP Source]
 * xref:ROOT:ftps-source.adoc[image:kamelets/ftps-source.svg[] FTPS Source]
diff --git a/docs/modules/ROOT/pages/aws-ddb-streams-source.adoc b/docs/modules/ROOT/pages/aws-ddb-streams-source.adoc
index 8dd12f3..8a22eb5 100644
--- a/docs/modules/ROOT/pages/aws-ddb-streams-source.adoc
+++ b/docs/modules/ROOT/pages/aws-ddb-streams-source.adoc
@@ -14,9 +14,9 @@ The following table summarizes the configuration options available for the `aws-
 | *accessKey {empty}* *| Access Key| The access key obtained from AWS| string| | 
 | *region {empty}* *| AWS Region| The AWS region to connect to| string| | `"eu-west-1"`
 | *secretKey {empty}* *| Secret Key| The secret key obtained from AWS| string| | 
-| bucketNameOrArn| Table| Name of the DynamoDB table to look at| string| | 
-| iteratorType| Iterator Type| Defines where in the DynaboDB stream to start getting records. Note that using TRIM_HORIZON can cause a significant delay before the stream has caught up to real-time. if {AT,AFTER}_SEQUENCE_NUMBER are used, then a sequenceNumberProvider MUST be supplied. There are 4 enums and the value can be one of TRIM_HORIZON, LATEST, AT_SEQUENCE_NUMBER, AFTER_SEQUENCE_NUMBER| String| `"LATEST"`| 
-| sequenceNumberProvider| Sequence Number Provider| Provider for the sequence number when using one of the two ShardIteratorType AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER iterator types. Can be a registry reference or a literal sequence number.| string| | `"900000000005745712447"`
+| *table {empty}* *| Table| Name of the DynamoDB table to look at| string| | 
+| iteratorType| Iterator Type| Defines where in the DynaboDB stream to start getting records. Note that using TRIM_HORIZON can cause a significant delay before the stream has caught up to real-time. if {AT,AFTER}_SEQUENCE_NUMBER are used, then a sequenceNumberProvider MUST be supplied. There are 4 enums and the value can be one of TRIM_HORIZON, LATEST, AT_SEQUENCE_NUMBER, AFTER_SEQUENCE_NUMBER| string| `"LATEST"`| 
+| sequenceNumberProvider| Sequence Number Provider| Provider for the sequence number when using one of the two ShardIteratorType AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER iterator types. Can be a registry reference or a literal sequence number.| string| `"000000000000000000000"`| `"900000000005745712447"`
 |===
 
 NOTE: Fields marked with ({empty}*) are mandatory.
@@ -46,6 +46,7 @@ spec:
       accessKey: "The Access Key"
       region: "eu-west-1"
       secretKey: "The Secret Key"
+      table: "The Table"
   sink:
     ref:
       kind: InMemoryChannel

[camel-kamelets] 01/05: Added Fhir Source Kamelet

Posted by ac...@apache.org.
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"

[camel-kamelets] 04/05: Added Fhir Source Kamelet

Posted by ac...@apache.org.
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 7a34df408940b70bc40cbf10e39374fef79be8fc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 25 14:01:11 2021 +0100

    Added Fhir Source Kamelet
---
 fhir-source.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fhir-source.kamelet.yaml b/fhir-source.kamelet.yaml
index 883841a..5d48f2f 100644
--- a/fhir-source.kamelet.yaml
+++ b/fhir-source.kamelet.yaml
@@ -3,7 +3,7 @@ kind: Kamelet
 metadata:
   name: fhir-source
   annotations:
-    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyNDguMiAzMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3QyOHtmaWxsOiM4YzMxMjN9LnN0Mjl7ZmlsbDojZTA1MjQzfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MjgiIGQ9Ik0yMCA1Mi4xTDAgNjJ2MTc1LjVsMjAgOS45LjEtLjFWNTIuMmwtLjEtLjEiLz48cGF0aCBjbGFzcz0ic3QyOSIgZD0iTTEyNyAyMjJMMjAgMjQ3LjVWNTIuMUwxMjcgNzd2MTQ1Ii8+PHBhdGggY2xhc3M9InN0MjgiIG [...]
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxOTUuMiAzMDAiPjxzdHlsZT48L3N0eWxlPjxnIGlkPSJMYXllcl8yIj48bGluZWFyR3JhZGllbnQgaWQ9IlNWR0lEXzFfIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjYyLjY0NCIgeTE9IjI2OC4yMDEiIHgyPSIzMC43MjEiIHkyPSI4Ny4xNTUiPjxzdG9wIG9mZnNldD0iLjE1NCIgc3RvcC1jb2xvcj0iI2ZmZTQwZSIvPjxzdG9wIG9mZnNldD0iLjkxIiBzdG9wLWNvbG9yPSIjZTEwZTE5Ii8+PC9saW5lYXJHcmFkaWVudD48cGF0aCBkPSJNNzkuNiA3OC [...]
     camel.apache.org/provider: "Apache Software Foundation"
   labels:
     camel.apache.org/kamelet.type: "source"

[camel-kamelets] 05/05: Added Fhir Source Kamelet

Posted by ac...@apache.org.
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 d3a4188e971d897d582e9e77290b2a8d964af83a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 25 14:01:50 2021 +0100

    Added Fhir Source Kamelet
---
 docs/modules/ROOT/assets/images/kamelets/fhir-source.svg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/assets/images/kamelets/fhir-source.svg b/docs/modules/ROOT/assets/images/kamelets/fhir-source.svg
index 1d0f76b..f6f7062 100644
--- a/docs/modules/ROOT/assets/images/kamelets/fhir-source.svg
+++ b/docs/modules/ROOT/assets/images/kamelets/fhir-source.svg
@@ -1 +1 @@
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 248.2 300" xml:space="preserve"><style>.st28{fill:#8c3123}.st29{fill:#e05243}</style><path class="st28" d="M20 52.1L0 62v175.5l20 9.9.1-.1V52.2l-.1-.1"/><path class="st29" d="M127 222L20 247.5V52.1L127 77v145"/><path class="st28" d="M78.7 182.1l45.4 5.8.3-.7.3-74.4-.5-.6-45.4 5.7-.1 64.2"/><path class="st28" d="M124.1 222.3l104.1 25.2.2-.3V52.1l-.2-.2-104.1 25.4v145"/><path class="st29" d="M169.5  [...]
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 195.2 300"><style></style><g id="Layer_2"><linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="62.644" y1="268.201" x2="30.721" y2="87.155"><stop offset=".154" stop-color="#ffe40e"/><stop offset=".91" stop-color="#e10e19"/></linearGradient><path d="M79.6 78.5l-44 38.5S-8 151.7 1.3 205.9c0 0 2.9 29.2 43.3 65.5 0 0-33-41.1-26.6-90.2S79.3 83.7 79.6 78.5z" fill="url(#SVGID_1_)"/><linearGradient id="SVGID_2_" gradientUnits="user [...]
\ No newline at end of file

[camel-kamelets] 03/05: Added Fhir Source Kamelet

Posted by ac...@apache.org.
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 3f450a9f3c54a48e7905b1528b7cbf816135e046
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 25 13:44:35 2021 +0100

    Added Fhir Source Kamelet
---
 .../ROOT/assets/images/kamelets/fhir-source.svg    |  1 +
 docs/modules/ROOT/pages/fhir-source.adoc           | 68 ++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/fhir-source.svg b/docs/modules/ROOT/assets/images/kamelets/fhir-source.svg
new file mode 100644
index 0000000..1d0f76b
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/fhir-source.svg
@@ -0,0 +1 @@
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 248.2 300" xml:space="preserve"><style>.st28{fill:#8c3123}.st29{fill:#e05243}</style><path class="st28" d="M20 52.1L0 62v175.5l20 9.9.1-.1V52.2l-.1-.1"/><path class="st29" d="M127 222L20 247.5V52.1L127 77v145"/><path class="st28" d="M78.7 182.1l45.4 5.8.3-.7.3-74.4-.5-.6-45.4 5.7-.1 64.2"/><path class="st28" d="M124.1 222.3l104.1 25.2.2-.3V52.1l-.2-.2-104.1 25.4v145"/><path class="st29" d="M169.5  [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/fhir-source.adoc b/docs/modules/ROOT/pages/fhir-source.adoc
new file mode 100644
index 0000000..dee17a4
--- /dev/null
+++ b/docs/modules/ROOT/pages/fhir-source.adoc
@@ -0,0 +1,68 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/fhir-source.svg[] Fhir Source
+
+*Provided by: "Apache Software Foundation"*
+
+Receive data from Fhir server.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `fhir-source` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *password {empty}* *| Password| The password to access the Fhir server| string| | 
+| *serverUrl {empty}* *| Server URL| The Fhir server url| string| | 
+| *username {empty}* *| Username| The username to access the Fhir server| string| | 
+| encoding| encoding| Encoding to use for all request. Possible values are JSON and XML| string| `"JSON"`| 
+| fhirVersion| Fhir version| The FHIR Version to use. There are 6 enums and the value can be one of DSTU2, DSTU2_HL7ORG, DSTU2_1, DSTU3, R4, R5| string| `"R4"`| 
+| prettyPrint| Json Pretty Print| Define if the Json must be pretty print or not| boolean| `true`| 
+| url| URL| The Fhir resource type url| string| `"/Patient"`| 
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `fhir-source` can be used in various contexts.
+
+=== Knative Source
+
+The `fhir-source` Kamelet can be used as Knative source by binding it to a Knative object.
+
+.fhir-source-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: fhir-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: fhir-source
+    properties:
+      password: "The Password"
+      serverUrl: "The Server URL"
+      username: "The Username"
+  sink:
+    ref:
+      kind: InMemoryChannel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `fhir-source-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the source using the following command:
+
+[source,shell]
+----
+kubectl apply -f fhir-source-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT