## findResourceByCode() function
Finds the first resource in the input array that matches the specified code and system.

**Signature:**

```typescript
export declare function findResourceByCode(resources: ResourceWithCode[], code: CodeableConcept | string, system: string): ResourceWithCode | undefined;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| resources | [ResourceWithCode](/content/docs/sdk/core.resourcewithcode) | The array of resources to search. |
| code | CodeableConcept \| string | The code to search for. |
| system | string | The system to search for. |

**Returns:**

[ResourceWithCode](/content/docs/sdk/core.resourcewithcode) \| undefined

The first resource in the input array that matches the specified code and system, or undefined if no such resource is found.

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