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
@@ -50,13 +50,14 @@ export interface EncounterBase {
50
50
  */
51
51
  providerAcceptsAssignment: boolean;
52
52
  /**
53
- * Human-readable description of the appointment type (ex: "Acupuncture - Headaches")
53
+ * Human-readable description of the appointment type (ex: "Acupuncture - Headaches").
54
54
  *
55
55
  */
56
56
  appointmentType?: string;
57
57
  existingMedications?: CandidApi.encounters.v4.Medication[];
58
58
  vitals?: CandidApi.encounters.v4.Vitals;
59
59
  interventions?: CandidApi.encounters.v4.Intervention[];
60
+ /** Specifies the address to which payments for the claim should be sent. */
60
61
  payToAddress?: CandidApi.StreetAddressLongZip;
61
62
  /**
62
63
  * Whether or not this was a synchronous or asynchronous encounter.
@@ -2,6 +2,376 @@
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
+ * encounterId: CandidApi.EncounterId("B2506E84-4470-4CBA-8A68-6883367739E1"),
10
+ * claims: [{
11
+ * claimId: CandidApi.ClaimId("DD9D7F82-37B5-449D-AA63-26925398335B"),
12
+ * status: CandidApi.ClaimStatus.BillerReceived,
13
+ * clearinghouse: "Change Healthcare",
14
+ * clearinghouseClaimId: "5BA7C3AB-2BC2-496C-8B10-6CAC73D0729D",
15
+ * payerClaimId: "9BB9F259-9756-4F16-8F53-9DBB9F7EB1BB",
16
+ * serviceLines: [{
17
+ * modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
18
+ * chargeAmountCents: 10000,
19
+ * allowedAmountCents: 8000,
20
+ * insuranceBalanceCents: 0,
21
+ * patientBalanceCents: 2000,
22
+ * paidAmountCents: 8000,
23
+ * patientResponsibilityCents: 2000,
24
+ * diagnosisIdZero: CandidApi.DiagnosisId("4AC84BCD-12F5-4F86-A57B-E06749127C98"),
25
+ * diagnosisIdOne: CandidApi.DiagnosisId("EEA5CA5A-8B43-45FD-8CBD-C6CC1103E759"),
26
+ * diagnosisIdTwo: CandidApi.DiagnosisId("5C4AA029-2DB9-4202-916E-E93C708F65FF"),
27
+ * diagnosisIdThree: CandidApi.DiagnosisId("81795126-A3AC-443C-B47E-7259A16AB4A2"),
28
+ * serviceLineEraData: {
29
+ * serviceLineAdjustments: [{
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
+ * remittanceAdviceRemarkCodes: ["N362"]
37
+ * },
38
+ * serviceLineManualAdjustments: [{
39
+ * createdAt: new Date("2023-01-01T00:00:00.000Z"),
40
+ * adjustmentGroupCode: "CO",
41
+ * adjustmentReasonCode: "CO",
42
+ * adjustmentAmountCents: 1000,
43
+ * adjustmentNote: "test_note"
44
+ * }],
45
+ * relatedInvoices: [{
46
+ * id: CandidApi.InvoiceId("901BE2F1-41BC-456E-9987-4FE2F84F9D75"),
47
+ * createdAt: new Date("2023-01-01T00:00:00.000Z"),
48
+ * updatedAt: new Date("2023-01-01T00:00:00.000Z"),
49
+ * organzationId: CandidApi.OrganizationId("F13F73D4-4344-46EA-9D93-33BCFFBB9F36"),
50
+ * sourceId: "9B626577-8808-4F28-9ED1-F0DFF0D49BBC",
51
+ * sourceCustomerId: "624D1972-8C69-4C2F-AEFA-10856F734DB3",
52
+ * patientExternalId: CandidApi.PatientExternalId("10FED4D6-4C5A-48DF-838A-EEF45A74788D"),
53
+ * note: "test_note",
54
+ * dueDate: CandidApi.Date_("2023-10-10"),
55
+ * status: CandidApi.InvoiceStatus.Draft,
56
+ * url: "https://example.com",
57
+ * customerInvoiceUrl: "https://example.com",
58
+ * items: [{
59
+ * serviceLineId: CandidApi.ServiceLineId("CED00F23-6E68-4678-9DBC-F5AA2969A565"),
60
+ * amountCents: 500
61
+ * }]
62
+ * }],
63
+ * denialReason: {
64
+ * reason: CandidApi.serviceLines.v2.DenialReasonContent.AuthorizationRequired
65
+ * },
66
+ * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
67
+ * serviceLineId: CandidApi.ServiceLineId("CED00F23-6E68-4678-9DBC-F5AA2969A565"),
68
+ * procedureCode: "99213",
69
+ * quantity: CandidApi.Decimal("1"),
70
+ * units: CandidApi.ServiceLineUnits.Mj,
71
+ * claimId: CandidApi.ClaimId("026A1FB8-748E-4859-A2D7-3EA9E07D25AE"),
72
+ * dateOfServiceRange: {
73
+ * startDate: CandidApi.Date_("2023-01-01"),
74
+ * endDate: CandidApi.Date_("2023-01-03")
75
+ * }
76
+ * }],
77
+ * eras: [{
78
+ * eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
79
+ * checkNumber: "CHK12345",
80
+ * checkDate: CandidApi.Date_("2023-10-12")
81
+ * }]
82
+ * }],
83
+ * patient: {
84
+ * individualId: CandidApi.IndividualId("93DDBEBF-4956-4482-9A6C-21499B7E4E5D"),
85
+ * phoneNumbers: [{
86
+ * number: "1234567890",
87
+ * type: CandidApi.PhoneNumberType.Home
88
+ * }],
89
+ * phoneConsent: true,
90
+ * email: CandidApi.Email("johndoe@joincandidhealth.com"),
91
+ * emailConsent: true,
92
+ * externalId: "49460F77-6456-41F1-AC6D-0AED08614D39",
93
+ * dateOfBirth: CandidApi.Date_("2000-01-01"),
94
+ * address: {
95
+ * address1: "123 Main St",
96
+ * address2: "Apt 1",
97
+ * city: "New York",
98
+ * state: CandidApi.State.Ny,
99
+ * zipCode: "10001",
100
+ * zipPlusFourCode: "1234"
101
+ * },
102
+ * firstName: "John",
103
+ * lastName: "Doe",
104
+ * gender: CandidApi.Gender.Male
105
+ * },
106
+ * guarantor: {
107
+ * guarantorId: CandidApi.guarantor.v1.GuarantorId("8BBDBE63-58D3-4D40-98C9-40403C050977"),
108
+ * phoneNumbers: [{
109
+ * number: "1234567890",
110
+ * type: CandidApi.PhoneNumberType.Home
111
+ * }],
112
+ * phoneConsent: true,
113
+ * email: CandidApi.Email("johndoe@joincandidhealth.com"),
114
+ * emailConsent: true,
115
+ * firstName: "John",
116
+ * lastName: "Doe",
117
+ * externalId: "49460F77-6456-41F1-AC6D-0AED08614D39",
118
+ * dateOfBirth: "2000-01-01",
119
+ * address: {
120
+ * address1: "123 Main St",
121
+ * address2: "Apt 1",
122
+ * city: "New York",
123
+ * state: CandidApi.State.Ny,
124
+ * zipCode: "10001",
125
+ * zipPlusFourCode: "1234"
126
+ * }
127
+ * },
128
+ * billingProvider: {
129
+ * providerId: CandidApi.encounterProviders.v2.ProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
130
+ * address: {
131
+ * address1: "123 Main St",
132
+ * address2: "Apt 1",
133
+ * city: "New York",
134
+ * state: CandidApi.State.Ny,
135
+ * zipCode: "10001",
136
+ * zipPlusFourCode: "1234"
137
+ * },
138
+ * taxId: "123456789",
139
+ * npi: "1234567890",
140
+ * taxonomyCode: "207Q00000X",
141
+ * firstName: "John",
142
+ * lastName: "Doe",
143
+ * organizationName: "Organization Name"
144
+ * },
145
+ * renderingProvider: {
146
+ * providerId: CandidApi.encounterProviders.v2.ProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
147
+ * address: {
148
+ * address1: "123 Main St",
149
+ * address2: "Apt 1",
150
+ * city: "New York",
151
+ * state: CandidApi.State.Ny,
152
+ * zipCode: "10001",
153
+ * zipPlusFourCode: "1234"
154
+ * },
155
+ * taxId: "123456789",
156
+ * npi: "1234567890",
157
+ * taxonomyCode: "207Q00000X",
158
+ * firstName: "John",
159
+ * lastName: "Doe",
160
+ * organizationName: "Organization Name"
161
+ * },
162
+ * referringProvider: {
163
+ * providerId: CandidApi.encounterProviders.v2.ProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
164
+ * address: {
165
+ * address1: "123 Main St",
166
+ * address2: "Apt 1",
167
+ * city: "New York",
168
+ * state: CandidApi.State.Ny,
169
+ * zipCode: "10001",
170
+ * zipPlusFourCode: "1234"
171
+ * },
172
+ * taxId: "123456789",
173
+ * npi: "1234567890",
174
+ * taxonomyCode: "207Q00000X",
175
+ * firstName: "John",
176
+ * lastName: "Doe",
177
+ * organizationName: "Organization Name"
178
+ * },
179
+ * serviceFacility: {
180
+ * serviceFacilityId: CandidApi.ServiceFacilityId("2861487B-232C-4DED-A874-616A5DB0688F"),
181
+ * organizationName: "Test Organization",
182
+ * address: {
183
+ * address1: "123 Main St",
184
+ * address2: "Apt 1",
185
+ * city: "New York",
186
+ * state: CandidApi.State.Ny,
187
+ * zipCode: "10001",
188
+ * zipPlusFourCode: "1234"
189
+ * }
190
+ * },
191
+ * subscriberPrimary: {
192
+ * individualId: CandidApi.IndividualId("797348A9-E7E8-4E59-8628-95390D079C0B"),
193
+ * insuranceCard: {
194
+ * insuranceCardId: CandidApi.InsuranceCardId("CA5B7711-4419-4161-9B7C-3494AC40C8D4"),
195
+ * memberId: "E85313B4-0FFC-4119-8042-8161A4ECFF0A",
196
+ * payerName: "John Doe",
197
+ * payerId: "836DDAA6-863F-4020-ACCA-205A689F0002",
198
+ * rxBin: "610014",
199
+ * rxPcn: "MEDDPRIME",
200
+ * imageUrlFront: "https://s3.amazonaws.com/front.jpg",
201
+ * imageUrlBack: "https://s3.amazonaws.com/back.jpg",
202
+ * groupNumber: "ABC12345",
203
+ * planName: "Silver PPO Plan",
204
+ * planType: CandidApi.SourceOfPaymentCode.SelfPay,
205
+ * insuranceType: CandidApi.InsuranceTypeCode.C01
206
+ * },
207
+ * patientRelationshipToSubscriberCode: CandidApi.PatientRelationshipToInsuredCodeAll.Spouse,
208
+ * dateOfBirth: CandidApi.Date_("2000-01-01"),
209
+ * address: {
210
+ * address1: "123 Main St",
211
+ * address2: "Apt 1",
212
+ * city: "New York",
213
+ * state: CandidApi.State.Ny,
214
+ * zipCode: "10001",
215
+ * zipPlusFourCode: "1234"
216
+ * },
217
+ * firstName: "John",
218
+ * lastName: "Doe",
219
+ * gender: CandidApi.Gender.Male
220
+ * },
221
+ * subscriberSecondary: {
222
+ * individualId: CandidApi.IndividualId("797348A9-E7E8-4E59-8628-95390D079C0B"),
223
+ * insuranceCard: {
224
+ * insuranceCardId: CandidApi.InsuranceCardId("CA5B7711-4419-4161-9B7C-3494AC40C8D4"),
225
+ * memberId: "E85313B4-0FFC-4119-8042-8161A4ECFF0A",
226
+ * payerName: "John Doe",
227
+ * payerId: "836DDAA6-863F-4020-ACCA-205A689F0002",
228
+ * rxBin: "610014",
229
+ * rxPcn: "MEDDPRIME",
230
+ * imageUrlFront: "https://s3.amazonaws.com/front.jpg",
231
+ * imageUrlBack: "https://s3.amazonaws.com/back.jpg",
232
+ * groupNumber: "ABC12345",
233
+ * planName: "Silver PPO Plan",
234
+ * planType: CandidApi.SourceOfPaymentCode.SelfPay,
235
+ * insuranceType: CandidApi.InsuranceTypeCode.C01
236
+ * },
237
+ * patientRelationshipToSubscriberCode: CandidApi.PatientRelationshipToInsuredCodeAll.Spouse,
238
+ * dateOfBirth: CandidApi.Date_("2000-01-01"),
239
+ * address: {
240
+ * address1: "123 Main St",
241
+ * address2: "Apt 1",
242
+ * city: "New York",
243
+ * state: CandidApi.State.Ny,
244
+ * zipCode: "10001",
245
+ * zipPlusFourCode: "1234"
246
+ * },
247
+ * firstName: "John",
248
+ * lastName: "Doe",
249
+ * gender: CandidApi.Gender.Male
250
+ * },
251
+ * url: CandidApi.LinkUrl("https://example.com"),
252
+ * diagnoses: [{
253
+ * diagnosisId: CandidApi.DiagnosisId("5C770E00-4BBF-42AF-A73F-99C5E91FC0DB"),
254
+ * createdAt: new Date("2023-01-01T00:00:00.000Z"),
255
+ * updatedAt: new Date("2023-01-01T00:00:00.000Z"),
256
+ * encounterId: CandidApi.EncounterId("3F63985B-51A4-4DD4-9418-7D50B2520792"),
257
+ * name: "John Doe",
258
+ * codeType: CandidApi.DiagnosisTypeCode.Abf,
259
+ * code: "I10"
260
+ * }],
261
+ * clinicalNotes: [{
262
+ * category: CandidApi.encounters.v4.NoteCategory.Clinical,
263
+ * notes: ["Patient complained of mild chest pain."],
264
+ * notesStructured: [{
265
+ * text: "Mild chest pain since morning.",
266
+ * authorName: "John Doe",
267
+ * authorNpi: CandidApi.Npi("1234567890"),
268
+ * timestamp: new Date("2023-01-01T00:00:00.000Z")
269
+ * }]
270
+ * }],
271
+ * billingNotes: [{
272
+ * billingNoteId: CandidApi.billingNotes.v2.BillingNoteId("99882EEA-936F-4E71-BC4F-520E4D14E3E2"),
273
+ * encounterId: CandidApi.EncounterId("8BCFB6A8-2876-4111-9E3F-602B541FCF62"),
274
+ * createdAt: new Date("2023-01-01T00:00:00.000Z"),
275
+ * authorAuth0Id: "F0DE3BF9-F9A1-4FA7-BF6B-28C0B46BADD8",
276
+ * authorName: "John Doe",
277
+ * text: "Patient was billed for an MRI."
278
+ * }],
279
+ * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
280
+ * placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
281
+ * patientHistories: [{
282
+ * category: CandidApi.encounters.v4.PatientHistoryCategoryEnum.PresentIllness,
283
+ * questions: [{
284
+ * id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
285
+ * text: "Do you have any allergies?",
286
+ * responses: [{
287
+ * response: "No allergies",
288
+ * followUps: [{
289
+ * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
290
+ * text: "Do you have any allergies?",
291
+ * response: "No allergies"
292
+ * }]
293
+ * }]
294
+ * }]
295
+ * }],
296
+ * patientPayments: [{
297
+ * patientPaymentId: CandidApi.patientPayments.v3.PatientPaymentId("CF237BE1-E793-4BBF-8958-61D5179D1D0D"),
298
+ * organizationId: CandidApi.OrganizationId("0788CA2A-B20D-4B8E-B8D4-07FA0B3B4907"),
299
+ * sourceInternalId: "D1A76039-D5C5-4323-A2FC-B7C8B6AEF6A4",
300
+ * source: CandidApi.patientPayments.v3.PatientPaymentSource.ManualEntry,
301
+ * amountCents: 2000,
302
+ * paymentTimestamp: new Date("2023-01-01T00:00:00.000Z"),
303
+ * status: CandidApi.patientPayments.v3.PatientPaymentStatus.Pending,
304
+ * paymentName: "John Doe",
305
+ * paymentNote: "test payment note",
306
+ * patientExternalId: CandidApi.PatientExternalId("B7437260-D6B4-48CF-B9D7-753C09F34E76"),
307
+ * encounterExternalId: CandidApi.EncounterExternalId("0F26B9C3-199F-4CBB-A166-B87EA7C631BB"),
308
+ * serviceLineId: CandidApi.ServiceLineId("B557DC86-C629-478C-850A-02D45AC11783")
309
+ * }],
310
+ * tags: [{
311
+ * creatorId: "00EB5A46-35C6-441B-9751-AF307AEF5888",
312
+ * tagId: CandidApi.TagId("void-claim-submitted"),
313
+ * description: "to indicate claims where a void claim has been submitted",
314
+ * color: CandidApi.TagColorEnum.Black
315
+ * }],
316
+ * codingAttribution: CandidApi.encounters.v4.CodingAttributionType.Candid,
317
+ * workQueueId: CandidApi.WorkQueueId("000856FE-1024-418F-BF96-2E7347AB4520"),
318
+ * workQueueMembershipActivatedAt: new Date("2023-01-01T00:00:00.000Z"),
319
+ * ownerOfNextAction: CandidApi.encounters.v4.EncounterOwnerOfNextActionType.Candid,
320
+ * externalId: CandidApi.EncounterExternalId("5C21490F-A9C0-45F4-B5DB-136E3AEC617A"),
321
+ * dateOfService: CandidApi.Date_("2023-01-01"),
322
+ * endDateOfService: CandidApi.Date_("2023-01-05"),
323
+ * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("PA1234567"),
324
+ * patientAuthorizedRelease: true,
325
+ * benefitsAssignedToProvider: true,
326
+ * providerAcceptsAssignment: true,
327
+ * appointmentType: "Routine Checkup",
328
+ * existingMedications: [{
329
+ * name: "Lisinopril",
330
+ * rxCui: CandidApi.encounters.v4.RxCui("860975"),
331
+ * dosage: "10mg",
332
+ * dosageForm: "Tablet",
333
+ * frequency: "Once Daily",
334
+ * asNeeded: true
335
+ * }],
336
+ * vitals: {
337
+ * heightIn: 70,
338
+ * weightLbs: 165,
339
+ * bloodPressureSystolicMmhg: 115,
340
+ * bloodPressureDiastolicMmhg: 85,
341
+ * bodyTemperatureF: 98
342
+ * },
343
+ * interventions: [{
344
+ * name: "Physical Therapy Session",
345
+ * category: CandidApi.encounters.v4.InterventionCategory.Lifestyle,
346
+ * description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
347
+ * medication: {
348
+ * name: "Lisinopril",
349
+ * rxCui: CandidApi.encounters.v4.RxCui("860975"),
350
+ * dosage: "10mg",
351
+ * dosageForm: "Tablet",
352
+ * frequency: "Once Daily",
353
+ * asNeeded: true
354
+ * },
355
+ * labs: [{
356
+ * name: "Genetic Health Labs",
357
+ * code: "GH12345",
358
+ * codeType: CandidApi.encounters.v4.LabCodeType.Quest
359
+ * }]
360
+ * }],
361
+ * payToAddress: {
362
+ * address1: "123 Main St",
363
+ * address2: "Apt 1",
364
+ * city: "New York",
365
+ * state: CandidApi.State.Ny,
366
+ * zipCode: "10001",
367
+ * zipPlusFourCode: "1234"
368
+ * },
369
+ * synchronicity: CandidApi.encounters.v4.SynchronicityType.Synchronous,
370
+ * billableStatus: CandidApi.encounters.v4.BillableStatusType.Billable,
371
+ * responsibleParty: CandidApi.encounters.v4.ResponsiblePartyType.InsurancePay
372
+ * }]
373
+ * }
374
+ */
5
375
  export interface EncounterPage extends CandidApi.ResourcePage {
6
376
  items: CandidApi.encounters.v4.Encounter[];
7
377
  }
@@ -2,6 +2,14 @@
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
+ * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
9
+ * text: "Do you have any allergies?",
10
+ * response: "No allergies"
11
+ * }
12
+ */
5
13
  export interface IntakeFollowUp {
6
14
  id: CandidApi.encounters.v4.IntakeFollowUpId;
7
15
  text: string;
@@ -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
+ * id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
9
+ * text: "Do you have any allergies?",
10
+ * responses: [{
11
+ * response: "No allergies",
12
+ * followUps: [{
13
+ * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
14
+ * text: "Do you have any allergies?",
15
+ * response: "No allergies"
16
+ * }]
17
+ * }]
18
+ * }
19
+ */
5
20
  export interface IntakeQuestion {
6
21
  id: CandidApi.encounters.v4.IntakeQuestionId;
7
22
  text: 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
+ * response: "No allergies",
9
+ * followUps: [{
10
+ * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
11
+ * text: "Do you have any allergies?",
12
+ * response: "No allergies"
13
+ * }]
14
+ * }
15
+ */
5
16
  export interface IntakeResponseAndFollowUps {
6
17
  response?: string;
7
18
  followUps?: CandidApi.encounters.v4.IntakeFollowUp[];
@@ -2,6 +2,27 @@
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
+ * name: "Physical Therapy Session",
9
+ * category: CandidApi.encounters.v4.InterventionCategory.Lifestyle,
10
+ * description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
11
+ * medication: {
12
+ * name: "Lisinopril",
13
+ * rxCui: CandidApi.encounters.v4.RxCui("860975"),
14
+ * dosage: "10mg",
15
+ * dosageForm: "Tablet",
16
+ * frequency: "Once Daily",
17
+ * asNeeded: true
18
+ * },
19
+ * labs: [{
20
+ * name: "Genetic Health Labs",
21
+ * code: "GH12345",
22
+ * codeType: CandidApi.encounters.v4.LabCodeType.Quest
23
+ * }]
24
+ * }
25
+ */
5
26
  export interface Intervention {
6
27
  name: string;
7
28
  category: CandidApi.encounters.v4.InterventionCategory;
@@ -10,8 +31,8 @@ export interface Intervention {
10
31
  *
11
32
  */
12
33
  description?: string;
13
- /** Required when `type` is `allopathic` */
34
+ /** Required when `type` is `allopathic`. */
14
35
  medication?: CandidApi.encounters.v4.Medication;
15
- /** Required when `type` is `tests` */
36
+ /** Required when `type` is `tests`. */
16
37
  labs?: CandidApi.encounters.v4.Lab[];
17
38
  }
@@ -2,6 +2,14 @@
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
+ * name: "Genetic Health Labs",
9
+ * code: "GH12345",
10
+ * codeType: CandidApi.encounters.v4.LabCodeType.Quest
11
+ * }
12
+ */
5
13
  export interface Lab {
6
14
  name: string;
7
15
  code?: 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
+ * name: "Lisinopril",
9
+ * rxCui: CandidApi.encounters.v4.RxCui("860975"),
10
+ * dosage: "10mg",
11
+ * dosageForm: "Tablet",
12
+ * frequency: "Once Daily",
13
+ * asNeeded: true
14
+ * }
15
+ */
5
16
  export interface Medication {
6
17
  name: string;
7
18
  rxCui?: CandidApi.encounters.v4.RxCui;
@@ -2,6 +2,24 @@
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
+ * category: CandidApi.encounters.v4.PatientHistoryCategoryEnum.PresentIllness,
9
+ * questions: [{
10
+ * id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
11
+ * text: "Do you have any allergies?",
12
+ * responses: [{
13
+ * response: "No allergies",
14
+ * followUps: [{
15
+ * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
16
+ * text: "Do you have any allergies?",
17
+ * response: "No allergies"
18
+ * }]
19
+ * }]
20
+ * }]
21
+ * }
22
+ */
5
23
  export interface PatientHistoryCategory {
6
24
  category: CandidApi.encounters.v4.PatientHistoryCategoryEnum;
7
25
  /** Must contain at least one item. */
@@ -1,6 +1,16 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * heightIn: 70,
8
+ * weightLbs: 165,
9
+ * bloodPressureSystolicMmhg: 115,
10
+ * bloodPressureDiastolicMmhg: 85,
11
+ * bodyTemperatureF: 98
12
+ * }
13
+ */
4
14
  export interface Vitals {
5
15
  heightIn: number;
6
16
  weightLbs: number;
@@ -2,6 +2,14 @@
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
+ * eraId: CandidApi.EraId("4D844EF1-2253-43CD-A4F1-6DB7E65CB54B"),
9
+ * checkNumber: "CHK12345",
10
+ * checkDate: CandidApi.Date_("2023-10-12")
11
+ * }
12
+ */
5
13
  export interface Era extends CandidApi.EraBase {
6
14
  eraId: CandidApi.EraId;
7
15
  }
@@ -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.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -7,10 +7,19 @@ export interface ExpectedNetworkStatusRequest {
7
7
  subscriberPayerId: string;
8
8
  subscriberPayerName: string;
9
9
  subscriberInsuranceType?: CandidApi.InsuranceTypeCode;
10
+ /** The descriptive name of the insurance plan selected by the subscriber, often indicating coverage specifics or tier. */
10
11
  subscriberPlanName?: string;
12
+ /** The National Provider Identifier (NPI) of the healthcare provider responsible for billing. A unique 10-digit identification number. */
11
13
  billingProviderNpi: string;
14
+ /** Follow the 9-digit format of the Taxpayer Identification Number (TIN). */
12
15
  billingProviderTin: string;
16
+ /** The National Provider Identifier (NPI) of the healthcare provider who delivered the services. A unique 10-digit identification number. */
13
17
  renderingProviderNpi: string;
18
+ /** The state in which the healthcare provider has a contractual agreement with the insurance payer. */
14
19
  contractedState: CandidApi.State;
20
+ /**
21
+ * Date formatted as YYYY-MM-DD; eg: 2019-08-25.
22
+ *
23
+ */
15
24
  dateOfService: CandidApi.Date_;
16
25
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  export interface ExpectedNetworkStatusResponse {
6
+ /** The anticipated classification of a healthcare provider within the insurance plan's network. */
6
7
  expectedNetworkStatus: CandidApi.expectedNetworkStatus.v1.ExpectedNetworkStatus;
7
8
  explanation: string;
8
9
  contractId?: CandidApi.ContractId;
@@ -25,7 +25,7 @@ export declare class V3 {
25
25
  * **SLA guarantees:** Files for a given date are guaranteed to be available after 3 business days. For example, Friday's file will be
26
26
  * available by Wednesday at the latest. If file generation is still in progress upon request before 3 business days have passed, the
27
27
  * caller will receive a 422 response. If the file has already been generated, it will be served. Please email
28
- * support@joincandidhealth.com with any data requests outside of these stated guarantees.
28
+ * our [Support team](mailto:support@joincandidhealth.com) with any data requests outside of these stated guarantees.
29
29
  *
30
30
  */
31
31
  getExports(request: CandidApi.exports.v3.GetExportsRequest): Promise<core.APIResponse<CandidApi.exports.v3.GetExportsResponse, CandidApi.exports.v3.getExports.Error>>;
@@ -53,7 +53,7 @@ class V3 {
53
53
  * **SLA guarantees:** Files for a given date are guaranteed to be available after 3 business days. For example, Friday's file will be
54
54
  * available by Wednesday at the latest. If file generation is still in progress upon request before 3 business days have passed, the
55
55
  * caller will receive a 422 response. If the file has already been generated, it will be served. Please email
56
- * support@joincandidhealth.com with any data requests outside of these stated guarantees.
56
+ * our [Support team](mailto:support@joincandidhealth.com) with any data requests outside of these stated guarantees.
57
57
  *
58
58
  */
59
59
  async getExports(request) {
@@ -68,7 +68,7 @@ class V3 {
68
68
  Authorization: await this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "candidhealth",
71
- "X-Fern-SDK-Version": "0.6.2",
71
+ "X-Fern-SDK-Version": "0.6.4",
72
72
  },
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,