@sequoiaport/codes 0.1.0-beta.0 → 0.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,183 @@
1
+ # SequoiaCodex API — Agent System Prompt
2
+
3
+ You now have access to the SequoiaCodex medical coding API. Use it to search and look up ICD-10, CPT, HCPCS, SNOMED, RxNorm, LOINC codes, and Medicare coverage guidelines (LCD/NCD).
4
+
5
+ ## CRITICAL: Take things one step at a time
6
+
7
+ Do NOT try to do everything at once. Complete **Setup** fully before moving on to **Usage**.
8
+
9
+ ## Domain Guide — READ THIS CAREFULLY
10
+
11
+ There are TWO different domains. Using the wrong one will fail.
12
+
13
+ - **sequoiacodes.com** — ONLY for the auth flow (creating sessions, polling for keys, seeing the actual UI and dashboard for a user). Do NOT use this domain for anything other than the auth flow.
14
+ - **api.sequoiacodes.com** — ONLY for making API queries once you have a key. Do NOT use this domain for auth.
15
+
16
+ ---
17
+
18
+ # Setup
19
+
20
+ Complete both steps below before making any API queries.
21
+
22
+ ## Step 1: Get an API key
23
+
24
+ **Before doing anything else**, check if the `SEQUOIA_CODES_API_KEY` environment variable is already set. If it is, you already have a key — skip the rest of this step and go directly to Step 2.
25
+
26
+ **Only if no key is found**, ask the user:
27
+
28
+ > "Do you already have a SequoiaCodex API key, or would you like me to generate one for you?"
29
+
30
+ Wait for their response. Do NOT proceed to Step 2 until this is resolved.
31
+
32
+ - **If they have a key**: Ask them to provide it, then move on to Step 2.
33
+ - **If they want you to generate one**: Follow the Agent Auth Flow below, then move on to Step 2 once you have the key.
34
+
35
+ ### Agent Auth Flow
36
+
37
+ **IMPORTANT**: You MUST use `curl` via a shell/bash tool for these requests. Do NOT use a fetch/GET tool — the first request is a POST and will fail with a 405 if sent as GET.
38
+
39
+ Use **sequoiacodes.com** (NOT api.sequoiacodes.com) for auth.
40
+
41
+ #### 1. Create an auth session
42
+
43
+ Run this exact curl command:
44
+
45
+ ```bash
46
+ curl -s -X POST https://sequoiacodes.com/api/agent-auth/session \
47
+ -H "Content-Type: application/json" \
48
+ -d '{"agent_id": "your-agent-name"}'
49
+ ```
50
+
51
+ Response:
52
+ ```json
53
+ {
54
+ "session_id": "...",
55
+ "session_secret": "...",
56
+ "auth_url": "...",
57
+ "expires_at": ...
58
+ }
59
+ ```
60
+
61
+ Save the `session_id`, `session_secret`, and `auth_url` from the response.
62
+
63
+ #### 2. Show the auth URL to the user
64
+
65
+ Display the `auth_url` to the user and ask them to open it in their browser to sign in and approve the connection. **Wait for the user to confirm they have completed sign-in before polling.**
66
+
67
+ #### 3. Poll for the API key
68
+
69
+ Once the user confirms they signed in, run this curl command (replacing the placeholders with values from step 1):
70
+
71
+ ```bash
72
+ curl -s https://sequoiacodes.com/api/agent-auth/session/{session_id} \
73
+ -H "Authorization: Bearer {session_secret}"
74
+ ```
75
+
76
+ If the response shows `"status": "pending"`, wait 3–5 seconds and run the same curl again. Repeat until status is `"completed"`.
77
+
78
+ #### 4. Retrieve the API key
79
+
80
+ When status is `"completed"`, the response includes the API key:
81
+
82
+ ```json
83
+ { "status": "completed", "api_key": "sk_live_seq_..." }
84
+ ```
85
+
86
+ **Store this key securely — it is only returned once.** The session expires after 10 minutes.
87
+
88
+ ## Step 2: Read the documentation
89
+
90
+ Now that you have a key, read the docs at https://github.com/Sequoia-Port/codes to understand the available endpoints, parameters, and response formats. Do NOT guess at endpoints or parameters — always consult the docs first.
91
+
92
+ **Once you have reviewed the docs, you are ready to move on to Usage.**
93
+
94
+ ---
95
+
96
+ # Usage
97
+
98
+ You must have an API key and have read the documentation before proceeding.
99
+
100
+ ## Making API requests
101
+
102
+ Use **api.sequoiacodes.com** for ALL data queries. Run queries using `curl` via a shell/bash tool.
103
+
104
+ ```
105
+ Base URL: https://api.sequoiacodes.com
106
+ Auth header: Authorization: Bearer {api_key}
107
+ Method: GET for all endpoints
108
+ URL pattern: /v1/{system}/{action}?{params}
109
+ ```
110
+
111
+ ### Available Endpoints
112
+
113
+ | System | Action | Params |
114
+ |----------|---------------------------|------------------------------------|
115
+ | icd10 | searchCode | query, limit?, billingOnly? |
116
+ | icd10 | identifyCode | code |
117
+ | icd10 | getChapters | (none) |
118
+ | cpt | searchCode | query, limit? |
119
+ | cpt | identifyCode | code |
120
+ | cpt | getCost | code |
121
+ | cpt | linkIcd10 | code |
122
+ | hcpcs | searchCode | query, limit? |
123
+ | hcpcs | identifyCode | code |
124
+ | hcpcs | getCost | code |
125
+ | snomed | searchCode | query, limit? |
126
+ | snomed | identifyCode | code |
127
+ | rxnorm | searchCode | query, limit? |
128
+ | rxnorm | identifyCode | type (ndc or rxcui), code |
129
+ | rxnorm | getIngredients | rxcui |
130
+ | loinc | searchCode | query, limit? |
131
+ | loinc | identifyCode | code |
132
+ | loinc | getPanelMembers | code |
133
+ | lcd | searchGuidelines | query, limit? |
134
+ | lcd | identifyGuideline | id |
135
+ | ncd | searchGuidelines | query, limit? |
136
+ | ncd | identifyGuideline | id?, section? |
137
+ | clinical | checkCoverage | (see /v1/clinical/getMetadata) |
138
+ | clinical | getProceduresForDiagnosis | (see /v1/clinical/getMetadata) |
139
+ | clinical | getMetadata | (none) |
140
+
141
+ All search endpoints accept `query` (string) and optional `limit` (1–200).
142
+ Use `searchCode` to find codes by description. Use `identifyCode` to look up a specific code.
143
+
144
+ ### Example
145
+
146
+ ```bash
147
+ curl -s "https://api.sequoiacodes.com/v1/icd10/searchCode?query=hypertension" \
148
+ -H "Authorization: Bearer sk_live_seq_..."
149
+ ```
150
+
151
+ ```json
152
+ {
153
+ "success": true,
154
+ "data": {
155
+ "query": "hypertension",
156
+ "count": 3,
157
+ "results": [
158
+ {
159
+ "code": "I10",
160
+ "short_description": "Essential (primary) hypertension",
161
+ "long_description": "Essential (primary) hypertension",
162
+ "is_billable": true,
163
+ "chapter": "IX",
164
+ "similarity": 0.98
165
+ }
166
+ ]
167
+ },
168
+ "version": "v1"
169
+ }
170
+ ```
171
+
172
+ Responses follow a consistent `{ success, data, version }` envelope.
173
+
174
+ ---
175
+
176
+ ## Quick Reference
177
+
178
+ | What you're doing | Domain |
179
+ |---------------------------|---------------------------------|
180
+ | Creating auth session | sequoiacodes.com |
181
+ | Polling for API key | sequoiacodes.com |
182
+ | Making API data queries | api.sequoiacodes.com |
183
+ | Reading documentation | github.com/Sequoia-Port/codes |
package/MCP_SETUP.md ADDED
@@ -0,0 +1,78 @@
1
+ # MCP Server Setup
2
+
3
+ Once you have your `SEQUOIA_CODES_API_KEY`, you can add the SequoiaCodes MCP server to give your AI tools direct access to medical code search and lookup.
4
+
5
+ ## Add to Claude Code
6
+
7
+ ```bash
8
+ claude mcp add sequoia-codes -- npx -y @sequoiaport/codes@latest
9
+ ```
10
+
11
+ Then set the API key as an environment variable so the MCP server can use it:
12
+
13
+ ```bash
14
+ # Add to your shell profile (.zshrc, .bashrc, etc.)
15
+ export SEQUOIA_CODES_API_KEY="sk_live_seq_..."
16
+ ```
17
+
18
+ ## Add to Cursor
19
+
20
+ In `.cursor/mcp.json`:
21
+
22
+ ```json
23
+ {
24
+ "mcpServers": {
25
+ "sequoia-codes": {
26
+ "command": "npx",
27
+ "args": ["-y", "@sequoiaport/codes@latest"],
28
+ "env": {
29
+ "SEQUOIA_CODES_API_KEY": "sk_live_seq_..."
30
+ }
31
+ }
32
+ }
33
+ }
34
+ ```
35
+
36
+ ## Add to VS Code
37
+
38
+ In `.vscode/mcp.json`:
39
+
40
+ ```json
41
+ {
42
+ "servers": {
43
+ "sequoia-codes": {
44
+ "command": "npx",
45
+ "args": ["-y", "@sequoiaport/codes@latest"],
46
+ "env": {
47
+ "SEQUOIA_CODES_API_KEY": "sk_live_seq_..."
48
+ }
49
+ }
50
+ }
51
+ }
52
+ ```
53
+
54
+ ## Available Tools
55
+
56
+ The MCP server exposes 3 tools:
57
+
58
+ ### `searchCode`
59
+ Search medical codes by description.
60
+ - `system` (required): `icd10`, `cpt`, `hcpcs`, `snomed`, `rxnorm`, or `loinc`
61
+ - `query` (required): search text
62
+ - `limit` (optional): max results (1–200)
63
+ - `billingOnly` (optional): ICD-10 only — filter to billable codes
64
+
65
+ ### `identifyCode`
66
+ Look up a specific code, get cost data, ICD-10 links, panel members, ingredients, or chapters.
67
+ - `system` (required): `icd10`, `cpt`, `hcpcs`, `snomed`, `rxnorm`, or `loinc`
68
+ - `code` (required for most actions): the code to look up
69
+ - `type` (optional): RxNorm only — `ndc` or `rxcui`
70
+ - `action` (optional): `lookup` (default), `getCost`, `linkIcd10`, `getPanelMembers`, `getIngredients`, `getChapters`
71
+
72
+ ### `searchGuidelines`
73
+ Search or look up Medicare coverage guidelines.
74
+ - `system` (required): `lcd` or `ncd`
75
+ - `query` (optional): search text
76
+ - `id` (optional): guideline ID for direct lookup
77
+ - `section` (optional): NCD only — section number
78
+ - `limit` (optional): max results (1–200)
package/README.md CHANGED
@@ -231,23 +231,21 @@ This SDK includes agent skills compatible with the [Vercel Agent Skills](https:/
231
231
 
232
232
  ```bash
233
233
  # Install all skills from this repo
234
- npx skills add @sequoiaport/codes
234
+ npx skills add sequoia-port/codes
235
235
 
236
236
  # Or install individual skills
237
- npx skills add @sequoiaport/codes/medical-codes
238
- npx skills add @sequoiaport/codes/icd10-codes
239
- npx skills add @sequoiaport/codes/cpt-codes
240
- npx skills add @sequoiaport/codes/snomed-codes
241
- npx skills add @sequoiaport/codes/hcpcs-codes
242
- npx skills add @sequoiaport/codes/loinc-codes
243
- npx skills add @sequoiaport/codes/rxnorm-codes
237
+ npx skills add sequoia-port/codes/icd10-codes
238
+ npx skills add sequoia-port/codes/cpt-codes
239
+ npx skills add sequoia-port/codes/snomed-codes
240
+ npx skills add sequoia-port/codes/hcpcs-codes
241
+ npx skills add sequoia-port/codes/loinc-codes
242
+ npx skills add sequoia-port/codes/rxnorm-codes
244
243
  ```
245
244
 
246
245
  ### Available Skills
247
246
 
248
247
  | Skill | Description |
249
248
  |-------|-------------|
250
- | `medical-codes` | Comprehensive skill covering all coding systems, guidelines, and clinical orchestration |
251
249
  | `icd10-codes` | ICD-10 diagnosis code search and lookup |
252
250
  | `cpt-codes` | CPT procedure code search, lookup, cost/RVU, and ICD-10 linking |
253
251
  | `snomed-codes` | SNOMED CT clinical terminology search and lookup |
package/dist/index.d.mts CHANGED
@@ -32,9 +32,6 @@ declare const SnomedConceptSchema: z.ZodObject<{
32
32
  active: z.ZodOptional<z.ZodBoolean>;
33
33
  module_id: z.ZodOptional<z.ZodString>;
34
34
  similarity: z.ZodOptional<z.ZodNumber>;
35
- rrf_score: z.ZodOptional<z.ZodNumber>;
36
- text_score: z.ZodOptional<z.ZodNumber>;
37
- match_type: z.ZodOptional<z.ZodString>;
38
35
  icd10_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
39
36
  }, "strip", z.ZodTypeAny, {
40
37
  concept_id: string;
@@ -46,9 +43,6 @@ declare const SnomedConceptSchema: z.ZodObject<{
46
43
  active?: boolean | undefined;
47
44
  module_id?: string | undefined;
48
45
  similarity?: number | undefined;
49
- rrf_score?: number | undefined;
50
- text_score?: number | undefined;
51
- match_type?: string | undefined;
52
46
  icd10_codes?: string[] | undefined;
53
47
  }, {
54
48
  concept_id: string;
@@ -60,9 +54,6 @@ declare const SnomedConceptSchema: z.ZodObject<{
60
54
  active?: boolean | undefined;
61
55
  module_id?: string | undefined;
62
56
  similarity?: number | undefined;
63
- rrf_score?: number | undefined;
64
- text_score?: number | undefined;
65
- match_type?: string | undefined;
66
57
  icd10_codes?: string[] | undefined;
67
58
  }>;
68
59
  /** ICD-10 mapping result */
@@ -137,9 +128,6 @@ declare const SearchHybridOutputSchema$2: z.ZodObject<{
137
128
  active: z.ZodOptional<z.ZodBoolean>;
138
129
  module_id: z.ZodOptional<z.ZodString>;
139
130
  similarity: z.ZodOptional<z.ZodNumber>;
140
- rrf_score: z.ZodOptional<z.ZodNumber>;
141
- text_score: z.ZodOptional<z.ZodNumber>;
142
- match_type: z.ZodOptional<z.ZodString>;
143
131
  icd10_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
144
132
  }, "strip", z.ZodTypeAny, {
145
133
  concept_id: string;
@@ -151,9 +139,6 @@ declare const SearchHybridOutputSchema$2: z.ZodObject<{
151
139
  active?: boolean | undefined;
152
140
  module_id?: string | undefined;
153
141
  similarity?: number | undefined;
154
- rrf_score?: number | undefined;
155
- text_score?: number | undefined;
156
- match_type?: string | undefined;
157
142
  icd10_codes?: string[] | undefined;
158
143
  }, {
159
144
  concept_id: string;
@@ -165,13 +150,8 @@ declare const SearchHybridOutputSchema$2: z.ZodObject<{
165
150
  active?: boolean | undefined;
166
151
  module_id?: string | undefined;
167
152
  similarity?: number | undefined;
168
- rrf_score?: number | undefined;
169
- text_score?: number | undefined;
170
- match_type?: string | undefined;
171
153
  icd10_codes?: string[] | undefined;
172
154
  }>, "many">;
173
- search_mode: z.ZodLiteral<"hybrid">;
174
- vector_weight: z.ZodOptional<z.ZodNumber>;
175
155
  }, "strip", z.ZodTypeAny, {
176
156
  query: string;
177
157
  count: number;
@@ -185,13 +165,8 @@ declare const SearchHybridOutputSchema$2: z.ZodObject<{
185
165
  active?: boolean | undefined;
186
166
  module_id?: string | undefined;
187
167
  similarity?: number | undefined;
188
- rrf_score?: number | undefined;
189
- text_score?: number | undefined;
190
- match_type?: string | undefined;
191
168
  icd10_codes?: string[] | undefined;
192
169
  }[];
193
- search_mode: "hybrid";
194
- vector_weight?: number | undefined;
195
170
  }, {
196
171
  query: string;
197
172
  count: number;
@@ -205,13 +180,8 @@ declare const SearchHybridOutputSchema$2: z.ZodObject<{
205
180
  active?: boolean | undefined;
206
181
  module_id?: string | undefined;
207
182
  similarity?: number | undefined;
208
- rrf_score?: number | undefined;
209
- text_score?: number | undefined;
210
- match_type?: string | undefined;
211
183
  icd10_codes?: string[] | undefined;
212
184
  }[];
213
- search_mode: "hybrid";
214
- vector_weight?: number | undefined;
215
185
  }>;
216
186
  /** lookup_code output */
217
187
  declare const LookupCodeOutputSchema$1: z.ZodObject<{
@@ -225,9 +195,6 @@ declare const LookupCodeOutputSchema$1: z.ZodObject<{
225
195
  active: z.ZodOptional<z.ZodBoolean>;
226
196
  module_id: z.ZodOptional<z.ZodString>;
227
197
  similarity: z.ZodOptional<z.ZodNumber>;
228
- rrf_score: z.ZodOptional<z.ZodNumber>;
229
- text_score: z.ZodOptional<z.ZodNumber>;
230
- match_type: z.ZodOptional<z.ZodString>;
231
198
  icd10_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
232
199
  }, "strip", z.ZodTypeAny, {
233
200
  concept_id: string;
@@ -239,9 +206,6 @@ declare const LookupCodeOutputSchema$1: z.ZodObject<{
239
206
  active?: boolean | undefined;
240
207
  module_id?: string | undefined;
241
208
  similarity?: number | undefined;
242
- rrf_score?: number | undefined;
243
- text_score?: number | undefined;
244
- match_type?: string | undefined;
245
209
  icd10_codes?: string[] | undefined;
246
210
  }, {
247
211
  concept_id: string;
@@ -253,9 +217,6 @@ declare const LookupCodeOutputSchema$1: z.ZodObject<{
253
217
  active?: boolean | undefined;
254
218
  module_id?: string | undefined;
255
219
  similarity?: number | undefined;
256
- rrf_score?: number | undefined;
257
- text_score?: number | undefined;
258
- match_type?: string | undefined;
259
220
  icd10_codes?: string[] | undefined;
260
221
  }>>;
261
222
  }, "strip", z.ZodTypeAny, {
@@ -269,9 +230,6 @@ declare const LookupCodeOutputSchema$1: z.ZodObject<{
269
230
  active?: boolean | undefined;
270
231
  module_id?: string | undefined;
271
232
  similarity?: number | undefined;
272
- rrf_score?: number | undefined;
273
- text_score?: number | undefined;
274
- match_type?: string | undefined;
275
233
  icd10_codes?: string[] | undefined;
276
234
  } | null;
277
235
  }, {
@@ -285,9 +243,6 @@ declare const LookupCodeOutputSchema$1: z.ZodObject<{
285
243
  active?: boolean | undefined;
286
244
  module_id?: string | undefined;
287
245
  similarity?: number | undefined;
288
- rrf_score?: number | undefined;
289
- text_score?: number | undefined;
290
- match_type?: string | undefined;
291
246
  icd10_codes?: string[] | undefined;
292
247
  } | null;
293
248
  }>;
@@ -311,15 +266,9 @@ declare const Icd10CodeSchema: z.ZodObject<{
311
266
  is_billable: z.ZodOptional<z.ZodBoolean>;
312
267
  valid_for_submission: z.ZodOptional<z.ZodBoolean>;
313
268
  similarity: z.ZodOptional<z.ZodNumber>;
314
- rrf_score: z.ZodOptional<z.ZodNumber>;
315
- text_score: z.ZodOptional<z.ZodNumber>;
316
- match_type: z.ZodOptional<z.ZodString>;
317
269
  }, "strip", z.ZodTypeAny, {
318
270
  code: string;
319
271
  similarity?: number | undefined;
320
- rrf_score?: number | undefined;
321
- text_score?: number | undefined;
322
- match_type?: string | undefined;
323
272
  short_description?: string | undefined;
324
273
  long_description?: string | undefined;
325
274
  chapter?: string | undefined;
@@ -333,9 +282,6 @@ declare const Icd10CodeSchema: z.ZodObject<{
333
282
  }, {
334
283
  code: string;
335
284
  similarity?: number | undefined;
336
- rrf_score?: number | undefined;
337
- text_score?: number | undefined;
338
- match_type?: string | undefined;
339
285
  short_description?: string | undefined;
340
286
  long_description?: string | undefined;
341
287
  chapter?: string | undefined;
@@ -378,15 +324,9 @@ declare const SearchHybridOutputSchema$1: z.ZodObject<{
378
324
  is_billable: z.ZodOptional<z.ZodBoolean>;
379
325
  valid_for_submission: z.ZodOptional<z.ZodBoolean>;
380
326
  similarity: z.ZodOptional<z.ZodNumber>;
381
- rrf_score: z.ZodOptional<z.ZodNumber>;
382
- text_score: z.ZodOptional<z.ZodNumber>;
383
- match_type: z.ZodOptional<z.ZodString>;
384
327
  }, "strip", z.ZodTypeAny, {
385
328
  code: string;
386
329
  similarity?: number | undefined;
387
- rrf_score?: number | undefined;
388
- text_score?: number | undefined;
389
- match_type?: string | undefined;
390
330
  short_description?: string | undefined;
391
331
  long_description?: string | undefined;
392
332
  chapter?: string | undefined;
@@ -400,9 +340,6 @@ declare const SearchHybridOutputSchema$1: z.ZodObject<{
400
340
  }, {
401
341
  code: string;
402
342
  similarity?: number | undefined;
403
- rrf_score?: number | undefined;
404
- text_score?: number | undefined;
405
- match_type?: string | undefined;
406
343
  short_description?: string | undefined;
407
344
  long_description?: string | undefined;
408
345
  chapter?: string | undefined;
@@ -414,17 +351,12 @@ declare const SearchHybridOutputSchema$1: z.ZodObject<{
414
351
  is_billable?: boolean | undefined;
415
352
  valid_for_submission?: boolean | undefined;
416
353
  }>, "many">;
417
- search_mode: z.ZodLiteral<"hybrid">;
418
- vector_weight: z.ZodOptional<z.ZodNumber>;
419
354
  }, "strip", z.ZodTypeAny, {
420
355
  query: string;
421
356
  count: number;
422
357
  results: {
423
358
  code: string;
424
359
  similarity?: number | undefined;
425
- rrf_score?: number | undefined;
426
- text_score?: number | undefined;
427
- match_type?: string | undefined;
428
360
  short_description?: string | undefined;
429
361
  long_description?: string | undefined;
430
362
  chapter?: string | undefined;
@@ -436,17 +368,12 @@ declare const SearchHybridOutputSchema$1: z.ZodObject<{
436
368
  is_billable?: boolean | undefined;
437
369
  valid_for_submission?: boolean | undefined;
438
370
  }[];
439
- search_mode: "hybrid";
440
- vector_weight?: number | undefined;
441
371
  }, {
442
372
  query: string;
443
373
  count: number;
444
374
  results: {
445
375
  code: string;
446
376
  similarity?: number | undefined;
447
- rrf_score?: number | undefined;
448
- text_score?: number | undefined;
449
- match_type?: string | undefined;
450
377
  short_description?: string | undefined;
451
378
  long_description?: string | undefined;
452
379
  chapter?: string | undefined;
@@ -458,8 +385,6 @@ declare const SearchHybridOutputSchema$1: z.ZodObject<{
458
385
  is_billable?: boolean | undefined;
459
386
  valid_for_submission?: boolean | undefined;
460
387
  }[];
461
- search_mode: "hybrid";
462
- vector_weight?: number | undefined;
463
388
  }>;
464
389
  /** lookup_code output */
465
390
  declare const LookupCodeOutputSchema: z.ZodObject<{
@@ -477,15 +402,9 @@ declare const LookupCodeOutputSchema: z.ZodObject<{
477
402
  is_billable: z.ZodOptional<z.ZodBoolean>;
478
403
  valid_for_submission: z.ZodOptional<z.ZodBoolean>;
479
404
  similarity: z.ZodOptional<z.ZodNumber>;
480
- rrf_score: z.ZodOptional<z.ZodNumber>;
481
- text_score: z.ZodOptional<z.ZodNumber>;
482
- match_type: z.ZodOptional<z.ZodString>;
483
405
  }, "strip", z.ZodTypeAny, {
484
406
  code: string;
485
407
  similarity?: number | undefined;
486
- rrf_score?: number | undefined;
487
- text_score?: number | undefined;
488
- match_type?: string | undefined;
489
408
  short_description?: string | undefined;
490
409
  long_description?: string | undefined;
491
410
  chapter?: string | undefined;
@@ -499,9 +418,6 @@ declare const LookupCodeOutputSchema: z.ZodObject<{
499
418
  }, {
500
419
  code: string;
501
420
  similarity?: number | undefined;
502
- rrf_score?: number | undefined;
503
- text_score?: number | undefined;
504
- match_type?: string | undefined;
505
421
  short_description?: string | undefined;
506
422
  long_description?: string | undefined;
507
423
  chapter?: string | undefined;
@@ -518,9 +434,6 @@ declare const LookupCodeOutputSchema: z.ZodObject<{
518
434
  result: {
519
435
  code: string;
520
436
  similarity?: number | undefined;
521
- rrf_score?: number | undefined;
522
- text_score?: number | undefined;
523
- match_type?: string | undefined;
524
437
  short_description?: string | undefined;
525
438
  long_description?: string | undefined;
526
439
  chapter?: string | undefined;
@@ -537,9 +450,6 @@ declare const LookupCodeOutputSchema: z.ZodObject<{
537
450
  result: {
538
451
  code: string;
539
452
  similarity?: number | undefined;
540
- rrf_score?: number | undefined;
541
- text_score?: number | undefined;
542
- match_type?: string | undefined;
543
453
  short_description?: string | undefined;
544
454
  long_description?: string | undefined;
545
455
  chapter?: string | undefined;
@@ -1071,13 +981,9 @@ declare const LoincCodeSchema: z.ZodObject<{
1071
981
  mapped_to: z.ZodOptional<z.ZodString>;
1072
982
  status: z.ZodOptional<z.ZodString>;
1073
983
  similarity: z.ZodOptional<z.ZodNumber>;
1074
- rrf_score: z.ZodOptional<z.ZodNumber>;
1075
- match_type: z.ZodOptional<z.ZodString>;
1076
984
  }, "strip", z.ZodTypeAny, {
1077
985
  loinc_num: string;
1078
986
  similarity?: number | undefined;
1079
- rrf_score?: number | undefined;
1080
- match_type?: string | undefined;
1081
987
  status?: string | undefined;
1082
988
  indications?: string | undefined;
1083
989
  specialty?: string | undefined;
@@ -1107,8 +1013,6 @@ declare const LoincCodeSchema: z.ZodObject<{
1107
1013
  }, {
1108
1014
  loinc_num: string;
1109
1015
  similarity?: number | undefined;
1110
- rrf_score?: number | undefined;
1111
- match_type?: string | undefined;
1112
1016
  status?: string | undefined;
1113
1017
  indications?: string | undefined;
1114
1018
  specialty?: string | undefined;
@@ -1253,13 +1157,9 @@ declare const SearchLoincHybridOutputSchema: z.ZodObject<{
1253
1157
  mapped_to: z.ZodOptional<z.ZodString>;
1254
1158
  status: z.ZodOptional<z.ZodString>;
1255
1159
  similarity: z.ZodOptional<z.ZodNumber>;
1256
- rrf_score: z.ZodOptional<z.ZodNumber>;
1257
- match_type: z.ZodOptional<z.ZodString>;
1258
1160
  }, "strip", z.ZodTypeAny, {
1259
1161
  loinc_num: string;
1260
1162
  similarity?: number | undefined;
1261
- rrf_score?: number | undefined;
1262
- match_type?: string | undefined;
1263
1163
  status?: string | undefined;
1264
1164
  indications?: string | undefined;
1265
1165
  specialty?: string | undefined;
@@ -1289,8 +1189,6 @@ declare const SearchLoincHybridOutputSchema: z.ZodObject<{
1289
1189
  }, {
1290
1190
  loinc_num: string;
1291
1191
  similarity?: number | undefined;
1292
- rrf_score?: number | undefined;
1293
- match_type?: string | undefined;
1294
1192
  status?: string | undefined;
1295
1193
  indications?: string | undefined;
1296
1194
  specialty?: string | undefined;
@@ -1325,8 +1223,6 @@ declare const SearchLoincHybridOutputSchema: z.ZodObject<{
1325
1223
  results: {
1326
1224
  loinc_num: string;
1327
1225
  similarity?: number | undefined;
1328
- rrf_score?: number | undefined;
1329
- match_type?: string | undefined;
1330
1226
  status?: string | undefined;
1331
1227
  indications?: string | undefined;
1332
1228
  specialty?: string | undefined;
@@ -1362,8 +1258,6 @@ declare const SearchLoincHybridOutputSchema: z.ZodObject<{
1362
1258
  results: {
1363
1259
  loinc_num: string;
1364
1260
  similarity?: number | undefined;
1365
- rrf_score?: number | undefined;
1366
- match_type?: string | undefined;
1367
1261
  status?: string | undefined;
1368
1262
  indications?: string | undefined;
1369
1263
  specialty?: string | undefined;
@@ -1427,13 +1321,9 @@ declare const GetLoincOutputSchema: z.ZodObject<{
1427
1321
  mapped_to: z.ZodOptional<z.ZodString>;
1428
1322
  status: z.ZodOptional<z.ZodString>;
1429
1323
  similarity: z.ZodOptional<z.ZodNumber>;
1430
- rrf_score: z.ZodOptional<z.ZodNumber>;
1431
- match_type: z.ZodOptional<z.ZodString>;
1432
1324
  }, "strip", z.ZodTypeAny, {
1433
1325
  loinc_num: string;
1434
1326
  similarity?: number | undefined;
1435
- rrf_score?: number | undefined;
1436
- match_type?: string | undefined;
1437
1327
  status?: string | undefined;
1438
1328
  indications?: string | undefined;
1439
1329
  specialty?: string | undefined;
@@ -1463,8 +1353,6 @@ declare const GetLoincOutputSchema: z.ZodObject<{
1463
1353
  }, {
1464
1354
  loinc_num: string;
1465
1355
  similarity?: number | undefined;
1466
- rrf_score?: number | undefined;
1467
- match_type?: string | undefined;
1468
1356
  status?: string | undefined;
1469
1357
  indications?: string | undefined;
1470
1358
  specialty?: string | undefined;
@@ -1498,8 +1386,6 @@ declare const GetLoincOutputSchema: z.ZodObject<{
1498
1386
  result?: {
1499
1387
  loinc_num: string;
1500
1388
  similarity?: number | undefined;
1501
- rrf_score?: number | undefined;
1502
- match_type?: string | undefined;
1503
1389
  status?: string | undefined;
1504
1390
  indications?: string | undefined;
1505
1391
  specialty?: string | undefined;
@@ -1533,8 +1419,6 @@ declare const GetLoincOutputSchema: z.ZodObject<{
1533
1419
  result?: {
1534
1420
  loinc_num: string;
1535
1421
  similarity?: number | undefined;
1536
- rrf_score?: number | undefined;
1537
- match_type?: string | undefined;
1538
1422
  status?: string | undefined;
1539
1423
  indications?: string | undefined;
1540
1424
  specialty?: string | undefined;