@nexalink/coding-contracts 0.1.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/cjs/index.cjs +1613 -0
- package/dist/index.d.ts +252 -0
- package/dist/index.js +1596 -0
- package/package.json +35 -0
- package/schemas/rcm-coding-input.schema.json +82 -0
- package/schemas/rcm-coding-output.schema.json +146 -0
- package/schemas/rcm-model-prompt.schema.json +91 -0
- package/schemas/rcm-retrieval-metadata.schema.json +61 -0
- package/schemas/rcm-runtime-event.schema.json +170 -0
- package/schemas/rcm-supporting-reference.schema.json +81 -0
- package/schemas/rcm-workflow-catalog.schema.json +123 -0
- package/versions.json +42 -0
- package/workflow-constants.json +10 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://nexalink.care/contracts/rcm-workflow-catalog.schema.json",
|
|
4
|
+
"title": "RcmWorkflowCatalog",
|
|
5
|
+
"description": "A single authorized workflow entry. The catalog pins the workflow identifier, model policy, human-review policy, and output schema version that the runtime and portal may offer for the RCM coding-assistance workflow. Customer configuration can never redefine these immutable server-side values.",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"x-wire-version": "rcm-workflow-catalog-v1",
|
|
8
|
+
"x-code": "workflow_catalog",
|
|
9
|
+
"x-keys-code": "workflow_catalog_keys",
|
|
10
|
+
"type": "object",
|
|
11
|
+
"additionalProperties": false,
|
|
12
|
+
"required": [
|
|
13
|
+
"id",
|
|
14
|
+
"name",
|
|
15
|
+
"description",
|
|
16
|
+
"environments",
|
|
17
|
+
"modelPolicy",
|
|
18
|
+
"humanReviewPolicy",
|
|
19
|
+
"outputSchemaVersion"
|
|
20
|
+
],
|
|
21
|
+
"properties": {
|
|
22
|
+
"id": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["rcm-coding-assistance"],
|
|
25
|
+
"x-code": "workflow_id"
|
|
26
|
+
},
|
|
27
|
+
"name": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"maxLength": 120,
|
|
31
|
+
"x-code": "workflow_name"
|
|
32
|
+
},
|
|
33
|
+
"description": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1,
|
|
36
|
+
"maxLength": 400,
|
|
37
|
+
"x-code": "workflow_description"
|
|
38
|
+
},
|
|
39
|
+
"environments": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"minItems": 1,
|
|
42
|
+
"x-code": "workflow_environments",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": ["development", "production"],
|
|
46
|
+
"x-code": "workflow_environment"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"modelPolicy": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": [
|
|
53
|
+
"policyId",
|
|
54
|
+
"inferencePath",
|
|
55
|
+
"maxNewTokens",
|
|
56
|
+
"temperature",
|
|
57
|
+
"outputSchemaVersion",
|
|
58
|
+
"requireHumanReview"
|
|
59
|
+
],
|
|
60
|
+
"x-code": "model_policy",
|
|
61
|
+
"x-keys-code": "model_policy_keys",
|
|
62
|
+
"properties": {
|
|
63
|
+
"policyId": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"const": "carecompass-rcm-review-v1",
|
|
66
|
+
"x-code": "model_policy_id"
|
|
67
|
+
},
|
|
68
|
+
"inferencePath": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"maxLength": 64,
|
|
71
|
+
"x-code": "model_policy_inference_path"
|
|
72
|
+
},
|
|
73
|
+
"maxNewTokens": {
|
|
74
|
+
"type": "integer",
|
|
75
|
+
"minimum": 1,
|
|
76
|
+
"maximum": 2048,
|
|
77
|
+
"x-code": "model_policy_max_new_tokens"
|
|
78
|
+
},
|
|
79
|
+
"temperature": {
|
|
80
|
+
"type": "number",
|
|
81
|
+
"minimum": 0,
|
|
82
|
+
"maximum": 2,
|
|
83
|
+
"x-code": "model_policy_temperature"
|
|
84
|
+
},
|
|
85
|
+
"outputSchemaVersion": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"const": "rcm-grounded-human-review-v2",
|
|
88
|
+
"x-code": "model_policy_output_schema_version"
|
|
89
|
+
},
|
|
90
|
+
"requireHumanReview": {
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"const": true,
|
|
93
|
+
"x-code": "model_policy_require_human_review"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"humanReviewPolicy": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"required": ["policyId", "humanReviewRequired"],
|
|
101
|
+
"x-code": "human_review_policy",
|
|
102
|
+
"x-keys-code": "human_review_policy_keys",
|
|
103
|
+
"properties": {
|
|
104
|
+
"policyId": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"const": "qualified-coder-review-v1",
|
|
107
|
+
"x-code": "human_review_policy_id"
|
|
108
|
+
},
|
|
109
|
+
"humanReviewRequired": {
|
|
110
|
+
"type": "boolean",
|
|
111
|
+
"const": true,
|
|
112
|
+
"x-code": "human_review_policy_required"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"outputSchemaVersion": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"const": "rcm-grounded-human-review-v2",
|
|
119
|
+
"x-code": "workflow_output_schema_version"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"x-wire-constant": "RCM_WORKFLOW_CATALOG_SCHEMA_VERSION"
|
|
123
|
+
}
|
package/versions.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "GENERATED FILE. Schema registry derived from contracts/schemas/*.schema.json.",
|
|
3
|
+
"packageName": "@nexalink/coding-contracts",
|
|
4
|
+
"packageVersion": "0.1.0",
|
|
5
|
+
"schemas": {
|
|
6
|
+
"rcm-supporting-reference": {
|
|
7
|
+
"file": "rcm-supporting-reference.schema.json",
|
|
8
|
+
"semver": "1.0.0",
|
|
9
|
+
"wireVersion": "rcm-supporting-reference-v1"
|
|
10
|
+
},
|
|
11
|
+
"rcm-coding-input": {
|
|
12
|
+
"file": "rcm-coding-input.schema.json",
|
|
13
|
+
"semver": "1.0.0",
|
|
14
|
+
"wireVersion": "rcm-coding-input-v1"
|
|
15
|
+
},
|
|
16
|
+
"rcm-coding-output": {
|
|
17
|
+
"file": "rcm-coding-output.schema.json",
|
|
18
|
+
"semver": "1.0.0",
|
|
19
|
+
"wireVersion": "rcm-grounded-human-review-v2"
|
|
20
|
+
},
|
|
21
|
+
"rcm-model-prompt": {
|
|
22
|
+
"file": "rcm-model-prompt.schema.json",
|
|
23
|
+
"semver": "1.0.0",
|
|
24
|
+
"wireVersion": "rcm-model-prompt-v1"
|
|
25
|
+
},
|
|
26
|
+
"rcm-retrieval-metadata": {
|
|
27
|
+
"file": "rcm-retrieval-metadata.schema.json",
|
|
28
|
+
"semver": "1.0.0",
|
|
29
|
+
"wireVersion": "rcm-retrieval-metadata-v1"
|
|
30
|
+
},
|
|
31
|
+
"rcm-runtime-event": {
|
|
32
|
+
"file": "rcm-runtime-event.schema.json",
|
|
33
|
+
"semver": "1.0.0",
|
|
34
|
+
"wireVersion": "rcm-runtime-event-v1"
|
|
35
|
+
},
|
|
36
|
+
"rcm-workflow-catalog": {
|
|
37
|
+
"file": "rcm-workflow-catalog.schema.json",
|
|
38
|
+
"semver": "1.0.0",
|
|
39
|
+
"wireVersion": "rcm-workflow-catalog-v1"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Single source for workflow identity and policy identifiers shared across nexalink-cloud, carecompass-sdk, and nexalink-webapp. Values are immutable server-side; changes require a breaking major release and a documented compatibility migration.",
|
|
3
|
+
"workflowConstants": {
|
|
4
|
+
"rcmWorkflowId": "rcm-coding-assistance",
|
|
5
|
+
"rcmModelPolicyId": "carecompass-rcm-review-v1",
|
|
6
|
+
"rcmHumanReviewPolicyId": "qualified-coder-review-v1",
|
|
7
|
+
"rcmOutputSchemaName": "carecompass_rcm_grounded_review",
|
|
8
|
+
"rcmHumanReviewInstruction": "Qualified human coder review is required before billing, coding, or claim submission."
|
|
9
|
+
}
|
|
10
|
+
}
|