1. Patient
  2. List Patients at Facility
GET

/medical/v1/patient

x-api-key*
curl --request GET \
     --url https://api.metriport.com/medical/v1/patient \
     --header 'x-api-key: AUTH_VALUE'

Query Params

facilityIdRequired
string

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

Response

All Patients receiving care at the specified Facility.

patients
Patient[]
import { Metriport } from "@metriport/api";

const metriportClient = new MetriportMedicalApi("YOUR_API_KEY");

const patients = await metriportClient.listPatients("2.16.840.1.113883.3.666.5.2004.4.2005");
{
  "patients": [
    {
      "id": "2.16.840.1.113883.3.666.777",
      "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",
      "facilityIds": ["2.16.840.1.113883.3.666.5.2004.4.2005"],
      "firstName": "Josita",
      "lastName": "Juarez",
      "dob": "1949-06-09",
      "genderAtBirth": "F",
      "personalIdentifiers": [],
      "address": {
        "zip": "12345",
        "city": "San Diego",
        "state": "CA",
        "country": "USA",
        "addressLine1": "Guadalajara St"
      },
      "contact": {
        "phone": "1234569999",
        "email": "josita@domain.com"
      }
    }
  ]
}