> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metriport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Patient by External ID

> Get a Patient based on External Identifier.

## Query Params

<Snippet file="patient-external-id.mdx" />

## Response

<Snippet file="patient-response.mdx" />

<ResponseExample>
  ```javascript Metriport SDK theme={null}
  import { MetriportMedicalApi, USState } from "@metriport/api-sdk";

  const metriport = new MetriportMedicalApi("YOUR_API_KEY");

  const patient = await metriport.getPatientByExternalId("1234567890");
  ```
</ResponseExample>

<Snippet file="patient-response-json.mdx" />
