Skip to main content

core.createfhircastmessagepayload_1

Home > @medplum/core > createFhircastMessagePayload

createFhircastMessagePayload() function

Signature:

export declare function createFhircastMessagePayload<EventName extends FhircastEventVersionRequired>(topic: string, event: EventName, context: FhircastValidContextForEvent<EventName> | FhircastValidContextForEvent<EventName>[], versionId: string): FhircastMessagePayload<EventName>;

Parameters

Parameter

Type

Description

topic

string

event

EventName

context

FhircastValidContextForEvent<EventName> | FhircastValidContextForEvent<EventName>[]

versionId

string

Returns:

FhircastMessagePayload<EventName>