candidhealth 0.14.3 → 0.15.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/Client.d.ts +3 -0
- package/Client.js +5 -0
- package/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
- package/api/resources/auth/resources/v2/client/Client.js +2 -2
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/contracts/resources/v2/client/Client.js +19 -5
- package/api/resources/contracts/resources/v2/client/delete.d.ts +7 -1
- package/api/resources/contracts/resources/v2/client/delete.js +11 -0
- package/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +6 -0
- package/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +5 -0
- package/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
- package/api/resources/contracts/resources/v2/types/index.js +1 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/serviceFacility/client/Client.d.ts +18 -0
- package/api/resources/serviceFacility/client/Client.js +83 -0
- package/api/resources/serviceFacility/client/index.d.ts +2 -0
- package/api/resources/serviceFacility/client/index.js +31 -0
- package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
- package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
- package/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
- package/api/resources/serviceFacility/client/requests/index.js +2 -0
- package/api/resources/serviceFacility/client/update.d.ts +22 -0
- package/api/resources/serviceFacility/client/update.js +47 -0
- package/api/resources/serviceFacility/index.d.ts +1 -0
- package/api/resources/serviceFacility/index.js +1 -0
- package/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +4 -0
- package/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +4 -0
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
- package/dist/api/resources/auth/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/contracts/resources/v2/client/Client.js +19 -5
- package/dist/api/resources/contracts/resources/v2/client/delete.d.ts +7 -1
- package/dist/api/resources/contracts/resources/v2/client/delete.js +11 -0
- package/dist/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +6 -0
- package/dist/api/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +5 -0
- package/dist/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/contracts/resources/v2/types/index.js +1 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/serviceFacility/client/Client.d.ts +18 -0
- package/dist/api/resources/serviceFacility/client/Client.js +83 -0
- package/dist/api/resources/serviceFacility/client/index.d.ts +2 -0
- package/dist/api/resources/serviceFacility/client/index.js +31 -0
- package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
- package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
- package/dist/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
- package/dist/api/resources/serviceFacility/client/requests/index.js +2 -0
- package/dist/api/resources/serviceFacility/client/update.d.ts +22 -0
- package/dist/api/resources/serviceFacility/client/update.js +47 -0
- package/dist/api/resources/serviceFacility/index.d.ts +1 -0
- package/dist/api/resources/serviceFacility/index.js +1 -0
- package/dist/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +4 -0
- package/dist/api/resources/serviceFacility/types/EncounterServiceFacilityBase.d.ts +4 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/serialization/resources/contracts/resources/v2/client/delete.d.ts +14 -0
- package/dist/serialization/resources/contracts/resources/v2/client/delete.js +46 -0
- package/dist/serialization/resources/contracts/resources/v2/client/index.d.ts +1 -0
- package/dist/serialization/resources/contracts/resources/v2/client/index.js +2 -1
- package/dist/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +12 -0
- package/dist/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +33 -0
- package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/contracts/resources/v2/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +1 -0
- package/dist/serialization/resources/serviceFacility/client/index.d.ts +1 -0
- package/dist/serialization/resources/serviceFacility/client/index.js +17 -0
- package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
- package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
- package/dist/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/serviceFacility/client/requests/index.js +5 -0
- package/dist/serialization/resources/serviceFacility/index.d.ts +1 -0
- package/dist/serialization/resources/serviceFacility/index.js +1 -0
- package/package.json +1 -1
- package/serialization/resources/contracts/resources/v2/client/delete.d.ts +14 -0
- package/serialization/resources/contracts/resources/v2/client/delete.js +46 -0
- package/serialization/resources/contracts/resources/v2/client/index.d.ts +1 -0
- package/serialization/resources/contracts/resources/v2/client/index.js +2 -1
- package/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.d.ts +12 -0
- package/serialization/resources/contracts/resources/v2/types/ContractIsLinkedToFeeScheduleError.js +33 -0
- package/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/contracts/resources/v2/types/index.js +1 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/serviceFacility/client/index.d.ts +1 -0
- package/serialization/resources/serviceFacility/client/index.js +17 -0
- package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
- package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
- package/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
- package/serialization/resources/serviceFacility/client/requests/index.js +5 -0
- package/serialization/resources/serviceFacility/index.d.ts +1 -0
- package/serialization/resources/serviceFacility/index.js +1 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.ServiceFacility = void 0;
|
|
33
|
+
const environments = __importStar(require("../../../../environments"));
|
|
34
|
+
const core = __importStar(require("../../../../core"));
|
|
35
|
+
const CandidApi = __importStar(require("../../.."));
|
|
36
|
+
const serializers = __importStar(require("../../../../serialization"));
|
|
37
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
38
|
+
class ServiceFacility {
|
|
39
|
+
options;
|
|
40
|
+
constructor(options) {
|
|
41
|
+
this.options = options;
|
|
42
|
+
}
|
|
43
|
+
async update(serviceFacilityId, request = {}) {
|
|
44
|
+
const _response = await core.fetcher({
|
|
45
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/service_facility/v2/${await serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId)}`),
|
|
46
|
+
method: "PATCH",
|
|
47
|
+
headers: {
|
|
48
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
49
|
+
"X-Fern-Language": "JavaScript",
|
|
50
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
52
|
+
},
|
|
53
|
+
contentType: "application/json",
|
|
54
|
+
body: await serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, {
|
|
55
|
+
unrecognizedObjectKeys: "strip",
|
|
56
|
+
}),
|
|
57
|
+
timeoutMs: 60000,
|
|
58
|
+
});
|
|
59
|
+
if (_response.ok) {
|
|
60
|
+
return {
|
|
61
|
+
ok: true,
|
|
62
|
+
body: await serializers.EncounterServiceFacility.parseOrThrow(_response.body, {
|
|
63
|
+
unrecognizedObjectKeys: "passthrough",
|
|
64
|
+
allowUnrecognizedUnionMembers: true,
|
|
65
|
+
allowUnrecognizedEnumValues: true,
|
|
66
|
+
breadcrumbsPrefix: ["response"],
|
|
67
|
+
}),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
ok: false,
|
|
72
|
+
error: CandidApi.serviceFacility.update.Error._unknown(_response.error),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
async _getAuthorizationHeader() {
|
|
76
|
+
const bearer = await core.Supplier.get(this.options.token);
|
|
77
|
+
if (bearer != null) {
|
|
78
|
+
return `Bearer ${bearer}`;
|
|
79
|
+
}
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.ServiceFacility = ServiceFacility;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.update = void 0;
|
|
30
|
+
__exportStar(require("./requests"), exports);
|
|
31
|
+
exports.update = __importStar(require("./update"));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../..";
|
|
5
|
+
export interface EncounterServiceFacilityUpdate {
|
|
6
|
+
organizationName?: string;
|
|
7
|
+
/**
|
|
8
|
+
* An NPI specific to the service facility if applicable, i.e. if it has one and is not under the billing provider's NPI.
|
|
9
|
+
* Box 32 section (a) of the CMS-1500 claim form.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
npi?: string;
|
|
13
|
+
/**
|
|
14
|
+
* zip_plus_four_code is required for service facility address. When the zip_plus_four_code is not available use "9998" as per CMS documentation.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
address?: CandidApi.StreetAddressLongZip;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EncounterServiceFacilityUpdate } from "./EncounterServiceFacilityUpdate";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../..";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.serviceFacility.update.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface _Unknown extends _Utils {
|
|
9
|
+
errorName: void;
|
|
10
|
+
content: core.Fetcher.Error;
|
|
11
|
+
}
|
|
12
|
+
interface _Utils {
|
|
13
|
+
_visit: <_Result>(visitor: CandidApi.serviceFacility.update.Error._Visitor<_Result>) => _Result;
|
|
14
|
+
}
|
|
15
|
+
interface _Visitor<_Result> {
|
|
16
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const Error: {
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.serviceFacility.update.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.serviceFacility.update.Error, visitor: CandidApi.serviceFacility.update.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
_unknown: (fetcherError) => {
|
|
33
|
+
return {
|
|
34
|
+
errorName: undefined,
|
|
35
|
+
content: fetcherError,
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.serviceFacility.update.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_visit: (value, visitor) => {
|
|
42
|
+
switch (value.errorName) {
|
|
43
|
+
default:
|
|
44
|
+
return visitor._other(value);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
};
|
|
@@ -26,5 +26,9 @@ export interface EncounterServiceFacility {
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
npi?: string;
|
|
29
|
+
/**
|
|
30
|
+
* zip_plus_four_code is required for service facility address. When the zip_plus_four_code is not available use "9998" as per CMS documentation.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
29
33
|
address: CandidApi.StreetAddressLongZip;
|
|
30
34
|
}
|
|
@@ -20,5 +20,9 @@ export interface EncounterServiceFacilityBase {
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
npi?: string;
|
|
23
|
+
/**
|
|
24
|
+
* zip_plus_four_code is required for service facility address. When the zip_plus_four_code is not available use "9998" as per CMS documentation.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
23
27
|
address: CandidApi.StreetAddressLongZip;
|
|
24
28
|
}
|
|
@@ -49,7 +49,7 @@ class V3 {
|
|
|
49
49
|
Authorization: await this._getAuthorizationHeader(),
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.
|
|
52
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -119,7 +119,7 @@ class V3 {
|
|
|
119
119
|
Authorization: await this._getAuthorizationHeader(),
|
|
120
120
|
"X-Fern-Language": "JavaScript",
|
|
121
121
|
"X-Fern-SDK-Name": "candidhealth",
|
|
122
|
-
"X-Fern-SDK-Version": "0.
|
|
122
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
123
123
|
},
|
|
124
124
|
contentType: "application/json",
|
|
125
125
|
queryParameters: _queryParams,
|
|
@@ -163,7 +163,7 @@ class V3 {
|
|
|
163
163
|
Authorization: await this._getAuthorizationHeader(),
|
|
164
164
|
"X-Fern-Language": "JavaScript",
|
|
165
165
|
"X-Fern-SDK-Name": "candidhealth",
|
|
166
|
-
"X-Fern-SDK-Version": "0.
|
|
166
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
167
167
|
},
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
timeoutMs: 60000,
|
|
@@ -207,7 +207,7 @@ class V3 {
|
|
|
207
207
|
Authorization: await this._getAuthorizationHeader(),
|
|
208
208
|
"X-Fern-Language": "JavaScript",
|
|
209
209
|
"X-Fern-SDK-Name": "candidhealth",
|
|
210
|
-
"X-Fern-SDK-Version": "0.
|
|
210
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
211
211
|
},
|
|
212
212
|
contentType: "application/json",
|
|
213
213
|
body: await serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -237,7 +237,7 @@ class V3 {
|
|
|
237
237
|
Authorization: await this._getAuthorizationHeader(),
|
|
238
238
|
"X-Fern-Language": "JavaScript",
|
|
239
239
|
"X-Fern-SDK-Name": "candidhealth",
|
|
240
|
-
"X-Fern-SDK-Version": "0.
|
|
240
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
241
241
|
},
|
|
242
242
|
contentType: "application/json",
|
|
243
243
|
body: await serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -92,7 +92,7 @@ class V1 {
|
|
|
92
92
|
Authorization: await this._getAuthorizationHeader(),
|
|
93
93
|
"X-Fern-Language": "JavaScript",
|
|
94
94
|
"X-Fern-SDK-Name": "candidhealth",
|
|
95
|
-
"X-Fern-SDK-Version": "0.
|
|
95
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
96
96
|
},
|
|
97
97
|
contentType: "application/json",
|
|
98
98
|
queryParameters: _queryParams,
|
|
@@ -126,7 +126,7 @@ class V1 {
|
|
|
126
126
|
Authorization: await this._getAuthorizationHeader(),
|
|
127
127
|
"X-Fern-Language": "JavaScript",
|
|
128
128
|
"X-Fern-SDK-Name": "candidhealth",
|
|
129
|
-
"X-Fern-SDK-Version": "0.
|
|
129
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
130
130
|
},
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
timeoutMs: 60000,
|
|
@@ -161,7 +161,7 @@ class V1 {
|
|
|
161
161
|
Authorization: await this._getAuthorizationHeader(),
|
|
162
162
|
"X-Fern-Language": "JavaScript",
|
|
163
163
|
"X-Fern-SDK-Name": "candidhealth",
|
|
164
|
-
"X-Fern-SDK-Version": "0.
|
|
164
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
165
165
|
},
|
|
166
166
|
contentType: "application/json",
|
|
167
167
|
body: await serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
|
|
@@ -197,7 +197,7 @@ class V1 {
|
|
|
197
197
|
Authorization: await this._getAuthorizationHeader(),
|
|
198
198
|
"X-Fern-Language": "JavaScript",
|
|
199
199
|
"X-Fern-SDK-Name": "candidhealth",
|
|
200
|
-
"X-Fern-SDK-Version": "0.
|
|
200
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
201
201
|
},
|
|
202
202
|
contentType: "application/json",
|
|
203
203
|
timeoutMs: 60000,
|
package/dist/Client.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { PatientRefunds } from "./api/resources/patientRefunds/client/Client";
|
|
|
20
20
|
import { Payers } from "./api/resources/payers/client/Client";
|
|
21
21
|
import { Tasks } from "./api/resources/tasks/client/Client";
|
|
22
22
|
import { WriteOffs } from "./api/resources/writeOffs/client/Client";
|
|
23
|
+
import { ServiceFacility } from "./api/resources/serviceFacility/client/Client";
|
|
23
24
|
export declare namespace CandidApiClient {
|
|
24
25
|
interface Options {
|
|
25
26
|
environment?: environments.CandidApiEnvironment | string;
|
|
@@ -63,4 +64,6 @@ export declare class CandidApiClient {
|
|
|
63
64
|
get tasks(): Tasks;
|
|
64
65
|
protected _writeOffs: WriteOffs | undefined;
|
|
65
66
|
get writeOffs(): WriteOffs;
|
|
67
|
+
protected _serviceFacility: ServiceFacility | undefined;
|
|
68
|
+
get serviceFacility(): ServiceFacility;
|
|
66
69
|
}
|
package/dist/Client.js
CHANGED
|
@@ -21,6 +21,7 @@ const Client_14 = require("./api/resources/patientRefunds/client/Client");
|
|
|
21
21
|
const Client_15 = require("./api/resources/payers/client/Client");
|
|
22
22
|
const Client_16 = require("./api/resources/tasks/client/Client");
|
|
23
23
|
const Client_17 = require("./api/resources/writeOffs/client/Client");
|
|
24
|
+
const Client_18 = require("./api/resources/serviceFacility/client/Client");
|
|
24
25
|
class CandidApiClient {
|
|
25
26
|
options;
|
|
26
27
|
constructor(options) {
|
|
@@ -94,5 +95,9 @@ class CandidApiClient {
|
|
|
94
95
|
get writeOffs() {
|
|
95
96
|
return (this._writeOffs ??= new Client_17.WriteOffs(this.options));
|
|
96
97
|
}
|
|
98
|
+
_serviceFacility;
|
|
99
|
+
get serviceFacility() {
|
|
100
|
+
return (this._serviceFacility ??= new Client_18.ServiceFacility(this.options));
|
|
101
|
+
}
|
|
97
102
|
}
|
|
98
103
|
exports.CandidApiClient = CandidApiClient;
|
|
@@ -17,7 +17,7 @@ export declare class V2 {
|
|
|
17
17
|
* Authenticating with the Candid Health API.
|
|
18
18
|
*
|
|
19
19
|
* Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
|
|
20
|
-
* subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret`
|
|
20
|
+
* subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
|
|
21
21
|
*
|
|
22
22
|
* The bearer token should be provided in the `Authorization` header for all subsequent API calls.
|
|
23
23
|
*
|
|
@@ -44,7 +44,7 @@ class V2 {
|
|
|
44
44
|
* Authenticating with the Candid Health API.
|
|
45
45
|
*
|
|
46
46
|
* Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
|
|
47
|
-
* subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret`
|
|
47
|
+
* subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
|
|
48
48
|
*
|
|
49
49
|
* The bearer token should be provided in the `Authorization` header for all subsequent API calls.
|
|
50
50
|
*
|
|
@@ -62,7 +62,7 @@ class V2 {
|
|
|
62
62
|
Authorization: await this._getAuthorizationHeader(),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "candidhealth",
|
|
65
|
-
"X-Fern-SDK-Version": "0.
|
|
65
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -48,7 +48,7 @@ class V2 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -49,7 +49,7 @@ class V2 {
|
|
|
49
49
|
Authorization: await this._getAuthorizationHeader(),
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.
|
|
52
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -136,7 +136,7 @@ class V2 {
|
|
|
136
136
|
Authorization: await this._getAuthorizationHeader(),
|
|
137
137
|
"X-Fern-Language": "JavaScript",
|
|
138
138
|
"X-Fern-SDK-Name": "candidhealth",
|
|
139
|
-
"X-Fern-SDK-Version": "0.
|
|
139
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
140
140
|
},
|
|
141
141
|
contentType: "application/json",
|
|
142
142
|
queryParameters: _queryParams,
|
|
@@ -169,7 +169,7 @@ class V2 {
|
|
|
169
169
|
Authorization: await this._getAuthorizationHeader(),
|
|
170
170
|
"X-Fern-Language": "JavaScript",
|
|
171
171
|
"X-Fern-SDK-Name": "candidhealth",
|
|
172
|
-
"X-Fern-SDK-Version": "0.
|
|
172
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
173
173
|
},
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
body: await serializers.contracts.v2.ContractCreate.jsonOrThrow(request, {
|
|
@@ -201,7 +201,7 @@ class V2 {
|
|
|
201
201
|
Authorization: await this._getAuthorizationHeader(),
|
|
202
202
|
"X-Fern-Language": "JavaScript",
|
|
203
203
|
"X-Fern-SDK-Name": "candidhealth",
|
|
204
|
-
"X-Fern-SDK-Version": "0.
|
|
204
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
205
205
|
},
|
|
206
206
|
contentType: "application/json",
|
|
207
207
|
timeoutMs: 60000,
|
|
@@ -212,6 +212,20 @@ class V2 {
|
|
|
212
212
|
body: undefined,
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
+
if (_response.error.reason === "status-code") {
|
|
216
|
+
switch (_response.error.body?.errorName) {
|
|
217
|
+
case "ContractIsLinkedToFeeScheduleHttpError":
|
|
218
|
+
return {
|
|
219
|
+
ok: false,
|
|
220
|
+
error: await serializers.contracts.v2.delete.Error.parseOrThrow(_response.error.body, {
|
|
221
|
+
unrecognizedObjectKeys: "passthrough",
|
|
222
|
+
allowUnrecognizedUnionMembers: true,
|
|
223
|
+
allowUnrecognizedEnumValues: true,
|
|
224
|
+
breadcrumbsPrefix: ["response"],
|
|
225
|
+
}),
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
}
|
|
215
229
|
return {
|
|
216
230
|
ok: false,
|
|
217
231
|
error: CandidApi.contracts.v2.delete.Error._unknown(_response.error),
|
|
@@ -225,7 +239,7 @@ class V2 {
|
|
|
225
239
|
Authorization: await this._getAuthorizationHeader(),
|
|
226
240
|
"X-Fern-Language": "JavaScript",
|
|
227
241
|
"X-Fern-SDK-Name": "candidhealth",
|
|
228
|
-
"X-Fern-SDK-Version": "0.
|
|
242
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
229
243
|
},
|
|
230
244
|
contentType: "application/json",
|
|
231
245
|
body: await serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, {
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.contracts.v2.delete.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.contracts.v2.delete.Error.ContractIsLinkedToFeeScheduleHttpError | CandidApi.contracts.v2.delete.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface ContractIsLinkedToFeeScheduleHttpError extends _Utils {
|
|
9
|
+
errorName: "ContractIsLinkedToFeeScheduleHttpError";
|
|
10
|
+
content: CandidApi.contracts.v2.ContractIsLinkedToFeeScheduleError;
|
|
11
|
+
}
|
|
8
12
|
interface _Unknown extends _Utils {
|
|
9
13
|
errorName: void;
|
|
10
14
|
content: core.Fetcher.Error;
|
|
@@ -13,10 +17,12 @@ export declare namespace Error {
|
|
|
13
17
|
_visit: <_Result>(visitor: CandidApi.contracts.v2.delete.Error._Visitor<_Result>) => _Result;
|
|
14
18
|
}
|
|
15
19
|
interface _Visitor<_Result> {
|
|
20
|
+
contractIsLinkedToFeeScheduleHttpError: (value: CandidApi.contracts.v2.ContractIsLinkedToFeeScheduleError) => _Result;
|
|
16
21
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
export declare const Error: {
|
|
25
|
+
readonly contractIsLinkedToFeeScheduleHttpError: (value: CandidApi.contracts.v2.ContractIsLinkedToFeeScheduleError) => CandidApi.contracts.v2.delete.Error.ContractIsLinkedToFeeScheduleHttpError;
|
|
20
26
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.contracts.v2.delete.Error._Unknown;
|
|
21
27
|
readonly _visit: <_Result>(value: CandidApi.contracts.v2.delete.Error, visitor: CandidApi.contracts.v2.delete.Error._Visitor<_Result>) => _Result;
|
|
22
28
|
};
|
|
@@ -29,6 +29,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Error = void 0;
|
|
30
30
|
const CandidApi = __importStar(require("../../../../.."));
|
|
31
31
|
exports.Error = {
|
|
32
|
+
contractIsLinkedToFeeScheduleHttpError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "ContractIsLinkedToFeeScheduleHttpError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.contracts.v2.delete.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
32
41
|
_unknown: (fetcherError) => {
|
|
33
42
|
return {
|
|
34
43
|
errorName: undefined,
|
|
@@ -40,6 +49,8 @@ exports.Error = {
|
|
|
40
49
|
},
|
|
41
50
|
_visit: (value, visitor) => {
|
|
42
51
|
switch (value.errorName) {
|
|
52
|
+
case "ContractIsLinkedToFeeScheduleHttpError":
|
|
53
|
+
return visitor.contractIsLinkedToFeeScheduleHttpError(value.content);
|
|
43
54
|
default:
|
|
44
55
|
return visitor._other(value);
|
|
45
56
|
}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ContractIsLinkedToFeeScheduleError"), exports);
|
|
17
18
|
__exportStar(require("./ContractId"), exports);
|
|
18
19
|
__exportStar(require("./ContractingProviderId"), exports);
|
|
19
20
|
__exportStar(require("./RenderingProviderid"), exports);
|
|
@@ -65,7 +65,7 @@ class V2 {
|
|
|
65
65
|
Authorization: await this._getAuthorizationHeader(),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "candidhealth",
|
|
68
|
-
"X-Fern-SDK-Version": "0.
|
|
68
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
body: request,
|
|
@@ -103,7 +103,7 @@ class V4 {
|
|
|
103
103
|
Authorization: await this._getAuthorizationHeader(),
|
|
104
104
|
"X-Fern-Language": "JavaScript",
|
|
105
105
|
"X-Fern-SDK-Name": "candidhealth",
|
|
106
|
-
"X-Fern-SDK-Version": "0.
|
|
106
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
107
107
|
},
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
queryParameters: _queryParams,
|
|
@@ -133,7 +133,7 @@ class V4 {
|
|
|
133
133
|
Authorization: await this._getAuthorizationHeader(),
|
|
134
134
|
"X-Fern-Language": "JavaScript",
|
|
135
135
|
"X-Fern-SDK-Name": "candidhealth",
|
|
136
|
-
"X-Fern-SDK-Version": "0.
|
|
136
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
137
137
|
},
|
|
138
138
|
contentType: "application/json",
|
|
139
139
|
timeoutMs: 60000,
|
|
@@ -162,7 +162,7 @@ class V4 {
|
|
|
162
162
|
Authorization: await this._getAuthorizationHeader(),
|
|
163
163
|
"X-Fern-Language": "JavaScript",
|
|
164
164
|
"X-Fern-SDK-Name": "candidhealth",
|
|
165
|
-
"X-Fern-SDK-Version": "0.
|
|
165
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
166
166
|
},
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -213,7 +213,7 @@ class V4 {
|
|
|
213
213
|
Authorization: await this._getAuthorizationHeader(),
|
|
214
214
|
"X-Fern-Language": "JavaScript",
|
|
215
215
|
"X-Fern-SDK-Name": "candidhealth",
|
|
216
|
-
"X-Fern-SDK-Version": "0.
|
|
216
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
217
217
|
},
|
|
218
218
|
contentType: "application/json",
|
|
219
219
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|
|
@@ -52,7 +52,7 @@ class V1 {
|
|
|
52
52
|
Authorization: await this._getAuthorizationHeader(),
|
|
53
53
|
"X-Fern-Language": "JavaScript",
|
|
54
54
|
"X-Fern-SDK-Name": "candidhealth",
|
|
55
|
-
"X-Fern-SDK-Version": "0.
|
|
55
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
56
56
|
},
|
|
57
57
|
contentType: "application/json",
|
|
58
58
|
body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -54,7 +54,7 @@ class V2 {
|
|
|
54
54
|
Authorization: await this._getAuthorizationHeader(),
|
|
55
55
|
"X-Fern-Language": "JavaScript",
|
|
56
56
|
"X-Fern-SDK-Name": "candidhealth",
|
|
57
|
-
"X-Fern-SDK-Version": "0.
|
|
57
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
58
58
|
},
|
|
59
59
|
contentType: "application/json",
|
|
60
60
|
body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
|
|
@@ -109,7 +109,7 @@ class V2 {
|
|
|
109
109
|
Authorization: await this._getAuthorizationHeader(),
|
|
110
110
|
"X-Fern-Language": "JavaScript",
|
|
111
111
|
"X-Fern-SDK-Name": "candidhealth",
|
|
112
|
-
"X-Fern-SDK-Version": "0.
|
|
112
|
+
"X-Fern-SDK-Version": "0.15.0",
|
|
113
113
|
},
|
|
114
114
|
contentType: "application/json",
|
|
115
115
|
body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
|