Methods/clients/getById
GET

pulse.clients.getById(id)

Returns full client detail by UID. Includes identity, address, contact, physical description, additional info, and status. Joins with ProviderOffice and eVVJurisdiction.

Added in 0.1.0

Parameters

NameTypeDescription
idnumberThe client UID to look up

Response — ClientDetail | null

FieldTypeDescription
uidnumberUnique client identifier
firstNamestring | nullClient first name
middleNamestring | nullClient middle name
lastNamestring | nullClient last name
nickNamestring | nullPreferred name
dobstring | nullDate of birth (YYYY-MM-DD)
startDatestring | nullService start date (YYYY-MM-DD)
ssnstring | nullSocial Security number
uciNumberstring | nullUCI identification number
address1string | nullStreet address line 1
address2string | nullStreet address line 2
citystring | nullCity
statestring | nullState (2-letter code)
zipstring | nullZIP code
countystring | nullCounty
homePhonestring | nullHome phone number
cellPhonestring | nullCell phone number
otherPhonestring | nullOther phone number
faxNumberstring | nullFax number
emailstring | nullEmail address
genderstring | nullGender
heightstring | nullHeight
weightstring | nullWeight
eyesstring | nullEye color
hairstring | nullHair color
ethnicitystring | nullEthnicity
languagestring | nullPrimary language
identifyingCharacteristicsstring | nullPhysical identifying characteristics
commChallengesstring | nullCommunication challenges
drivingDirectionsstring | nullDriving directions to client
stateIdstring | nullState ID number
ssiNumberstring | nullSSI number
ssaNumberstring | nullSSA number
medicaidstring | nullMedicaid/Medi-Cal number
medicarestring | nullMedicare number
evvbooleanElectronic Visit Verification enabled
jurisdictionalEntitystring | nullJurisdictional entity (from eVVJurisdiction join)
commentsstring | nullGeneral comments
photoConsentbooleanClient consents to photo release
conservedbooleanClient is conserved
shirtSizestring | nullShirt size
statusstring | nullCurrent client status
officeNamestring | nullProvider office name (from ProviderOffice join)
providerOfficeUIDnumber | nullProvider office UID (foreign key)
photostring | nullPhoto URL or blob reference

Code Example

import { createPulseClient } from '@qsp-life/pulse';

const pulse = createPulseClient({
  server: process.env.PULSE_DB_SERVER!,
  database: process.env.PULSE_DB_DATABASE!,
  user: process.env.PULSE_DB_USER!,
  password: process.env.PULSE_DB_PASSWORD!,
});

const client = await pulse.clients.getById(5417);

if (client) {
  client.firstName   // "Captain"
  client.officeName  // "Compass Cares"
  client.evv         // false
  client.status      // "Active"
}

await pulse.disconnect();

Live Preview

Connection is closed.