import { ApolloClient, DocumentNode, NormalizedCacheObject } from '@apollo/client'; import { Medication, SearchMedication } from '../types'; /** * GetConceptOptions options * @param name Filter concepts by name * @param fragment Allows you to override the default query to request more fields */ export interface GetConceptOptions { name: string; fragment?: Record; } /** * GetStrengthOptions options * @param id SearchMedication CONCEPT id * @param fragment Allows you to override the default query to request more fields */ export interface GetStrengthsOptions { id: string; fragment?: Record; } /** * GetRoutesOptions options * @param id SearchMedication STRENGTH id * @param fragment Allows you to override the default query to request more fields */ export interface GetRoutesOptions { id: string; fragment?: Record; } /** * GetFormsOptions options * @param id SearchMedication ROUTE id * @param fragment Allows you to override the default query to request more fields */ export interface GetFormsOptions { id: string; fragment?: Record; } /** * GetProductOptions options * @param id SearchMedication FORM id or any valid prescribable concept id * @param fragment Allows you to override the default query to request more fields */ export interface GetProductOptions { id: string; fragment?: Record; } /** * GetProductOptions options * @param id SearchMedication FORM id or any Medication of type DRUG * @param fragment Allows you to override the default query to request more fields */ export interface GetProductOptions { id: string; fragment?: Record; } /** * GetPackageOptions options * @param id Any valid Medication of type PRODUCT * @param fragment Allows you to override the default query to request more fields */ export interface GetPackageOptions { id: string; fragment?: Record; } /** * Contains various methods for Photon Medications */ export declare class SearchMedicationQueryManager { private apollo; /** * @param apollo - An Apollo client instance */ constructor(apollo: ApolloClient | ApolloClient); /** * Retrieves all medication concepts, filtered by name * @param options - Query options * @returns */ getConcepts({ name, fragment }: GetConceptOptions): Promise>; /** * Retrieves all strengths for a SearchMedication CONCEPT * @param options - Query options * @returns */ getStrengths({ id, fragment }: GetStrengthsOptions): Promise>; /** * Retrieves all routes for a SearchMedication STRENGTH * @param options - Query options * @returns */ getRoutes({ id, fragment }: GetRoutesOptions): Promise>; /** * Retrieves all forms for a SearchMedication ROUTE * @param options - Query options * @returns */ getForms({ id, fragment }: GetFormsOptions): Promise>; /** * Retrieves all products for a SearchMedication FORM/Medication DRUG * @param options - Query options * @returns */ getProducts({ id, fragment }: GetProductOptions): Promise>; /** * Retrieves all packages for a Medication PRODUCT * @param options - Query optiofns * @returns */ getPackages({ id, fragment }: GetPackageOptions): Promise>; }