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

ParameterTypeDescription
topicstring
eventEventName
contextFhircastValidContextForEvent<EventName> | FhircastValidContextForEvent<EventName>[]
versionIdstring

Returns:

FhircastMessagePayload<EventName>