Skip to content

Commit 6def919

Browse files
docs: add asyncapi documentation of patient tracked event
1 parent 4030eb5 commit 6def919

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

docs/asyncapi/asyncapi.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ channels:
5353
- "$ref": '#/components/messages/medicalDeviceUsageEvent'
5454
- "$ref": "#/components/messages/processInfoEvent"
5555
- "$ref": '#/components/messages/medicalTechnologyUsageEvent'
56+
- "$ref": '#/components/messages/patientTrackedEvent'
5657

5758

5859
tracking-events:
@@ -116,6 +117,13 @@ components:
116117
contentType: application/json
117118
payload:
118119
$ref: "#/components/schemas/medicalTechnologyUsageEventPayload"
120+
patientTrackedEvent:
121+
name: patientTracked
122+
title: The Tracking Event of a Patient
123+
summary: the event about patient tracking.
124+
contentType: application/json
125+
payload:
126+
$ref: "#/components/schemas/patientTrackedEventPayload"
119127

120128
trackingEvent:
121129
name: trackingEvent
@@ -228,6 +236,19 @@ components:
228236
type: string
229237
description: the timestamp of the event.
230238

239+
patientTrackedEventPayload:
240+
type: object
241+
properties:
242+
key:
243+
type: string
244+
description: The key of the event.
245+
data:
246+
type: object
247+
$ref: "#/components/schemas/patientTracked"
248+
dateTime:
249+
type: string
250+
description: the timestamp of the event.
251+
231252
trackingEventPayload:
232253
type: object
233254
properties:
@@ -310,3 +331,19 @@ components:
310331
processId:
311332
type: string
312333
description: The id of the process.
334+
335+
patientTracked:
336+
type: object
337+
properties:
338+
patientId:
339+
type: string
340+
description: The id of the tracked patient.
341+
roomId:
342+
type: string
343+
description: The id of the room in which the patient is tracked.
344+
entered:
345+
type: boolean
346+
description: True if the patient is entered, false if he's exited.
347+
roomType:
348+
type: string
349+
description: The type of the room in which the patient is tracked.

0 commit comments

Comments
 (0)