@nexalink/coding-contracts 0.3.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/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ 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";
7
8
  export declare const CODING_CASE_CONTEXT_SCHEMA_VERSION: "coding-case-context-v1";
8
9
  export declare const CODING_CASE_PAYER_SCHEMA_VERSION: "coding-case-payer-v1";
9
10
  export declare const CODING_CASE_CLINICAL_SCHEMA_VERSION: "coding-case-clinical-v1";
@@ -21,6 +22,7 @@ export declare const RCM_INPUT_SCHEMA_VERSION: "rcm-coding-input-v1";
21
22
  export declare const RCM_OUTPUT_SCHEMA_VERSION: "rcm-grounded-human-review-v2";
22
23
  export declare const RCM_MODEL_PROMPT_SCHEMA_VERSION: "rcm-model-prompt-v1";
23
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";
24
26
  export declare const RCM_RUNTIME_EVENT_SCHEMA_VERSION: "rcm-runtime-event-v1";
25
27
  export declare const RCM_WORKFLOW_CATALOG_SCHEMA_VERSION: "rcm-workflow-catalog-v1";
26
28
  export declare const codingCaseContextSchema: z.ZodObject<{
@@ -830,6 +832,13 @@ export declare const codingReviewerActionSchema: z.ZodObject<{
830
832
  approved_with_changes: "approved_with_changes";
831
833
  }>;
832
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
+ }>>;
833
842
  notes: z.ZodOptional<z.ZodString>;
834
843
  occurredAt: z.ZodString;
835
844
  }, z.core.$strict>;
@@ -1030,6 +1039,13 @@ export declare const codingDecisionSchema: z.ZodObject<{
1030
1039
  approved_with_changes: "approved_with_changes";
1031
1040
  }>;
1032
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
+ }>>;
1033
1049
  notes: z.ZodOptional<z.ZodString>;
1034
1050
  occurredAt: z.ZodString;
1035
1051
  }, z.core.$strict>>;
@@ -1040,10 +1056,7 @@ export declare const codingDecisionSchema: z.ZodObject<{
1040
1056
  }, z.core.$strict>>>;
1041
1057
  }, z.core.$strict>;
1042
1058
  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;
1059
+ export declare function codingDecisionValidationError(value: unknown): string | null;
1047
1060
  export declare const validCodingDecision: (value: unknown) => boolean;
1048
1061
  export declare const CodingDecisionSchemaJson: Record<string, unknown>;
1049
1062
  export declare const rcmSupportingReferenceSchema: z.ZodObject<{
@@ -1208,6 +1221,41 @@ export type RcmRetrievalMetadata = z.infer<typeof rcmRetrievalMetadataSchema>;
1208
1221
  export declare function rcmRetrievalMetadataValidationError(value: unknown): string | null;
1209
1222
  export declare const validRcmRetrievalMetadata: (value: unknown) => boolean;
1210
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>;
1211
1259
  export declare const rcmRuntimeEventSchema: z.ZodObject<{
1212
1260
  type: z.ZodEnum<{
1213
1261
  audit: "audit";
@@ -1260,6 +1308,7 @@ export declare const RcmRuntimeEventSchemaJson: Record<string, unknown>;
1260
1308
  export declare const rcmWorkflowCatalogSchema: z.ZodObject<{
1261
1309
  id: z.ZodEnum<{
1262
1310
  "rcm-coding-assistance": "rcm-coding-assistance";
1311
+ "monthly-pin-time-aggregation": "monthly-pin-time-aggregation";
1263
1312
  }>;
1264
1313
  name: z.ZodString;
1265
1314
  description: z.ZodString;
@@ -1268,7 +1317,10 @@ export declare const rcmWorkflowCatalogSchema: z.ZodObject<{
1268
1317
  production: "production";
1269
1318
  }>>;
1270
1319
  modelPolicy: z.ZodObject<{
1271
- policyId: z.ZodLiteral<"carecompass-rcm-review-v1">;
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
+ }>;
1272
1324
  inferencePath: z.ZodString;
1273
1325
  maxNewTokens: z.ZodNumber;
1274
1326
  temperature: z.ZodNumber;