@medplum/fhirtypes 5.0.5 → 5.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AuditEvent.d.ts +1 -1
- package/dist/Bot.d.ts +62 -0
- package/package.json +1 -1
package/dist/AuditEvent.d.ts
CHANGED
|
@@ -225,7 +225,7 @@ export interface AuditEventAgent {
|
|
|
225
225
|
/**
|
|
226
226
|
* Reference to who this agent is that was involved in the event.
|
|
227
227
|
*/
|
|
228
|
-
who?: Reference<PractitionerRole | Practitioner | Organization | Device | Patient | RelatedPerson>;
|
|
228
|
+
who?: Reference<PractitionerRole | Practitioner | Organization | Device | Patient | RelatedPerson | Bot | ClientApplication>;
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
231
|
* Alternative agent Identifier. For a human, this should be a user
|
package/dist/Bot.d.ts
CHANGED
|
@@ -185,6 +185,12 @@ export interface Bot {
|
|
|
185
185
|
*/
|
|
186
186
|
executableCode?: Attachment;
|
|
187
187
|
|
|
188
|
+
/**
|
|
189
|
+
* CDS service definition if the bot is used as a CDS Hooks service. See
|
|
190
|
+
* https://cds-hooks.hl7.org/ for more details.
|
|
191
|
+
*/
|
|
192
|
+
cdsService?: BotCdsService;
|
|
193
|
+
|
|
188
194
|
/**
|
|
189
195
|
* @deprecated Bot logic script. Use Bot.sourceCode or Bot.executableCode
|
|
190
196
|
* instead.
|
|
@@ -196,3 +202,59 @@ export interface Bot {
|
|
|
196
202
|
* A schedule for the bot to be executed.
|
|
197
203
|
*/
|
|
198
204
|
export type BotCron = string | Timing;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* CDS service definition if the bot is used as a CDS Hooks service. See
|
|
208
|
+
* https://cds-hooks.hl7.org/ for more details.
|
|
209
|
+
*/
|
|
210
|
+
export interface BotCdsService {
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The hook this service should be invoked on. See
|
|
214
|
+
* https://cds-hooks.hl7.org/#hooks for possible values.
|
|
215
|
+
*/
|
|
216
|
+
hook: string;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* The human-friendly name of this CDS service.
|
|
220
|
+
*/
|
|
221
|
+
title: string;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* The description of this CDS service.
|
|
225
|
+
*/
|
|
226
|
+
description: string;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Optional human-friendly description of any preconditions for the use
|
|
230
|
+
* of this CDS Service.
|
|
231
|
+
*/
|
|
232
|
+
usageRequirements?: string;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* An object containing key/value pairs of FHIR queries that this service
|
|
236
|
+
* is requesting the CDS Client to perform and provide on each service
|
|
237
|
+
* call.
|
|
238
|
+
*/
|
|
239
|
+
prefetch?: BotCdsServicePrefetch[];
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* An object containing key/value pairs of FHIR queries that this service
|
|
244
|
+
* is requesting the CDS Client to perform and provide on each service
|
|
245
|
+
* call.
|
|
246
|
+
*/
|
|
247
|
+
export interface BotCdsServicePrefetch {
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* The type of data being requested. See
|
|
251
|
+
* https://cds-hooks.hl7.org/#prefetch-template
|
|
252
|
+
*/
|
|
253
|
+
key: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The FHIR query used to retrieve the requested data. See
|
|
257
|
+
* https://cds-hooks.hl7.org/#prefetch-template
|
|
258
|
+
*/
|
|
259
|
+
query: string;
|
|
260
|
+
}
|