Skip to content

Commit eaf1cc5

Browse files
committed
Additional edits.
1 parent f94e4ba commit eaf1cc5

File tree

1 file changed

+68
-5
lines changed

1 file changed

+68
-5
lines changed

articles/event-grid/event-schema-azure-healthcare-apis.md

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Azure Healthcare APIs as Event Grid source
33
description: Describes the properties that are provided for Azure Healthcare APIs events with Azure Event Grid
44
ms.topic: conceptual
5-
ms.date: 02/02/2022
5+
ms.date: 02/03/2022
66
---
77

88
# Azure Healthcare APIs as an Event Grid source
@@ -17,12 +17,12 @@ These events are triggered when a client creates, updates, or deletes a resource
1717

1818
|Event name|Description|
1919
|----------|-----------|
20-
|**FhirResourceCreated** |Triggered when a FHIR resource is created on the FHIR service.|
21-
|**FhirResourceUpdated** |Triggered when a FHIR resource is updated on the FHIR service.|
22-
|**FhirResourceDeleted** |Triggered when a FHIR resource is deleted on the FHIR service. Soft delete is the default.|
20+
|**FhirResourceCreated** |The event emitted after a FHIR resource gets created successfully.|
21+
|**FhirResourceUpdated** |The event emitted after a FHIR resource gets updated successfully.|
22+
|**FhirResourceDeleted** |The event emitted after a FHIR resource gets soft deleted successfully.|
2323

2424
## Example event
25-
When an event is triggered, the Event Grid service sends data about that event to a subscribing endpoint. This section contains an example of what that data would look like for each FHIR resource event.
25+
This section contains examples of what events message data would look like for each FHIR resource event.
2626

2727
> [!Note]
2828
> Events data looks similar to these examples with the `metadataVersion` property set to a value of `1`.
@@ -48,7 +48,27 @@ When an event is triggered, the Event Grid service sends data about that event t
4848
"eventTime": "2021-09-08T01:14:04.5613214Z"
4949
}
5050
```
51+
Cloud event example:
5152

53+
- Microsoft.HealthcareApis.FhirResourceCreated
54+
55+
```json
56+
{
57+
"id": "d674b9b7-7d1c-9b0a-8c48-139f3eb86c48",
58+
"source": "/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.HealthcareApis/workspaces/{workspace-name}",
59+
"specversion": "1.0",
60+
"type": "Microsoft.HealthcareApis.FhirResourceCreated",
61+
"dataschema": "#1",
62+
"subject": "{fhir-account}.fhir.azurehealthcareapis.com/Patient/e87ef649-abe1-485c-8c09-549d85dfe30b",
63+
"time": "2022-02-03T16:48:09.6223354Z",
64+
"data": {
65+
"resourceType": "Patient",
66+
"resourceFhirAccount": "{fhir-account}.fhir.azurehealthcareapis.com",
67+
"resourceFhirId": "e87ef649-abe1-485c-8c09-549d85dfe30b",
68+
"resourceVersionId": 1
69+
}
70+
}
71+
```
5272
### FhirResourceUpdated event
5373

5474
```json
@@ -68,6 +88,27 @@ When an event is triggered, the Event Grid service sends data about that event t
6888
"eventTime": "2021-09-08T01:29:12.0618739Z"
6989
}
7090
```
91+
Cloud event example:
92+
93+
- Microsoft.HealthcareApis.FhirResourceUpdated
94+
95+
```json
96+
{
97+
"id": "5e45229e-c663-ea98-72d2-833428f48ad0",
98+
"source": "/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.HealthcareApis/workspaces/{workspace-name}",
99+
"specversion": "1.0",
100+
"type": "Microsoft.HealthcareApis.FhirResourceUpdated",
101+
"dataschema": "#2",
102+
"subject": "{fhir-account}.fhir.azurehealthcareapis.com/Patient/e87ef649-abe1-485c-8c09-549d85dfe30b",
103+
"time": "2022-02-03T16:48:33.5147352Z",
104+
"data": {
105+
"resourceType": "Patient",
106+
"resourceFhirAccount": "{fhir-account}.fhir.azurehealthcareapis.com",
107+
"resourceFhirId": "e87ef649-abe1-485c-8c09-549d85dfe30b",
108+
"resourceVersionId": 2
109+
}
110+
}
111+
```
71112

72113
### FhirResourceDelete event
73114

@@ -89,6 +130,28 @@ When an event is triggered, the Event Grid service sends data about that event t
89130
}
90131
```
91132

133+
Cloud event example:
134+
135+
- Microsoft.HealthcareApis.FhirResourceDeleted
136+
137+
```json
138+
{
139+
"id": "14648a6e-d978-950e-ee9c-f84c70dba8d3",
140+
"source": "/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.HealthcareApis/workspaces/{workspace-name}",
141+
"specversion": "1.0",
142+
"type": "Microsoft.HealthcareApis.FhirResourceDeleted",
143+
"dataschema": "#3",
144+
"subject": "{fhir-account}.fhir.azurehealthcareapis.com/Patient/e87ef649-abe1-485c-8c09-549d85dfe30b",
145+
"time": "2022-02-03T16:48:38.7338799Z",
146+
"data": {
147+
"resourceType": "Patient",
148+
"resourceFhirAccount": "{fhir-account}.fhir.azurehealthcareapis.com",
149+
"resourceFhirId": "e87ef649-abe1-485c-8c09-549d85dfe30b",
150+
"resourceVersionId": 3
151+
}
152+
}
153+
```
154+
92155
## Next steps
93156

94157
* For an introduction to Azure Event Grid, see [What is Event Grid?](overview.md)

0 commit comments

Comments
 (0)