## MedplumClient.readResource() method

Reads a resource by resource type and ID.

**Signature:**

```typescript
readResource<RT extends ResourceType>(resourceType: RT, id: string, options?: MedplumRequestOptions): ReadablePromise<WithId<ExtractResource<RT>>>;
```

## Parameters

| Parameter       | Type                                     | Description                                           |
|------------------|------------------------------------------|-------------------------------------------------------|
| resourceType     | RT                                       | The FHIR resource type.                               |
| id               | string                                   | The resource ID.                                     |
| options          | [MedplumRequestOptions](/content/docs/sdk/core.medplumrequestoptions) | _(Optional)_ Optional fetch options.                  |

**Returns:**

[ReadablePromise](/content/docs/sdk/core.readablepromise) < [WithId](/content/docs/sdk/core.withid) <ExtractResource<RT>>>  
The resource if available.

## Example

Example:

```typescript
const patient = await medplum.readResource('Patient', '123');

console.log(patient);
```

See the FHIR "read" operation for full details: [https://www.hl7.org/fhir/http.html\#read](https://www.hl7.org/fhir/http.html%5C#read)
