You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/healthcare-apis/events/events-consume-logic-apps.md
+43-43Lines changed: 43 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ author: msjasteppe
6
6
ms.service: healthcare-apis
7
7
ms.subservice: fhir
8
8
ms.topic: how-to
9
-
ms.date: 07/06/2022
10
-
ms.author: v-smcevoy
9
+
ms.date: 10/21/2022
10
+
ms.author: jasteppe
11
11
---
12
12
13
13
# Consume events with Logic Apps
14
14
15
-
This tutorial shows how to use Azure Logic Apps to process Azure Health Data Services Fast Healthcare Interoperability Resources (FHIR®) events. Logic Apps create and run automated workflows to process event data from other applications. You will learn how to register a FHIR event with your Logic App, meet a specified event criteria, and perform a service operation.
15
+
This tutorial shows how to use Azure Logic Apps to process Azure Health Data Services Fast Healthcare Interoperability Resources (FHIR®) events. Logic Apps creates and runs automated workflows to process event data from other applications. You'll learn how to register a FHIR event with your Logic App, meet a specified event criteria, and perform a service operation.
16
16
17
17
Here's an example of a Logic App workflow:
18
18
@@ -30,7 +30,7 @@ Follow these steps to create a Logic App workflow to consume FHIR events:
30
30
31
31
## Prerequisites
32
32
33
-
Before you begin this tutorial, you need to have deployed a FHIR service and enabled events. For more information about deploying events, see [Deploy Events in the Azure portal](./events-deploy-portal.md).
33
+
Before you begin this tutorial, you need to have deployed a FHIR service and enabled events. For more information about deploying events, see [Deploy Events in the Azure portal](events-deploy-portal.md).
34
34
35
35
## Creating a Logic App
36
36
@@ -42,7 +42,7 @@ Follow these steps:
42
42
43
43
1. Go to the Azure portal.
44
44
2. Search for "Logic App".
45
-
3.Click "Add".
45
+
3.Select "Add".
46
46
4. Specify Basic details.
47
47
5. Specify Hosting.
48
48
6. Specify Monitoring.
@@ -51,7 +51,7 @@ Follow these steps:
51
51
52
52
You now need to fill out the details of your Logic App. Specify information for these five categories. They are in separate tabs:
53
53
54
-
:::image type="content" source="media/events-logic-apps/events-logic-tabs.png" alt-text="Screenshot of the five tabs for specifying your Logic App." lightbox="./media/events-logic-apps/events-logic-tabs.png":::
54
+
:::image type="content" source="media/events-logic-apps/events-logic-tabs.png" alt-text="Screenshot of the five tabs for specifying your Logic App." lightbox="media/events-logic-apps/events-logic-tabs.png":::
55
55
56
56
- Tab 1 - Basics
57
57
- Tab 2 - Hosting
@@ -123,7 +123,7 @@ Continue specifying your Logic App by clicking "Next: Tags".
123
123
124
124
Tags are name/value pairs that enable you to categorize resources and view consolidated billing by applying the same tag to multiple resources and resource groups.
125
125
126
-
This example will not use tagging.
126
+
This example won't use tagging.
127
127
128
128
### Review + create - Tab 5
129
129
@@ -142,21 +142,21 @@ Your proposed Logic app will display the following details:
142
142
- Plan
143
143
- Monitoring
144
144
145
-
If you're satisfied with the proposed configuration, click "Create". If not, click "Previous" to go back and specify new details.
145
+
If you're satisfied with the proposed configuration, select "Create". If not, select "Previous" to go back and specify new details.
146
146
147
147
First you'll see an alert telling you that deployment is initializing. Next you'll see a new page telling you that the deployment is in progress.
148
148
149
-
:::image type="content" source="media/events-logic-apps/events-logic-progress.png" alt-text="Screenshot of the notification telling you your deployment is in progress." lightbox="./media/events-logic-apps/events-logic-progress.png":::
149
+
:::image type="content" source="media/events-logic-apps/events-logic-progress.png" alt-text="Screenshot of the notification telling you your deployment is in progress." lightbox="media/events-logic-apps/events-logic-progress.png":::
150
150
151
-
If there are no errors, you will finally see a notification telling you that your deployment is complete.
151
+
If there are no errors, you'll finally see a notification telling you that your deployment is complete.
152
152
153
-
:::image type="content" source="media/events-logic-apps/events-logic-complete.png" alt-text="Screenshot of the notification telling you your deployment is complete." lightbox="./media/events-logic-apps/events-logic-complete.png":::
153
+
:::image type="content" source="media/events-logic-apps/events-logic-complete.png" alt-text="Screenshot of the notification telling you your deployment is complete." lightbox="media/events-logic-apps/events-logic-complete.png":::
154
154
155
155
#### Your Logic App dashboard
156
156
157
157
Azure creates a dashboard when your Logic App is complete. The dashboard will show you the status of your app. You can return to your dashboard by clicking Overview in the Logic App menu. Here's a Logic App dashboard:
158
158
159
-
:::image type="content" source="media/events-logic-apps/events-logic-overview.png" alt-text="Screenshot of your Logic Apps overview dashboard." lightbox="./media/events-logic-apps/events-logic-overview.png":::
159
+
:::image type="content" source="media/events-logic-apps/events-logic-overview.png" alt-text="Screenshot of your Logic Apps overview dashboard." lightbox="media/events-logic-apps/events-logic-overview.png":::
160
160
161
161
You can do the following activities from your dashboard.
162
162
@@ -189,16 +189,16 @@ Before you begin, you'll need to have a Logic App configured and running correct
189
189
Once your Logic App is running, you can create and configure a workflow. To initialize a workflow, follow these steps:
190
190
191
191
1. Start at the Azure portal.
192
-
2.Click "Logic Apps" in Azure services.
192
+
2.Select "Logic Apps" in Azure services.
193
193
3. Select the Logic App you created.
194
-
4.Click "Workflows" in the Workflow menu on the left.
195
-
5.Click "Add" to add a workflow.
194
+
4.Select "Workflows" in the Workflow menu on the left.
195
+
5.Select "Add" to add a workflow.
196
196
197
197
### Configuring a new workflow
198
198
199
-
You will see a new panel on the right for creating a workflow.
199
+
You'll see a new panel on the right for creating a workflow.
200
200
201
-
:::image type="content" source="media/events-logic-apps/events-logic-panel.png" alt-text="Screenshot of the panel for creating a workflow." lightbox="./media/events-logic-apps/events-logic-panel.png":::
201
+
:::image type="content" source="media/events-logic-apps/events-logic-panel.png" alt-text="Screenshot of the panel for creating a workflow." lightbox="media/events-logic-apps/events-logic-panel.png":::
202
202
203
203
You can specify the details of the new workflow in the panel on the right.
204
204
@@ -211,21 +211,21 @@ To set up a new workflow, fill in these details:
211
211
212
212
Specify a new name for your workflow. Indicate whether you want the workflow to be stateful or stateless. Stateful is for business processes and stateless is for processing IoT events.
213
213
214
-
When you have specified the details, click "Create" to begin designing your workflow.
214
+
When you've specified the details, select "Create" to begin designing your workflow.
215
215
216
216
### Designing the workflow
217
217
218
-
In your new workflow, click the name of the enabled workflow.
218
+
In your new workflow, select the name of the enabled workflow.
219
219
220
220
You can write code to design a workflow for your application, but for this tutorial, choose the Designer option on the Developer menu.
221
221
222
-
Next, click "Choose an operation" to display the "Add a Trigger" blade on the right. Then search for "Azure Event Grid" and click the "Azure" tab below. The Event Grid is not a Logic App Built-in.
222
+
Next, select "Choose an operation" to display the "Add a Trigger" blade on the right. Then search for "Azure Event Grid" and select the "Azure" tab below. The Event Grid isn't a Logic App Built-in.
223
223
224
-
:::image type="content" source="media/events-logic-apps/events-logic-grid.png" alt-text="Screenshot of the search results for Azure Event Grid." lightbox="./media/events-logic-apps/events-logic-grid.png":::
224
+
:::image type="content" source="media/events-logic-apps/events-logic-grid.png" alt-text="Screenshot of the search results for Azure Event Grid." lightbox="media/events-logic-apps/events-logic-grid.png":::
225
225
226
-
When you see the "Azure Event Grid" icon, click on it to display the Triggers and Actions available from Event Grid. For more information about Event Grid, see [What is Azure Event Grid?](./../../event-grid/overview.md).
226
+
When you see the "Azure Event Grid" icon, select on it to display the Triggers and Actions available from Event Grid. For more information about Event Grid, see [What is Azure Event Grid?](./../../event-grid/overview.md).
227
227
228
-
Click "When a resource event occurs" to set up a trigger for the Azure Event Grid.
228
+
Select "When a resource event occurs" to set up a trigger for the Azure Event Grid.
229
229
230
230
To tell Event Grid how to respond to the trigger, you must specify parameters and add actions.
231
231
@@ -244,48 +244,48 @@ Fill in the details for subscription, resource type, and resource name. Then you
244
244
- Resource deleted
245
245
- Resource updated
246
246
247
-
For more information about event types, see [What FHIR resource events does Events support?](./events-faqs.md).
247
+
For more information about event types, see [What FHIR resource events does Events support?](events-faqs.md).
248
248
249
249
### Adding an HTTP action
250
250
251
-
Once you have specified the trigger events, you must add more details. Click the "+" below the "When a resource event occurs" button.
251
+
Once you've specified the trigger events, you must add more details. Select the "+" below the "When a resource event occurs" button.
252
252
253
-
You need to add a specific action. Click "Choose an operation" to continue. Then, for the operation, search for "HTTP" and click on "Built-in" to select an HTTP operation. The HTTP action will allow you to query the FHIR service.
253
+
You need to add a specific action. Select "Choose an operation" to continue. Then, for the operation, search for "HTTP" and select on "Built-in" to select an HTTP operation. The HTTP action will allow you to query the FHIR service.
254
254
255
255
The options in this example are:
256
256
257
257
- Method is "Get"
258
-
- URL is "concat('https://', triggerBody()?['subject'], '/_history/', triggerBody()?['dataVersion'])".
258
+
- URL is `"concat('https://', triggerBody()?['subject'], '/_history/', triggerBody()?['dataVersion'])"`.
259
259
- Authentication type is "Managed Identity".
260
-
- Audience is "concat('https://', triggerBody()?['data']['resourceFhirAccount'])"
260
+
- Audience is `"concat('https://', triggerBody()?['data']['resourceFhirAccount'])"`.
261
261
262
262
### Allow FHIR Reader access to your Logic App
263
263
264
264
At this point, you need to give the FHIR Reader access to your app, so it can verify that the event details are correct. Follow these steps to give it access:
265
265
266
-
1. The first step is to go back to your Logic App and click the Identity menu item.
266
+
1. The first step is to go back to your Logic App and select the Identity menu item.
267
267
268
268
2. In the System assigned tab, make sure the Status is "On".
269
269
270
-
3.Click on Azure role assignments. Click "Add role assignment".
270
+
3.Select on Azure role assignments. Select "Add role assignment".
271
271
272
-
4. Specify the following:
272
+
4. Specify the following options:
273
273
274
274
- Scope = Subscription
275
275
- Subscription = your subscription
276
276
- Role = FHIR Data Reader.
277
277
278
-
When you have specified the first four steps, add the role assignment by Managed identity, using Subscription, Managed identity (Logic App Standard), and select your Logic App by clicking the name and then clicking the Select button. Finally, click "Review + assign" to assign the role.
278
+
When you've specified the first four steps, add the role assignment by Managed identity, using Subscription, Managed identity (Logic App Standard), and select your Logic App by clicking the name and then clicking the Select button. Finally, select "Review + assign" to assign the role.
279
279
280
280
### Add a condition
281
281
282
-
After you have given FHIR Reader access to your app, go back to the Logic App workflow Designer. Then add a condition to determine whether the event is one you want to process. Click the "+" below HTTP to "Choose an operation". On the right, search for the word "condition". Click on "Built-in" to display the Control icon. Next click Actions and choose Condition.
282
+
After you have given FHIR Reader access to your app, go back to the Logic App workflow Designer. Then add a condition to determine whether the event is one you want to process. Select the "+" below HTTP to "Choose an operation". On the right, search for the word "condition". Select on "Built-in" to display the Control icon. Next select Actions and choose Condition.
283
283
284
284
When the condition is ready, you can specify what actions happen if the condition is true or false.
285
285
286
286
### Choosing a condition criteria
287
287
288
-
In order to specify whether you want to take action for the specific event, begin specifying the criteria by clicking on "Condition" in the workflow on the left. You will then see a set of condition choices on the right.
288
+
In order to specify whether you want to take action for the specific event, begin specifying the criteria by clicking on "Condition" in the workflow on the left. You'll then see a set of condition choices on the right.
289
289
290
290
Under the "And" box, add these two conditions:
291
291
@@ -300,19 +300,19 @@ The expression for getting the resourceType is `body('HTTP')?['resourceType']`.
300
300
301
301
You can select Event Type from the Dynamic Content.
302
302
303
-
Here is an example of the Condition criteria:
303
+
Here's an example of the Condition criteria:
304
304
305
-
:::image type="content" source="media/events-logic-apps/events-logic-condition.png" alt-text="Screenshot of the condition criteria for your workflow." lightbox="./media/events-logic-apps/events-logic-condition.png":::
305
+
:::image type="content" source="media/events-logic-apps/events-logic-condition.png" alt-text="Screenshot of the condition criteria for your workflow." lightbox="media/events-logic-apps/events-logic-condition.png":::
306
306
307
307
#### Save your workflow
308
308
309
-
When you have entered the condition criteria, save your workflow.
309
+
When you've entered the condition criteria, save your workflow.
310
310
311
311
#### Workflow dashboard
312
312
313
-
To check the status of your workflow, click Overview in the workflow menu. Here is a dashboard for a workflow:
313
+
To check the status of your workflow, select Overview in the workflow menu. Here's a dashboard for a workflow:
314
314
315
-
:::image type="content" source="media/events-logic-apps/events-logic-dashboard.png" alt-text="Screenshot of the Logic App workflow dashboard." lightbox="./media/events-logic-apps/events-logic-dashboard.png":::
315
+
:::image type="content" source="media/events-logic-apps/events-logic-dashboard.png" alt-text="Screenshot of the Logic App workflow dashboard." lightbox="media/events-logic-apps/events-logic-dashboard.png":::
316
316
317
317
You can do the following operations from your workflow dashboard:
318
318
@@ -333,15 +333,15 @@ To test your new workflow, do the following steps:
333
333
3. The event should be shaded in green if the action was successful.
334
334
4. If it failed, the event will be shaded in red.
335
335
336
-
Here is an example of a workflow trigger success operation:
336
+
Here's an example of a workflow trigger success operation:
337
337
338
338
:::image type="content" source="media/events-logic-apps/events-logic-success.png" alt-text="Screenshot showing workflow success indicated by green highlighting of the workflow name." lightbox="./media/events-logic-apps/events-logic-success.png":::
339
339
340
340
## Next steps
341
341
342
-
For more information about FHIR events, see
342
+
For more information about FHIR events, see:
343
343
344
-
>[!div class="nextstepaction"]
345
-
>[What are Events?](./events-overview.md)
344
+
>[!div class="nextstepaction"]
345
+
>[What are Events?](./events-overview.md)
346
346
347
347
FHIR® is a registered trademark of Health Level Seven International, registered in the U.S. Trademark Office and is used with their permission.
0 commit comments