Skip to main content

core.fhircasteventresource

Home > @medplum/core > FhircastEventResource

FhircastEventResource type

Signature:

export type FhircastEventResource<EventName extends FhircastEventName = FhircastEventName, K extends FhircastEventContextKey<EventName> = FhircastEventContextKey<EventName>> = FhircastEventContextMap<EventName>[K] extends infer _Ev extends FhircastEventContextDetails ? FhircastEventResourceType<EventName, K> extends '*' ? Resource & {
id: string;
} : Resource & {
resourceType: FhircastEventResourceType<EventName, K>;
id: string;
} : never;

References: FhircastEventName, FhircastEventContextKey, FhircastEventContextMap, FhircastEventContextDetails, FhircastEventResourceType