@stedi/sdk 0.0.9 → 0.0.10
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/CHANGELOG.md +3 -0
- package/README.md +82 -29
- package/dist-cjs/Stedi.js +35 -1
- package/dist-cjs/StediClient.js +1 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +8 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +8 -0
- package/dist-cjs/commandBuilder.js +4 -1
- package/dist-cjs/commands/CreateEventDestinationCommand.js +8 -0
- package/dist-cjs/commands/CreateProfessionalClaimSubmissionCommand.js +1 -1
- package/dist-cjs/commands/DeleteEventDestinationCommand.js +8 -0
- package/dist-cjs/commands/GetClaimCommand.js +8 -0
- package/dist-cjs/commands/GetClaimTimelineCommand.js +8 -0
- package/dist-cjs/commands/GetEventDestinationCommand.js +8 -0
- package/dist-cjs/commands/GetEventDestinationEventCommand.js +8 -0
- package/dist-cjs/commands/GetEventDestinationSecretCommand.js +8 -0
- package/dist-cjs/commands/GetProfessionalClaimSubmissionCommand.js +1 -1
- package/dist-cjs/commands/ListClaimsCommand.js +8 -0
- package/dist-cjs/commands/ListEventDestinationEventsCommand.js +8 -0
- package/dist-cjs/commands/ListEventDestinationsCommand.js +8 -0
- package/dist-cjs/commands/RotateEventDestinationSecretCommand.js +8 -0
- package/dist-cjs/commands/UpdateEventDestinationCommand.js +8 -0
- package/dist-cjs/commands/ValidateProfessionalClaimSubmissionCommand.js +1 -1
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/endpoint/bdd.js +8 -5
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/enums.js +61 -1
- package/dist-cjs/models/errors.js +27 -34
- package/dist-cjs/pagination/GetClaimTimelinePaginator.js +7 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListClaimsPaginator.js +7 -0
- package/dist-cjs/pagination/ListEventDestinationEventsPaginator.js +7 -0
- package/dist-cjs/pagination/ListEventDestinationsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/runtimeConfig.shared.js +5 -0
- package/dist-cjs/schemas/schemas_0.js +487 -127
- package/dist-es/Stedi.js +35 -1
- package/dist-es/StediClient.js +1 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +8 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +8 -0
- package/dist-es/commandBuilder.js +3 -0
- package/dist-es/commands/CreateEventDestinationCommand.js +4 -0
- package/dist-es/commands/CreateProfessionalClaimSubmissionCommand.js +2 -2
- package/dist-es/commands/DeleteEventDestinationCommand.js +4 -0
- package/dist-es/commands/GetClaimCommand.js +4 -0
- package/dist-es/commands/GetClaimTimelineCommand.js +4 -0
- package/dist-es/commands/GetEventDestinationCommand.js +4 -0
- package/dist-es/commands/GetEventDestinationEventCommand.js +4 -0
- package/dist-es/commands/GetEventDestinationSecretCommand.js +4 -0
- package/dist-es/commands/GetProfessionalClaimSubmissionCommand.js +2 -2
- package/dist-es/commands/ListClaimsCommand.js +4 -0
- package/dist-es/commands/ListEventDestinationEventsCommand.js +4 -0
- package/dist-es/commands/ListEventDestinationsCommand.js +4 -0
- package/dist-es/commands/RotateEventDestinationSecretCommand.js +4 -0
- package/dist-es/commands/UpdateEventDestinationCommand.js +4 -0
- package/dist-es/commands/ValidateProfessionalClaimSubmissionCommand.js +2 -2
- package/dist-es/commands/index.js +12 -0
- package/dist-es/endpoint/bdd.js +8 -5
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +60 -0
- package/dist-es/models/errors.js +24 -31
- package/dist-es/pagination/GetClaimTimelinePaginator.js +4 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListClaimsPaginator.js +4 -0
- package/dist-es/pagination/ListEventDestinationEventsPaginator.js +4 -0
- package/dist-es/pagination/ListEventDestinationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/runtimeConfig.shared.js +6 -1
- package/dist-es/schemas/schemas_0.js +485 -126
- package/dist-types/Stedi.d.ts +116 -1
- package/dist-types/StediClient.d.ts +14 -2
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +4 -1
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +9 -1
- package/dist-types/commandBuilder.d.ts +4 -0
- package/dist-types/commands/CreateEventDestinationCommand.d.ts +146 -0
- package/dist-types/commands/CreateProfessionalClaimSubmissionCommand.d.ts +177 -152
- package/dist-types/commands/DeleteEventDestinationCommand.d.ts +105 -0
- package/dist-types/commands/GetClaimCommand.d.ts +139 -0
- package/dist-types/commands/GetClaimTimelineCommand.d.ts +218 -0
- package/dist-types/commands/GetEventDestinationCommand.d.ts +124 -0
- package/dist-types/commands/GetEventDestinationEventCommand.d.ts +141 -0
- package/dist-types/commands/GetEventDestinationSecretCommand.d.ts +105 -0
- package/dist-types/commands/GetProfessionalClaimSubmissionCommand.d.ts +349 -4
- package/dist-types/commands/ListClaimsCommand.d.ts +169 -0
- package/dist-types/commands/ListEventDestinationEventsCommand.d.ts +120 -0
- package/dist-types/commands/ListEventDestinationsCommand.d.ts +132 -0
- package/dist-types/commands/RotateEventDestinationSecretCommand.d.ts +113 -0
- package/dist-types/commands/UpdateEventDestinationCommand.d.ts +142 -0
- package/dist-types/commands/ValidateProfessionalClaimSubmissionCommand.d.ts +363 -9
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +263 -1
- package/dist-types/models/errors.d.ts +25 -41
- package/dist-types/models/models_0.d.ts +1320 -43
- package/dist-types/pagination/GetClaimTimelinePaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListClaimsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEventDestinationEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEventDestinationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/runtimeConfig.browser.d.ts +7 -2
- package/dist-types/runtimeConfig.d.ts +7 -2
- package/dist-types/runtimeConfig.native.d.ts +7 -2
- package/dist-types/runtimeConfig.shared.d.ts +7 -3
- package/dist-types/schemas/schemas_0.d.ts +54 -3
- package/package.json +4 -3
package/CHANGELOG.md
ADDED
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ APIs from a single client.
|
|
|
9
9
|
|
|
10
10
|
## Requirements
|
|
11
11
|
|
|
12
|
-
- Node.js ≥
|
|
12
|
+
- Node.js ≥ 22 [download][nodejs]
|
|
13
13
|
- Stedi account [sign up free][signup]
|
|
14
14
|
- Stedi API key: [docs][apikeydocs]
|
|
15
15
|
|
|
@@ -23,75 +23,127 @@ npm install @stedi/sdk
|
|
|
23
23
|
|
|
24
24
|
## Authentication
|
|
25
25
|
|
|
26
|
-
You must authenticate every request with a Stedi API key. You pass the
|
|
26
|
+
You must authenticate every request, either with a Stedi API key or with an OAuth access token. You pass the credential once when you construct the client.
|
|
27
|
+
|
|
28
|
+
With an API key:
|
|
27
29
|
|
|
28
30
|
```ts
|
|
29
|
-
import {
|
|
31
|
+
import { Stedi } from "@stedi/sdk";
|
|
30
32
|
|
|
31
|
-
const client = new
|
|
33
|
+
const client = new Stedi({ apiKey: { apiKey: process.env.STEDI_API_KEY! } });
|
|
32
34
|
```
|
|
33
35
|
|
|
34
36
|
Visit the [Stedi documentation][apikeydocs] for instructions on creating and managing API keys.
|
|
35
37
|
|
|
38
|
+
### OAuth access tokens
|
|
39
|
+
|
|
40
|
+
If your app authenticates through a Stedi OAuth app, pass a `token` instead. Stedi's access tokens are short-lived, so supply a function rather than a fixed string — the client calls it for the first request and again once the token is close to expiring:
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import { Stedi } from "@stedi/sdk";
|
|
44
|
+
|
|
45
|
+
const client = new Stedi({
|
|
46
|
+
// `getAccessToken` is your own function — see below.
|
|
47
|
+
token: async () => {
|
|
48
|
+
const { access_token, expires_in } = await getAccessToken();
|
|
49
|
+
// Include `expiration`, or the client keeps this token for its lifetime and never calls you again.
|
|
50
|
+
return { token: access_token, expiration: new Date(Date.now() + expires_in * 1000) };
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Obtaining and refreshing the token is your app's job — `getAccessToken` above is yours to write, and an OAuth client library such as [`openid-client`][openidclient] does most of it. Supply exactly one of `apiKey` or `token`; if you set both, the API key is used.
|
|
56
|
+
|
|
36
57
|
## Quickstart
|
|
37
58
|
|
|
38
|
-
Create one `
|
|
59
|
+
Create one `Stedi` client with your API key. Every operation is a method on it that
|
|
60
|
+
takes the operation's typed input:
|
|
39
61
|
|
|
40
62
|
```ts
|
|
41
63
|
import { randomUUID } from "node:crypto";
|
|
42
64
|
import { readFileSync } from "node:fs";
|
|
43
65
|
|
|
44
|
-
import {
|
|
45
|
-
StediClient,
|
|
46
|
-
CreateProfessionalClaimSubmissionCommand,
|
|
47
|
-
type CreateProfessionalClaimSubmissionCommandInput,
|
|
48
|
-
} from "@stedi/sdk";
|
|
66
|
+
import { Stedi, type CreateProfessionalClaimSubmissionInput } from "@stedi/sdk";
|
|
49
67
|
|
|
50
|
-
const client = new
|
|
68
|
+
const client = new Stedi({ apiKey: { apiKey: process.env.STEDI_API_KEY! } });
|
|
51
69
|
|
|
52
70
|
// Submit a complete CMS-1500 claim. See the runnable claims example for a full payload.
|
|
53
|
-
|
|
71
|
+
// `claim.json` is your own payload; the runnable examples ship one.
|
|
72
|
+
const claim = JSON.parse(readFileSync("claim.json", "utf8")) as CreateProfessionalClaimSubmissionInput;
|
|
54
73
|
|
|
55
|
-
const response = await client.
|
|
56
|
-
new CreateProfessionalClaimSubmissionCommand({ ...claim, idempotencyKey: randomUUID() }),
|
|
57
|
-
);
|
|
74
|
+
const response = await client.createProfessionalClaimSubmission({ ...claim, idempotencyKey: randomUUID() });
|
|
58
75
|
|
|
59
|
-
console.log(
|
|
76
|
+
console.log(`claim ${response.claimId}, submission ${response.submissionId}`);
|
|
60
77
|
```
|
|
61
78
|
|
|
62
79
|
## One client for every Stedi API
|
|
63
80
|
|
|
64
|
-
A single client routes each
|
|
81
|
+
A single client routes each operation to the correct Stedi host automatically. This lets you use one client and one set of credentials for the entire SDK.
|
|
65
82
|
|
|
66
83
|
```ts
|
|
67
|
-
import {
|
|
84
|
+
import { Stedi } from "@stedi/sdk";
|
|
68
85
|
|
|
69
|
-
const client = new
|
|
86
|
+
const client = new Stedi({ apiKey: { apiKey: process.env.STEDI_API_KEY! } });
|
|
70
87
|
|
|
71
|
-
//
|
|
72
|
-
|
|
73
|
-
await client.send(new CreateProfessionalClaimSubmissionCommand(claim));
|
|
88
|
+
// `claim` is a CreateProfessionalClaimSubmissionInput, as built in the Quickstart above.
|
|
89
|
+
await client.createProfessionalClaimSubmission(claim);
|
|
74
90
|
```
|
|
75
91
|
|
|
76
92
|
## Available operations
|
|
77
93
|
|
|
78
|
-
|
|
94
|
+
### Claims
|
|
95
|
+
|
|
96
|
+
| Method | Description |
|
|
79
97
|
| --- | --- |
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
98
|
+
| `createProfessionalClaimSubmission` | Submit a professional claim in JSON modeled after the CMS-1500 form structure |
|
|
99
|
+
| `getClaim` | Retrieve summary information for a claim, including current processing status and key details from its most recent submission |
|
|
100
|
+
| `getClaimTimeline` | Retrieve a paginated list of a claim's timeline entries, newest first. Timeline entries include submissions, acknowledgments, and claim payment information |
|
|
101
|
+
| `getProfessionalClaimSubmission` | Retrieve a claim's data and map it to Stedi's CMS-1500 JSON format |
|
|
102
|
+
| `listClaims` | Retrieve a paginated list of claim records, newest first. Filter by status, patient control numbers, or submission time |
|
|
103
|
+
| `validateProfessionalClaimSubmission` | Validate a professional claim in the Stedi JSON format without submitting it |
|
|
104
|
+
|
|
105
|
+
### Event Destinations
|
|
106
|
+
|
|
107
|
+
| Method | Description |
|
|
108
|
+
| --- | --- |
|
|
109
|
+
| `createEventDestination` | Creates an event destination. Returns destination details and a signing secret for verifying event payloads. |
|
|
110
|
+
| `deleteEventDestination` | Deletes an existing destination. This action is irreversible. Deleting a destination that is already deleted succeeds with the same response (idempotent). |
|
|
111
|
+
| `getEventDestination` | Retrieves details for an existing event destination. |
|
|
112
|
+
| `getEventDestinationEvent` | Retrieves the details of an existing event by its identifier. |
|
|
113
|
+
| `getEventDestinationSecret` | Retrieves the current signing secret for a destination. Use this secret to verify the authenticity of event payloads. |
|
|
114
|
+
| `listEventDestinationEvents` | Lists all events for your account. Results are paginated. |
|
|
115
|
+
| `listEventDestinations` | Lists all destinations configured for your account. Results are paginated. |
|
|
116
|
+
| `rotateEventDestinationSecret` | Rotates the signing secret for a destination. The previous secret remains valid for the period specified by `previousSecretExpiryHours` (or `0` for immediate invalidation) to allow for a graceful transition. |
|
|
117
|
+
| `updateEventDestination` | Updates an existing destination configuration. |
|
|
83
118
|
|
|
84
119
|
This list grows as Stedi releases more APIs through the SDK.
|
|
85
120
|
|
|
121
|
+
## Configuration
|
|
122
|
+
|
|
123
|
+
Every client option goes in the same object as the credential:
|
|
124
|
+
|
|
125
|
+
```ts
|
|
126
|
+
import { Stedi } from "@stedi/sdk";
|
|
127
|
+
|
|
128
|
+
const client = new Stedi({
|
|
129
|
+
apiKey: { apiKey: process.env.STEDI_API_KEY! },
|
|
130
|
+
// Retry policy — the client defaults to 3 attempts.
|
|
131
|
+
maxAttempts: 4,
|
|
132
|
+
// A request has no time limit by default. Without `throwOnRequestTimeout`, exceeding the
|
|
133
|
+
// limit is logged as a warning and the request keeps going.
|
|
134
|
+
requestHandler: { requestTimeout: 30_000, throwOnRequestTimeout: true },
|
|
135
|
+
});
|
|
136
|
+
```
|
|
137
|
+
|
|
86
138
|
## Error handling
|
|
87
139
|
|
|
88
140
|
Stedi throws service errors as `StediServiceException`:
|
|
89
141
|
|
|
90
142
|
```ts
|
|
91
|
-
import { StediServiceException
|
|
143
|
+
import { StediServiceException } from "@stedi/sdk";
|
|
92
144
|
|
|
93
145
|
try {
|
|
94
|
-
await client.
|
|
146
|
+
await client.createProfessionalClaimSubmission(claim);
|
|
95
147
|
} catch (err) {
|
|
96
148
|
if (err instanceof StediServiceException) {
|
|
97
149
|
console.error(`[${err.name}] ${err.$metadata.httpStatusCode}: ${err.message}`);
|
|
@@ -112,7 +164,7 @@ Access runnable, end-to-end examples for every operation in the
|
|
|
112
164
|
|
|
113
165
|
## License
|
|
114
166
|
|
|
115
|
-
Apache-2.0
|
|
167
|
+
[Apache-2.0][license]
|
|
116
168
|
|
|
117
169
|
<!-- Reference links — swap these in one place if URLs change. -->
|
|
118
170
|
[docs]: https://www.stedi.com/docs
|
|
@@ -120,5 +172,6 @@ Apache-2.0
|
|
|
120
172
|
[issues]: https://github.com/Stedi/sdk/issues
|
|
121
173
|
[license]: https://github.com/Stedi/sdk/blob/main/LICENSE
|
|
122
174
|
[nodejs]: https://nodejs.org/en/download
|
|
175
|
+
[openidclient]: https://github.com/panva/openid-client
|
|
123
176
|
[signup]: https://portal.stedi.com/auth/sign-up-intent
|
|
124
177
|
[apikeydocs]: https://www.stedi.com/docs/healthcare/api-reference#authentication
|
package/dist-cjs/Stedi.js
CHANGED
|
@@ -2,16 +2,50 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Stedi = void 0;
|
|
4
4
|
const client_1 = require("@smithy/core/client");
|
|
5
|
+
const CreateEventDestinationCommand_1 = require("./commands/CreateEventDestinationCommand");
|
|
5
6
|
const CreateProfessionalClaimSubmissionCommand_1 = require("./commands/CreateProfessionalClaimSubmissionCommand");
|
|
7
|
+
const DeleteEventDestinationCommand_1 = require("./commands/DeleteEventDestinationCommand");
|
|
8
|
+
const GetClaimCommand_1 = require("./commands/GetClaimCommand");
|
|
9
|
+
const GetClaimTimelineCommand_1 = require("./commands/GetClaimTimelineCommand");
|
|
10
|
+
const GetEventDestinationCommand_1 = require("./commands/GetEventDestinationCommand");
|
|
11
|
+
const GetEventDestinationEventCommand_1 = require("./commands/GetEventDestinationEventCommand");
|
|
12
|
+
const GetEventDestinationSecretCommand_1 = require("./commands/GetEventDestinationSecretCommand");
|
|
6
13
|
const GetProfessionalClaimSubmissionCommand_1 = require("./commands/GetProfessionalClaimSubmissionCommand");
|
|
14
|
+
const ListClaimsCommand_1 = require("./commands/ListClaimsCommand");
|
|
15
|
+
const ListEventDestinationEventsCommand_1 = require("./commands/ListEventDestinationEventsCommand");
|
|
16
|
+
const ListEventDestinationsCommand_1 = require("./commands/ListEventDestinationsCommand");
|
|
17
|
+
const RotateEventDestinationSecretCommand_1 = require("./commands/RotateEventDestinationSecretCommand");
|
|
18
|
+
const UpdateEventDestinationCommand_1 = require("./commands/UpdateEventDestinationCommand");
|
|
7
19
|
const ValidateProfessionalClaimSubmissionCommand_1 = require("./commands/ValidateProfessionalClaimSubmissionCommand");
|
|
20
|
+
const GetClaimTimelinePaginator_1 = require("./pagination/GetClaimTimelinePaginator");
|
|
21
|
+
const ListClaimsPaginator_1 = require("./pagination/ListClaimsPaginator");
|
|
22
|
+
const ListEventDestinationEventsPaginator_1 = require("./pagination/ListEventDestinationEventsPaginator");
|
|
23
|
+
const ListEventDestinationsPaginator_1 = require("./pagination/ListEventDestinationsPaginator");
|
|
8
24
|
const StediClient_1 = require("./StediClient");
|
|
9
25
|
const commands = {
|
|
10
26
|
CreateProfessionalClaimSubmissionCommand: CreateProfessionalClaimSubmissionCommand_1.CreateProfessionalClaimSubmissionCommand,
|
|
11
27
|
GetProfessionalClaimSubmissionCommand: GetProfessionalClaimSubmissionCommand_1.GetProfessionalClaimSubmissionCommand,
|
|
12
28
|
ValidateProfessionalClaimSubmissionCommand: ValidateProfessionalClaimSubmissionCommand_1.ValidateProfessionalClaimSubmissionCommand,
|
|
29
|
+
GetClaimCommand: GetClaimCommand_1.GetClaimCommand,
|
|
30
|
+
GetClaimTimelineCommand: GetClaimTimelineCommand_1.GetClaimTimelineCommand,
|
|
31
|
+
ListClaimsCommand: ListClaimsCommand_1.ListClaimsCommand,
|
|
32
|
+
CreateEventDestinationCommand: CreateEventDestinationCommand_1.CreateEventDestinationCommand,
|
|
33
|
+
DeleteEventDestinationCommand: DeleteEventDestinationCommand_1.DeleteEventDestinationCommand,
|
|
34
|
+
GetEventDestinationCommand: GetEventDestinationCommand_1.GetEventDestinationCommand,
|
|
35
|
+
GetEventDestinationEventCommand: GetEventDestinationEventCommand_1.GetEventDestinationEventCommand,
|
|
36
|
+
GetEventDestinationSecretCommand: GetEventDestinationSecretCommand_1.GetEventDestinationSecretCommand,
|
|
37
|
+
ListEventDestinationEventsCommand: ListEventDestinationEventsCommand_1.ListEventDestinationEventsCommand,
|
|
38
|
+
ListEventDestinationsCommand: ListEventDestinationsCommand_1.ListEventDestinationsCommand,
|
|
39
|
+
RotateEventDestinationSecretCommand: RotateEventDestinationSecretCommand_1.RotateEventDestinationSecretCommand,
|
|
40
|
+
UpdateEventDestinationCommand: UpdateEventDestinationCommand_1.UpdateEventDestinationCommand,
|
|
41
|
+
};
|
|
42
|
+
const paginators = {
|
|
43
|
+
paginateGetClaimTimeline: GetClaimTimelinePaginator_1.paginateGetClaimTimeline,
|
|
44
|
+
paginateListClaims: ListClaimsPaginator_1.paginateListClaims,
|
|
45
|
+
paginateListEventDestinationEvents: ListEventDestinationEventsPaginator_1.paginateListEventDestinationEvents,
|
|
46
|
+
paginateListEventDestinations: ListEventDestinationsPaginator_1.paginateListEventDestinations,
|
|
13
47
|
};
|
|
14
48
|
class Stedi extends StediClient_1.StediClient {
|
|
15
49
|
}
|
|
16
50
|
exports.Stedi = Stedi;
|
|
17
|
-
(0, client_1.createAggregatedClient)(commands, Stedi);
|
|
51
|
+
(0, client_1.createAggregatedClient)(commands, Stedi, { paginators });
|
package/dist-cjs/StediClient.js
CHANGED
|
@@ -40,6 +40,7 @@ class StediClient extends client_2.Client {
|
|
|
40
40
|
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultStediHttpAuthSchemeParametersProvider,
|
|
41
41
|
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
42
42
|
"smithy.api#httpApiKeyAuth": config.apiKey,
|
|
43
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
43
44
|
}),
|
|
44
45
|
}));
|
|
45
46
|
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
|
@@ -5,6 +5,7 @@ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
|
5
5
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
6
6
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
7
7
|
let _apiKey = runtimeConfig.apiKey;
|
|
8
|
+
let _token = runtimeConfig.token;
|
|
8
9
|
return {
|
|
9
10
|
setHttpAuthScheme(httpAuthScheme) {
|
|
10
11
|
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
@@ -30,6 +31,12 @@ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
|
30
31
|
apiKey() {
|
|
31
32
|
return _apiKey;
|
|
32
33
|
},
|
|
34
|
+
setToken(token) {
|
|
35
|
+
_token = token;
|
|
36
|
+
},
|
|
37
|
+
token() {
|
|
38
|
+
return _token;
|
|
39
|
+
},
|
|
33
40
|
};
|
|
34
41
|
};
|
|
35
42
|
exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
|
|
@@ -38,6 +45,7 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
38
45
|
httpAuthSchemes: config.httpAuthSchemes(),
|
|
39
46
|
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
40
47
|
apiKey: config.apiKey(),
|
|
48
|
+
token: config.token(),
|
|
41
49
|
};
|
|
42
50
|
};
|
|
43
51
|
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
|
@@ -20,11 +20,17 @@ function createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters) {
|
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
24
|
+
return {
|
|
25
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
26
|
+
};
|
|
27
|
+
}
|
|
23
28
|
const defaultStediHttpAuthSchemeProvider = (authParameters) => {
|
|
24
29
|
const options = [];
|
|
25
30
|
switch (authParameters.operation) {
|
|
26
31
|
default: {
|
|
27
32
|
options.push(createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters));
|
|
33
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
28
34
|
}
|
|
29
35
|
}
|
|
30
36
|
return options;
|
|
@@ -32,9 +38,11 @@ const defaultStediHttpAuthSchemeProvider = (authParameters) => {
|
|
|
32
38
|
exports.defaultStediHttpAuthSchemeProvider = defaultStediHttpAuthSchemeProvider;
|
|
33
39
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
34
40
|
const apiKey = (0, core_1.memoizeIdentityProvider)(config.apiKey, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
|
|
41
|
+
const token = (0, core_1.memoizeIdentityProvider)(config.token, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
|
|
35
42
|
return Object.assign(config, {
|
|
36
43
|
authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
37
44
|
apiKey,
|
|
45
|
+
token,
|
|
38
46
|
});
|
|
39
47
|
};
|
|
40
48
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._mw0 = exports._ep0 = exports.command = void 0;
|
|
3
|
+
exports._mw0 = exports._ep1 = exports._ep0 = exports.command = void 0;
|
|
4
4
|
const client_1 = require("@smithy/core/client");
|
|
5
5
|
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
6
|
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
7
7
|
exports.command = (0, client_1.makeBuilder)(EndpointParameters_1.commonParams, "Stedi", "StediClient", endpoints_1.getEndpointPlugin);
|
|
8
8
|
exports._ep0 = {
|
|
9
|
+
ServiceComponent: { type: "staticContextParams", value: `EventsService` },
|
|
10
|
+
};
|
|
11
|
+
exports._ep1 = {
|
|
9
12
|
ServiceComponent: { type: "staticContextParams", value: `SdkClaimsService` },
|
|
10
13
|
};
|
|
11
14
|
const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateEventDestinationCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class CreateEventDestinationCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "CreateEventDestination", schemas_0_1.CreateEventDestination$) {
|
|
7
|
+
}
|
|
8
|
+
exports.CreateEventDestinationCommand = CreateEventDestinationCommand;
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CreateProfessionalClaimSubmissionCommand = void 0;
|
|
4
4
|
const commandBuilder_1 = require("../commandBuilder");
|
|
5
5
|
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
-
class CreateProfessionalClaimSubmissionCommand extends (0, commandBuilder_1.command)(commandBuilder_1.
|
|
6
|
+
class CreateProfessionalClaimSubmissionCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "CreateProfessionalClaimSubmission", schemas_0_1.CreateProfessionalClaimSubmission$) {
|
|
7
7
|
}
|
|
8
8
|
exports.CreateProfessionalClaimSubmissionCommand = CreateProfessionalClaimSubmissionCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteEventDestinationCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class DeleteEventDestinationCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "DeleteEventDestination", schemas_0_1.DeleteEventDestination$) {
|
|
7
|
+
}
|
|
8
|
+
exports.DeleteEventDestinationCommand = DeleteEventDestinationCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetClaimCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class GetClaimCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "GetClaim", schemas_0_1.GetClaim$) {
|
|
7
|
+
}
|
|
8
|
+
exports.GetClaimCommand = GetClaimCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetClaimTimelineCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class GetClaimTimelineCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "GetClaimTimeline", schemas_0_1.GetClaimTimeline$) {
|
|
7
|
+
}
|
|
8
|
+
exports.GetClaimTimelineCommand = GetClaimTimelineCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetEventDestinationCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class GetEventDestinationCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "GetEventDestination", schemas_0_1.GetEventDestination$) {
|
|
7
|
+
}
|
|
8
|
+
exports.GetEventDestinationCommand = GetEventDestinationCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetEventDestinationEventCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class GetEventDestinationEventCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "GetEventDestinationEvent", schemas_0_1.GetEventDestinationEvent$) {
|
|
7
|
+
}
|
|
8
|
+
exports.GetEventDestinationEventCommand = GetEventDestinationEventCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetEventDestinationSecretCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class GetEventDestinationSecretCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "GetEventDestinationSecret", schemas_0_1.GetEventDestinationSecret$) {
|
|
7
|
+
}
|
|
8
|
+
exports.GetEventDestinationSecretCommand = GetEventDestinationSecretCommand;
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GetProfessionalClaimSubmissionCommand = void 0;
|
|
4
4
|
const commandBuilder_1 = require("../commandBuilder");
|
|
5
5
|
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
-
class GetProfessionalClaimSubmissionCommand extends (0, commandBuilder_1.command)(commandBuilder_1.
|
|
6
|
+
class GetProfessionalClaimSubmissionCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "GetProfessionalClaimSubmission", schemas_0_1.GetProfessionalClaimSubmission$) {
|
|
7
7
|
}
|
|
8
8
|
exports.GetProfessionalClaimSubmissionCommand = GetProfessionalClaimSubmissionCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListClaimsCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class ListClaimsCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "ListClaims", schemas_0_1.ListClaims$) {
|
|
7
|
+
}
|
|
8
|
+
exports.ListClaimsCommand = ListClaimsCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListEventDestinationEventsCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class ListEventDestinationEventsCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "ListEventDestinationEvents", schemas_0_1.ListEventDestinationEvents$) {
|
|
7
|
+
}
|
|
8
|
+
exports.ListEventDestinationEventsCommand = ListEventDestinationEventsCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListEventDestinationsCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class ListEventDestinationsCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "ListEventDestinations", schemas_0_1.ListEventDestinations$) {
|
|
7
|
+
}
|
|
8
|
+
exports.ListEventDestinationsCommand = ListEventDestinationsCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RotateEventDestinationSecretCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class RotateEventDestinationSecretCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "RotateEventDestinationSecret", schemas_0_1.RotateEventDestinationSecret$) {
|
|
7
|
+
}
|
|
8
|
+
exports.RotateEventDestinationSecretCommand = RotateEventDestinationSecretCommand;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateEventDestinationCommand = void 0;
|
|
4
|
+
const commandBuilder_1 = require("../commandBuilder");
|
|
5
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
+
class UpdateEventDestinationCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "UpdateEventDestination", schemas_0_1.UpdateEventDestination$) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateEventDestinationCommand = UpdateEventDestinationCommand;
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ValidateProfessionalClaimSubmissionCommand = void 0;
|
|
4
4
|
const commandBuilder_1 = require("../commandBuilder");
|
|
5
5
|
const schemas_0_1 = require("../schemas/schemas_0");
|
|
6
|
-
class ValidateProfessionalClaimSubmissionCommand extends (0, commandBuilder_1.command)(commandBuilder_1.
|
|
6
|
+
class ValidateProfessionalClaimSubmissionCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "ValidateProfessionalClaimSubmission", schemas_0_1.ValidateProfessionalClaimSubmission$) {
|
|
7
7
|
}
|
|
8
8
|
exports.ValidateProfessionalClaimSubmissionCommand = ValidateProfessionalClaimSubmissionCommand;
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./CreateEventDestinationCommand"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./CreateProfessionalClaimSubmissionCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DeleteEventDestinationCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./GetClaimCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./GetClaimTimelineCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./GetEventDestinationCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./GetEventDestinationEventCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./GetEventDestinationSecretCommand"), exports);
|
|
5
12
|
tslib_1.__exportStar(require("./GetProfessionalClaimSubmissionCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./ListClaimsCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./ListEventDestinationEventsCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./ListEventDestinationsCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./RotateEventDestinationSecretCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./UpdateEventDestinationCommand"), exports);
|
|
6
18
|
tslib_1.__exportStar(require("./ValidateProfessionalClaimSubmissionCommand"), exports);
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bdd = void 0;
|
|
4
4
|
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
|
-
const a = { "ref": "Endpoint" };
|
|
5
|
+
const a = "stringEquals", b = { "ref": "Endpoint" }, c = { "ref": "ServiceComponent" };
|
|
6
6
|
const _data = {
|
|
7
7
|
conditions: [
|
|
8
|
-
["isSet", [
|
|
9
|
-
[
|
|
8
|
+
["isSet", [b]],
|
|
9
|
+
[a, [c, "EventsService"]],
|
|
10
|
+
[a, [c, "SdkClaimsService"]]
|
|
10
11
|
],
|
|
11
12
|
results: [
|
|
12
13
|
[-1],
|
|
13
|
-
[
|
|
14
|
+
[b, {}],
|
|
15
|
+
["https://events.us.stedi.com", {}],
|
|
14
16
|
["https://claims.us.stedi.com", {}],
|
|
15
17
|
[-1, "Unknown ServiceComponent"]
|
|
16
18
|
]
|
|
@@ -20,6 +22,7 @@ const r = 100_000_000;
|
|
|
20
22
|
const nodes = new Int32Array([
|
|
21
23
|
-1, 1, -1,
|
|
22
24
|
0, r + 1, 3,
|
|
23
|
-
1, r + 2,
|
|
25
|
+
1, r + 2, 4,
|
|
26
|
+
2, r + 3, r + 4,
|
|
24
27
|
]);
|
|
25
28
|
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
package/dist-cjs/index.js
CHANGED
|
@@ -8,6 +8,7 @@ tslib_1.__exportStar(require("./commands"), exports);
|
|
|
8
8
|
var client_1 = require("@smithy/core/client");
|
|
9
9
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
10
10
|
tslib_1.__exportStar(require("./schemas/schemas_0"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./models/enums"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./models/errors"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./models/models_0"), exports);
|
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProfessionalClaimSubmissionDrugIdentificationUnitOfMeasure = exports.ProfessionalClaimSubmissionPurpose = exports.ProfessionalClaimSubmissionPatientRelationshipToInsured = exports.ProfessionalClaimSubmissionResponsibilityLevel = exports.ProfessionalClaimSubmissionOtherInsuredRelationshipToInsured = exports.ProfessionalClaimSubmissionMedicareSecondaryInsuranceType = exports.ProfessionalClaimSubmissionClaimFilingIndicator = exports.ProfessionalClaimSubmissionPaymentResponsibilityLevelCode = exports.ProfessionalClaimSubmissionInsuranceType = exports.ProfessionalClaimSubmissionGenderCode = exports.ProfessionalClaimSubmissionClaimFrequencyCode = exports.ProfessionalClaimSubmissionEPSDTReferralConditionIndicator = exports.ProfessionalClaimSubmissionAttachmentTransmissionCode = exports.ProfessionalClaimSubmissionAttachmentReportTypeCode = exports.ProfessionalClaimSubmissionProviderSignature = exports.ProfessionalClaimSubmissionProviderAcceptsAssignment = exports.ProfessionalClaimSubmissionReleaseOfInformationCode = exports.ProfessionalClaimSubmissionBenefitsAssignmentCertificationIndicator = void 0;
|
|
3
|
+
exports.EventDestinationsEventStatus = exports.EventDestinationsEventPayloadObjectType = exports.EventDestinationsEventEnvironment = exports.EventDestinationsDestinationStatus = exports.EventDestinationsDestinationInputStatus = exports.ClaimStatus = exports.ClaimPaymentInformationStatusCode = exports.ClaimStatusReportedBy = exports.ClaimType = exports.ClaimAcknowledgmentStatus = exports.ProfessionalClaimSubmissionPurchasedServiceProviderEntityType = exports.ProfessionalClaimSubmissionDrugIdentificationUnitOfMeasure = exports.ProfessionalClaimSubmissionPurpose = exports.ProfessionalClaimSubmissionPatientRelationshipToInsured = exports.ProfessionalClaimSubmissionResponsibilityLevel = exports.ProfessionalClaimSubmissionOtherInsuredRelationshipToInsured = exports.ProfessionalClaimSubmissionMedicareSecondaryInsuranceType = exports.ProfessionalClaimSubmissionClaimFilingIndicator = exports.ProfessionalClaimSubmissionPaymentResponsibilityLevelCode = exports.ProfessionalClaimSubmissionInsuranceType = exports.ProfessionalClaimSubmissionGenderCode = exports.ProfessionalClaimSubmissionClaimFrequencyCode = exports.ProfessionalClaimSubmissionEPSDTReferralConditionIndicator = exports.ProfessionalClaimSubmissionAttachmentTransmissionCode = exports.ProfessionalClaimSubmissionAttachmentReportTypeCode = exports.ProfessionalClaimSubmissionProviderSignature = exports.ProfessionalClaimSubmissionProviderAcceptsAssignment = exports.ProfessionalClaimSubmissionReleaseOfInformationCode = exports.ProfessionalClaimSubmissionBenefitsAssignmentCertificationIndicator = void 0;
|
|
4
4
|
exports.ProfessionalClaimSubmissionBenefitsAssignmentCertificationIndicator = {
|
|
5
5
|
NO: "NO",
|
|
6
6
|
NOT_APPLICABLE: "NOT_APPLICABLE",
|
|
@@ -186,3 +186,63 @@ exports.ProfessionalClaimSubmissionDrugIdentificationUnitOfMeasure = {
|
|
|
186
186
|
MILLILITER: "MILLILITER",
|
|
187
187
|
UNIT: "UNIT",
|
|
188
188
|
};
|
|
189
|
+
exports.ProfessionalClaimSubmissionPurchasedServiceProviderEntityType = {
|
|
190
|
+
ORGANIZATION: "ORGANIZATION",
|
|
191
|
+
PERSON: "PERSON",
|
|
192
|
+
};
|
|
193
|
+
exports.ClaimAcknowledgmentStatus = {
|
|
194
|
+
ACCEPTED: "ACCEPTED",
|
|
195
|
+
INVALID: "INVALID",
|
|
196
|
+
RECEIVED: "RECEIVED",
|
|
197
|
+
REJECTED: "REJECTED",
|
|
198
|
+
};
|
|
199
|
+
exports.ClaimType = {
|
|
200
|
+
DENTAL: "DENTAL",
|
|
201
|
+
INSTITUTIONAL: "INSTITUTIONAL",
|
|
202
|
+
PROFESSIONAL: "PROFESSIONAL",
|
|
203
|
+
};
|
|
204
|
+
exports.ClaimStatusReportedBy = {
|
|
205
|
+
CLEARINGHOUSE: "CLEARINGHOUSE",
|
|
206
|
+
PAYER: "PAYER",
|
|
207
|
+
};
|
|
208
|
+
exports.ClaimPaymentInformationStatusCode = {
|
|
209
|
+
DENIED: "DENIED",
|
|
210
|
+
NOT_OUR_CLAIM_FORWARDED_TO_ADDITIONAL_PAYERS: "NOT_OUR_CLAIM_FORWARDED_TO_ADDITIONAL_PAYERS",
|
|
211
|
+
PREDETERMINATION_PRICING_ONLY: "PREDETERMINATION_PRICING_ONLY",
|
|
212
|
+
PROCESSED_AS_PRIMARY: "PROCESSED_AS_PRIMARY",
|
|
213
|
+
PROCESSED_AS_PRIMARY_FORWARDED_TO_ADDITIONAL_PAYERS: "PROCESSED_AS_PRIMARY_FORWARDED_TO_ADDITIONAL_PAYERS",
|
|
214
|
+
PROCESSED_AS_SECONDARY: "PROCESSED_AS_SECONDARY",
|
|
215
|
+
PROCESSED_AS_SECONDARY_FORWARDED_TO_ADDITIONAL_PAYERS: "PROCESSED_AS_SECONDARY_FORWARDED_TO_ADDITIONAL_PAYERS",
|
|
216
|
+
PROCESSED_AS_TERTIARY: "PROCESSED_AS_TERTIARY",
|
|
217
|
+
PROCESSED_AS_TERTIARY_FORWARDED_TO_ADDITIONAL_PAYERS: "PROCESSED_AS_TERTIARY_FORWARDED_TO_ADDITIONAL_PAYERS",
|
|
218
|
+
REVERSAL_OF_PREVIOUS_PAYMENT: "REVERSAL_OF_PREVIOUS_PAYMENT",
|
|
219
|
+
};
|
|
220
|
+
exports.ClaimStatus = {
|
|
221
|
+
ACCEPTED: "ACCEPTED",
|
|
222
|
+
DENIED: "DENIED",
|
|
223
|
+
PROCESSED: "PROCESSED",
|
|
224
|
+
RECEIVED: "RECEIVED",
|
|
225
|
+
REJECTED: "REJECTED",
|
|
226
|
+
SUBMITTED: "SUBMITTED",
|
|
227
|
+
UNKNOWN: "UNKNOWN",
|
|
228
|
+
};
|
|
229
|
+
exports.EventDestinationsDestinationInputStatus = {
|
|
230
|
+
DISABLED: "DISABLED",
|
|
231
|
+
ENABLED: "ENABLED",
|
|
232
|
+
};
|
|
233
|
+
exports.EventDestinationsDestinationStatus = {
|
|
234
|
+
DISABLED: "DISABLED",
|
|
235
|
+
ENABLED: "ENABLED",
|
|
236
|
+
};
|
|
237
|
+
exports.EventDestinationsEventEnvironment = {
|
|
238
|
+
PRODUCTION: "PRODUCTION",
|
|
239
|
+
TEST: "TEST",
|
|
240
|
+
};
|
|
241
|
+
exports.EventDestinationsEventPayloadObjectType = {
|
|
242
|
+
V1_EVENT: "v1.event",
|
|
243
|
+
};
|
|
244
|
+
exports.EventDestinationsEventStatus = {
|
|
245
|
+
DELIVERED: "DELIVERED",
|
|
246
|
+
FAILED: "FAILED",
|
|
247
|
+
PENDING: "PENDING",
|
|
248
|
+
};
|