## findCodeBySystem() function

Finds the code for a specific system in a list of CodeableConcepts.

**Signature:**

```typescript
export declare function findCodeBySystem(categories: CodeableConcept[] | undefined, system: string): string | undefined;
```

## Parameters

| Parameter  | Type                              | Description                                            |
|------------|-----------------------------------|--------------------------------------------------------|
| categories | CodeableConcept[] | undefined | The list of CodeableConcepts to search.                |
| system     | string                            | The system to match.                                   |

**Returns:**

string | undefined

The code for the matching system, or undefined if not found.

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