Skip to content

Commit 66e13d7

Browse files
Merge pull request #215477 from msjasteppe/events-logic-app-updates
Updates to Events Logic Apps article.
2 parents f53e93c + 3ca6d64 commit 66e13d7

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

articles/healthcare-apis/events/events-consume-logic-apps.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ author: msjasteppe
66
ms.service: healthcare-apis
77
ms.subservice: fhir
88
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
1111
---
1212

1313
# Consume events with Logic Apps
1414

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.
1616

1717
Here's an example of a Logic App workflow:
1818

@@ -30,7 +30,7 @@ Follow these steps to create a Logic App workflow to consume FHIR events:
3030

3131
## Prerequisites
3232

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).
3434

3535
## Creating a Logic App
3636

@@ -42,7 +42,7 @@ Follow these steps:
4242

4343
1. Go to the Azure portal.
4444
2. Search for "Logic App".
45-
3. Click "Add".
45+
3. Select "Add".
4646
4. Specify Basic details.
4747
5. Specify Hosting.
4848
6. Specify Monitoring.
@@ -51,7 +51,7 @@ Follow these steps:
5151

5252
You now need to fill out the details of your Logic App. Specify information for these five categories. They are in separate tabs:
5353

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":::
5555

5656
- Tab 1 - Basics
5757
- Tab 2 - Hosting
@@ -123,7 +123,7 @@ Continue specifying your Logic App by clicking "Next: Tags".
123123

124124
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.
125125

126-
This example will not use tagging.
126+
This example won't use tagging.
127127

128128
### Review + create - Tab 5
129129

@@ -142,21 +142,21 @@ Your proposed Logic app will display the following details:
142142
- Plan
143143
- Monitoring
144144

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.
146146

147147
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.
148148

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":::
150150

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.
152152

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":::
154154

155155
#### Your Logic App dashboard
156156

157157
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:
158158

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":::
160160

161161
You can do the following activities from your dashboard.
162162

@@ -189,16 +189,16 @@ Before you begin, you'll need to have a Logic App configured and running correct
189189
Once your Logic App is running, you can create and configure a workflow. To initialize a workflow, follow these steps:
190190

191191
1. Start at the Azure portal.
192-
2. Click "Logic Apps" in Azure services.
192+
2. Select "Logic Apps" in Azure services.
193193
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.
196196

197197
### Configuring a new workflow
198198

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.
200200

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":::
202202

203203
You can specify the details of the new workflow in the panel on the right.
204204

@@ -211,21 +211,21 @@ To set up a new workflow, fill in these details:
211211

212212
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.
213213

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.
215215

216216
### Designing the workflow
217217

218-
In your new workflow, click the name of the enabled workflow.
218+
In your new workflow, select the name of the enabled workflow.
219219

220220
You can write code to design a workflow for your application, but for this tutorial, choose the Designer option on the Developer menu.
221221

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.
223223

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":::
225225

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).
227227

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.
229229

230230
To tell Event Grid how to respond to the trigger, you must specify parameters and add actions.
231231

@@ -244,48 +244,48 @@ Fill in the details for subscription, resource type, and resource name. Then you
244244
- Resource deleted
245245
- Resource updated
246246

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).
248248

249249
### Adding an HTTP action
250250

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.
252252

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.
254254

255255
The options in this example are:
256256

257257
- Method is "Get"
258-
- URL is "concat('https://', triggerBody()?['subject'], '/_history/', triggerBody()?['dataVersion'])".
258+
- URL is `"concat('https://', triggerBody()?['subject'], '/_history/', triggerBody()?['dataVersion'])"`.
259259
- Authentication type is "Managed Identity".
260-
- Audience is "concat('https://', triggerBody()?['data']['resourceFhirAccount'])"
260+
- Audience is `"concat('https://', triggerBody()?['data']['resourceFhirAccount'])"`.
261261

262262
### Allow FHIR Reader access to your Logic App
263263

264264
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:
265265

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.
267267

268268
2. In the System assigned tab, make sure the Status is "On".
269269

270-
3. Click on Azure role assignments. Click "Add role assignment".
270+
3. Select on Azure role assignments. Select "Add role assignment".
271271

272-
4. Specify the following:
272+
4. Specify the following options:
273273

274274
- Scope = Subscription
275275
- Subscription = your subscription
276276
- Role = FHIR Data Reader.
277277

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.
279279

280280
### Add a condition
281281

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.
283283

284284
When the condition is ready, you can specify what actions happen if the condition is true or false.
285285

286286
### Choosing a condition criteria
287287

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.
289289

290290
Under the "And" box, add these two conditions:
291291

@@ -300,19 +300,19 @@ The expression for getting the resourceType is `body('HTTP')?['resourceType']`.
300300

301301
You can select Event Type from the Dynamic Content.
302302

303-
Here is an example of the Condition criteria:
303+
Here's an example of the Condition criteria:
304304

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":::
306306

307307
#### Save your workflow
308308

309-
When you have entered the condition criteria, save your workflow.
309+
When you've entered the condition criteria, save your workflow.
310310

311311
#### Workflow dashboard
312312

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:
314314

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":::
316316

317317
You can do the following operations from your workflow dashboard:
318318

@@ -333,15 +333,15 @@ To test your new workflow, do the following steps:
333333
3. The event should be shaded in green if the action was successful.
334334
4. If it failed, the event will be shaded in red.
335335

336-
Here is an example of a workflow trigger success operation:
336+
Here's an example of a workflow trigger success operation:
337337

338338
:::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":::
339339

340340
## Next steps
341341

342-
For more information about FHIR events, see
342+
For more information about FHIR events, see:
343343

344-
>[!div class="nextstepaction"]
345-
>[What are Events?](./events-overview.md)
344+
> [!div class="nextstepaction"]
345+
> [What are Events?](./events-overview.md)
346346
347347
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

Comments
 (0)