@nexalink/coding-contracts 0.1.0 → 0.3.0

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.
package/dist/index.d.ts CHANGED
@@ -4,6 +4,18 @@ export declare const RCM_MODEL_POLICY_ID: "carecompass-rcm-review-v1";
4
4
  export declare const RCM_HUMAN_REVIEW_POLICY_ID: "qualified-coder-review-v1";
5
5
  export declare const RCM_OUTPUT_SCHEMA_NAME: "carecompass_rcm_grounded_review";
6
6
  export declare const RCM_HUMAN_REVIEW_INSTRUCTION: "Qualified human coder review is required before billing, coding, or claim submission.";
7
+ export declare const CODING_CASE_CONTEXT_SCHEMA_VERSION: "coding-case-context-v1";
8
+ export declare const CODING_CASE_PAYER_SCHEMA_VERSION: "coding-case-payer-v1";
9
+ export declare const CODING_CASE_CLINICAL_SCHEMA_VERSION: "coding-case-clinical-v1";
10
+ export declare const CODING_SERVICE_LINE_SCHEMA_VERSION: "coding-service-line-v1";
11
+ export declare const CODING_EXTENSION_SCHEMA_VERSION: "coding-extension-v1";
12
+ export declare const CODING_CASE_SCHEMA_VERSION: "coding-case-v1";
13
+ export declare const CODING_BATCH_SCHEMA_VERSION: "coding-batch-v1";
14
+ export declare const CODING_DECISION_LINE_SCHEMA_VERSION: "coding-decision-line-v1";
15
+ export declare const CODING_EVIDENCE_SCHEMA_VERSION: "coding-evidence-v1";
16
+ export declare const CODING_RULE_RESULT_SCHEMA_VERSION: "coding-rule-result-v1";
17
+ export declare const CODING_REVIEWER_ACTION_SCHEMA_VERSION: "coding-reviewer-action-v1";
18
+ export declare const CODING_DECISION_SCHEMA_VERSION: "coding-decision-v1";
7
19
  export declare const RCM_REFERENCE_SCHEMA_VERSION: "rcm-supporting-reference-v1";
8
20
  export declare const RCM_INPUT_SCHEMA_VERSION: "rcm-coding-input-v1";
9
21
  export declare const RCM_OUTPUT_SCHEMA_VERSION: "rcm-grounded-human-review-v2";
@@ -11,6 +23,1029 @@ export declare const RCM_MODEL_PROMPT_SCHEMA_VERSION: "rcm-model-prompt-v1";
11
23
  export declare const RCM_RETRIEVAL_SCHEMA_VERSION: "rcm-retrieval-metadata-v1";
12
24
  export declare const RCM_RUNTIME_EVENT_SCHEMA_VERSION: "rcm-runtime-event-v1";
13
25
  export declare const RCM_WORKFLOW_CATALOG_SCHEMA_VERSION: "rcm-workflow-catalog-v1";
26
+ export declare const codingCaseContextSchema: z.ZodObject<{
27
+ setting: z.ZodEnum<{
28
+ professional: "professional";
29
+ facility: "facility";
30
+ pharmacy: "pharmacy";
31
+ dental: "dental";
32
+ risk_adjustment: "risk_adjustment";
33
+ other: "other";
34
+ }>;
35
+ otherSettingDescription: z.ZodOptional<z.ZodString>;
36
+ placeOfService: z.ZodOptional<z.ZodString>;
37
+ jurisdiction: z.ZodOptional<z.ZodString>;
38
+ specialty: z.ZodOptional<z.ZodString>;
39
+ provider: z.ZodOptional<z.ZodObject<{
40
+ providerId: z.ZodOptional<z.ZodString>;
41
+ npi: z.ZodOptional<z.ZodString>;
42
+ name: z.ZodOptional<z.ZodString>;
43
+ role: z.ZodOptional<z.ZodEnum<{
44
+ other: "other";
45
+ rendering: "rendering";
46
+ billing: "billing";
47
+ attending: "attending";
48
+ supervising: "supervising";
49
+ ordering: "ordering";
50
+ referring: "referring";
51
+ }>>;
52
+ taxonomy: z.ZodOptional<z.ZodString>;
53
+ }, z.core.$strict>>;
54
+ facility: z.ZodOptional<z.ZodObject<{
55
+ facilityId: z.ZodOptional<z.ZodString>;
56
+ name: z.ZodOptional<z.ZodString>;
57
+ facilityType: z.ZodOptional<z.ZodEnum<{
58
+ other: "other";
59
+ hospital_inpatient: "hospital_inpatient";
60
+ hospital_outpatient: "hospital_outpatient";
61
+ clinic: "clinic";
62
+ ambulatory_surgery_center: "ambulatory_surgery_center";
63
+ nursing_facility: "nursing_facility";
64
+ }>>;
65
+ }, z.core.$strict>>;
66
+ }, z.core.$strict>;
67
+ export type CodingCaseContext = z.infer<typeof codingCaseContextSchema>;
68
+ export declare function codingCaseContextValidationError(value: unknown): string | null;
69
+ export declare const validCodingCaseContext: (value: unknown) => boolean;
70
+ export declare const CodingCaseContextSchemaJson: Record<string, unknown>;
71
+ export declare const codingCasePayerSchema: z.ZodObject<{
72
+ payerName: z.ZodString;
73
+ payerId: z.ZodOptional<z.ZodString>;
74
+ lineOfBusiness: z.ZodOptional<z.ZodEnum<{
75
+ other: "other";
76
+ commercial: "commercial";
77
+ government: "government";
78
+ self_pay: "self_pay";
79
+ }>>;
80
+ memberId: z.ZodOptional<z.ZodString>;
81
+ plan: z.ZodOptional<z.ZodObject<{
82
+ planName: z.ZodOptional<z.ZodString>;
83
+ planId: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strict>>;
85
+ program: z.ZodOptional<z.ZodObject<{
86
+ programName: z.ZodOptional<z.ZodString>;
87
+ programCode: z.ZodOptional<z.ZodString>;
88
+ }, z.core.$strict>>;
89
+ contract: z.ZodOptional<z.ZodObject<{
90
+ contractId: z.ZodOptional<z.ZodString>;
91
+ contractVersion: z.ZodOptional<z.ZodString>;
92
+ effectiveDate: z.ZodOptional<z.ZodString>;
93
+ }, z.core.$strict>>;
94
+ mac: z.ZodOptional<z.ZodObject<{
95
+ macId: z.ZodOptional<z.ZodString>;
96
+ jurisdiction: z.ZodOptional<z.ZodString>;
97
+ }, z.core.$strict>>;
98
+ }, z.core.$strict>;
99
+ export type CodingCasePayer = z.infer<typeof codingCasePayerSchema>;
100
+ export declare function codingCasePayerValidationError(value: unknown): string | null;
101
+ export declare const validCodingCasePayer: (value: unknown) => boolean;
102
+ export declare const CodingCasePayerSchemaJson: Record<string, unknown>;
103
+ export declare const codingCaseClinicalSchema: z.ZodObject<{
104
+ diagnoses: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ diagnosisId: z.ZodString;
106
+ code: z.ZodOptional<z.ZodString>;
107
+ codeSystem: z.ZodOptional<z.ZodEnum<{
108
+ "ICD-10-CM": "ICD-10-CM";
109
+ "ICD-9-CM": "ICD-9-CM";
110
+ OTHER: "OTHER";
111
+ }>>;
112
+ codeVersion: z.ZodOptional<z.ZodString>;
113
+ description: z.ZodOptional<z.ZodString>;
114
+ diagnosisType: z.ZodOptional<z.ZodEnum<{
115
+ other: "other";
116
+ principal: "principal";
117
+ secondary: "secondary";
118
+ complication: "complication";
119
+ }>>;
120
+ onsetDate: z.ZodOptional<z.ZodString>;
121
+ presentOnAdmission: z.ZodOptional<z.ZodBoolean>;
122
+ }, z.core.$strict>>>;
123
+ procedures: z.ZodOptional<z.ZodArray<z.ZodObject<{
124
+ procedureId: z.ZodString;
125
+ code: z.ZodOptional<z.ZodString>;
126
+ codeSystem: z.ZodOptional<z.ZodEnum<{
127
+ OTHER: "OTHER";
128
+ CPT: "CPT";
129
+ HCPCS: "HCPCS";
130
+ "ICD-10-PCS": "ICD-10-PCS";
131
+ }>>;
132
+ codeVersion: z.ZodOptional<z.ZodString>;
133
+ description: z.ZodOptional<z.ZodString>;
134
+ performedDate: z.ZodOptional<z.ZodString>;
135
+ }, z.core.$strict>>>;
136
+ medications: z.ZodOptional<z.ZodArray<z.ZodObject<{
137
+ medicationId: z.ZodString;
138
+ code: z.ZodOptional<z.ZodString>;
139
+ codeSystem: z.ZodOptional<z.ZodEnum<{
140
+ OTHER: "OTHER";
141
+ NDC: "NDC";
142
+ RxNorm: "RxNorm";
143
+ }>>;
144
+ name: z.ZodOptional<z.ZodString>;
145
+ dosage: z.ZodOptional<z.ZodString>;
146
+ route: z.ZodOptional<z.ZodString>;
147
+ administrationDate: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strict>>>;
149
+ supplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
150
+ supplyId: z.ZodString;
151
+ code: z.ZodOptional<z.ZodString>;
152
+ codeSystem: z.ZodOptional<z.ZodEnum<{
153
+ OTHER: "OTHER";
154
+ HCPCS: "HCPCS";
155
+ NDC: "NDC";
156
+ }>>;
157
+ name: z.ZodOptional<z.ZodString>;
158
+ quantity: z.ZodOptional<z.ZodNumber>;
159
+ unitOfMeasure: z.ZodOptional<z.ZodString>;
160
+ supplyDate: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strict>>>;
162
+ timeUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
163
+ timeId: z.ZodString;
164
+ date: z.ZodString;
165
+ durationMinutes: z.ZodNumber;
166
+ activityCode: z.ZodOptional<z.ZodString>;
167
+ activityDescription: z.ZodOptional<z.ZodString>;
168
+ clinicianRole: z.ZodOptional<z.ZodEnum<{
169
+ other: "other";
170
+ attending: "attending";
171
+ physician: "physician";
172
+ nurse_practitioner: "nurse_practitioner";
173
+ physician_assistant: "physician_assistant";
174
+ resident: "resident";
175
+ }>>;
176
+ placeOfService: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$strict>>>;
178
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
179
+ noteId: z.ZodString;
180
+ noteType: z.ZodEnum<{
181
+ other: "other";
182
+ clinical_narrative: "clinical_narrative";
183
+ procedure_narrative: "procedure_narrative";
184
+ authorization: "authorization";
185
+ correspondence: "correspondence";
186
+ }>;
187
+ note: z.ZodString;
188
+ }, z.core.$strict>>>;
189
+ sourceReferences: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
+ sourceId: z.ZodString;
191
+ sourceLabel: z.ZodString;
192
+ documentId: z.ZodOptional<z.ZodString>;
193
+ excerpt: z.ZodOptional<z.ZodString>;
194
+ sourceVersion: z.ZodOptional<z.ZodString>;
195
+ corpusScope: z.ZodOptional<z.ZodEnum<{
196
+ base: "base";
197
+ tenant: "tenant";
198
+ }>>;
199
+ publisher: z.ZodOptional<z.ZodString>;
200
+ effectiveDate: z.ZodOptional<z.ZodString>;
201
+ retrievalDate: z.ZodOptional<z.ZodString>;
202
+ coveredPayerProgram: z.ZodOptional<z.ZodString>;
203
+ sourceUrl: z.ZodOptional<z.ZodString>;
204
+ documentHash: z.ZodOptional<z.ZodString>;
205
+ capturedAt: z.ZodOptional<z.ZodString>;
206
+ humanReviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
207
+ }, z.core.$strict>>>;
208
+ }, z.core.$strict>;
209
+ export type CodingCaseClinical = z.infer<typeof codingCaseClinicalSchema>;
210
+ export declare function codingCaseClinicalValidationError(value: unknown): string | null;
211
+ export declare const validCodingCaseClinical: (value: unknown) => boolean;
212
+ export declare const CodingCaseClinicalSchemaJson: Record<string, unknown>;
213
+ export declare const codingServiceLineSchema: z.ZodObject<{
214
+ lineId: z.ZodString;
215
+ submittedCode: z.ZodObject<{
216
+ code: z.ZodString;
217
+ codeSystem: z.ZodEnum<{
218
+ "ICD-10-CM": "ICD-10-CM";
219
+ OTHER: "OTHER";
220
+ CPT: "CPT";
221
+ HCPCS: "HCPCS";
222
+ "ICD-10-PCS": "ICD-10-PCS";
223
+ NDC: "NDC";
224
+ CDT: "CDT";
225
+ }>;
226
+ codeVersion: z.ZodOptional<z.ZodString>;
227
+ }, z.core.$strict>;
228
+ modifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
229
+ units: z.ZodOptional<z.ZodObject<{
230
+ count: z.ZodOptional<z.ZodNumber>;
231
+ unitOfMeasure: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$strict>>;
233
+ linkedDiagnoses: z.ZodOptional<z.ZodArray<z.ZodObject<{
234
+ diagnosisRef: z.ZodString;
235
+ sequence: z.ZodOptional<z.ZodNumber>;
236
+ }, z.core.$strict>>>;
237
+ serviceDate: z.ZodOptional<z.ZodString>;
238
+ }, z.core.$strict>;
239
+ export type CodingServiceLine = z.infer<typeof codingServiceLineSchema>;
240
+ export declare function codingServiceLineValidationError(value: unknown): string | null;
241
+ export declare const validCodingServiceLine: (value: unknown) => boolean;
242
+ export declare const CodingServiceLineSchemaJson: Record<string, unknown>;
243
+ export declare const codingExtensionSchema: z.ZodObject<{
244
+ namespace: z.ZodString;
245
+ schemaVersion: z.ZodString;
246
+ payload: z.ZodObject<{}, z.core.$loose>;
247
+ }, z.core.$strict>;
248
+ export type CodingExtension = z.infer<typeof codingExtensionSchema>;
249
+ export declare function codingExtensionValidationError(value: unknown): string | null;
250
+ export declare const validCodingExtension: (value: unknown) => boolean;
251
+ export declare const CodingExtensionSchemaJson: Record<string, unknown>;
252
+ export declare const codingCaseSchema: z.ZodObject<{
253
+ caseId: z.ZodString;
254
+ analyticsId: z.ZodOptional<z.ZodString>;
255
+ tenantReference: z.ZodOptional<z.ZodString>;
256
+ codingIntent: z.ZodEnum<{
257
+ encounter_review: "encounter_review";
258
+ claim_review: "claim_review";
259
+ longitudinal_review: "longitudinal_review";
260
+ monthly_time_aggregation: "monthly_time_aggregation";
261
+ batch_review: "batch_review";
262
+ }>;
263
+ servicePeriod: z.ZodObject<{
264
+ startDate: z.ZodString;
265
+ endDate: z.ZodOptional<z.ZodString>;
266
+ }, z.core.$strict>;
267
+ context: z.ZodObject<{
268
+ setting: z.ZodEnum<{
269
+ professional: "professional";
270
+ facility: "facility";
271
+ pharmacy: "pharmacy";
272
+ dental: "dental";
273
+ risk_adjustment: "risk_adjustment";
274
+ other: "other";
275
+ }>;
276
+ otherSettingDescription: z.ZodOptional<z.ZodString>;
277
+ placeOfService: z.ZodOptional<z.ZodString>;
278
+ jurisdiction: z.ZodOptional<z.ZodString>;
279
+ specialty: z.ZodOptional<z.ZodString>;
280
+ provider: z.ZodOptional<z.ZodObject<{
281
+ providerId: z.ZodOptional<z.ZodString>;
282
+ npi: z.ZodOptional<z.ZodString>;
283
+ name: z.ZodOptional<z.ZodString>;
284
+ role: z.ZodOptional<z.ZodEnum<{
285
+ other: "other";
286
+ rendering: "rendering";
287
+ billing: "billing";
288
+ attending: "attending";
289
+ supervising: "supervising";
290
+ ordering: "ordering";
291
+ referring: "referring";
292
+ }>>;
293
+ taxonomy: z.ZodOptional<z.ZodString>;
294
+ }, z.core.$strict>>;
295
+ facility: z.ZodOptional<z.ZodObject<{
296
+ facilityId: z.ZodOptional<z.ZodString>;
297
+ name: z.ZodOptional<z.ZodString>;
298
+ facilityType: z.ZodOptional<z.ZodEnum<{
299
+ other: "other";
300
+ hospital_inpatient: "hospital_inpatient";
301
+ hospital_outpatient: "hospital_outpatient";
302
+ clinic: "clinic";
303
+ ambulatory_surgery_center: "ambulatory_surgery_center";
304
+ nursing_facility: "nursing_facility";
305
+ }>>;
306
+ }, z.core.$strict>>;
307
+ }, z.core.$strict>;
308
+ payer: z.ZodOptional<z.ZodObject<{
309
+ payerName: z.ZodString;
310
+ payerId: z.ZodOptional<z.ZodString>;
311
+ lineOfBusiness: z.ZodOptional<z.ZodEnum<{
312
+ other: "other";
313
+ commercial: "commercial";
314
+ government: "government";
315
+ self_pay: "self_pay";
316
+ }>>;
317
+ memberId: z.ZodOptional<z.ZodString>;
318
+ plan: z.ZodOptional<z.ZodObject<{
319
+ planName: z.ZodOptional<z.ZodString>;
320
+ planId: z.ZodOptional<z.ZodString>;
321
+ }, z.core.$strict>>;
322
+ program: z.ZodOptional<z.ZodObject<{
323
+ programName: z.ZodOptional<z.ZodString>;
324
+ programCode: z.ZodOptional<z.ZodString>;
325
+ }, z.core.$strict>>;
326
+ contract: z.ZodOptional<z.ZodObject<{
327
+ contractId: z.ZodOptional<z.ZodString>;
328
+ contractVersion: z.ZodOptional<z.ZodString>;
329
+ effectiveDate: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strict>>;
331
+ mac: z.ZodOptional<z.ZodObject<{
332
+ macId: z.ZodOptional<z.ZodString>;
333
+ jurisdiction: z.ZodOptional<z.ZodString>;
334
+ }, z.core.$strict>>;
335
+ }, z.core.$strict>>;
336
+ clinical: z.ZodObject<{
337
+ diagnoses: z.ZodOptional<z.ZodArray<z.ZodObject<{
338
+ diagnosisId: z.ZodString;
339
+ code: z.ZodOptional<z.ZodString>;
340
+ codeSystem: z.ZodOptional<z.ZodEnum<{
341
+ "ICD-10-CM": "ICD-10-CM";
342
+ "ICD-9-CM": "ICD-9-CM";
343
+ OTHER: "OTHER";
344
+ }>>;
345
+ codeVersion: z.ZodOptional<z.ZodString>;
346
+ description: z.ZodOptional<z.ZodString>;
347
+ diagnosisType: z.ZodOptional<z.ZodEnum<{
348
+ other: "other";
349
+ principal: "principal";
350
+ secondary: "secondary";
351
+ complication: "complication";
352
+ }>>;
353
+ onsetDate: z.ZodOptional<z.ZodString>;
354
+ presentOnAdmission: z.ZodOptional<z.ZodBoolean>;
355
+ }, z.core.$strict>>>;
356
+ procedures: z.ZodOptional<z.ZodArray<z.ZodObject<{
357
+ procedureId: z.ZodString;
358
+ code: z.ZodOptional<z.ZodString>;
359
+ codeSystem: z.ZodOptional<z.ZodEnum<{
360
+ OTHER: "OTHER";
361
+ CPT: "CPT";
362
+ HCPCS: "HCPCS";
363
+ "ICD-10-PCS": "ICD-10-PCS";
364
+ }>>;
365
+ codeVersion: z.ZodOptional<z.ZodString>;
366
+ description: z.ZodOptional<z.ZodString>;
367
+ performedDate: z.ZodOptional<z.ZodString>;
368
+ }, z.core.$strict>>>;
369
+ medications: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
+ medicationId: z.ZodString;
371
+ code: z.ZodOptional<z.ZodString>;
372
+ codeSystem: z.ZodOptional<z.ZodEnum<{
373
+ OTHER: "OTHER";
374
+ NDC: "NDC";
375
+ RxNorm: "RxNorm";
376
+ }>>;
377
+ name: z.ZodOptional<z.ZodString>;
378
+ dosage: z.ZodOptional<z.ZodString>;
379
+ route: z.ZodOptional<z.ZodString>;
380
+ administrationDate: z.ZodOptional<z.ZodString>;
381
+ }, z.core.$strict>>>;
382
+ supplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
383
+ supplyId: z.ZodString;
384
+ code: z.ZodOptional<z.ZodString>;
385
+ codeSystem: z.ZodOptional<z.ZodEnum<{
386
+ OTHER: "OTHER";
387
+ HCPCS: "HCPCS";
388
+ NDC: "NDC";
389
+ }>>;
390
+ name: z.ZodOptional<z.ZodString>;
391
+ quantity: z.ZodOptional<z.ZodNumber>;
392
+ unitOfMeasure: z.ZodOptional<z.ZodString>;
393
+ supplyDate: z.ZodOptional<z.ZodString>;
394
+ }, z.core.$strict>>>;
395
+ timeUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
396
+ timeId: z.ZodString;
397
+ date: z.ZodString;
398
+ durationMinutes: z.ZodNumber;
399
+ activityCode: z.ZodOptional<z.ZodString>;
400
+ activityDescription: z.ZodOptional<z.ZodString>;
401
+ clinicianRole: z.ZodOptional<z.ZodEnum<{
402
+ other: "other";
403
+ attending: "attending";
404
+ physician: "physician";
405
+ nurse_practitioner: "nurse_practitioner";
406
+ physician_assistant: "physician_assistant";
407
+ resident: "resident";
408
+ }>>;
409
+ placeOfService: z.ZodOptional<z.ZodString>;
410
+ }, z.core.$strict>>>;
411
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
412
+ noteId: z.ZodString;
413
+ noteType: z.ZodEnum<{
414
+ other: "other";
415
+ clinical_narrative: "clinical_narrative";
416
+ procedure_narrative: "procedure_narrative";
417
+ authorization: "authorization";
418
+ correspondence: "correspondence";
419
+ }>;
420
+ note: z.ZodString;
421
+ }, z.core.$strict>>>;
422
+ sourceReferences: z.ZodOptional<z.ZodArray<z.ZodObject<{
423
+ sourceId: z.ZodString;
424
+ sourceLabel: z.ZodString;
425
+ documentId: z.ZodOptional<z.ZodString>;
426
+ excerpt: z.ZodOptional<z.ZodString>;
427
+ sourceVersion: z.ZodOptional<z.ZodString>;
428
+ corpusScope: z.ZodOptional<z.ZodEnum<{
429
+ base: "base";
430
+ tenant: "tenant";
431
+ }>>;
432
+ publisher: z.ZodOptional<z.ZodString>;
433
+ effectiveDate: z.ZodOptional<z.ZodString>;
434
+ retrievalDate: z.ZodOptional<z.ZodString>;
435
+ coveredPayerProgram: z.ZodOptional<z.ZodString>;
436
+ sourceUrl: z.ZodOptional<z.ZodString>;
437
+ documentHash: z.ZodOptional<z.ZodString>;
438
+ capturedAt: z.ZodOptional<z.ZodString>;
439
+ humanReviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
440
+ }, z.core.$strict>>>;
441
+ }, z.core.$strict>;
442
+ submittedClaimLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
+ lineId: z.ZodString;
444
+ submittedCode: z.ZodObject<{
445
+ code: z.ZodString;
446
+ codeSystem: z.ZodEnum<{
447
+ "ICD-10-CM": "ICD-10-CM";
448
+ OTHER: "OTHER";
449
+ CPT: "CPT";
450
+ HCPCS: "HCPCS";
451
+ "ICD-10-PCS": "ICD-10-PCS";
452
+ NDC: "NDC";
453
+ CDT: "CDT";
454
+ }>;
455
+ codeVersion: z.ZodOptional<z.ZodString>;
456
+ }, z.core.$strict>;
457
+ modifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
458
+ units: z.ZodOptional<z.ZodObject<{
459
+ count: z.ZodOptional<z.ZodNumber>;
460
+ unitOfMeasure: z.ZodOptional<z.ZodString>;
461
+ }, z.core.$strict>>;
462
+ linkedDiagnoses: z.ZodOptional<z.ZodArray<z.ZodObject<{
463
+ diagnosisRef: z.ZodString;
464
+ sequence: z.ZodOptional<z.ZodNumber>;
465
+ }, z.core.$strict>>>;
466
+ serviceDate: z.ZodOptional<z.ZodString>;
467
+ }, z.core.$strict>>>;
468
+ extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
469
+ namespace: z.ZodString;
470
+ schemaVersion: z.ZodString;
471
+ payload: z.ZodObject<{}, z.core.$loose>;
472
+ }, z.core.$strict>>>;
473
+ }, z.core.$strict>;
474
+ export type CodingCase = z.infer<typeof codingCaseSchema>;
475
+ export declare function codingCaseValidationError(value: unknown): string | null;
476
+ export declare const validCodingCase: (value: unknown) => boolean;
477
+ export declare const CodingCaseSchemaJson: Record<string, unknown>;
478
+ export declare const codingBatchSchema: z.ZodObject<{
479
+ batchId: z.ZodString;
480
+ tenantReference: z.ZodOptional<z.ZodString>;
481
+ intent: z.ZodLiteral<"batch_review">;
482
+ cases: z.ZodArray<z.ZodObject<{
483
+ caseId: z.ZodString;
484
+ analyticsId: z.ZodOptional<z.ZodString>;
485
+ tenantReference: z.ZodOptional<z.ZodString>;
486
+ codingIntent: z.ZodEnum<{
487
+ encounter_review: "encounter_review";
488
+ claim_review: "claim_review";
489
+ longitudinal_review: "longitudinal_review";
490
+ monthly_time_aggregation: "monthly_time_aggregation";
491
+ batch_review: "batch_review";
492
+ }>;
493
+ servicePeriod: z.ZodObject<{
494
+ startDate: z.ZodString;
495
+ endDate: z.ZodOptional<z.ZodString>;
496
+ }, z.core.$strict>;
497
+ context: z.ZodObject<{
498
+ setting: z.ZodEnum<{
499
+ professional: "professional";
500
+ facility: "facility";
501
+ pharmacy: "pharmacy";
502
+ dental: "dental";
503
+ risk_adjustment: "risk_adjustment";
504
+ other: "other";
505
+ }>;
506
+ otherSettingDescription: z.ZodOptional<z.ZodString>;
507
+ placeOfService: z.ZodOptional<z.ZodString>;
508
+ jurisdiction: z.ZodOptional<z.ZodString>;
509
+ specialty: z.ZodOptional<z.ZodString>;
510
+ provider: z.ZodOptional<z.ZodObject<{
511
+ providerId: z.ZodOptional<z.ZodString>;
512
+ npi: z.ZodOptional<z.ZodString>;
513
+ name: z.ZodOptional<z.ZodString>;
514
+ role: z.ZodOptional<z.ZodEnum<{
515
+ other: "other";
516
+ rendering: "rendering";
517
+ billing: "billing";
518
+ attending: "attending";
519
+ supervising: "supervising";
520
+ ordering: "ordering";
521
+ referring: "referring";
522
+ }>>;
523
+ taxonomy: z.ZodOptional<z.ZodString>;
524
+ }, z.core.$strict>>;
525
+ facility: z.ZodOptional<z.ZodObject<{
526
+ facilityId: z.ZodOptional<z.ZodString>;
527
+ name: z.ZodOptional<z.ZodString>;
528
+ facilityType: z.ZodOptional<z.ZodEnum<{
529
+ other: "other";
530
+ hospital_inpatient: "hospital_inpatient";
531
+ hospital_outpatient: "hospital_outpatient";
532
+ clinic: "clinic";
533
+ ambulatory_surgery_center: "ambulatory_surgery_center";
534
+ nursing_facility: "nursing_facility";
535
+ }>>;
536
+ }, z.core.$strict>>;
537
+ }, z.core.$strict>;
538
+ payer: z.ZodOptional<z.ZodObject<{
539
+ payerName: z.ZodString;
540
+ payerId: z.ZodOptional<z.ZodString>;
541
+ lineOfBusiness: z.ZodOptional<z.ZodEnum<{
542
+ other: "other";
543
+ commercial: "commercial";
544
+ government: "government";
545
+ self_pay: "self_pay";
546
+ }>>;
547
+ memberId: z.ZodOptional<z.ZodString>;
548
+ plan: z.ZodOptional<z.ZodObject<{
549
+ planName: z.ZodOptional<z.ZodString>;
550
+ planId: z.ZodOptional<z.ZodString>;
551
+ }, z.core.$strict>>;
552
+ program: z.ZodOptional<z.ZodObject<{
553
+ programName: z.ZodOptional<z.ZodString>;
554
+ programCode: z.ZodOptional<z.ZodString>;
555
+ }, z.core.$strict>>;
556
+ contract: z.ZodOptional<z.ZodObject<{
557
+ contractId: z.ZodOptional<z.ZodString>;
558
+ contractVersion: z.ZodOptional<z.ZodString>;
559
+ effectiveDate: z.ZodOptional<z.ZodString>;
560
+ }, z.core.$strict>>;
561
+ mac: z.ZodOptional<z.ZodObject<{
562
+ macId: z.ZodOptional<z.ZodString>;
563
+ jurisdiction: z.ZodOptional<z.ZodString>;
564
+ }, z.core.$strict>>;
565
+ }, z.core.$strict>>;
566
+ clinical: z.ZodObject<{
567
+ diagnoses: z.ZodOptional<z.ZodArray<z.ZodObject<{
568
+ diagnosisId: z.ZodString;
569
+ code: z.ZodOptional<z.ZodString>;
570
+ codeSystem: z.ZodOptional<z.ZodEnum<{
571
+ "ICD-10-CM": "ICD-10-CM";
572
+ "ICD-9-CM": "ICD-9-CM";
573
+ OTHER: "OTHER";
574
+ }>>;
575
+ codeVersion: z.ZodOptional<z.ZodString>;
576
+ description: z.ZodOptional<z.ZodString>;
577
+ diagnosisType: z.ZodOptional<z.ZodEnum<{
578
+ other: "other";
579
+ principal: "principal";
580
+ secondary: "secondary";
581
+ complication: "complication";
582
+ }>>;
583
+ onsetDate: z.ZodOptional<z.ZodString>;
584
+ presentOnAdmission: z.ZodOptional<z.ZodBoolean>;
585
+ }, z.core.$strict>>>;
586
+ procedures: z.ZodOptional<z.ZodArray<z.ZodObject<{
587
+ procedureId: z.ZodString;
588
+ code: z.ZodOptional<z.ZodString>;
589
+ codeSystem: z.ZodOptional<z.ZodEnum<{
590
+ OTHER: "OTHER";
591
+ CPT: "CPT";
592
+ HCPCS: "HCPCS";
593
+ "ICD-10-PCS": "ICD-10-PCS";
594
+ }>>;
595
+ codeVersion: z.ZodOptional<z.ZodString>;
596
+ description: z.ZodOptional<z.ZodString>;
597
+ performedDate: z.ZodOptional<z.ZodString>;
598
+ }, z.core.$strict>>>;
599
+ medications: z.ZodOptional<z.ZodArray<z.ZodObject<{
600
+ medicationId: z.ZodString;
601
+ code: z.ZodOptional<z.ZodString>;
602
+ codeSystem: z.ZodOptional<z.ZodEnum<{
603
+ OTHER: "OTHER";
604
+ NDC: "NDC";
605
+ RxNorm: "RxNorm";
606
+ }>>;
607
+ name: z.ZodOptional<z.ZodString>;
608
+ dosage: z.ZodOptional<z.ZodString>;
609
+ route: z.ZodOptional<z.ZodString>;
610
+ administrationDate: z.ZodOptional<z.ZodString>;
611
+ }, z.core.$strict>>>;
612
+ supplies: z.ZodOptional<z.ZodArray<z.ZodObject<{
613
+ supplyId: z.ZodString;
614
+ code: z.ZodOptional<z.ZodString>;
615
+ codeSystem: z.ZodOptional<z.ZodEnum<{
616
+ OTHER: "OTHER";
617
+ HCPCS: "HCPCS";
618
+ NDC: "NDC";
619
+ }>>;
620
+ name: z.ZodOptional<z.ZodString>;
621
+ quantity: z.ZodOptional<z.ZodNumber>;
622
+ unitOfMeasure: z.ZodOptional<z.ZodString>;
623
+ supplyDate: z.ZodOptional<z.ZodString>;
624
+ }, z.core.$strict>>>;
625
+ timeUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
626
+ timeId: z.ZodString;
627
+ date: z.ZodString;
628
+ durationMinutes: z.ZodNumber;
629
+ activityCode: z.ZodOptional<z.ZodString>;
630
+ activityDescription: z.ZodOptional<z.ZodString>;
631
+ clinicianRole: z.ZodOptional<z.ZodEnum<{
632
+ other: "other";
633
+ attending: "attending";
634
+ physician: "physician";
635
+ nurse_practitioner: "nurse_practitioner";
636
+ physician_assistant: "physician_assistant";
637
+ resident: "resident";
638
+ }>>;
639
+ placeOfService: z.ZodOptional<z.ZodString>;
640
+ }, z.core.$strict>>>;
641
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
642
+ noteId: z.ZodString;
643
+ noteType: z.ZodEnum<{
644
+ other: "other";
645
+ clinical_narrative: "clinical_narrative";
646
+ procedure_narrative: "procedure_narrative";
647
+ authorization: "authorization";
648
+ correspondence: "correspondence";
649
+ }>;
650
+ note: z.ZodString;
651
+ }, z.core.$strict>>>;
652
+ sourceReferences: z.ZodOptional<z.ZodArray<z.ZodObject<{
653
+ sourceId: z.ZodString;
654
+ sourceLabel: z.ZodString;
655
+ documentId: z.ZodOptional<z.ZodString>;
656
+ excerpt: z.ZodOptional<z.ZodString>;
657
+ sourceVersion: z.ZodOptional<z.ZodString>;
658
+ corpusScope: z.ZodOptional<z.ZodEnum<{
659
+ base: "base";
660
+ tenant: "tenant";
661
+ }>>;
662
+ publisher: z.ZodOptional<z.ZodString>;
663
+ effectiveDate: z.ZodOptional<z.ZodString>;
664
+ retrievalDate: z.ZodOptional<z.ZodString>;
665
+ coveredPayerProgram: z.ZodOptional<z.ZodString>;
666
+ sourceUrl: z.ZodOptional<z.ZodString>;
667
+ documentHash: z.ZodOptional<z.ZodString>;
668
+ capturedAt: z.ZodOptional<z.ZodString>;
669
+ humanReviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
670
+ }, z.core.$strict>>>;
671
+ }, z.core.$strict>;
672
+ submittedClaimLines: z.ZodOptional<z.ZodArray<z.ZodObject<{
673
+ lineId: z.ZodString;
674
+ submittedCode: z.ZodObject<{
675
+ code: z.ZodString;
676
+ codeSystem: z.ZodEnum<{
677
+ "ICD-10-CM": "ICD-10-CM";
678
+ OTHER: "OTHER";
679
+ CPT: "CPT";
680
+ HCPCS: "HCPCS";
681
+ "ICD-10-PCS": "ICD-10-PCS";
682
+ NDC: "NDC";
683
+ CDT: "CDT";
684
+ }>;
685
+ codeVersion: z.ZodOptional<z.ZodString>;
686
+ }, z.core.$strict>;
687
+ modifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
688
+ units: z.ZodOptional<z.ZodObject<{
689
+ count: z.ZodOptional<z.ZodNumber>;
690
+ unitOfMeasure: z.ZodOptional<z.ZodString>;
691
+ }, z.core.$strict>>;
692
+ linkedDiagnoses: z.ZodOptional<z.ZodArray<z.ZodObject<{
693
+ diagnosisRef: z.ZodString;
694
+ sequence: z.ZodOptional<z.ZodNumber>;
695
+ }, z.core.$strict>>>;
696
+ serviceDate: z.ZodOptional<z.ZodString>;
697
+ }, z.core.$strict>>>;
698
+ extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
699
+ namespace: z.ZodString;
700
+ schemaVersion: z.ZodString;
701
+ payload: z.ZodObject<{}, z.core.$loose>;
702
+ }, z.core.$strict>>>;
703
+ }, z.core.$strict>>;
704
+ createdBy: z.ZodOptional<z.ZodString>;
705
+ createdAt: z.ZodString;
706
+ extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
707
+ namespace: z.ZodString;
708
+ schemaVersion: z.ZodString;
709
+ payload: z.ZodObject<{}, z.core.$loose>;
710
+ }, z.core.$strict>>>;
711
+ }, z.core.$strict>;
712
+ export type CodingBatch = z.infer<typeof codingBatchSchema>;
713
+ export declare function codingBatchValidationError(value: unknown): string | null;
714
+ export declare const validCodingBatch: (value: unknown) => boolean;
715
+ export declare const CodingBatchSchemaJson: Record<string, unknown>;
716
+ export declare const codingDecisionLineSchema: z.ZodObject<{
717
+ lineId: z.ZodString;
718
+ action: z.ZodEnum<{
719
+ add: "add";
720
+ retain: "retain";
721
+ replace: "replace";
722
+ remove: "remove";
723
+ review: "review";
724
+ }>;
725
+ code: z.ZodObject<{
726
+ code: z.ZodString;
727
+ codeSystem: z.ZodEnum<{
728
+ "ICD-10-CM": "ICD-10-CM";
729
+ OTHER: "OTHER";
730
+ CPT: "CPT";
731
+ HCPCS: "HCPCS";
732
+ "ICD-10-PCS": "ICD-10-PCS";
733
+ NDC: "NDC";
734
+ CDT: "CDT";
735
+ REVENUE_CODE: "REVENUE_CODE";
736
+ DRG: "DRG";
737
+ }>;
738
+ codeVersion: z.ZodOptional<z.ZodString>;
739
+ }, z.core.$strict>;
740
+ modifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
741
+ units: z.ZodOptional<z.ZodObject<{
742
+ count: z.ZodOptional<z.ZodNumber>;
743
+ unitOfMeasure: z.ZodOptional<z.ZodString>;
744
+ }, z.core.$strict>>;
745
+ linkedDiagnoses: z.ZodOptional<z.ZodArray<z.ZodObject<{
746
+ diagnosisRef: z.ZodString;
747
+ sequence: z.ZodOptional<z.ZodNumber>;
748
+ }, z.core.$strict>>>;
749
+ sequence: z.ZodOptional<z.ZodNumber>;
750
+ confidence: z.ZodEnum<{
751
+ low: "low";
752
+ medium: "medium";
753
+ high: "high";
754
+ }>;
755
+ rationale: z.ZodString;
756
+ evidenceRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
757
+ gapRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
758
+ conflictRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
759
+ }, z.core.$strict>;
760
+ export type CodingDecisionLine = z.infer<typeof codingDecisionLineSchema>;
761
+ export declare function codingDecisionLineValidationError(value: unknown): string | null;
762
+ export declare const validCodingDecisionLine: (value: unknown) => boolean;
763
+ export declare const CodingDecisionLineSchemaJson: Record<string, unknown>;
764
+ export declare const codingEvidenceSchema: z.ZodObject<{
765
+ evidenceId: z.ZodString;
766
+ type: z.ZodEnum<{
767
+ clinical: "clinical";
768
+ coding_guideline: "coding_guideline";
769
+ payer_policy: "payer_policy";
770
+ plan_policy: "plan_policy";
771
+ contract_configuration: "contract_configuration";
772
+ terminology_validity: "terminology_validity";
773
+ rule_execution: "rule_execution";
774
+ }>;
775
+ source: z.ZodString;
776
+ sourceVersion: z.ZodString;
777
+ publisher: z.ZodOptional<z.ZodString>;
778
+ scope: z.ZodEnum<{
779
+ plan: "plan";
780
+ contract: "contract";
781
+ payer: "payer";
782
+ tenant: "tenant";
783
+ national: "national";
784
+ }>;
785
+ effectiveFrom: z.ZodString;
786
+ effectiveTo: z.ZodOptional<z.ZodString>;
787
+ stableId: z.ZodString;
788
+ excerpt: z.ZodString;
789
+ retrievedAt: z.ZodString;
790
+ }, z.core.$strict>;
791
+ export type CodingEvidence = z.infer<typeof codingEvidenceSchema>;
792
+ export declare function codingEvidenceValidationError(value: unknown): string | null;
793
+ export declare const validCodingEvidence: (value: unknown) => boolean;
794
+ export declare const CodingEvidenceSchemaJson: Record<string, unknown>;
795
+ export declare const codingRuleResultSchema: z.ZodObject<{
796
+ ruleId: z.ZodString;
797
+ ruleVersion: z.ZodString;
798
+ outcome: z.ZodEnum<{
799
+ satisfied: "satisfied";
800
+ failed: "failed";
801
+ rejected: "rejected";
802
+ escalated: "escalated";
803
+ conflicted: "conflicted";
804
+ warning: "warning";
805
+ }>;
806
+ severity: z.ZodOptional<z.ZodEnum<{
807
+ warning: "warning";
808
+ info: "info";
809
+ blocking: "blocking";
810
+ }>>;
811
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
812
+ name: z.ZodString;
813
+ value: z.ZodString;
814
+ }, z.core.$strict>>>;
815
+ reason: z.ZodOptional<z.ZodString>;
816
+ explanation: z.ZodOptional<z.ZodString>;
817
+ evidence: z.ZodOptional<z.ZodString>;
818
+ }, z.core.$strict>;
819
+ export type CodingRuleResult = z.infer<typeof codingRuleResultSchema>;
820
+ export declare function codingRuleResultValidationError(value: unknown): string | null;
821
+ export declare const validCodingRuleResult: (value: unknown) => boolean;
822
+ export declare const CodingRuleResultSchemaJson: Record<string, unknown>;
823
+ export declare const codingReviewerActionSchema: z.ZodObject<{
824
+ reviewerId: z.ZodString;
825
+ reviewerRole: z.ZodOptional<z.ZodString>;
826
+ action: z.ZodEnum<{
827
+ rejected: "rejected";
828
+ escalated: "escalated";
829
+ approved: "approved";
830
+ approved_with_changes: "approved_with_changes";
831
+ }>;
832
+ resolutionCode: z.ZodOptional<z.ZodString>;
833
+ notes: z.ZodOptional<z.ZodString>;
834
+ occurredAt: z.ZodString;
835
+ }, z.core.$strict>;
836
+ export type CodingReviewerAction = z.infer<typeof codingReviewerActionSchema>;
837
+ export declare function codingReviewerActionValidationError(value: unknown): string | null;
838
+ export declare const validCodingReviewerAction: (value: unknown) => boolean;
839
+ export declare const CodingReviewerActionSchemaJson: Record<string, unknown>;
840
+ export declare const codingDecisionSchema: z.ZodObject<{
841
+ decisionId: z.ZodString;
842
+ caseRef: z.ZodString;
843
+ disposition: z.ZodEnum<{
844
+ review_required: "review_required";
845
+ abstain: "abstain";
846
+ escalate: "escalate";
847
+ }>;
848
+ humanReviewRequired: z.ZodLiteral<true>;
849
+ rationale: z.ZodString;
850
+ overallConfidence: z.ZodOptional<z.ZodEnum<{
851
+ low: "low";
852
+ medium: "medium";
853
+ high: "high";
854
+ }>>;
855
+ lineDecisions: z.ZodArray<z.ZodObject<{
856
+ lineId: z.ZodString;
857
+ action: z.ZodEnum<{
858
+ add: "add";
859
+ retain: "retain";
860
+ replace: "replace";
861
+ remove: "remove";
862
+ review: "review";
863
+ }>;
864
+ code: z.ZodObject<{
865
+ code: z.ZodString;
866
+ codeSystem: z.ZodEnum<{
867
+ "ICD-10-CM": "ICD-10-CM";
868
+ OTHER: "OTHER";
869
+ CPT: "CPT";
870
+ HCPCS: "HCPCS";
871
+ "ICD-10-PCS": "ICD-10-PCS";
872
+ NDC: "NDC";
873
+ CDT: "CDT";
874
+ REVENUE_CODE: "REVENUE_CODE";
875
+ DRG: "DRG";
876
+ }>;
877
+ codeVersion: z.ZodOptional<z.ZodString>;
878
+ }, z.core.$strict>;
879
+ modifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
880
+ units: z.ZodOptional<z.ZodObject<{
881
+ count: z.ZodOptional<z.ZodNumber>;
882
+ unitOfMeasure: z.ZodOptional<z.ZodString>;
883
+ }, z.core.$strict>>;
884
+ linkedDiagnoses: z.ZodOptional<z.ZodArray<z.ZodObject<{
885
+ diagnosisRef: z.ZodString;
886
+ sequence: z.ZodOptional<z.ZodNumber>;
887
+ }, z.core.$strict>>>;
888
+ sequence: z.ZodOptional<z.ZodNumber>;
889
+ confidence: z.ZodEnum<{
890
+ low: "low";
891
+ medium: "medium";
892
+ high: "high";
893
+ }>;
894
+ rationale: z.ZodString;
895
+ evidenceRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
896
+ gapRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
897
+ conflictRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
898
+ }, z.core.$strict>>;
899
+ facts: z.ZodOptional<z.ZodArray<z.ZodObject<{
900
+ factId: z.ZodString;
901
+ statement: z.ZodString;
902
+ evidenceRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
903
+ }, z.core.$strict>>>;
904
+ gaps: z.ZodOptional<z.ZodArray<z.ZodObject<{
905
+ gapId: z.ZodString;
906
+ type: z.ZodEnum<{
907
+ other: "other";
908
+ missing_documentation: "missing_documentation";
909
+ unsupported_scope: "unsupported_scope";
910
+ insufficient_evidence: "insufficient_evidence";
911
+ policy_conflict: "policy_conflict";
912
+ terminology_unavailable: "terminology_unavailable";
913
+ }>;
914
+ description: z.ZodString;
915
+ severity: z.ZodEnum<{
916
+ low: "low";
917
+ medium: "medium";
918
+ high: "high";
919
+ blocking: "blocking";
920
+ }>;
921
+ }, z.core.$strict>>>;
922
+ conflicts: z.ZodOptional<z.ZodArray<z.ZodObject<{
923
+ conflictId: z.ZodString;
924
+ type: z.ZodEnum<{
925
+ other: "other";
926
+ payer_vs_national: "payer_vs_national";
927
+ plan_vs_contract: "plan_vs_contract";
928
+ terminology_period: "terminology_period";
929
+ rule_vs_rule: "rule_vs_rule";
930
+ model_vs_rule: "model_vs_rule";
931
+ }>;
932
+ summary: z.ZodString;
933
+ references: z.ZodOptional<z.ZodArray<z.ZodString>>;
934
+ }, z.core.$strict>>>;
935
+ evidenceItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
936
+ evidenceId: z.ZodString;
937
+ type: z.ZodEnum<{
938
+ clinical: "clinical";
939
+ coding_guideline: "coding_guideline";
940
+ payer_policy: "payer_policy";
941
+ plan_policy: "plan_policy";
942
+ contract_configuration: "contract_configuration";
943
+ terminology_validity: "terminology_validity";
944
+ rule_execution: "rule_execution";
945
+ }>;
946
+ source: z.ZodString;
947
+ sourceVersion: z.ZodString;
948
+ publisher: z.ZodOptional<z.ZodString>;
949
+ scope: z.ZodEnum<{
950
+ plan: "plan";
951
+ contract: "contract";
952
+ payer: "payer";
953
+ tenant: "tenant";
954
+ national: "national";
955
+ }>;
956
+ effectiveFrom: z.ZodString;
957
+ effectiveTo: z.ZodOptional<z.ZodString>;
958
+ stableId: z.ZodString;
959
+ excerpt: z.ZodString;
960
+ retrievedAt: z.ZodString;
961
+ }, z.core.$strict>>>;
962
+ ruleTraces: z.ZodOptional<z.ZodArray<z.ZodObject<{
963
+ ruleId: z.ZodString;
964
+ ruleVersion: z.ZodString;
965
+ outcome: z.ZodEnum<{
966
+ satisfied: "satisfied";
967
+ failed: "failed";
968
+ rejected: "rejected";
969
+ escalated: "escalated";
970
+ conflicted: "conflicted";
971
+ warning: "warning";
972
+ }>;
973
+ severity: z.ZodOptional<z.ZodEnum<{
974
+ warning: "warning";
975
+ info: "info";
976
+ blocking: "blocking";
977
+ }>>;
978
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
979
+ name: z.ZodString;
980
+ value: z.ZodString;
981
+ }, z.core.$strict>>>;
982
+ reason: z.ZodOptional<z.ZodString>;
983
+ explanation: z.ZodOptional<z.ZodString>;
984
+ evidence: z.ZodOptional<z.ZodString>;
985
+ }, z.core.$strict>>>;
986
+ provenance: z.ZodObject<{
987
+ decisionSchemaVersion: z.ZodString;
988
+ caseSchemaVersion: z.ZodString;
989
+ pack: z.ZodObject<{
990
+ packId: z.ZodString;
991
+ packVersion: z.ZodString;
992
+ }, z.core.$strict>;
993
+ model: z.ZodObject<{
994
+ modelId: z.ZodString;
995
+ modelVersion: z.ZodString;
996
+ }, z.core.$strict>;
997
+ terminology: z.ZodArray<z.ZodObject<{
998
+ system: z.ZodEnum<{
999
+ "ICD-10-CM": "ICD-10-CM";
1000
+ OTHER: "OTHER";
1001
+ CPT: "CPT";
1002
+ HCPCS: "HCPCS";
1003
+ "ICD-10-PCS": "ICD-10-PCS";
1004
+ NDC: "NDC";
1005
+ CDT: "CDT";
1006
+ REVENUE_CODE: "REVENUE_CODE";
1007
+ DRG: "DRG";
1008
+ MODIFIERS: "MODIFIERS";
1009
+ }>;
1010
+ editionVersion: z.ZodString;
1011
+ licenseApproved: z.ZodBoolean;
1012
+ }, z.core.$strict>>;
1013
+ rules: z.ZodArray<z.ZodObject<{
1014
+ ruleId: z.ZodString;
1015
+ ruleVersion: z.ZodString;
1016
+ }, z.core.$strict>>;
1017
+ retrievalCorpus: z.ZodOptional<z.ZodObject<{
1018
+ corpusId: z.ZodOptional<z.ZodString>;
1019
+ corpusVersion: z.ZodOptional<z.ZodString>;
1020
+ }, z.core.$strict>>;
1021
+ generatedAt: z.ZodString;
1022
+ }, z.core.$strict>;
1023
+ reviewerAction: z.ZodOptional<z.ZodObject<{
1024
+ reviewerId: z.ZodString;
1025
+ reviewerRole: z.ZodOptional<z.ZodString>;
1026
+ action: z.ZodEnum<{
1027
+ rejected: "rejected";
1028
+ escalated: "escalated";
1029
+ approved: "approved";
1030
+ approved_with_changes: "approved_with_changes";
1031
+ }>;
1032
+ resolutionCode: z.ZodOptional<z.ZodString>;
1033
+ notes: z.ZodOptional<z.ZodString>;
1034
+ occurredAt: z.ZodString;
1035
+ }, z.core.$strict>>;
1036
+ extensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1037
+ namespace: z.ZodString;
1038
+ schemaVersion: z.ZodString;
1039
+ payload: z.ZodObject<{}, z.core.$loose>;
1040
+ }, z.core.$strict>>>;
1041
+ }, z.core.$strict>;
1042
+ export type CodingDecision = z.infer<typeof codingDecisionSchema>;
1043
+ export declare function codingDecisionValidationError(value: unknown, options?: {
1044
+ allowedReferenceIds?: Set<string>;
1045
+ referenceTextById?: Record<string, string>;
1046
+ }): string | null;
1047
+ export declare const validCodingDecision: (value: unknown) => boolean;
1048
+ export declare const CodingDecisionSchemaJson: Record<string, unknown>;
14
1049
  export declare const rcmSupportingReferenceSchema: z.ZodObject<{
15
1050
  referenceId: z.ZodString;
16
1051
  documentId: z.ZodOptional<z.ZodString>;
@@ -144,9 +1179,9 @@ export declare const rcmRetrievalMetadataSchema: z.ZodObject<{
144
1179
  corpusId: z.ZodString;
145
1180
  corpusVersion: z.ZodString;
146
1181
  outcome: z.ZodEnum<{
1182
+ failed: "failed";
147
1183
  completed: "completed";
148
1184
  empty: "empty";
149
- failed: "failed";
150
1185
  }>;
151
1186
  latencyMs: z.ZodNumber;
152
1187
  knowledgeBaseId: z.ZodOptional<z.ZodString>;
@@ -179,9 +1214,9 @@ export declare const rcmRuntimeEventSchema: z.ZodObject<{
179
1214
  safety: "safety";
180
1215
  }>;
181
1216
  outcome: z.ZodEnum<{
1217
+ escalated: "escalated";
182
1218
  authorized: "authorized";
183
1219
  validated: "validated";
184
- escalated: "escalated";
185
1220
  }>;
186
1221
  reason: z.ZodEnum<{
187
1222
  workflow_authorized: "workflow_authorized";