candidhealth 0.6.2 → 0.6.4
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/auth/resources/v2/types/AuthGetTokenRequest.d.ts +9 -0
- package/api/resources/auth/resources/v2/types/AuthGetTokenResponse.d.ts +9 -0
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/types/BillingNote.d.ts +16 -0
- package/api/resources/claims/types/Claim.d.ts +76 -0
- package/api/resources/commons/types/Email.d.ts +4 -0
- package/api/resources/commons/types/FacilityTypeCode.d.ts +151 -1
- package/api/resources/commons/types/PageToken.d.ts +4 -0
- package/api/resources/commons/types/PatientRelationshipToInsuredCodeAll.d.ts +73 -1
- package/api/resources/commons/types/PhoneNumber.d.ts +7 -0
- package/api/resources/commons/types/State.d.ts +8 -1
- package/api/resources/commons/types/State.js +7 -0
- package/api/resources/commons/types/StreetAddressLongZip.d.ts +11 -0
- package/api/resources/commons/types/StreetAddressShortZip.d.ts +11 -0
- package/api/resources/diagnoses/types/Diagnosis.d.ts +12 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +20 -0
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +25 -3
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +39 -0
- package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +30 -5
- package/api/resources/encounters/resources/v4/types/ClinicalNoteCategory.d.ts +13 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +409 -1
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -1
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +370 -0
- package/api/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +8 -0
- package/api/resources/encounters/resources/v4/types/IntakeQuestion.d.ts +15 -0
- package/api/resources/encounters/resources/v4/types/IntakeResponseAndFollowUps.d.ts +11 -0
- package/api/resources/encounters/resources/v4/types/Intervention.d.ts +23 -2
- package/api/resources/encounters/resources/v4/types/Lab.d.ts +8 -0
- package/api/resources/encounters/resources/v4/types/Medication.d.ts +11 -0
- package/api/resources/encounters/resources/v4/types/PatientHistoryCategory.d.ts +18 -0
- package/api/resources/encounters/resources/v4/types/Vitals.d.ts +10 -0
- package/api/resources/era/types/Era.d.ts +8 -0
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +9 -0
- package/api/resources/expectedNetworkStatus/resources/v1/types/ExpectedNetworkStatusResponse.d.ts +1 -0
- package/api/resources/exports/resources/v3/client/Client.d.ts +1 -1
- package/api/resources/exports/resources/v3/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/types/GetExportsResponse.d.ts +9 -0
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +5 -0
- package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +25 -0
- package/api/resources/identifiers/types/Identifier.d.ts +12 -0
- package/api/resources/individual/types/Patient.d.ts +26 -0
- package/api/resources/individual/types/Subscriber.d.ts +33 -0
- package/api/resources/insuranceCard/types/InsuranceCard.d.ts +17 -0
- package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +35 -1
- package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +34 -0
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +6 -6
- package/api/resources/organizationProviders/resources/v3/types/OrganizationProviderPageV2.d.ts +29 -0
- package/api/resources/organizationProviders/resources/v3/types/OrganizationProviderV2.d.ts +29 -2
- package/api/resources/patientPayments/resources/v3/types/PatientPayment.d.ts +17 -0
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.d.ts +1 -1
- package/api/resources/payers/resources/v3/types/Payer.d.ts +11 -3
- package/api/resources/payers/resources/v3/types/PayerPage.d.ts +10 -0
- package/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +15 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +64 -0
- package/api/resources/tags/types/Tag.d.ts +9 -0
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/auth/resources/v2/types/AuthGetTokenRequest.d.ts +9 -0
- package/dist/api/resources/auth/resources/v2/types/AuthGetTokenResponse.d.ts +9 -0
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/types/BillingNote.d.ts +16 -0
- package/dist/api/resources/claims/types/Claim.d.ts +76 -0
- package/dist/api/resources/commons/types/Email.d.ts +4 -0
- package/dist/api/resources/commons/types/FacilityTypeCode.d.ts +151 -1
- package/dist/api/resources/commons/types/PageToken.d.ts +4 -0
- package/dist/api/resources/commons/types/PatientRelationshipToInsuredCodeAll.d.ts +73 -1
- package/dist/api/resources/commons/types/PhoneNumber.d.ts +7 -0
- package/dist/api/resources/commons/types/State.d.ts +8 -1
- package/dist/api/resources/commons/types/State.js +7 -0
- package/dist/api/resources/commons/types/StreetAddressLongZip.d.ts +11 -0
- package/dist/api/resources/commons/types/StreetAddressShortZip.d.ts +11 -0
- package/dist/api/resources/diagnoses/types/Diagnosis.d.ts +12 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +20 -0
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +25 -3
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +39 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +30 -5
- package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategory.d.ts +13 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +409 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +370 -0
- package/dist/api/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +8 -0
- package/dist/api/resources/encounters/resources/v4/types/IntakeQuestion.d.ts +15 -0
- package/dist/api/resources/encounters/resources/v4/types/IntakeResponseAndFollowUps.d.ts +11 -0
- package/dist/api/resources/encounters/resources/v4/types/Intervention.d.ts +23 -2
- package/dist/api/resources/encounters/resources/v4/types/Lab.d.ts +8 -0
- package/dist/api/resources/encounters/resources/v4/types/Medication.d.ts +11 -0
- package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategory.d.ts +18 -0
- package/dist/api/resources/encounters/resources/v4/types/Vitals.d.ts +10 -0
- package/dist/api/resources/era/types/Era.d.ts +8 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +9 -0
- package/dist/api/resources/expectedNetworkStatus/resources/v1/types/ExpectedNetworkStatusResponse.d.ts +1 -0
- package/dist/api/resources/exports/resources/v3/client/Client.d.ts +1 -1
- package/dist/api/resources/exports/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/types/GetExportsResponse.d.ts +9 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +5 -0
- package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +25 -0
- package/dist/api/resources/identifiers/types/Identifier.d.ts +12 -0
- package/dist/api/resources/individual/types/Patient.d.ts +26 -0
- package/dist/api/resources/individual/types/Subscriber.d.ts +33 -0
- package/dist/api/resources/insuranceCard/types/InsuranceCard.d.ts +17 -0
- package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +35 -1
- package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +34 -0
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +6 -6
- package/dist/api/resources/organizationProviders/resources/v3/types/OrganizationProviderPageV2.d.ts +29 -0
- package/dist/api/resources/organizationProviders/resources/v3/types/OrganizationProviderV2.d.ts +29 -2
- package/dist/api/resources/patientPayments/resources/v3/types/PatientPayment.d.ts +17 -0
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.d.ts +1 -1
- package/dist/api/resources/payers/resources/v3/types/Payer.d.ts +11 -3
- package/dist/api/resources/payers/resources/v3/types/PayerPage.d.ts +10 -0
- package/dist/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +15 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +64 -0
- package/dist/api/resources/tags/types/Tag.d.ts +9 -0
- package/dist/serialization/resources/commons/types/State.d.ts +1 -1
- package/dist/serialization/resources/commons/types/State.js +7 -0
- package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
- package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +34 -0
- package/package.json +1 -1
- package/serialization/resources/commons/types/State.d.ts +1 -1
- package/serialization/resources/commons/types/State.js +7 -0
- package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
- package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +34 -0
|
@@ -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.6.
|
|
65
|
+
"X-Fern-SDK-Version": "0.6.4",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* clientId: "YOUR_CLIENT_ID",
|
|
8
|
+
* clientSecret: "YOUR_CLIENT_SECRET"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
4
11
|
export interface AuthGetTokenRequest {
|
|
12
|
+
/** Your application's Client ID. */
|
|
5
13
|
clientId: string;
|
|
14
|
+
/** Your application's Client Secret. */
|
|
6
15
|
clientSecret: string;
|
|
7
16
|
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* accessToken: "eyJz93a...k4laUWw",
|
|
8
|
+
* expiresIn: 86400,
|
|
9
|
+
* tokenType: "Bearer"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
4
12
|
export interface AuthGetTokenResponse {
|
|
5
13
|
accessToken: string;
|
|
14
|
+
/** Time in seconds. */
|
|
6
15
|
expiresIn: number;
|
|
7
16
|
tokenType: string;
|
|
8
17
|
}
|
|
@@ -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.6.
|
|
51
|
+
"X-Fern-SDK-Version": "0.6.4",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -2,9 +2,25 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* billingNoteId: CandidApi.billingNotes.v2.BillingNoteId("99882EEA-936F-4E71-BC4F-520E4D14E3E2"),
|
|
9
|
+
* encounterId: CandidApi.EncounterId("8BCFB6A8-2876-4111-9E3F-602B541FCF62"),
|
|
10
|
+
* createdAt: new Date("2023-01-01T00:00:00.000Z"),
|
|
11
|
+
* authorAuth0Id: "F0DE3BF9-F9A1-4FA7-BF6B-28C0B46BADD8",
|
|
12
|
+
* authorName: "John Doe",
|
|
13
|
+
* text: "Patient was billed for an MRI."
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
5
16
|
export interface BillingNote extends CandidApi.billingNotes.v2.BillingNoteBase {
|
|
6
17
|
billingNoteId: CandidApi.billingNotes.v2.BillingNoteId;
|
|
7
18
|
encounterId: CandidApi.EncounterId;
|
|
19
|
+
/**
|
|
20
|
+
* An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).
|
|
21
|
+
* For example, 2017-07-21T17:32:28Z.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
8
24
|
createdAt: Date;
|
|
9
25
|
authorAuth0Id?: string;
|
|
10
26
|
authorName?: string;
|
|
@@ -2,6 +2,82 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* claimId: CandidApi.ClaimId("DD9D7F82-37B5-449D-AA63-26925398335B"),
|
|
9
|
+
* status: CandidApi.ClaimStatus.BillerReceived,
|
|
10
|
+
* clearinghouse: "Change Healthcare",
|
|
11
|
+
* clearinghouseClaimId: "5BA7C3AB-2BC2-496C-8B10-6CAC73D0729D",
|
|
12
|
+
* payerClaimId: "9BB9F259-9756-4F16-8F53-9DBB9F7EB1BB",
|
|
13
|
+
* serviceLines: [{
|
|
14
|
+
* modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
|
|
15
|
+
* chargeAmountCents: 10000,
|
|
16
|
+
* allowedAmountCents: 8000,
|
|
17
|
+
* insuranceBalanceCents: 0,
|
|
18
|
+
* patientBalanceCents: 2000,
|
|
19
|
+
* paidAmountCents: 8000,
|
|
20
|
+
* patientResponsibilityCents: 2000,
|
|
21
|
+
* diagnosisIdZero: CandidApi.DiagnosisId("4AC84BCD-12F5-4F86-A57B-E06749127C98"),
|
|
22
|
+
* diagnosisIdOne: CandidApi.DiagnosisId("EEA5CA5A-8B43-45FD-8CBD-C6CC1103E759"),
|
|
23
|
+
* diagnosisIdTwo: CandidApi.DiagnosisId("5C4AA029-2DB9-4202-916E-E93C708F65FF"),
|
|
24
|
+
* diagnosisIdThree: CandidApi.DiagnosisId("81795126-A3AC-443C-B47E-7259A16AB4A2"),
|
|
25
|
+
* serviceLineEraData: {
|
|
26
|
+
* serviceLineAdjustments: [{
|
|
27
|
+
* createdAt: new Date("2023-01-01T00:00:00.000Z"),
|
|
28
|
+
* adjustmentGroupCode: "CO",
|
|
29
|
+
* adjustmentReasonCode: "CO",
|
|
30
|
+
* adjustmentAmountCents: 1000,
|
|
31
|
+
* adjustmentNote: "test_note"
|
|
32
|
+
* }],
|
|
33
|
+
* remittanceAdviceRemarkCodes: ["N362"]
|
|
34
|
+
* },
|
|
35
|
+
* serviceLineManualAdjustments: [{
|
|
36
|
+
* createdAt: new Date("2023-01-01T00:00:00.000Z"),
|
|
37
|
+
* adjustmentGroupCode: "CO",
|
|
38
|
+
* adjustmentReasonCode: "CO",
|
|
39
|
+
* adjustmentAmountCents: 1000,
|
|
40
|
+
* adjustmentNote: "test_note"
|
|
41
|
+
* }],
|
|
42
|
+
* relatedInvoices: [{
|
|
43
|
+
* id: CandidApi.InvoiceId("901BE2F1-41BC-456E-9987-4FE2F84F9D75"),
|
|
44
|
+
* createdAt: new Date("2023-01-01T00:00:00.000Z"),
|
|
45
|
+
* updatedAt: new Date("2023-01-01T00:00:00.000Z"),
|
|
46
|
+
* organzationId: CandidApi.OrganizationId("F13F73D4-4344-46EA-9D93-33BCFFBB9F36"),
|
|
47
|
+
* sourceId: "9B626577-8808-4F28-9ED1-F0DFF0D49BBC",
|
|
48
|
+
* sourceCustomerId: "624D1972-8C69-4C2F-AEFA-10856F734DB3",
|
|
49
|
+
* patientExternalId: CandidApi.PatientExternalId("10FED4D6-4C5A-48DF-838A-EEF45A74788D"),
|
|
50
|
+
* note: "test_note",
|
|
51
|
+
* dueDate: CandidApi.Date_("2023-10-10"),
|
|
52
|
+
* status: CandidApi.InvoiceStatus.Draft,
|
|
53
|
+
* url: "https://example.com",
|
|
54
|
+
* customerInvoiceUrl: "https://example.com",
|
|
55
|
+
* items: [{
|
|
56
|
+
* serviceLineId: CandidApi.ServiceLineId("CED00F23-6E68-4678-9DBC-F5AA2969A565"),
|
|
57
|
+
* amountCents: 500
|
|
58
|
+
* }]
|
|
59
|
+
* }],
|
|
60
|
+
* denialReason: {
|
|
61
|
+
* reason: CandidApi.serviceLines.v2.DenialReasonContent.AuthorizationRequired
|
|
62
|
+
* },
|
|
63
|
+
* placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
|
|
64
|
+
* serviceLineId: CandidApi.ServiceLineId("CED00F23-6E68-4678-9DBC-F5AA2969A565"),
|
|
65
|
+
* procedureCode: "99213",
|
|
66
|
+
* quantity: CandidApi.Decimal("1"),
|
|
67
|
+
* units: CandidApi.ServiceLineUnits.Mj,
|
|
68
|
+
* claimId: CandidApi.ClaimId("026A1FB8-748E-4859-A2D7-3EA9E07D25AE"),
|
|
69
|
+
* dateOfServiceRange: {
|
|
70
|
+
* startDate: CandidApi.Date_("2023-01-01"),
|
|
71
|
+
* endDate: CandidApi.Date_("2023-01-03")
|
|
72
|
+
* }
|
|
73
|
+
* }],
|
|
74
|
+
* eras: [{
|
|
75
|
+
* eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
|
|
76
|
+
* checkNumber: "CHK12345",
|
|
77
|
+
* checkDate: CandidApi.Date_("2023-10-12")
|
|
78
|
+
* }]
|
|
79
|
+
* }
|
|
80
|
+
*/
|
|
5
81
|
export interface Claim {
|
|
6
82
|
claimId: CandidApi.ClaimId;
|
|
7
83
|
status: CandidApi.ClaimStatus;
|
|
@@ -7,7 +7,157 @@
|
|
|
7
7
|
* https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
export declare type FacilityTypeCode =
|
|
10
|
+
export declare type FacilityTypeCode =
|
|
11
|
+
/**
|
|
12
|
+
* Pharmacy */
|
|
13
|
+
"01"
|
|
14
|
+
/**
|
|
15
|
+
* Telehealth */
|
|
16
|
+
| "02"
|
|
17
|
+
/**
|
|
18
|
+
* School */
|
|
19
|
+
| "03"
|
|
20
|
+
/**
|
|
21
|
+
* Homeless Shelter */
|
|
22
|
+
| "04"
|
|
23
|
+
/**
|
|
24
|
+
* Indian Health Service (Free Standing) */
|
|
25
|
+
| "05"
|
|
26
|
+
/**
|
|
27
|
+
* Indian Health Service (Provider Based) */
|
|
28
|
+
| "06"
|
|
29
|
+
/**
|
|
30
|
+
* Tribal Free Standing */
|
|
31
|
+
| "07"
|
|
32
|
+
/**
|
|
33
|
+
* Tribal Provider Based */
|
|
34
|
+
| "08"
|
|
35
|
+
/**
|
|
36
|
+
* Prison or Correctional Facility */
|
|
37
|
+
| "09"
|
|
38
|
+
/**
|
|
39
|
+
* Telehealth Patient Home */
|
|
40
|
+
| "10"
|
|
41
|
+
/**
|
|
42
|
+
* Office */
|
|
43
|
+
| "11"
|
|
44
|
+
/**
|
|
45
|
+
* Home */
|
|
46
|
+
| "12"
|
|
47
|
+
/**
|
|
48
|
+
* Assisted Living Facility */
|
|
49
|
+
| "13"
|
|
50
|
+
/**
|
|
51
|
+
* Group Home */
|
|
52
|
+
| "14"
|
|
53
|
+
/**
|
|
54
|
+
* Mobile Unit */
|
|
55
|
+
| "15"
|
|
56
|
+
/**
|
|
57
|
+
* Temporary Lodging */
|
|
58
|
+
| "16"
|
|
59
|
+
/**
|
|
60
|
+
* Walk-in Retail Health Clinic */
|
|
61
|
+
| "17"
|
|
62
|
+
/**
|
|
63
|
+
* Place of Employment Worksite */
|
|
64
|
+
| "18"
|
|
65
|
+
/**
|
|
66
|
+
* Off Campus Outpatient Hospital */
|
|
67
|
+
| "19"
|
|
68
|
+
/**
|
|
69
|
+
* Urgent Care Facility */
|
|
70
|
+
| "20"
|
|
71
|
+
/**
|
|
72
|
+
* Inpatient Hospital */
|
|
73
|
+
| "21"
|
|
74
|
+
/**
|
|
75
|
+
* Outpatient Hospital */
|
|
76
|
+
| "22"
|
|
77
|
+
/**
|
|
78
|
+
* Emergency Room Hospital */
|
|
79
|
+
| "23"
|
|
80
|
+
/**
|
|
81
|
+
* Ambulatory Surgical Center */
|
|
82
|
+
| "24"
|
|
83
|
+
/**
|
|
84
|
+
* Birthing Center */
|
|
85
|
+
| "25"
|
|
86
|
+
/**
|
|
87
|
+
* Military Treatment Facility */
|
|
88
|
+
| "26"
|
|
89
|
+
/**
|
|
90
|
+
* Skilled Nursing Facility */
|
|
91
|
+
| "31"
|
|
92
|
+
/**
|
|
93
|
+
* Nursing Facility */
|
|
94
|
+
| "32"
|
|
95
|
+
/**
|
|
96
|
+
* Custodial Care Facility */
|
|
97
|
+
| "33"
|
|
98
|
+
/**
|
|
99
|
+
* Hospice */
|
|
100
|
+
| "34"
|
|
101
|
+
/**
|
|
102
|
+
* Ambulance (Land) */
|
|
103
|
+
| "41"
|
|
104
|
+
/**
|
|
105
|
+
* Ambulance (Air or Water) */
|
|
106
|
+
| "42"
|
|
107
|
+
/**
|
|
108
|
+
* Independent Clinic */
|
|
109
|
+
| "49"
|
|
110
|
+
/**
|
|
111
|
+
* Federally Qualified Health Center */
|
|
112
|
+
| "50"
|
|
113
|
+
/**
|
|
114
|
+
* Inpatient Psychiatric Facility */
|
|
115
|
+
| "51"
|
|
116
|
+
/**
|
|
117
|
+
* Psychiatric Facility (Partial Hospitalization) */
|
|
118
|
+
| "52"
|
|
119
|
+
/**
|
|
120
|
+
* Community Mental Health Center */
|
|
121
|
+
| "53"
|
|
122
|
+
/**
|
|
123
|
+
* Intermediate Care Facility/Individuals with Intellectual Disabilities */
|
|
124
|
+
| "54"
|
|
125
|
+
/**
|
|
126
|
+
* Residential Substance Abuse Treatment Facility */
|
|
127
|
+
| "55"
|
|
128
|
+
/**
|
|
129
|
+
* Psychiatric Residential Treatment Center */
|
|
130
|
+
| "56"
|
|
131
|
+
/**
|
|
132
|
+
* Non-residential Substance Abuse Treatment Facility */
|
|
133
|
+
| "57"
|
|
134
|
+
/**
|
|
135
|
+
* Non-residential Opioid Treatment Facility */
|
|
136
|
+
| "58"
|
|
137
|
+
/**
|
|
138
|
+
* Mass Immunization Center */
|
|
139
|
+
| "60"
|
|
140
|
+
/**
|
|
141
|
+
* Comprehensive Inpatient Rehabilitation Facility */
|
|
142
|
+
| "61"
|
|
143
|
+
/**
|
|
144
|
+
* Comprehensive Outpatient Rehabilitation Facility */
|
|
145
|
+
| "62"
|
|
146
|
+
/**
|
|
147
|
+
* End Stage Renal Disease Treatment Facility */
|
|
148
|
+
| "65"
|
|
149
|
+
/**
|
|
150
|
+
* State or Local Public Health Clinic */
|
|
151
|
+
| "71"
|
|
152
|
+
/**
|
|
153
|
+
* Rural Health Clinic */
|
|
154
|
+
| "72"
|
|
155
|
+
/**
|
|
156
|
+
* Independent Laboratory */
|
|
157
|
+
| "81"
|
|
158
|
+
/**
|
|
159
|
+
* Other Unlisted Facility */
|
|
160
|
+
| "99";
|
|
11
161
|
export declare const FacilityTypeCode: {
|
|
12
162
|
readonly Pharmacy: "01";
|
|
13
163
|
readonly Telehealth: "02";
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
|
|
8
|
+
*/
|
|
5
9
|
export declare type PageToken = string & {
|
|
6
10
|
PageToken: void;
|
|
7
11
|
};
|
|
@@ -1,7 +1,79 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type PatientRelationshipToInsuredCodeAll =
|
|
4
|
+
export declare type PatientRelationshipToInsuredCodeAll =
|
|
5
|
+
/**
|
|
6
|
+
* Spouse */
|
|
7
|
+
"01"
|
|
8
|
+
/**
|
|
9
|
+
* Grandparent */
|
|
10
|
+
| "04"
|
|
11
|
+
/**
|
|
12
|
+
* Grandchild */
|
|
13
|
+
| "05"
|
|
14
|
+
/**
|
|
15
|
+
* Niece/Nephew */
|
|
16
|
+
| "07"
|
|
17
|
+
/**
|
|
18
|
+
* Foster Child */
|
|
19
|
+
| "10"
|
|
20
|
+
/**
|
|
21
|
+
* Ward of the Court */
|
|
22
|
+
| "15"
|
|
23
|
+
/**
|
|
24
|
+
* Stepchild */
|
|
25
|
+
| "17"
|
|
26
|
+
/**
|
|
27
|
+
* Self */
|
|
28
|
+
| "18"
|
|
29
|
+
/**
|
|
30
|
+
* Child */
|
|
31
|
+
| "19"
|
|
32
|
+
/**
|
|
33
|
+
* Employee */
|
|
34
|
+
| "20"
|
|
35
|
+
/**
|
|
36
|
+
* Unknown */
|
|
37
|
+
| "21"
|
|
38
|
+
/**
|
|
39
|
+
* Handicapped Dependent */
|
|
40
|
+
| "22"
|
|
41
|
+
/**
|
|
42
|
+
* Sponsored Dependent */
|
|
43
|
+
| "23"
|
|
44
|
+
/**
|
|
45
|
+
* Dependent of Minor Dependent */
|
|
46
|
+
| "24"
|
|
47
|
+
/**
|
|
48
|
+
* Significant Other */
|
|
49
|
+
| "29"
|
|
50
|
+
/**
|
|
51
|
+
* Mother */
|
|
52
|
+
| "32"
|
|
53
|
+
/**
|
|
54
|
+
* Father */
|
|
55
|
+
| "33"
|
|
56
|
+
/**
|
|
57
|
+
* Emancipated Minor */
|
|
58
|
+
| "36"
|
|
59
|
+
/**
|
|
60
|
+
* Organ Donor */
|
|
61
|
+
| "39"
|
|
62
|
+
/**
|
|
63
|
+
* Cadaver Donor */
|
|
64
|
+
| "40"
|
|
65
|
+
/**
|
|
66
|
+
* Injured Plaintiff */
|
|
67
|
+
| "41"
|
|
68
|
+
/**
|
|
69
|
+
* Child (No Financial Responsibility) */
|
|
70
|
+
| "43"
|
|
71
|
+
/**
|
|
72
|
+
* Life Partner */
|
|
73
|
+
| "53"
|
|
74
|
+
/**
|
|
75
|
+
* Other Relationship */
|
|
76
|
+
| "G8";
|
|
5
77
|
export declare const PatientRelationshipToInsuredCodeAll: {
|
|
6
78
|
readonly Spouse: "01";
|
|
7
79
|
readonly Grandparent: "04";
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* number: "1234567890",
|
|
9
|
+
* type: CandidApi.PhoneNumberType.Home
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
5
12
|
export interface PhoneNumber {
|
|
6
13
|
number: string;
|
|
7
14
|
type: CandidApi.PhoneNumberType;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type State = "AA" | "AE" | "AP" | "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DC" | "DE" | "FL" | "GA" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "PR" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY";
|
|
4
|
+
export declare type State = "AA" | "AE" | "AP" | "AL" | "AK" | "AS" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DC" | "DE" | "FL" | "FM" | "GA" | "GU" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MH" | "MI" | "MN" | "MP" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "PR" | "PW" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VI" | "VT" | "VA" | "WA" | "WV" | "WI" | "WY";
|
|
5
5
|
export declare const State: {
|
|
6
6
|
readonly Aa: "AA";
|
|
7
7
|
readonly Ae: "AE";
|
|
8
8
|
readonly Ap: "AP";
|
|
9
9
|
readonly Al: "AL";
|
|
10
10
|
readonly Ak: "AK";
|
|
11
|
+
readonly As: "AS";
|
|
11
12
|
readonly Az: "AZ";
|
|
12
13
|
readonly Ar: "AR";
|
|
13
14
|
readonly Ca: "CA";
|
|
@@ -16,7 +17,9 @@ export declare const State: {
|
|
|
16
17
|
readonly Dc: "DC";
|
|
17
18
|
readonly De: "DE";
|
|
18
19
|
readonly Fl: "FL";
|
|
20
|
+
readonly Fm: "FM";
|
|
19
21
|
readonly Ga: "GA";
|
|
22
|
+
readonly Gu: "GU";
|
|
20
23
|
readonly Hi: "HI";
|
|
21
24
|
readonly Id: "ID";
|
|
22
25
|
readonly Il: "IL";
|
|
@@ -28,8 +31,10 @@ export declare const State: {
|
|
|
28
31
|
readonly Me: "ME";
|
|
29
32
|
readonly Md: "MD";
|
|
30
33
|
readonly Ma: "MA";
|
|
34
|
+
readonly Mh: "MH";
|
|
31
35
|
readonly Mi: "MI";
|
|
32
36
|
readonly Mn: "MN";
|
|
37
|
+
readonly Mp: "MP";
|
|
33
38
|
readonly Ms: "MS";
|
|
34
39
|
readonly Mo: "MO";
|
|
35
40
|
readonly Mt: "MT";
|
|
@@ -46,12 +51,14 @@ export declare const State: {
|
|
|
46
51
|
readonly Or: "OR";
|
|
47
52
|
readonly Pa: "PA";
|
|
48
53
|
readonly Pr: "PR";
|
|
54
|
+
readonly Pw: "PW";
|
|
49
55
|
readonly Ri: "RI";
|
|
50
56
|
readonly Sc: "SC";
|
|
51
57
|
readonly Sd: "SD";
|
|
52
58
|
readonly Tn: "TN";
|
|
53
59
|
readonly Tx: "TX";
|
|
54
60
|
readonly Ut: "UT";
|
|
61
|
+
readonly Vi: "VI";
|
|
55
62
|
readonly Vt: "VT";
|
|
56
63
|
readonly Va: "VA";
|
|
57
64
|
readonly Wa: "WA";
|
|
@@ -10,6 +10,7 @@ exports.State = {
|
|
|
10
10
|
Ap: "AP",
|
|
11
11
|
Al: "AL",
|
|
12
12
|
Ak: "AK",
|
|
13
|
+
As: "AS",
|
|
13
14
|
Az: "AZ",
|
|
14
15
|
Ar: "AR",
|
|
15
16
|
Ca: "CA",
|
|
@@ -18,7 +19,9 @@ exports.State = {
|
|
|
18
19
|
Dc: "DC",
|
|
19
20
|
De: "DE",
|
|
20
21
|
Fl: "FL",
|
|
22
|
+
Fm: "FM",
|
|
21
23
|
Ga: "GA",
|
|
24
|
+
Gu: "GU",
|
|
22
25
|
Hi: "HI",
|
|
23
26
|
Id: "ID",
|
|
24
27
|
Il: "IL",
|
|
@@ -30,8 +33,10 @@ exports.State = {
|
|
|
30
33
|
Me: "ME",
|
|
31
34
|
Md: "MD",
|
|
32
35
|
Ma: "MA",
|
|
36
|
+
Mh: "MH",
|
|
33
37
|
Mi: "MI",
|
|
34
38
|
Mn: "MN",
|
|
39
|
+
Mp: "MP",
|
|
35
40
|
Ms: "MS",
|
|
36
41
|
Mo: "MO",
|
|
37
42
|
Mt: "MT",
|
|
@@ -48,12 +53,14 @@ exports.State = {
|
|
|
48
53
|
Or: "OR",
|
|
49
54
|
Pa: "PA",
|
|
50
55
|
Pr: "PR",
|
|
56
|
+
Pw: "PW",
|
|
51
57
|
Ri: "RI",
|
|
52
58
|
Sc: "SC",
|
|
53
59
|
Sd: "SD",
|
|
54
60
|
Tn: "TN",
|
|
55
61
|
Tx: "TX",
|
|
56
62
|
Ut: "UT",
|
|
63
|
+
Vi: "VI",
|
|
57
64
|
Vt: "VT",
|
|
58
65
|
Va: "VA",
|
|
59
66
|
Wa: "WA",
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* address1: "123 Main St",
|
|
9
|
+
* address2: "Apt 1",
|
|
10
|
+
* city: "New York",
|
|
11
|
+
* state: CandidApi.State.Ny,
|
|
12
|
+
* zipCode: "10001",
|
|
13
|
+
* zipPlusFourCode: "1234"
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
5
16
|
export interface StreetAddressLongZip extends CandidApi.StreetAddressBase {
|
|
6
17
|
/** 4-digit zip add-on code https://en.wikipedia.org/wiki/ZIP_Code#ZIP+4 */
|
|
7
18
|
zipPlusFourCode: string;
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* address1: "123 Main St",
|
|
9
|
+
* address2: "Apt 1",
|
|
10
|
+
* city: "New York",
|
|
11
|
+
* state: CandidApi.State.Ny,
|
|
12
|
+
* zipCode: "10001",
|
|
13
|
+
* zipPlusFourCode: "1234"
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
5
16
|
export interface StreetAddressShortZip extends CandidApi.StreetAddressBase {
|
|
6
17
|
/** 4-digit zip add-on code https://en.wikipedia.org/wiki/ZIP_Code#ZIP+4 */
|
|
7
18
|
zipPlusFourCode?: string;
|
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* diagnosisId: CandidApi.DiagnosisId("5C770E00-4BBF-42AF-A73F-99C5E91FC0DB"),
|
|
9
|
+
* createdAt: new Date("2023-01-01T00:00:00.000Z"),
|
|
10
|
+
* updatedAt: new Date("2023-01-01T00:00:00.000Z"),
|
|
11
|
+
* encounterId: CandidApi.EncounterId("3F63985B-51A4-4DD4-9418-7D50B2520792"),
|
|
12
|
+
* name: "John Doe",
|
|
13
|
+
* codeType: CandidApi.DiagnosisTypeCode.Abf,
|
|
14
|
+
* code: "I10"
|
|
15
|
+
* }
|
|
16
|
+
*/
|
|
5
17
|
export interface Diagnosis extends CandidApi.StandaloneDiagnosisCreate {
|
|
6
18
|
diagnosisId: CandidApi.DiagnosisId;
|
|
7
19
|
createdAt: Date;
|
|
@@ -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.6.
|
|
68
|
+
"X-Fern-SDK-Version": "0.6.4",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
body: request,
|
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as CandidApi from "../../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* providerId: CandidApi.encounterProviders.v2.ProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
9
|
+
* address: {
|
|
10
|
+
* address1: "123 Main St",
|
|
11
|
+
* address2: "Apt 1",
|
|
12
|
+
* city: "New York",
|
|
13
|
+
* state: CandidApi.State.Ny,
|
|
14
|
+
* zipCode: "10001",
|
|
15
|
+
* zipPlusFourCode: "1234"
|
|
16
|
+
* },
|
|
17
|
+
* taxId: "123456789",
|
|
18
|
+
* npi: "1234567890",
|
|
19
|
+
* taxonomyCode: "207Q00000X",
|
|
20
|
+
* firstName: "John",
|
|
21
|
+
* lastName: "Doe",
|
|
22
|
+
* organizationName: "Organization Name"
|
|
23
|
+
* }
|
|
24
|
+
*/
|
|
5
25
|
export interface EncounterProvider extends CandidApi.encounterProviders.v2.EncounterProviderBase {
|
|
6
26
|
providerId: CandidApi.encounterProviders.v2.ProviderId;
|
|
7
27
|
address: CandidApi.StreetAddressLongZip;
|
|
@@ -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.6.
|
|
106
|
+
"X-Fern-SDK-Version": "0.6.4",
|
|
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.6.
|
|
136
|
+
"X-Fern-SDK-Version": "0.6.4",
|
|
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.6.
|
|
165
|
+
"X-Fern-SDK-Version": "0.6.4",
|
|
166
166
|
},
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -212,7 +212,7 @@ class V4 {
|
|
|
212
212
|
Authorization: await this._getAuthorizationHeader(),
|
|
213
213
|
"X-Fern-Language": "JavaScript",
|
|
214
214
|
"X-Fern-SDK-Name": "candidhealth",
|
|
215
|
-
"X-Fern-SDK-Version": "0.6.
|
|
215
|
+
"X-Fern-SDK-Version": "0.6.4",
|
|
216
216
|
},
|
|
217
217
|
contentType: "application/json",
|
|
218
218
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|