## formatCoding() function

Formats a Coding element as a string.

**Signature:**

```typescript
export declare function formatCoding(coding: Coding | undefined, includeCode?: boolean): string;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| coding | Coding \| undefined | A FHIR Coding element |
| includeCode | boolean | _(Optional)_ If true, includes both the code and display if available |

**Returns:**

string

The coding as a string.
