UNPKG

@eka-care/patient-ts-sdk

Version:

TypeScript SDK for Trinity Patient Profile Management System

40 lines (39 loc) 1.13 kB
/** * Minified patient data operations */ /** * Minified patient methods for data loading */ export class MinifiedMethods { constructor(client) { this.basePath = '/profiles/v1/patient'; this.client = client; } /** * Get minified patient profiles with pagination * * @param params Optional query parameters for filtering and pagination * @returns Array of minified patient profiles * * @example * ```typescript * const profiles = await minifiedMethods.getMinified(); * // or with parameters * const profiles = await minifiedMethods.getMinified({ page: 1, limit: 50 }); * ``` */ async getMinified(params) { const response = await this.client.get(`${this.basePath}/minified`, params); return response.data; } /** * Get minified profiles for a specific page * * @param page Page number (1-based) * @param limit Number of records per page * @returns Array of minified patient profiles */ async getPage(page, limit = 100) { return this.getMinified({ page, limit }); } }