## toServiceTypeCodeableConcepts() function

Converts a HealthcareService into the CodeableConcept values used by `Schedule.serviceType` and `Appointment.serviceType`, which encode an R4 approximation of `CodeableReference<HealthcareService>`.

**Signature:**

```typescript
export declare function toServiceTypeCodeableConcepts(service: WithId<HealthcareService>): CodeableConcept[];
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| service | [WithId](/content/docs/sdk/core.withid) <HealthcareService> | HealthcareService to represent |

**Returns:**

CodeableConcept[]

CodeableConcept values containing a reference to the service

- [toServiceTypeCodeableConcepts() function](/content/docs/sdk/core.toservicetypecodeableconcepts#toservicetypecodeableconcepts-function/index.html)
- [Parameters](/content/docs/sdk/core.toservicetypecodeableconcepts#parameters/index.html)
