## serviceTypeIncludesService() function [​](/content/docs/sdk/core.servicetypeincludesservice#servicetypeincludesservice-function "Direct link to serviceTypeIncludesService(/index.html) function")

Returns whether any serviceType concept refers to the given HealthcareService.

**Signature:**

```typescript
export declare function serviceTypeIncludesService(serviceType: CodeableConcept[] | undefined, service: WithId<HealthcareService> | (Reference<HealthcareService> & {
    reference: string;
})): boolean;
```

## Parameters [​](/content/docs/sdk/core.servicetypeincludesservice#parameters "Direct link to Parameters"/index.html)

| Parameter | Type | Description |
| --- | --- | --- |
| serviceType | CodeableConcept\[\] \| undefined | CodeableConcept values to inspect |
| service | [WithId](/content/docs/sdk/core.withid) <HealthcareService> \| (Reference<HealthcareService> & { reference: string; }) | HealthcareService or reference to match |

**Returns:**

boolean

True if any concept references the service
