import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import * as core from "../../../../core/index.mjs"; import * as Corti from "../../../index.mjs"; export declare namespace CodesClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class CodesClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: CodesClient.Options); /** * Predict medical codes from provided context.
This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM, CPT, SNOMED CT, MedDRA, SKS and KVÅ codes based on input text string or documentId.

More than one code system may be defined in a single request.

Code prediction requests have two possible values for context:
- `text`: One set of code prediction results will be returned based on all input text defined.
- `documentId`: Code prediction will be based on that defined document only.

The response includes two sets of results:
- `Codes`: Codes predicted by the model.
- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.

All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).
* * @param {Corti.CodesGeneralPredictRequest} request * @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Corti.BadRequestError} * @throws {@link Corti.ForbiddenError} * @throws {@link Corti.InternalServerError} * @throws {@link Corti.BadGatewayError} * @throws {@link Corti.GatewayTimeoutError} * * @example * await client.codes.predict({ * system: ["icd10cm-outpatient", "cpt"], * context: [{ * type: "text", * text: "Short arm splint applied in ED for pain control." * }] * }) * * @example * await client.codes.predict({ * system: ["icd10cm-outpatient"], * context: [{ * type: "text", * text: "Patient presents with uncontrolled type 2 diabetes." * }], * filter: { * include: [{ * property: "code", * op: "is-a", * value: ["E11"] * }] * } * }) */ predict(request: Corti.CodesGeneralPredictRequest, requestOptions?: CodesClient.RequestOptions): core.HttpResponsePromise; private __predict; }