## MedplumClient.fhirSearchUrl() method [​](/content/docs/sdk/core.medplumclient.fhirsearchurl#medplumclientfhirsearchurl-method/index.html)

Builds a FHIR search URL from a search query or structured query object.

**Signature:**

```typescript
fhirSearchUrl(resourceType: ResourceType, query: QueryTypes): URL;
```

## Parameters [​](/content/docs/sdk/core.medplumclient.fhirsearchurl#parameters/index.html)

| Parameter      | Type                    | Description                                                  |
|----------------|-------------------------|--------------------------------------------------------------|
| resourceType   | ResourceType            | The FHIR resource type.                                     |
| query          | [QueryTypes](/content/docs/sdk/core.querytypes) | The FHIR search query or structured query object. Can be any valid input to the URLSearchParams() constructor. |

**Returns:**

URL

The well-formed FHIR URL.

- [MedplumClient.fhirSearchUrl() method](/content/docs/sdk/core.medplumclient.fhirsearchurl#medplumclientfhirsearchurl-method/index.html)  
- [Parameters](/content/docs/sdk/core.medplumclient.fhirsearchurl#parameters/index.html)
