## MedplumClient.readHistory() method

Reads resource history by resource type and ID.

The return value is a bundle of all versions of the resource.

**Signature:**

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

## Parameters

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

**Returns:**

[ReadablePromise](/content/docs/sdk/core.readablepromise) <Bundle< [WithId](/content/docs/sdk/core.withid) <ExtractResource<RT>>>>

Promise to the resource history.

## Example

Example:

```typescript
const history = await medplum.readHistory('Patient', '123');

console.log(history);
```

See the [FHIR "history" operation](https://www.hl7.org/fhir/http.html#history) for full details.
