POST
/
api
/
v2
/
hie
/
patient
/
documents
import SampleHealthcare from 'samplehc';

const client = new SampleHealthcare({
  apiKey: process.env['SAMPLEHC_API_KEY'], // This is the default and can be omitted
});

const response = await client.v2.hie.patient.retrieveDocuments({
  address: [{ addressLine1: 'addressLine1', city: 'city', state: 'state', zip: 'zip' }],
  dob: 'dob',
  externalId: 'externalId',
  firstName: 'firstName',
  genderAtBirth: 'M',
  lastName: 'lastName',
});

console.log(response.asyncResultId);
{
  "asyncResultId": "<string>"
}

Body

application/json

Response

202 - application/json

Default Response

The response is of type object.