## FhircastContextResourceType type [​](/content/docs/sdk/core.fhircastcontextresourcetype#fhircastcontextresourcetype-type "Direct link to FhircastContextResourceType type"/index.html)

**Signature:**

```typescript
export type FhircastContextResourceType<EventName extends FhircastEventName, K extends FhircastEventKeys<EventName>> = (typeof FHIRCAST_EVENT_RESOURCES)[EventName][K] extends {

resourceType: infer R;

} ? R : never;
```

**References:** [FhircastEventName](/content/docs/sdk/core.fhircasteventname), [FhircastEventKeys](/content/docs/sdk/core.fhircasteventkeys), [FHIRCAST_EVENT_RESOURCES](/content/docs/sdk/core.fhircast_event_resources/index.html)

- [FhircastContextResourceType type](/content/docs/sdk/core.fhircastcontextresourcetype#fhircastcontextresourcetype-type/index.html)
