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.
Files changed (133) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/auth/resources/v2/types/AuthGetTokenRequest.d.ts +9 -0
  3. package/api/resources/auth/resources/v2/types/AuthGetTokenResponse.d.ts +9 -0
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  5. package/api/resources/billingNotes/resources/v2/types/BillingNote.d.ts +16 -0
  6. package/api/resources/claims/types/Claim.d.ts +76 -0
  7. package/api/resources/commons/types/Email.d.ts +4 -0
  8. package/api/resources/commons/types/FacilityTypeCode.d.ts +151 -1
  9. package/api/resources/commons/types/PageToken.d.ts +4 -0
  10. package/api/resources/commons/types/PatientRelationshipToInsuredCodeAll.d.ts +73 -1
  11. package/api/resources/commons/types/PhoneNumber.d.ts +7 -0
  12. package/api/resources/commons/types/State.d.ts +8 -1
  13. package/api/resources/commons/types/State.js +7 -0
  14. package/api/resources/commons/types/StreetAddressLongZip.d.ts +11 -0
  15. package/api/resources/commons/types/StreetAddressShortZip.d.ts +11 -0
  16. package/api/resources/diagnoses/types/Diagnosis.d.ts +12 -0
  17. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  18. package/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +20 -0
  19. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  20. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +25 -3
  21. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +39 -0
  22. package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +30 -5
  23. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategory.d.ts +13 -0
  24. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +409 -1
  25. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -1
  26. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +370 -0
  27. package/api/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +8 -0
  28. package/api/resources/encounters/resources/v4/types/IntakeQuestion.d.ts +15 -0
  29. package/api/resources/encounters/resources/v4/types/IntakeResponseAndFollowUps.d.ts +11 -0
  30. package/api/resources/encounters/resources/v4/types/Intervention.d.ts +23 -2
  31. package/api/resources/encounters/resources/v4/types/Lab.d.ts +8 -0
  32. package/api/resources/encounters/resources/v4/types/Medication.d.ts +11 -0
  33. package/api/resources/encounters/resources/v4/types/PatientHistoryCategory.d.ts +18 -0
  34. package/api/resources/encounters/resources/v4/types/Vitals.d.ts +10 -0
  35. package/api/resources/era/types/Era.d.ts +8 -0
  36. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  37. package/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +9 -0
  38. package/api/resources/expectedNetworkStatus/resources/v1/types/ExpectedNetworkStatusResponse.d.ts +1 -0
  39. package/api/resources/exports/resources/v3/client/Client.d.ts +1 -1
  40. package/api/resources/exports/resources/v3/client/Client.js +2 -2
  41. package/api/resources/exports/resources/v3/types/GetExportsResponse.d.ts +9 -0
  42. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  43. package/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +5 -0
  44. package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +25 -0
  45. package/api/resources/identifiers/types/Identifier.d.ts +12 -0
  46. package/api/resources/individual/types/Patient.d.ts +26 -0
  47. package/api/resources/individual/types/Subscriber.d.ts +33 -0
  48. package/api/resources/insuranceCard/types/InsuranceCard.d.ts +17 -0
  49. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +35 -1
  50. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +34 -0
  51. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  52. package/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +6 -6
  53. package/api/resources/organizationProviders/resources/v3/types/OrganizationProviderPageV2.d.ts +29 -0
  54. package/api/resources/organizationProviders/resources/v3/types/OrganizationProviderV2.d.ts +29 -2
  55. package/api/resources/patientPayments/resources/v3/types/PatientPayment.d.ts +17 -0
  56. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  57. package/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.d.ts +1 -1
  58. package/api/resources/payers/resources/v3/types/Payer.d.ts +11 -3
  59. package/api/resources/payers/resources/v3/types/PayerPage.d.ts +10 -0
  60. package/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +15 -0
  61. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +64 -0
  62. package/api/resources/tags/types/Tag.d.ts +9 -0
  63. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  64. package/dist/api/resources/auth/resources/v2/types/AuthGetTokenRequest.d.ts +9 -0
  65. package/dist/api/resources/auth/resources/v2/types/AuthGetTokenResponse.d.ts +9 -0
  66. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  67. package/dist/api/resources/billingNotes/resources/v2/types/BillingNote.d.ts +16 -0
  68. package/dist/api/resources/claims/types/Claim.d.ts +76 -0
  69. package/dist/api/resources/commons/types/Email.d.ts +4 -0
  70. package/dist/api/resources/commons/types/FacilityTypeCode.d.ts +151 -1
  71. package/dist/api/resources/commons/types/PageToken.d.ts +4 -0
  72. package/dist/api/resources/commons/types/PatientRelationshipToInsuredCodeAll.d.ts +73 -1
  73. package/dist/api/resources/commons/types/PhoneNumber.d.ts +7 -0
  74. package/dist/api/resources/commons/types/State.d.ts +8 -1
  75. package/dist/api/resources/commons/types/State.js +7 -0
  76. package/dist/api/resources/commons/types/StreetAddressLongZip.d.ts +11 -0
  77. package/dist/api/resources/commons/types/StreetAddressShortZip.d.ts +11 -0
  78. package/dist/api/resources/diagnoses/types/Diagnosis.d.ts +12 -0
  79. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  80. package/dist/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +20 -0
  81. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  82. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +25 -3
  83. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +39 -0
  84. package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +30 -5
  85. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategory.d.ts +13 -0
  86. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +409 -1
  87. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -1
  88. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +370 -0
  89. package/dist/api/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +8 -0
  90. package/dist/api/resources/encounters/resources/v4/types/IntakeQuestion.d.ts +15 -0
  91. package/dist/api/resources/encounters/resources/v4/types/IntakeResponseAndFollowUps.d.ts +11 -0
  92. package/dist/api/resources/encounters/resources/v4/types/Intervention.d.ts +23 -2
  93. package/dist/api/resources/encounters/resources/v4/types/Lab.d.ts +8 -0
  94. package/dist/api/resources/encounters/resources/v4/types/Medication.d.ts +11 -0
  95. package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategory.d.ts +18 -0
  96. package/dist/api/resources/encounters/resources/v4/types/Vitals.d.ts +10 -0
  97. package/dist/api/resources/era/types/Era.d.ts +8 -0
  98. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  99. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +9 -0
  100. package/dist/api/resources/expectedNetworkStatus/resources/v1/types/ExpectedNetworkStatusResponse.d.ts +1 -0
  101. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +1 -1
  102. package/dist/api/resources/exports/resources/v3/client/Client.js +2 -2
  103. package/dist/api/resources/exports/resources/v3/types/GetExportsResponse.d.ts +9 -0
  104. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  105. package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +5 -0
  106. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +25 -0
  107. package/dist/api/resources/identifiers/types/Identifier.d.ts +12 -0
  108. package/dist/api/resources/individual/types/Patient.d.ts +26 -0
  109. package/dist/api/resources/individual/types/Subscriber.d.ts +33 -0
  110. package/dist/api/resources/insuranceCard/types/InsuranceCard.d.ts +17 -0
  111. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +35 -1
  112. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +34 -0
  113. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  114. package/dist/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +6 -6
  115. package/dist/api/resources/organizationProviders/resources/v3/types/OrganizationProviderPageV2.d.ts +29 -0
  116. package/dist/api/resources/organizationProviders/resources/v3/types/OrganizationProviderV2.d.ts +29 -2
  117. package/dist/api/resources/patientPayments/resources/v3/types/PatientPayment.d.ts +17 -0
  118. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  119. package/dist/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.d.ts +1 -1
  120. package/dist/api/resources/payers/resources/v3/types/Payer.d.ts +11 -3
  121. package/dist/api/resources/payers/resources/v3/types/PayerPage.d.ts +10 -0
  122. package/dist/api/resources/serviceFacility/types/EncounterServiceFacility.d.ts +15 -0
  123. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +64 -0
  124. package/dist/api/resources/tags/types/Tag.d.ts +9 -0
  125. package/dist/serialization/resources/commons/types/State.d.ts +1 -1
  126. package/dist/serialization/resources/commons/types/State.js +7 -0
  127. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  128. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +34 -0
  129. package/package.json +1 -1
  130. package/serialization/resources/commons/types/State.d.ts +1 -1
  131. package/serialization/resources/commons/types/State.js +7 -0
  132. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  133. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +34 -0
@@ -1,6 +1,15 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * name: "John Doe",
8
+ * createdAt: new Date("2021-10-07T00:00:00.000Z"),
9
+ * authenticatedDownloadUrl: "https://example.com",
10
+ * authenticatedDownloadUrlExpiration: new Date("2021-10-07T00:02:00.000Z")
11
+ * }
12
+ */
4
13
  export interface GetExportsResponse {
5
14
  /** Report name; contains date strings representing the start and end date of the export. */
6
15
  name: string;
@@ -48,7 +48,7 @@ class V1 {
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.2",
51
+ "X-Fern-SDK-Version": "0.6.4",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
@@ -94,7 +94,7 @@ class V1 {
94
94
  Authorization: await this._getAuthorizationHeader(),
95
95
  "X-Fern-Language": "JavaScript",
96
96
  "X-Fern-SDK-Name": "candidhealth",
97
- "X-Fern-SDK-Version": "0.6.2",
97
+ "X-Fern-SDK-Version": "0.6.4",
98
98
  },
99
99
  contentType: "application/json",
100
100
  timeoutMs: 60000,
@@ -123,7 +123,7 @@ class V1 {
123
123
  Authorization: await this._getAuthorizationHeader(),
124
124
  "X-Fern-Language": "JavaScript",
125
125
  "X-Fern-SDK-Name": "candidhealth",
126
- "X-Fern-SDK-Version": "0.6.2",
126
+ "X-Fern-SDK-Version": "0.6.4",
127
127
  },
128
128
  contentType: "application/json",
129
129
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -5,7 +5,12 @@ import * as CandidApi from "../../../../../..";
5
5
  export interface GuarantorUpdate {
6
6
  firstName?: string;
7
7
  lastName?: string;
8
+ /** A unique identifier for the guarantor assigned by an external system. */
8
9
  externalId?: string;
10
+ /**
11
+ * Date formatted as YYYY-MM-DD; eg: 2019-08-25.
12
+ *
13
+ */
9
14
  dateOfBirth?: string;
10
15
  address?: CandidApi.StreetAddressShortZip;
11
16
  phoneNumbers?: CandidApi.PhoneNumber[];
@@ -2,6 +2,31 @@
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
+ * guarantorId: CandidApi.guarantor.v1.GuarantorId("8BBDBE63-58D3-4D40-98C9-40403C050977"),
9
+ * phoneNumbers: [{
10
+ * number: "1234567890",
11
+ * type: CandidApi.PhoneNumberType.Home
12
+ * }],
13
+ * phoneConsent: true,
14
+ * email: CandidApi.Email("johndoe@joincandidhealth.com"),
15
+ * emailConsent: true,
16
+ * firstName: "John",
17
+ * lastName: "Doe",
18
+ * externalId: "49460F77-6456-41F1-AC6D-0AED08614D39",
19
+ * dateOfBirth: "2000-01-01",
20
+ * address: {
21
+ * address1: "123 Main St",
22
+ * address2: "Apt 1",
23
+ * city: "New York",
24
+ * state: CandidApi.State.Ny,
25
+ * zipCode: "10001",
26
+ * zipPlusFourCode: "1234"
27
+ * }
28
+ * }
29
+ */
5
30
  export interface Guarantor extends CandidApi.guarantor.v1.GuarantorBase {
6
31
  guarantorId: CandidApi.guarantor.v1.GuarantorId;
7
32
  phoneNumbers: CandidApi.PhoneNumber[];
@@ -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
+ * identifierId: CandidApi.IdentifierId("123e4567-e89b-12d3-a456-426614174000"),
9
+ * identifierCode: CandidApi.IdentifierCode.Mcr,
10
+ * identifierValue: {
11
+ * type: "medicare_provider_identifier",
12
+ * state: CandidApi.State.Ca,
13
+ * providerNumber: "1234567890"
14
+ * }
15
+ * }
16
+ */
5
17
  export interface Identifier extends CandidApi.IdentifierBase {
6
18
  identifierId: CandidApi.IdentifierId;
7
19
  }
@@ -2,6 +2,32 @@
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
+ * individualId: CandidApi.IndividualId("93DDBEBF-4956-4482-9A6C-21499B7E4E5D"),
9
+ * phoneNumbers: [{
10
+ * number: "1234567890",
11
+ * type: CandidApi.PhoneNumberType.Home
12
+ * }],
13
+ * phoneConsent: true,
14
+ * email: CandidApi.Email("johndoe@joincandidhealth.com"),
15
+ * emailConsent: true,
16
+ * externalId: "49460F77-6456-41F1-AC6D-0AED08614D39",
17
+ * dateOfBirth: CandidApi.Date_("2000-01-01"),
18
+ * address: {
19
+ * address1: "123 Main St",
20
+ * address2: "Apt 1",
21
+ * city: "New York",
22
+ * state: CandidApi.State.Ny,
23
+ * zipCode: "10001",
24
+ * zipPlusFourCode: "1234"
25
+ * },
26
+ * firstName: "John",
27
+ * lastName: "Doe",
28
+ * gender: CandidApi.Gender.Male
29
+ * }
30
+ */
5
31
  export interface Patient extends CandidApi.PatientBase {
6
32
  individualId: CandidApi.IndividualId;
7
33
  phoneNumbers: CandidApi.PhoneNumber[];
@@ -2,6 +2,39 @@
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
+ * individualId: CandidApi.IndividualId("797348A9-E7E8-4E59-8628-95390D079C0B"),
9
+ * insuranceCard: {
10
+ * insuranceCardId: CandidApi.InsuranceCardId("CA5B7711-4419-4161-9B7C-3494AC40C8D4"),
11
+ * memberId: "E85313B4-0FFC-4119-8042-8161A4ECFF0A",
12
+ * payerName: "John Doe",
13
+ * payerId: "836DDAA6-863F-4020-ACCA-205A689F0002",
14
+ * rxBin: "610014",
15
+ * rxPcn: "MEDDPRIME",
16
+ * imageUrlFront: "https://s3.amazonaws.com/front.jpg",
17
+ * imageUrlBack: "https://s3.amazonaws.com/back.jpg",
18
+ * groupNumber: "ABC12345",
19
+ * planName: "Silver PPO Plan",
20
+ * planType: CandidApi.SourceOfPaymentCode.SelfPay,
21
+ * insuranceType: CandidApi.InsuranceTypeCode.C01
22
+ * },
23
+ * patientRelationshipToSubscriberCode: CandidApi.PatientRelationshipToInsuredCodeAll.Spouse,
24
+ * dateOfBirth: CandidApi.Date_("2000-01-01"),
25
+ * address: {
26
+ * address1: "123 Main St",
27
+ * address2: "Apt 1",
28
+ * city: "New York",
29
+ * state: CandidApi.State.Ny,
30
+ * zipCode: "10001",
31
+ * zipPlusFourCode: "1234"
32
+ * },
33
+ * firstName: "John",
34
+ * lastName: "Doe",
35
+ * gender: CandidApi.Gender.Male
36
+ * }
37
+ */
5
38
  export interface Subscriber extends CandidApi.SubscriberBase {
6
39
  individualId: CandidApi.IndividualId;
7
40
  insuranceCard: CandidApi.InsuranceCard;
@@ -2,6 +2,23 @@
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
+ * insuranceCardId: CandidApi.InsuranceCardId("CA5B7711-4419-4161-9B7C-3494AC40C8D4"),
9
+ * memberId: "E85313B4-0FFC-4119-8042-8161A4ECFF0A",
10
+ * payerName: "John Doe",
11
+ * payerId: "836DDAA6-863F-4020-ACCA-205A689F0002",
12
+ * rxBin: "610014",
13
+ * rxPcn: "MEDDPRIME",
14
+ * imageUrlFront: "https://s3.amazonaws.com/front.jpg",
15
+ * imageUrlBack: "https://s3.amazonaws.com/back.jpg",
16
+ * groupNumber: "ABC12345",
17
+ * planName: "Silver PPO Plan",
18
+ * planType: CandidApi.SourceOfPaymentCode.SelfPay,
19
+ * insuranceType: CandidApi.InsuranceTypeCode.C01
20
+ * }
21
+ */
5
22
  export interface InsuranceCard extends CandidApi.InsuranceCardBase {
6
23
  insuranceCardId: CandidApi.InsuranceCardId;
7
24
  memberId: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type LicenseType = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN" | "RPH" | "PHT" | "LAC" | "LMT" | "DC" | "ND" | "MA" | "PT" | "IBCLC" | "RN" | "DPT" | "LCMHC";
4
+ export declare type LicenseType = "MD" | "NP" | "PA" | "LMFT" | "LCPC" | "LCSW" | "PMHNP" | "FNP" | "LPCC" | "DO" | "RD" | "SLP" | "APRN" | "LPC" | "PHD" | "PSYD" | "LMSW" | "LMHC" | "OTHER_MASTERS" | "BCBA" | "UNKNOWN" | "RPH" | "PHT" | "LAC" | "LMT" | "DC" | "ND" | "MA" | "PT" | "IBCLC" | "RN" | "DPT" | "LCMHC" | "CNM" | "RNFA" | "ACSW" | "APC" | "BCABA" | "BHA" | "OD" | "DPM" | "DA" | "DDS" | "DEH" | "DMD" | "PTA" | "LCADC" | "LCAT" | "LCMHCS" | "LCMHCA" | "LCSWA" | "LICSW" | "LISW" | "LMFTS" | "LMFTA" | "LPCI" | "LSCSW" | "MHCA" | "MHT" | "RBT" | "RCSWI" | "RHMCI" | "LPN" | "OTD" | "OMS" | "MFTA" | "APCC";
5
5
  export declare const LicenseType: {
6
6
  readonly Md: "MD";
7
7
  readonly Np: "NP";
@@ -36,4 +36,38 @@ export declare const LicenseType: {
36
36
  readonly Rn: "RN";
37
37
  readonly Dpt: "DPT";
38
38
  readonly Lcmhc: "LCMHC";
39
+ readonly Cnm: "CNM";
40
+ readonly Rnfa: "RNFA";
41
+ readonly Acsw: "ACSW";
42
+ readonly Apc: "APC";
43
+ readonly Bcaba: "BCABA";
44
+ readonly Bha: "BHA";
45
+ readonly Od: "OD";
46
+ readonly Dpm: "DPM";
47
+ readonly Da: "DA";
48
+ readonly Dds: "DDS";
49
+ readonly Deh: "DEH";
50
+ readonly Dmd: "DMD";
51
+ readonly Pta: "PTA";
52
+ readonly Lcadc: "LCADC";
53
+ readonly Lcat: "LCAT";
54
+ readonly Lcmhcs: "LCMHCS";
55
+ readonly Lcmhca: "LCMHCA";
56
+ readonly Lcswa: "LCSWA";
57
+ readonly Licsw: "LICSW";
58
+ readonly Lisw: "LISW";
59
+ readonly Lmfts: "LMFTS";
60
+ readonly Lmfta: "LMFTA";
61
+ readonly Lpci: "LPCI";
62
+ readonly Lscsw: "LSCSW";
63
+ readonly Mhca: "MHCA";
64
+ readonly Mht: "MHT";
65
+ readonly Rbt: "RBT";
66
+ readonly Rcswi: "RCSWI";
67
+ readonly Rhmci: "RHMCI";
68
+ readonly Lpn: "LPN";
69
+ readonly Otd: "OTD";
70
+ readonly Oms: "OMS";
71
+ readonly Mfta: "MFTA";
72
+ readonly Apcc: "APCC";
39
73
  };
@@ -38,4 +38,38 @@ exports.LicenseType = {
38
38
  Rn: "RN",
39
39
  Dpt: "DPT",
40
40
  Lcmhc: "LCMHC",
41
+ Cnm: "CNM",
42
+ Rnfa: "RNFA",
43
+ Acsw: "ACSW",
44
+ Apc: "APC",
45
+ Bcaba: "BCABA",
46
+ Bha: "BHA",
47
+ Od: "OD",
48
+ Dpm: "DPM",
49
+ Da: "DA",
50
+ Dds: "DDS",
51
+ Deh: "DEH",
52
+ Dmd: "DMD",
53
+ Pta: "PTA",
54
+ Lcadc: "LCADC",
55
+ Lcat: "LCAT",
56
+ Lcmhcs: "LCMHCS",
57
+ Lcmhca: "LCMHCA",
58
+ Lcswa: "LCSWA",
59
+ Licsw: "LICSW",
60
+ Lisw: "LISW",
61
+ Lmfts: "LMFTS",
62
+ Lmfta: "LMFTA",
63
+ Lpci: "LPCI",
64
+ Lscsw: "LSCSW",
65
+ Mhca: "MHCA",
66
+ Mht: "MHT",
67
+ Rbt: "RBT",
68
+ Rcswi: "RCSWI",
69
+ Rhmci: "RHMCI",
70
+ Lpn: "LPN",
71
+ Otd: "OTD",
72
+ Oms: "OMS",
73
+ Mfta: "MFTA",
74
+ Apcc: "APCC",
41
75
  };
@@ -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.6.2",
52
+ "X-Fern-SDK-Version": "0.6.4",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -115,7 +115,7 @@ class V3 {
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.6.2",
118
+ "X-Fern-SDK-Version": "0.6.4",
119
119
  },
120
120
  contentType: "application/json",
121
121
  queryParameters: _queryParams,
@@ -145,7 +145,7 @@ class V3 {
145
145
  Authorization: await this._getAuthorizationHeader(),
146
146
  "X-Fern-Language": "JavaScript",
147
147
  "X-Fern-SDK-Name": "candidhealth",
148
- "X-Fern-SDK-Version": "0.6.2",
148
+ "X-Fern-SDK-Version": "0.6.4",
149
149
  },
150
150
  contentType: "application/json",
151
151
  body: await serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
@@ -191,7 +191,7 @@ class V3 {
191
191
  Authorization: await this._getAuthorizationHeader(),
192
192
  "X-Fern-Language": "JavaScript",
193
193
  "X-Fern-SDK-Name": "candidhealth",
194
- "X-Fern-SDK-Version": "0.6.2",
194
+ "X-Fern-SDK-Version": "0.6.4",
195
195
  },
196
196
  contentType: "application/json",
197
197
  body: await serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
@@ -8,27 +8,27 @@ export interface GetAllOrganizationProvidersRequestV2 {
8
8
  */
9
9
  limit?: number;
10
10
  /**
11
- * Filter to a name or a part of a name
11
+ * Filter to a name or a part of a name.
12
12
  */
13
13
  searchTerm?: string;
14
14
  /**
15
- * Filter to a specific NPI
15
+ * Filter to a specific NPI.
16
16
  */
17
17
  npi?: string;
18
18
  /**
19
- * Filter to only rendering providers
19
+ * Filter to only rendering providers.
20
20
  */
21
21
  isRendering?: boolean;
22
22
  /**
23
- * Filter to only billing providers
23
+ * Filter to only billing providers.
24
24
  */
25
25
  isBilling?: boolean;
26
26
  /**
27
- * The page token to continue paging through a previous request
27
+ * The page token to continue paging through a previous request.
28
28
  */
29
29
  pageToken?: CandidApi.PageToken;
30
30
  /**
31
- * Defaults to PROVIDER_NAME_ASC
31
+ * Defaults to PROVIDER_NAME_ASC.
32
32
  */
33
33
  sort?: CandidApi.organizationProviders.v2.OrganizationProviderSortOptions;
34
34
  }
@@ -2,6 +2,35 @@
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
+ * items: [{
9
+ * npi: "1234567890",
10
+ * isRendering: true,
11
+ * isBilling: true,
12
+ * firstName: "John",
13
+ * lastName: "Doe",
14
+ * organizationName: "Acme Medical",
15
+ * providerType: CandidApi.organizationProviders.v2.ProviderType.Individual,
16
+ * taxId: "123456789",
17
+ * taxonomyCode: "1234567890",
18
+ * licenseType: CandidApi.organizationProviders.v2.LicenseType.Md,
19
+ * employmentStartDate: "2020-10-07",
20
+ * employmentTerminationDate: "2021-10-07",
21
+ * organizationProviderId: CandidApi.organizationProviders.v2.OrganizationProviderId("965A563A-0285-4910-9569-E3739C0F6EAB"),
22
+ * qualifications: [{
23
+ * identifierId: CandidApi.IdentifierId("123e4567-e89b-12d3-a456-426614174000"),
24
+ * identifierCode: CandidApi.IdentifierCode.Mcr,
25
+ * identifierValue: {
26
+ * type: "medicare_provider_identifier",
27
+ * state: CandidApi.State.Ca,
28
+ * providerNumber: "1234567890"
29
+ * }
30
+ * }]
31
+ * }]
32
+ * }
33
+ */
5
34
  export interface OrganizationProviderPageV2 extends CandidApi.ResourcePage {
6
35
  items: CandidApi.organizationProviders.v3.OrganizationProviderV2[];
7
36
  }
@@ -2,6 +2,33 @@
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
+ * npi: "1234567890",
9
+ * isRendering: true,
10
+ * isBilling: true,
11
+ * firstName: "John",
12
+ * lastName: "Doe",
13
+ * organizationName: "Acme Medical",
14
+ * providerType: CandidApi.organizationProviders.v2.ProviderType.Individual,
15
+ * taxId: "123456789",
16
+ * taxonomyCode: "1234567890",
17
+ * licenseType: CandidApi.organizationProviders.v2.LicenseType.Md,
18
+ * employmentStartDate: "2020-10-07",
19
+ * employmentTerminationDate: "2021-10-07",
20
+ * organizationProviderId: CandidApi.organizationProviders.v2.OrganizationProviderId("965A563A-0285-4910-9569-E3739C0F6EAB"),
21
+ * qualifications: [{
22
+ * identifierId: CandidApi.IdentifierId("123e4567-e89b-12d3-a456-426614174000"),
23
+ * identifierCode: CandidApi.IdentifierCode.Mcr,
24
+ * identifierValue: {
25
+ * type: "medicare_provider_identifier",
26
+ * state: CandidApi.State.Ca,
27
+ * providerNumber: "1234567890"
28
+ * }
29
+ * }]
30
+ * }
31
+ */
5
32
  export interface OrganizationProviderV2 {
6
33
  /** The NPI of the provider. This must be all digits [0-9] and exactly 10 characters long. */
7
34
  npi: string;
@@ -35,8 +62,8 @@ export interface OrganizationProviderV2 {
35
62
  employmentStartDate?: string;
36
63
  /** The employment termination date for the provider. */
37
64
  employmentTerminationDate?: string;
38
- /** Auto-generated ID set on creation */
65
+ /** Auto-generated ID set on creation. */
39
66
  organizationProviderId: CandidApi.organizationProviders.v2.OrganizationProviderId;
40
- /** Qualification given to a provider (PTAN, Medicaid Provider Id etc.) */
67
+ /** Qualification given to a provider (PTAN, Medicaid Provider Id etc.). */
41
68
  qualifications: CandidApi.Identifier[];
42
69
  }
@@ -2,6 +2,23 @@
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
+ * patientPaymentId: CandidApi.patientPayments.v3.PatientPaymentId("CF237BE1-E793-4BBF-8958-61D5179D1D0D"),
9
+ * organizationId: CandidApi.OrganizationId("0788CA2A-B20D-4B8E-B8D4-07FA0B3B4907"),
10
+ * sourceInternalId: "D1A76039-D5C5-4323-A2FC-B7C8B6AEF6A4",
11
+ * source: CandidApi.patientPayments.v3.PatientPaymentSource.ManualEntry,
12
+ * amountCents: 2000,
13
+ * paymentTimestamp: new Date("2023-01-01T00:00:00.000Z"),
14
+ * status: CandidApi.patientPayments.v3.PatientPaymentStatus.Pending,
15
+ * paymentName: "John Doe",
16
+ * paymentNote: "test payment note",
17
+ * patientExternalId: CandidApi.PatientExternalId("B7437260-D6B4-48CF-B9D7-753C09F34E76"),
18
+ * encounterExternalId: CandidApi.EncounterExternalId("0F26B9C3-199F-4CBB-A166-B87EA7C631BB"),
19
+ * serviceLineId: CandidApi.ServiceLineId("B557DC86-C629-478C-850A-02D45AC11783")
20
+ * }
21
+ */
5
22
  export interface PatientPayment {
6
23
  patientPaymentId: CandidApi.patientPayments.v3.PatientPaymentId;
7
24
  organizationId: CandidApi.OrganizationId;
@@ -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.6.2",
52
+ "X-Fern-SDK-Version": "0.6.4",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -89,7 +89,7 @@ class V3 {
89
89
  Authorization: await this._getAuthorizationHeader(),
90
90
  "X-Fern-Language": "JavaScript",
91
91
  "X-Fern-SDK-Name": "candidhealth",
92
- "X-Fern-SDK-Version": "0.6.2",
92
+ "X-Fern-SDK-Version": "0.6.4",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -4,7 +4,7 @@
4
4
  import * as CandidApi from "../../../../../..";
5
5
  export interface GetAllPayersRequest {
6
6
  /**
7
- * Defaults to 100
7
+ * Maximum number of entities per page, defaults to 100.
8
8
  */
9
9
  limit?: number;
10
10
  searchTerm?: string;
@@ -2,11 +2,19 @@
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
+ * payerUuid: CandidApi.payers.v3.PayerUuid("A6431FD2-0712-4714-B1B1-DD094DAF9F42"),
9
+ * payerId: "12345",
10
+ * payerName: "Payer Name"
11
+ * }
12
+ */
5
13
  export interface Payer {
6
- /** Auto-generated ID set on creation */
14
+ /** Auto-generated ID set on creation. */
7
15
  payerUuid: CandidApi.payers.v3.PayerUuid;
8
- /** The primary national payer ID of the payer */
16
+ /** The primary national payer ID of the payer. */
9
17
  payerId: string;
10
- /** The primary display name of the payer */
18
+ /** The primary display name of the payer. */
11
19
  payerName: string;
12
20
  }
@@ -2,6 +2,16 @@
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
+ * items: [{
9
+ * payerUuid: CandidApi.payers.v3.PayerUuid("A6431FD2-0712-4714-B1B1-DD094DAF9F42"),
10
+ * payerId: "12345",
11
+ * payerName: "Payer Name"
12
+ * }]
13
+ * }
14
+ */
5
15
  export interface PayerPage extends CandidApi.ResourcePage {
6
16
  items: CandidApi.payers.v3.Payer[];
7
17
  }
@@ -2,6 +2,21 @@
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
+ * serviceFacilityId: CandidApi.ServiceFacilityId("2861487B-232C-4DED-A874-616A5DB0688F"),
9
+ * organizationName: "Test Organization",
10
+ * address: {
11
+ * address1: "123 Main St",
12
+ * address2: "Apt 1",
13
+ * city: "New York",
14
+ * state: CandidApi.State.Ny,
15
+ * zipCode: "10001",
16
+ * zipPlusFourCode: "1234"
17
+ * }
18
+ * }
19
+ */
5
20
  export interface EncounterServiceFacility {
6
21
  serviceFacilityId: CandidApi.ServiceFacilityId;
7
22
  organizationName: string;
@@ -2,6 +2,70 @@
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
+ * modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
9
+ * chargeAmountCents: 10000,
10
+ * allowedAmountCents: 8000,
11
+ * insuranceBalanceCents: 0,
12
+ * patientBalanceCents: 2000,
13
+ * paidAmountCents: 8000,
14
+ * patientResponsibilityCents: 2000,
15
+ * diagnosisIdZero: CandidApi.DiagnosisId("4AC84BCD-12F5-4F86-A57B-E06749127C98"),
16
+ * diagnosisIdOne: CandidApi.DiagnosisId("EEA5CA5A-8B43-45FD-8CBD-C6CC1103E759"),
17
+ * diagnosisIdTwo: CandidApi.DiagnosisId("5C4AA029-2DB9-4202-916E-E93C708F65FF"),
18
+ * diagnosisIdThree: CandidApi.DiagnosisId("81795126-A3AC-443C-B47E-7259A16AB4A2"),
19
+ * serviceLineEraData: {
20
+ * serviceLineAdjustments: [{
21
+ * createdAt: new Date("2023-01-01T00:00:00.000Z"),
22
+ * adjustmentGroupCode: "CO",
23
+ * adjustmentReasonCode: "CO",
24
+ * adjustmentAmountCents: 1000,
25
+ * adjustmentNote: "test_note"
26
+ * }],
27
+ * remittanceAdviceRemarkCodes: ["N362"]
28
+ * },
29
+ * serviceLineManualAdjustments: [{
30
+ * createdAt: new Date("2023-01-01T00:00:00.000Z"),
31
+ * adjustmentGroupCode: "CO",
32
+ * adjustmentReasonCode: "CO",
33
+ * adjustmentAmountCents: 1000,
34
+ * adjustmentNote: "test_note"
35
+ * }],
36
+ * relatedInvoices: [{
37
+ * id: CandidApi.InvoiceId("901BE2F1-41BC-456E-9987-4FE2F84F9D75"),
38
+ * createdAt: new Date("2023-01-01T00:00:00.000Z"),
39
+ * updatedAt: new Date("2023-01-01T00:00:00.000Z"),
40
+ * organzationId: CandidApi.OrganizationId("F13F73D4-4344-46EA-9D93-33BCFFBB9F36"),
41
+ * sourceId: "9B626577-8808-4F28-9ED1-F0DFF0D49BBC",
42
+ * sourceCustomerId: "624D1972-8C69-4C2F-AEFA-10856F734DB3",
43
+ * patientExternalId: CandidApi.PatientExternalId("10FED4D6-4C5A-48DF-838A-EEF45A74788D"),
44
+ * note: "test_note",
45
+ * dueDate: CandidApi.Date_("2023-10-10"),
46
+ * status: CandidApi.InvoiceStatus.Draft,
47
+ * url: "https://example.com",
48
+ * customerInvoiceUrl: "https://example.com",
49
+ * items: [{
50
+ * serviceLineId: CandidApi.ServiceLineId("CED00F23-6E68-4678-9DBC-F5AA2969A565"),
51
+ * amountCents: 500
52
+ * }]
53
+ * }],
54
+ * denialReason: {
55
+ * reason: CandidApi.serviceLines.v2.DenialReasonContent.AuthorizationRequired
56
+ * },
57
+ * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
58
+ * serviceLineId: CandidApi.ServiceLineId("CED00F23-6E68-4678-9DBC-F5AA2969A565"),
59
+ * procedureCode: "99213",
60
+ * quantity: CandidApi.Decimal("1"),
61
+ * units: CandidApi.ServiceLineUnits.Mj,
62
+ * claimId: CandidApi.ClaimId("026A1FB8-748E-4859-A2D7-3EA9E07D25AE"),
63
+ * dateOfServiceRange: {
64
+ * startDate: CandidApi.Date_("2023-01-01"),
65
+ * endDate: CandidApi.Date_("2023-01-03")
66
+ * }
67
+ * }
68
+ */
5
69
  export interface ServiceLine {
6
70
  modifiers?: CandidApi.ProcedureModifier[];
7
71
  chargeAmountCents?: number;
@@ -2,6 +2,15 @@
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
+ * creatorId: "00EB5A46-35C6-441B-9751-AF307AEF5888",
9
+ * tagId: CandidApi.TagId("void-claim-submitted"),
10
+ * description: "to indicate claims where a void claim has been submitted",
11
+ * color: CandidApi.TagColorEnum.Black
12
+ * }
13
+ */
5
14
  export interface Tag extends CandidApi.TagCreate {
6
15
  creatorId: string;
7
16
  }