candidhealth 0.17.3 → 0.17.5
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/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -2
- package/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +0 -1
- package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +1 -1
- package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +1 -1
- package/api/resources/claims/types/Claim.d.ts +3 -1
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/eligibility/resources/v2/client/Client.js +2 -2
- package/api/resources/encounters/resources/v4/client/Client.js +8 -5
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +19 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
- package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +4 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +18 -1
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -14
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -1
- 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/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +9 -5
- package/api/resources/insurancePayments/resources/v1/client/create.d.ts +13 -1
- package/api/resources/insurancePayments/resources/v1/client/create.js +22 -0
- package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +7 -1
- package/api/resources/insurancePayments/resources/v1/client/delete.js +11 -0
- package/api/resources/insurancePayments/resources/v1/client/update.d.ts +7 -1
- package/api/resources/insurancePayments/resources/v1/client/update.js +11 -0
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +83 -5
- package/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +19 -1
- package/api/resources/insuranceRefunds/resources/v1/client/create.js +33 -0
- package/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +19 -1
- package/api/resources/insuranceRefunds/resources/v1/client/delete.js +33 -0
- package/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +13 -1
- package/api/resources/insuranceRefunds/resources/v1/client/get.js +22 -0
- package/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +13 -1
- package/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +22 -0
- package/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +19 -1
- package/api/resources/insuranceRefunds/resources/v1/client/update.js +33 -0
- 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 +83 -5
- package/api/resources/patientPayments/resources/v4/client/create.d.ts +19 -1
- package/api/resources/patientPayments/resources/v4/client/create.js +33 -0
- package/api/resources/patientPayments/resources/v4/client/delete.d.ts +19 -1
- package/api/resources/patientPayments/resources/v4/client/delete.js +33 -0
- package/api/resources/patientPayments/resources/v4/client/get.d.ts +13 -1
- package/api/resources/patientPayments/resources/v4/client/get.js +22 -0
- package/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +13 -1
- package/api/resources/patientPayments/resources/v4/client/getMulti.js +22 -0
- package/api/resources/patientPayments/resources/v4/client/update.d.ts +19 -1
- package/api/resources/patientPayments/resources/v4/client/update.js +33 -0
- package/api/resources/patientRefunds/resources/v1/client/Client.js +83 -5
- package/api/resources/patientRefunds/resources/v1/client/create.d.ts +19 -1
- package/api/resources/patientRefunds/resources/v1/client/create.js +33 -0
- package/api/resources/patientRefunds/resources/v1/client/delete.d.ts +19 -1
- package/api/resources/patientRefunds/resources/v1/client/delete.js +33 -0
- package/api/resources/patientRefunds/resources/v1/client/get.d.ts +13 -1
- package/api/resources/patientRefunds/resources/v1/client/get.js +22 -0
- package/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +13 -1
- package/api/resources/patientRefunds/resources/v1/client/getMulti.js +22 -0
- package/api/resources/patientRefunds/resources/v1/client/update.d.ts +19 -1
- package/api/resources/patientRefunds/resources/v1/client/update.js +33 -0
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -1
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -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/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -2
- package/dist/api/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +0 -1
- package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +1 -1
- package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +1 -1
- package/dist/api/resources/claims/types/Claim.d.ts +3 -1
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/encounters/resources/v4/client/Client.js +8 -5
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +19 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +4 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +18 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -14
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +3 -1
- 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/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +9 -5
- package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +13 -1
- package/dist/api/resources/insurancePayments/resources/v1/client/create.js +22 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +7 -1
- package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +11 -0
- package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +7 -1
- package/dist/api/resources/insurancePayments/resources/v1/client/update.js +11 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +83 -5
- package/dist/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +19 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/create.js +33 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +19 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.js +33 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +13 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/get.js +22 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +13 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +22 -0
- package/dist/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +19 -1
- package/dist/api/resources/insuranceRefunds/resources/v1/client/update.js +33 -0
- 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 +83 -5
- package/dist/api/resources/patientPayments/resources/v4/client/create.d.ts +19 -1
- package/dist/api/resources/patientPayments/resources/v4/client/create.js +33 -0
- package/dist/api/resources/patientPayments/resources/v4/client/delete.d.ts +19 -1
- package/dist/api/resources/patientPayments/resources/v4/client/delete.js +33 -0
- package/dist/api/resources/patientPayments/resources/v4/client/get.d.ts +13 -1
- package/dist/api/resources/patientPayments/resources/v4/client/get.js +22 -0
- package/dist/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +13 -1
- package/dist/api/resources/patientPayments/resources/v4/client/getMulti.js +22 -0
- package/dist/api/resources/patientPayments/resources/v4/client/update.d.ts +19 -1
- package/dist/api/resources/patientPayments/resources/v4/client/update.js +33 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +83 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/create.d.ts +19 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/create.js +33 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/delete.d.ts +19 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/delete.js +33 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/get.d.ts +13 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/get.js +22 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +13 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.js +22 -0
- package/dist/api/resources/patientRefunds/resources/v1/client/update.d.ts +19 -1
- package/dist/api/resources/patientRefunds/resources/v1/client/update.js +33 -0
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -1
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -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/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -1
- package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +1 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -2
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +0 -2
- package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +9 -1
- package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +10 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +5 -1
- package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +5 -0
- package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +5 -1
- package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +5 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/create.js +56 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/delete.js +56 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/get.d.ts +18 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/get.js +51 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +18 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.js +51 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +5 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.js +18 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
- package/dist/serialization/resources/insuranceRefunds/resources/v1/client/update.js +56 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/create.js +56 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/delete.js +56 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/get.d.ts +18 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/get.js +51 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/getMulti.d.ts +18 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/getMulti.js +51 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/index.d.ts +5 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/index.js +18 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
- package/dist/serialization/resources/patientPayments/resources/v4/client/update.js +56 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/create.js +56 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/delete.js +56 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/get.d.ts +18 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/get.js +51 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/getMulti.d.ts +18 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/getMulti.js +51 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +5 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/index.js +18 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
- package/dist/serialization/resources/patientRefunds/resources/v1/client/update.js +56 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
- package/package.json +1 -1
- package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.d.ts +1 -1
- package/serialization/resources/claimSubmission/resources/v1/types/ClaimFrequencyTypeCode.js +1 -1
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +0 -2
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +0 -2
- package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +9 -1
- package/serialization/resources/insurancePayments/resources/v1/client/create.js +10 -0
- package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +5 -1
- package/serialization/resources/insurancePayments/resources/v1/client/delete.js +5 -0
- package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +5 -1
- package/serialization/resources/insurancePayments/resources/v1/client/update.js +5 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/create.js +56 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/delete.js +56 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/get.d.ts +18 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/get.js +51 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +18 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.js +51 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +5 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/index.js +18 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
- package/serialization/resources/insuranceRefunds/resources/v1/client/update.js +56 -0
- package/serialization/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
- package/serialization/resources/patientPayments/resources/v4/client/create.js +56 -0
- package/serialization/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
- package/serialization/resources/patientPayments/resources/v4/client/delete.js +56 -0
- package/serialization/resources/patientPayments/resources/v4/client/get.d.ts +18 -0
- package/serialization/resources/patientPayments/resources/v4/client/get.js +51 -0
- package/serialization/resources/patientPayments/resources/v4/client/getMulti.d.ts +18 -0
- package/serialization/resources/patientPayments/resources/v4/client/getMulti.js +51 -0
- package/serialization/resources/patientPayments/resources/v4/client/index.d.ts +5 -0
- package/serialization/resources/patientPayments/resources/v4/client/index.js +18 -0
- package/serialization/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
- package/serialization/resources/patientPayments/resources/v4/client/update.js +56 -0
- package/serialization/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
- package/serialization/resources/patientRefunds/resources/v1/client/create.js +56 -0
- package/serialization/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
- package/serialization/resources/patientRefunds/resources/v1/client/delete.js +56 -0
- package/serialization/resources/patientRefunds/resources/v1/client/get.d.ts +18 -0
- package/serialization/resources/patientRefunds/resources/v1/client/get.js +51 -0
- package/serialization/resources/patientRefunds/resources/v1/client/getMulti.d.ts +18 -0
- package/serialization/resources/patientRefunds/resources/v1/client/getMulti.js +51 -0
- package/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +5 -0
- package/serialization/resources/patientRefunds/resources/v1/client/index.js +18 -0
- package/serialization/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
- package/serialization/resources/patientRefunds/resources/v1/client/update.js +56 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
|
@@ -91,7 +91,7 @@ class V1 {
|
|
|
91
91
|
Authorization: await this._getAuthorizationHeader(),
|
|
92
92
|
"X-Fern-Language": "JavaScript",
|
|
93
93
|
"X-Fern-SDK-Name": "candidhealth",
|
|
94
|
-
"X-Fern-SDK-Version": "0.17.
|
|
94
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
95
95
|
},
|
|
96
96
|
contentType: "application/json",
|
|
97
97
|
queryParameters: _queryParams,
|
|
@@ -124,7 +124,7 @@ class V1 {
|
|
|
124
124
|
Authorization: await this._getAuthorizationHeader(),
|
|
125
125
|
"X-Fern-Language": "JavaScript",
|
|
126
126
|
"X-Fern-SDK-Name": "candidhealth",
|
|
127
|
-
"X-Fern-SDK-Version": "0.17.
|
|
127
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
128
128
|
},
|
|
129
129
|
contentType: "application/json",
|
|
130
130
|
timeoutMs: 60000,
|
|
@@ -158,7 +158,7 @@ class V1 {
|
|
|
158
158
|
Authorization: await this._getAuthorizationHeader(),
|
|
159
159
|
"X-Fern-Language": "JavaScript",
|
|
160
160
|
"X-Fern-SDK-Name": "candidhealth",
|
|
161
|
-
"X-Fern-SDK-Version": "0.17.
|
|
161
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
162
162
|
},
|
|
163
163
|
contentType: "application/json",
|
|
164
164
|
body: await serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
|
|
@@ -193,7 +193,7 @@ class V1 {
|
|
|
193
193
|
Authorization: await this._getAuthorizationHeader(),
|
|
194
194
|
"X-Fern-Language": "JavaScript",
|
|
195
195
|
"X-Fern-SDK-Name": "candidhealth",
|
|
196
|
-
"X-Fern-SDK-Version": "0.17.
|
|
196
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
197
197
|
},
|
|
198
198
|
contentType: "application/json",
|
|
199
199
|
timeoutMs: 60000,
|
|
@@ -61,7 +61,7 @@ class V2 {
|
|
|
61
61
|
Authorization: await this._getAuthorizationHeader(),
|
|
62
62
|
"X-Fern-Language": "JavaScript",
|
|
63
63
|
"X-Fern-SDK-Name": "candidhealth",
|
|
64
|
-
"X-Fern-SDK-Version": "0.17.
|
|
64
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
65
65
|
},
|
|
66
66
|
contentType: "application/json",
|
|
67
67
|
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.17.
|
|
51
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type ClaimFrequencyTypeCode = "1" | "
|
|
4
|
+
export declare type ClaimFrequencyTypeCode = "1" | "7" | "8";
|
|
5
5
|
export declare const ClaimFrequencyTypeCode: {
|
|
6
6
|
readonly Original: "1";
|
|
7
|
-
readonly Corrected: "6";
|
|
8
7
|
readonly Replacement: "7";
|
|
9
8
|
readonly Void: "8";
|
|
10
9
|
};
|
package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import * as CandidApi from "../../../../..";
|
|
|
15
15
|
* @example
|
|
16
16
|
* {
|
|
17
17
|
* submittedAt: new Date("2023-01-04T12:00:00.000Z"),
|
|
18
|
-
* claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.
|
|
18
|
+
* claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
|
|
19
19
|
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary
|
|
20
20
|
* }
|
|
21
21
|
*/
|
package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import * as CandidApi from "../../../../..";
|
|
|
13
13
|
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary
|
|
14
14
|
* }, {
|
|
15
15
|
* submittedAt: new Date("2023-01-04T12:00:00.000Z"),
|
|
16
|
-
* claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.
|
|
16
|
+
* claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
|
|
17
17
|
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary
|
|
18
18
|
* }]
|
|
19
19
|
* }
|
|
@@ -69,7 +69,9 @@ import * as CandidApi from "../../..";
|
|
|
69
69
|
* dateOfServiceRange: {
|
|
70
70
|
* startDate: CandidApi.Date_("2023-01-01"),
|
|
71
71
|
* endDate: CandidApi.Date_("2023-01-03")
|
|
72
|
-
* }
|
|
72
|
+
* },
|
|
73
|
+
* dateOfService: "2023-01-01",
|
|
74
|
+
* endDateOfService: "2023-01-03"
|
|
73
75
|
* }],
|
|
74
76
|
* eras: [{
|
|
75
77
|
* eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
|
|
@@ -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.17.
|
|
52
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
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.17.
|
|
139
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
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.17.
|
|
172
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
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.17.
|
|
204
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
205
205
|
},
|
|
206
206
|
contentType: "application/json",
|
|
207
207
|
timeoutMs: 60000,
|
|
@@ -239,7 +239,7 @@ class V2 {
|
|
|
239
239
|
Authorization: await this._getAuthorizationHeader(),
|
|
240
240
|
"X-Fern-Language": "JavaScript",
|
|
241
241
|
"X-Fern-SDK-Name": "candidhealth",
|
|
242
|
-
"X-Fern-SDK-Version": "0.17.
|
|
242
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
243
243
|
},
|
|
244
244
|
contentType: "application/json",
|
|
245
245
|
body: await serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, {
|
|
@@ -64,7 +64,7 @@ class V2 {
|
|
|
64
64
|
Authorization: await this._getAuthorizationHeader(),
|
|
65
65
|
"X-Fern-Language": "JavaScript",
|
|
66
66
|
"X-Fern-SDK-Name": "candidhealth",
|
|
67
|
-
"X-Fern-SDK-Version": "0.17.
|
|
67
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
68
68
|
},
|
|
69
69
|
contentType: "application/json",
|
|
70
70
|
body: request,
|
|
@@ -115,7 +115,7 @@ class V2 {
|
|
|
115
115
|
Authorization: await this._getAuthorizationHeader(),
|
|
116
116
|
"X-Fern-Language": "JavaScript",
|
|
117
117
|
"X-Fern-SDK-Name": "candidhealth",
|
|
118
|
-
"X-Fern-SDK-Version": "0.17.
|
|
118
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
119
119
|
},
|
|
120
120
|
contentType: "application/json",
|
|
121
121
|
timeoutMs: 60000,
|
|
@@ -42,7 +42,7 @@ class V4 {
|
|
|
42
42
|
this.options = options;
|
|
43
43
|
}
|
|
44
44
|
async getAll(request = {}) {
|
|
45
|
-
const { limit, claimStatus, sort, pageToken, dateOfServiceMin, dateOfServiceMax, primaryPayerNames, searchTerm, externalId, diagnosesUpdatedSince, tagIds, workQueueId, billableStatus, responsibleParty, ownerOfNextAction, } = request;
|
|
45
|
+
const { limit, claimStatus, sort, pageToken, dateOfServiceMin, dateOfServiceMax, primaryPayerNames, searchTerm, externalId, diagnosesUpdatedSince, tagIds, workQueueId, billableStatus, responsibleParty, ownerOfNextAction, patientExternalId, } = request;
|
|
46
46
|
const _queryParams = new url_search_params_1.default();
|
|
47
47
|
if (limit != null) {
|
|
48
48
|
_queryParams.append("limit", limit.toString());
|
|
@@ -96,6 +96,9 @@ class V4 {
|
|
|
96
96
|
if (ownerOfNextAction != null) {
|
|
97
97
|
_queryParams.append("owner_of_next_action", ownerOfNextAction);
|
|
98
98
|
}
|
|
99
|
+
if (patientExternalId != null) {
|
|
100
|
+
_queryParams.append("patient_external_id", patientExternalId);
|
|
101
|
+
}
|
|
99
102
|
const _response = await core.fetcher({
|
|
100
103
|
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/encounters/v4"),
|
|
101
104
|
method: "GET",
|
|
@@ -103,7 +106,7 @@ class V4 {
|
|
|
103
106
|
Authorization: await this._getAuthorizationHeader(),
|
|
104
107
|
"X-Fern-Language": "JavaScript",
|
|
105
108
|
"X-Fern-SDK-Name": "candidhealth",
|
|
106
|
-
"X-Fern-SDK-Version": "0.17.
|
|
109
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
107
110
|
},
|
|
108
111
|
contentType: "application/json",
|
|
109
112
|
queryParameters: _queryParams,
|
|
@@ -133,7 +136,7 @@ class V4 {
|
|
|
133
136
|
Authorization: await this._getAuthorizationHeader(),
|
|
134
137
|
"X-Fern-Language": "JavaScript",
|
|
135
138
|
"X-Fern-SDK-Name": "candidhealth",
|
|
136
|
-
"X-Fern-SDK-Version": "0.17.
|
|
139
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
137
140
|
},
|
|
138
141
|
contentType: "application/json",
|
|
139
142
|
timeoutMs: 60000,
|
|
@@ -162,7 +165,7 @@ class V4 {
|
|
|
162
165
|
Authorization: await this._getAuthorizationHeader(),
|
|
163
166
|
"X-Fern-Language": "JavaScript",
|
|
164
167
|
"X-Fern-SDK-Name": "candidhealth",
|
|
165
|
-
"X-Fern-SDK-Version": "0.17.
|
|
168
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
166
169
|
},
|
|
167
170
|
contentType: "application/json",
|
|
168
171
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -213,7 +216,7 @@ class V4 {
|
|
|
213
216
|
Authorization: await this._getAuthorizationHeader(),
|
|
214
217
|
"X-Fern-Language": "JavaScript",
|
|
215
218
|
"X-Fern-SDK-Name": "candidhealth",
|
|
216
|
-
"X-Fern-SDK-Version": "0.17.
|
|
219
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
217
220
|
},
|
|
218
221
|
contentType: "application/json",
|
|
219
222
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../../..";
|
|
5
5
|
export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
|
|
6
|
+
/**
|
|
7
|
+
* Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
|
8
|
+
* This date must be the local date in the timezone where the service occurred.
|
|
9
|
+
* Box 24a on the CMS-1500 claim form.
|
|
10
|
+
* If service occurred over a range of dates, this should be the start date.
|
|
11
|
+
* date_of_service must be defined on either the encounter or the service lines but not both.
|
|
12
|
+
* If there are greater than zero service lines, it is recommended to specify date_of_service on the service_line instead of on the encounter to prepare for future API versions.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
dateOfService?: CandidApi.Date_;
|
|
16
|
+
/**
|
|
17
|
+
* Date formatted as YYYY-MM-DD; eg: 2019-08-25.
|
|
18
|
+
* This date must be the local date in the timezone where the service occurred.
|
|
19
|
+
* If omitted, the Encounter is assumed to be for a single day.
|
|
20
|
+
* Must not be temporally before the date_of_service field.
|
|
21
|
+
* If there are greater than zero service lines, it is recommended to specify end_date_of_service on the service_line instead of on the encounter to prepare for future API versions.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
endDateOfService?: CandidApi.Date_;
|
|
6
25
|
/**
|
|
7
26
|
* Contains the identification information of the individual receiving medical services.
|
|
8
27
|
*
|
|
@@ -17,6 +17,7 @@ export interface EncounterUpdate {
|
|
|
17
17
|
* This date must be the local date in the timezone where the service occurred.
|
|
18
18
|
* Box 24a on the CMS-1500 claim form.
|
|
19
19
|
* If service occurred over a range of dates, this should be the start date.
|
|
20
|
+
* If service lines have distinct date_of_service values, updating the encounter's date_of_service will fail. If all service line date_of_service values are the same, updating the encounter's date_of_service will update all service line date_of_service values.
|
|
20
21
|
*
|
|
21
22
|
*/
|
|
22
23
|
dateOfService?: CandidApi.Date_;
|
|
@@ -73,6 +74,7 @@ export interface EncounterUpdate {
|
|
|
73
74
|
* This date must be the local date in the timezone where the service occurred.
|
|
74
75
|
* If omitted, the Encounter is assumed to be for a single day.
|
|
75
76
|
* Must not be temporally before the date_of_service field.
|
|
77
|
+
* If service lines have distinct end_date_of_service values, updating the encounter's end_date_of_service will fail. If all service line end_date_of_service values are the same, updating the encounter's end_date_of_service will update all service line date_of_service values.
|
|
76
78
|
*
|
|
77
79
|
*/
|
|
78
80
|
endDateOfService?: CandidApi.Date_;
|
package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts
CHANGED
|
@@ -59,4 +59,8 @@ export interface GetAllEncountersRequest {
|
|
|
59
59
|
* The party who is responsible for taking the next action on an Encounter, as defined by ownership of open Tasks.
|
|
60
60
|
*/
|
|
61
61
|
ownerOfNextAction?: CandidApi.encounters.v4.EncounterOwnerOfNextActionType;
|
|
62
|
+
/**
|
|
63
|
+
* The patient ID from the external EMR platform for the patient
|
|
64
|
+
*/
|
|
65
|
+
patientExternalId?: string;
|
|
62
66
|
}
|
|
@@ -71,7 +71,9 @@ import * as CandidApi from "../../../../..";
|
|
|
71
71
|
* dateOfServiceRange: {
|
|
72
72
|
* startDate: CandidApi.Date_("2023-01-01"),
|
|
73
73
|
* endDate: CandidApi.Date_("2023-01-03")
|
|
74
|
-
* }
|
|
74
|
+
* },
|
|
75
|
+
* dateOfService: "2023-01-01",
|
|
76
|
+
* endDateOfService: "2023-01-03"
|
|
75
77
|
* }],
|
|
76
78
|
* eras: [{
|
|
77
79
|
* eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
|
|
@@ -376,6 +378,21 @@ import * as CandidApi from "../../../../..";
|
|
|
376
378
|
* }
|
|
377
379
|
*/
|
|
378
380
|
export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
|
|
381
|
+
/**
|
|
382
|
+
* Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
|
383
|
+
* This date must be the local date in the timezone where the service occurred.
|
|
384
|
+
* Box 24a on the CMS-1500 claim form.
|
|
385
|
+
* If service occurred over a range of dates, this should be the start date.
|
|
386
|
+
* date_of_service must be defined on either the encounter or the service lines but not both.
|
|
387
|
+
*/
|
|
388
|
+
dateOfService: CandidApi.Date_;
|
|
389
|
+
/**
|
|
390
|
+
* Date formatted as YYYY-MM-DD; eg: 2019-08-25.
|
|
391
|
+
* This date must be the local date in the timezone where the service occurred.
|
|
392
|
+
* If omitted, the Encounter is assumed to be for a single day.
|
|
393
|
+
* Must not be temporally before the date_of_service field.
|
|
394
|
+
*/
|
|
395
|
+
endDateOfService?: CandidApi.Date_;
|
|
379
396
|
encounterId: CandidApi.EncounterId;
|
|
380
397
|
claims: CandidApi.Claim[];
|
|
381
398
|
/** Contains the identification information of the individual receiving medical services. */
|
|
@@ -9,20 +9,6 @@ export interface EncounterBase {
|
|
|
9
9
|
* This field should not contain PHI.
|
|
10
10
|
*/
|
|
11
11
|
externalId: CandidApi.EncounterExternalId;
|
|
12
|
-
/**
|
|
13
|
-
* Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
|
14
|
-
* This date must be the local date in the timezone where the service occurred.
|
|
15
|
-
* Box 24a on the CMS-1500 claim form.
|
|
16
|
-
* If service occurred over a range of dates, this should be the start date.
|
|
17
|
-
*/
|
|
18
|
-
dateOfService: CandidApi.Date_;
|
|
19
|
-
/**
|
|
20
|
-
* Date formatted as YYYY-MM-DD; eg: 2019-08-25.
|
|
21
|
-
* This date must be the local date in the timezone where the service occurred.
|
|
22
|
-
* If omitted, the Encounter is assumed to be for a single day.
|
|
23
|
-
* Must not be temporally before the date_of_service field.
|
|
24
|
-
*/
|
|
25
|
-
endDateOfService?: CandidApi.Date_;
|
|
26
12
|
/** Box 23 on the CMS-1500 claim form. */
|
|
27
13
|
priorAuthorizationNumber?: CandidApi.encounters.v4.PriorAuthorizationNumber;
|
|
28
14
|
/**
|
|
@@ -72,7 +72,9 @@ import * as CandidApi from "../../../../..";
|
|
|
72
72
|
* dateOfServiceRange: {
|
|
73
73
|
* startDate: CandidApi.Date_("2023-01-01"),
|
|
74
74
|
* endDate: CandidApi.Date_("2023-01-03")
|
|
75
|
-
* }
|
|
75
|
+
* },
|
|
76
|
+
* dateOfService: "2023-01-01",
|
|
77
|
+
* endDateOfService: "2023-01-03"
|
|
76
78
|
* }],
|
|
77
79
|
* eras: [{
|
|
78
80
|
* eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
|
|
@@ -51,7 +51,7 @@ class V1 {
|
|
|
51
51
|
Authorization: await this._getAuthorizationHeader(),
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "candidhealth",
|
|
54
|
-
"X-Fern-SDK-Version": "0.17.
|
|
54
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
55
55
|
},
|
|
56
56
|
contentType: "application/json",
|
|
57
57
|
body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -53,7 +53,7 @@ class V2 {
|
|
|
53
53
|
Authorization: await this._getAuthorizationHeader(),
|
|
54
54
|
"X-Fern-Language": "JavaScript",
|
|
55
55
|
"X-Fern-SDK-Name": "candidhealth",
|
|
56
|
-
"X-Fern-SDK-Version": "0.17.
|
|
56
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
57
57
|
},
|
|
58
58
|
contentType: "application/json",
|
|
59
59
|
body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
|
|
@@ -107,7 +107,7 @@ class V2 {
|
|
|
107
107
|
Authorization: await this._getAuthorizationHeader(),
|
|
108
108
|
"X-Fern-Language": "JavaScript",
|
|
109
109
|
"X-Fern-SDK-Name": "candidhealth",
|
|
110
|
-
"X-Fern-SDK-Version": "0.17.
|
|
110
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
111
111
|
},
|
|
112
112
|
contentType: "application/json",
|
|
113
113
|
body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
|
|
@@ -67,7 +67,7 @@ class V3 {
|
|
|
67
67
|
Authorization: await this._getAuthorizationHeader(),
|
|
68
68
|
"X-Fern-Language": "JavaScript",
|
|
69
69
|
"X-Fern-SDK-Name": "candidhealth",
|
|
70
|
-
"X-Fern-SDK-Version": "0.17.
|
|
70
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
71
71
|
},
|
|
72
72
|
contentType: "application/json",
|
|
73
73
|
queryParameters: _queryParams,
|
|
@@ -51,7 +51,7 @@ class V1 {
|
|
|
51
51
|
Authorization: await this._getAuthorizationHeader(),
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "candidhealth",
|
|
54
|
-
"X-Fern-SDK-Version": "0.17.
|
|
54
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
55
55
|
},
|
|
56
56
|
contentType: "application/json",
|
|
57
57
|
body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
|
|
@@ -100,7 +100,7 @@ class V1 {
|
|
|
100
100
|
Authorization: await this._getAuthorizationHeader(),
|
|
101
101
|
"X-Fern-Language": "JavaScript",
|
|
102
102
|
"X-Fern-SDK-Name": "candidhealth",
|
|
103
|
-
"X-Fern-SDK-Version": "0.17.
|
|
103
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
104
104
|
},
|
|
105
105
|
contentType: "application/json",
|
|
106
106
|
timeoutMs: 60000,
|
|
@@ -132,7 +132,7 @@ class V1 {
|
|
|
132
132
|
Authorization: await this._getAuthorizationHeader(),
|
|
133
133
|
"X-Fern-Language": "JavaScript",
|
|
134
134
|
"X-Fern-SDK-Name": "candidhealth",
|
|
135
|
-
"X-Fern-SDK-Version": "0.17.
|
|
135
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
136
136
|
},
|
|
137
137
|
contentType: "application/json",
|
|
138
138
|
body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
|
|
@@ -51,7 +51,7 @@ class V1 {
|
|
|
51
51
|
Authorization: await this._getAuthorizationHeader(),
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "candidhealth",
|
|
54
|
-
"X-Fern-SDK-Version": "0.17.
|
|
54
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
55
55
|
},
|
|
56
56
|
contentType: "application/json",
|
|
57
57
|
timeoutMs: 60000,
|
|
@@ -83,7 +83,7 @@ class V1 {
|
|
|
83
83
|
Authorization: await this._getAuthorizationHeader(),
|
|
84
84
|
"X-Fern-Language": "JavaScript",
|
|
85
85
|
"X-Fern-SDK-Name": "candidhealth",
|
|
86
|
-
"X-Fern-SDK-Version": "0.17.
|
|
86
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
87
87
|
},
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
|
|
@@ -132,7 +132,7 @@ class V1 {
|
|
|
132
132
|
Authorization: await this._getAuthorizationHeader(),
|
|
133
133
|
"X-Fern-Language": "JavaScript",
|
|
134
134
|
"X-Fern-SDK-Name": "candidhealth",
|
|
135
|
-
"X-Fern-SDK-Version": "0.17.
|
|
135
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
136
136
|
},
|
|
137
137
|
contentType: "application/json",
|
|
138
138
|
timeoutMs: 60000,
|
|
@@ -78,7 +78,7 @@ class V1 {
|
|
|
78
78
|
Authorization: await this._getAuthorizationHeader(),
|
|
79
79
|
"X-Fern-Language": "JavaScript",
|
|
80
80
|
"X-Fern-SDK-Name": "candidhealth",
|
|
81
|
-
"X-Fern-SDK-Version": "0.17.
|
|
81
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
82
82
|
},
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
@@ -127,7 +127,7 @@ class V1 {
|
|
|
127
127
|
Authorization: await this._getAuthorizationHeader(),
|
|
128
128
|
"X-Fern-Language": "JavaScript",
|
|
129
129
|
"X-Fern-SDK-Name": "candidhealth",
|
|
130
|
-
"X-Fern-SDK-Version": "0.17.
|
|
130
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
131
131
|
},
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
timeoutMs: 60000,
|
|
@@ -176,7 +176,7 @@ class V1 {
|
|
|
176
176
|
Authorization: await this._getAuthorizationHeader(),
|
|
177
177
|
"X-Fern-Language": "JavaScript",
|
|
178
178
|
"X-Fern-SDK-Name": "candidhealth",
|
|
179
|
-
"X-Fern-SDK-Version": "0.17.
|
|
179
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
180
180
|
},
|
|
181
181
|
contentType: "application/json",
|
|
182
182
|
body: await serializers.insurancePayments.v1.InsurancePaymentCreate.jsonOrThrow(request, {
|
|
@@ -197,7 +197,9 @@ class V1 {
|
|
|
197
197
|
}
|
|
198
198
|
if (_response.error.reason === "status-code") {
|
|
199
199
|
switch (_response.error.body?.errorName) {
|
|
200
|
+
case "EntityNotFoundError":
|
|
200
201
|
case "UnauthorizedError":
|
|
202
|
+
case "UnprocessableEntityError":
|
|
201
203
|
return {
|
|
202
204
|
ok: false,
|
|
203
205
|
error: await serializers.insurancePayments.v1.create.Error.parseOrThrow(_response.error.body, {
|
|
@@ -226,7 +228,7 @@ class V1 {
|
|
|
226
228
|
Authorization: await this._getAuthorizationHeader(),
|
|
227
229
|
"X-Fern-Language": "JavaScript",
|
|
228
230
|
"X-Fern-SDK-Name": "candidhealth",
|
|
229
|
-
"X-Fern-SDK-Version": "0.17.
|
|
231
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
230
232
|
},
|
|
231
233
|
contentType: "application/json",
|
|
232
234
|
body: await serializers.insurancePayments.v1.InsurancePaymentUpdate.jsonOrThrow(request, {
|
|
@@ -249,6 +251,7 @@ class V1 {
|
|
|
249
251
|
switch (_response.error.body?.errorName) {
|
|
250
252
|
case "EntityNotFoundError":
|
|
251
253
|
case "UnauthorizedError":
|
|
254
|
+
case "UnprocessableEntityError":
|
|
252
255
|
return {
|
|
253
256
|
ok: false,
|
|
254
257
|
error: await serializers.insurancePayments.v1.update.Error.parseOrThrow(_response.error.body, {
|
|
@@ -278,7 +281,7 @@ class V1 {
|
|
|
278
281
|
Authorization: await this._getAuthorizationHeader(),
|
|
279
282
|
"X-Fern-Language": "JavaScript",
|
|
280
283
|
"X-Fern-SDK-Name": "candidhealth",
|
|
281
|
-
"X-Fern-SDK-Version": "0.17.
|
|
284
|
+
"X-Fern-SDK-Version": "0.17.5",
|
|
282
285
|
},
|
|
283
286
|
contentType: "application/json",
|
|
284
287
|
timeoutMs: 60000,
|
|
@@ -293,6 +296,7 @@ class V1 {
|
|
|
293
296
|
switch (_response.error.body?.errorName) {
|
|
294
297
|
case "EntityNotFoundError":
|
|
295
298
|
case "UnauthorizedError":
|
|
299
|
+
case "UnprocessableEntityError":
|
|
296
300
|
return {
|
|
297
301
|
ok: false,
|
|
298
302
|
error: await serializers.insurancePayments.v1.delete.Error.parseOrThrow(_response.error.body, {
|
|
@@ -3,12 +3,20 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.insurancePayments.v1.create.Error.UnauthorizedError | CandidApi.insurancePayments.v1.create.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.insurancePayments.v1.create.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.create.Error.UnauthorizedError | CandidApi.insurancePayments.v1.create.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.create.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
|
+
interface EntityNotFoundError extends _Utils {
|
|
9
|
+
errorName: "EntityNotFoundError";
|
|
10
|
+
content: CandidApi.EntityNotFoundErrorMessage;
|
|
11
|
+
}
|
|
8
12
|
interface UnauthorizedError extends _Utils {
|
|
9
13
|
errorName: "UnauthorizedError";
|
|
10
14
|
content: CandidApi.UnauthorizedErrorMessage;
|
|
11
15
|
}
|
|
16
|
+
interface UnprocessableEntityError extends _Utils {
|
|
17
|
+
errorName: "UnprocessableEntityError";
|
|
18
|
+
content: CandidApi.UnprocessableEntityErrorMessage;
|
|
19
|
+
}
|
|
12
20
|
interface _Unknown extends _Utils {
|
|
13
21
|
errorName: void;
|
|
14
22
|
content: core.Fetcher.Error;
|
|
@@ -17,12 +25,16 @@ export declare namespace Error {
|
|
|
17
25
|
_visit: <_Result>(visitor: CandidApi.insurancePayments.v1.create.Error._Visitor<_Result>) => _Result;
|
|
18
26
|
}
|
|
19
27
|
interface _Visitor<_Result> {
|
|
28
|
+
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
20
29
|
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
30
|
+
unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
|
|
21
31
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
32
|
}
|
|
23
33
|
}
|
|
24
34
|
export declare const Error: {
|
|
35
|
+
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.create.Error.EntityNotFoundError;
|
|
25
36
|
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.create.Error.UnauthorizedError;
|
|
37
|
+
readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.create.Error.UnprocessableEntityError;
|
|
26
38
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.create.Error._Unknown;
|
|
27
39
|
readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.create.Error, visitor: CandidApi.insurancePayments.v1.create.Error._Visitor<_Result>) => _Result;
|
|
28
40
|
};
|
|
@@ -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
|
+
entityNotFoundError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "EntityNotFoundError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.insurancePayments.v1.create.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
32
41
|
unauthorizedError: (value) => {
|
|
33
42
|
return {
|
|
34
43
|
content: value,
|
|
@@ -38,6 +47,15 @@ exports.Error = {
|
|
|
38
47
|
},
|
|
39
48
|
};
|
|
40
49
|
},
|
|
50
|
+
unprocessableEntityError: (value) => {
|
|
51
|
+
return {
|
|
52
|
+
content: value,
|
|
53
|
+
errorName: "UnprocessableEntityError",
|
|
54
|
+
_visit: function (visitor) {
|
|
55
|
+
return CandidApi.insurancePayments.v1.create.Error._visit(this, visitor);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
},
|
|
41
59
|
_unknown: (fetcherError) => {
|
|
42
60
|
return {
|
|
43
61
|
errorName: undefined,
|
|
@@ -49,8 +67,12 @@ exports.Error = {
|
|
|
49
67
|
},
|
|
50
68
|
_visit: (value, visitor) => {
|
|
51
69
|
switch (value.errorName) {
|
|
70
|
+
case "EntityNotFoundError":
|
|
71
|
+
return visitor.entityNotFoundError(value.content);
|
|
52
72
|
case "UnauthorizedError":
|
|
53
73
|
return visitor.unauthorizedError(value.content);
|
|
74
|
+
case "UnprocessableEntityError":
|
|
75
|
+
return visitor.unprocessableEntityError(value.content);
|
|
54
76
|
default:
|
|
55
77
|
return visitor._other(value);
|
|
56
78
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
5
|
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.insurancePayments.v1.delete.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError | CandidApi.insurancePayments.v1.delete.Error._Unknown;
|
|
6
|
+
export declare type Error = CandidApi.insurancePayments.v1.delete.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError | CandidApi.insurancePayments.v1.delete.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.delete.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface EntityNotFoundError extends _Utils {
|
|
9
9
|
errorName: "EntityNotFoundError";
|
|
@@ -13,6 +13,10 @@ export declare namespace Error {
|
|
|
13
13
|
errorName: "UnauthorizedError";
|
|
14
14
|
content: CandidApi.UnauthorizedErrorMessage;
|
|
15
15
|
}
|
|
16
|
+
interface UnprocessableEntityError extends _Utils {
|
|
17
|
+
errorName: "UnprocessableEntityError";
|
|
18
|
+
content: CandidApi.UnprocessableEntityErrorMessage;
|
|
19
|
+
}
|
|
16
20
|
interface _Unknown extends _Utils {
|
|
17
21
|
errorName: void;
|
|
18
22
|
content: core.Fetcher.Error;
|
|
@@ -23,12 +27,14 @@ export declare namespace Error {
|
|
|
23
27
|
interface _Visitor<_Result> {
|
|
24
28
|
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
25
29
|
unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
|
|
30
|
+
unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
|
|
26
31
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
27
32
|
}
|
|
28
33
|
}
|
|
29
34
|
export declare const Error: {
|
|
30
35
|
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.EntityNotFoundError;
|
|
31
36
|
readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError;
|
|
37
|
+
readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.UnprocessableEntityError;
|
|
32
38
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.delete.Error._Unknown;
|
|
33
39
|
readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.delete.Error, visitor: CandidApi.insurancePayments.v1.delete.Error._Visitor<_Result>) => _Result;
|
|
34
40
|
};
|