GET
/
medical
/
v1
/
patient
curl --request GET \
  --url https://api.sandbox.metriport.com/medical/v1/patient \
  --header 'x-api-key: <api-key>'
import { MetriportMedicalApi } from "@metriport/api-sdk";

const metriport = new MetriportMedicalApi("YOUR_API_KEY");

const patients = await metriport.listPatients("2.16.840.1.113883.3.666.5.2004.4.2005");

Query Params

facilityId
string

The ID of the Facility where the patient is receiving care.

Response

All Patients receiving care at the specified Facility, or all Patients if no Facility is specified.

patients
Patient[]
{
  "patients": [
    {
      "id": "2.16.840.1.113883.3.666.777",
      "externalId": "123456789",
      "facilityIds": ["2.16.840.1.113883.3.666.5.2004.4.2005"],
      "firstName": "Jose",
      "lastName": "Juarez",
      "dob": "1951-05-05",
      "genderAtBirth": "M",
      "personalIdentifiers": [
        {
          "type": "driversLicense",
          "state": "CA",
          "value": "51227265"
        }
      ],
      "address": [
        {
          "zip": "12345",
          "city": "San Diego",
          "state": "CA",
          "country": "USA",
          "addressLine1": "Guadalajara St"
        }
      ],
      "contact": [
        {
          "phone": "1234567899",
          "email": "jose@domain.com"
        }
      ]
    },
    {
      "id": "2.16.840.1.113883.3.666.888",
      "externalId": "123456789",
      "facilityIds": ["2.16.840.1.113883.3.666.5.2004.4.2005"],
      "firstName": "Josita",
      "lastName": "Juarez,Diaz",
      "dob": "1949-06-09",
      "genderAtBirth": "F",
      "address": [
        {
          "zip": "12345",
          "city": "San Diego",
          "state": "CA",
          "country": "USA",
          "addressLine1": "Guadalajara St"
        },
        { "zip": 66543 }
      ]
    }
  ]
}