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