candidhealth 0.39.2 → 0.39.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 (202) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  4. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  5. package/api/resources/commons/types/EpsdtReferralConditionIndicatorCode.d.ts +10 -0
  6. package/api/resources/commons/types/EpsdtReferralConditionIndicatorCode.js +12 -0
  7. package/api/resources/commons/types/index.d.ts +1 -0
  8. package/api/resources/commons/types/index.js +1 -0
  9. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  10. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  11. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  12. package/api/resources/diagnoses/client/Client.js +3 -3
  13. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  14. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  15. package/api/resources/encounters/resources/v4/client/Client.d.ts +231 -83
  16. package/api/resources/encounters/resources/v4/client/Client.js +297 -89
  17. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +58 -0
  18. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +113 -0
  19. package/api/resources/encounters/resources/v4/client/index.d.ts +1 -0
  20. package/api/resources/encounters/resources/v4/client/index.js +2 -1
  21. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +12 -43
  22. package/api/resources/encounters/resources/v4/client/requests/index.d.ts +0 -1
  23. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  24. package/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +58 -0
  25. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -0
  26. package/api/resources/encounters/resources/v4/types/EpsdtReferral.d.ts +9 -0
  27. package/api/resources/encounters/resources/v4/types/index.d.ts +2 -0
  28. package/api/resources/encounters/resources/v4/types/index.js +2 -0
  29. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  30. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  31. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  32. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  33. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  34. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  35. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  36. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  37. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  38. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  39. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  40. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  41. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  42. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  43. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  44. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  45. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  46. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  47. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  48. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  49. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +2 -12
  50. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -20
  51. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  52. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  53. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +15 -3
  54. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +24 -12
  55. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +5 -1
  56. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +5 -1
  57. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  58. package/api/resources/serviceFacility/client/Client.js +1 -1
  59. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +6 -2
  60. package/api/resources/serviceLines/resources/v2/client/Client.js +9 -5
  61. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +10 -0
  62. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +10 -0
  63. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +10 -0
  64. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +10 -0
  65. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  66. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  67. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  68. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  69. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  70. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  71. package/dist/api/resources/commons/types/EpsdtReferralConditionIndicatorCode.d.ts +10 -0
  72. package/dist/api/resources/commons/types/EpsdtReferralConditionIndicatorCode.js +12 -0
  73. package/dist/api/resources/commons/types/index.d.ts +1 -0
  74. package/dist/api/resources/commons/types/index.js +1 -0
  75. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  76. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  77. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  78. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  79. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  80. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  81. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +231 -83
  82. package/dist/api/resources/encounters/resources/v4/client/Client.js +297 -89
  83. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +58 -0
  84. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +113 -0
  85. package/dist/api/resources/encounters/resources/v4/client/index.d.ts +1 -0
  86. package/dist/api/resources/encounters/resources/v4/client/index.js +2 -1
  87. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +12 -43
  88. package/dist/api/resources/encounters/resources/v4/client/requests/index.d.ts +0 -1
  89. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  90. package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +58 -0
  91. package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.js +5 -0
  92. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -0
  93. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferral.d.ts +9 -0
  94. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferral.js +5 -0
  95. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +2 -0
  96. package/dist/api/resources/encounters/resources/v4/types/index.js +2 -0
  97. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  98. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  99. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  100. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  101. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  102. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  103. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  104. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  105. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  106. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  107. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  108. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  109. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  110. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  111. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  112. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  113. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  114. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  115. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  116. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  117. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +2 -12
  118. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -20
  119. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  120. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  121. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +15 -3
  122. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +24 -12
  123. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +5 -1
  124. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +5 -1
  125. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  126. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  127. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +6 -2
  128. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +9 -5
  129. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +10 -0
  130. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +10 -0
  131. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +10 -0
  132. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +10 -0
  133. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  134. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  135. package/dist/serialization/resources/commons/types/EpsdtReferralConditionIndicatorCode.d.ts +10 -0
  136. package/dist/serialization/resources/commons/types/EpsdtReferralConditionIndicatorCode.js +31 -0
  137. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  138. package/dist/serialization/resources/commons/types/index.js +1 -0
  139. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +39 -0
  140. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +90 -0
  141. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +1 -0
  142. package/dist/serialization/resources/encounters/resources/v4/client/index.js +2 -1
  143. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
  144. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
  145. package/dist/serialization/resources/encounters/resources/v4/client/requests/index.d.ts +0 -1
  146. package/dist/serialization/resources/encounters/resources/v4/client/requests/index.js +1 -3
  147. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  148. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  149. package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +44 -0
  150. package/dist/serialization/resources/encounters/resources/v4/{client/requests → types}/EncounterCreateFromPreEncounter.js +18 -18
  151. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -0
  152. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +2 -0
  153. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferral.d.ts +15 -0
  154. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferral.js +36 -0
  155. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +2 -0
  156. package/dist/serialization/resources/encounters/resources/v4/types/index.js +2 -0
  157. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  158. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  159. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  160. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
  161. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  162. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +2 -0
  163. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  164. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
  165. package/package.json +1 -1
  166. package/reference.md +327 -100
  167. package/serialization/resources/commons/types/EpsdtReferralConditionIndicatorCode.d.ts +10 -0
  168. package/serialization/resources/commons/types/EpsdtReferralConditionIndicatorCode.js +31 -0
  169. package/serialization/resources/commons/types/index.d.ts +1 -0
  170. package/serialization/resources/commons/types/index.js +1 -0
  171. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +39 -0
  172. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +90 -0
  173. package/serialization/resources/encounters/resources/v4/client/index.d.ts +1 -0
  174. package/serialization/resources/encounters/resources/v4/client/index.js +2 -1
  175. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +2 -0
  176. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +2 -0
  177. package/serialization/resources/encounters/resources/v4/client/requests/index.d.ts +0 -1
  178. package/serialization/resources/encounters/resources/v4/client/requests/index.js +1 -3
  179. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  180. package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  181. package/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +44 -0
  182. package/serialization/resources/encounters/resources/v4/{client/requests → types}/EncounterCreateFromPreEncounter.js +18 -18
  183. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +2 -0
  184. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +2 -0
  185. package/serialization/resources/encounters/resources/v4/types/EpsdtReferral.d.ts +15 -0
  186. package/serialization/resources/encounters/resources/v4/types/EpsdtReferral.js +36 -0
  187. package/serialization/resources/encounters/resources/v4/types/index.d.ts +2 -0
  188. package/serialization/resources/encounters/resources/v4/types/index.js +2 -0
  189. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  190. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
  191. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
  192. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
  193. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -0
  194. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +2 -0
  195. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  196. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
  197. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +0 -319
  198. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +0 -319
  199. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +0 -44
  200. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +0 -44
  201. /package/api/resources/encounters/resources/v4/{client/requests → types}/EncounterCreateFromPreEncounter.js +0 -0
  202. /package/{dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.js → api/resources/encounters/resources/v4/types/EpsdtReferral.js} +0 -0
@@ -239,12 +239,7 @@ export declare class V4 {
239
239
  * }],
240
240
  * clinicalNotes: [{
241
241
  * category: CandidApi.encounters.v4.NoteCategory.Clinical,
242
- * notes: [{
243
- * text: "string",
244
- * authorName: "string",
245
- * authorNpi: CandidApi.Npi("string"),
246
- * timestamp: new Date("2024-01-15T09:30:00.000Z")
247
- * }]
242
+ * notes: []
248
243
  * }],
249
244
  * billingNotes: [{
250
245
  * text: "string"
@@ -266,45 +261,10 @@ export declare class V4 {
266
261
  * }]
267
262
  * }],
268
263
  * serviceLines: [{
269
- * modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
270
264
  * procedureCode: "string",
271
265
  * quantity: CandidApi.Decimal("string"),
272
266
  * units: CandidApi.ServiceLineUnits.Mj,
273
- * chargeAmountCents: 1,
274
- * diagnosisPointers: [1],
275
- * drugIdentification: {
276
- * serviceIdQualifier: CandidApi.serviceLines.v2.ServiceIdQualifier.EanUcc13,
277
- * nationalDrugCode: "string",
278
- * nationalDrugUnitCount: "string",
279
- * measurementUnitCode: CandidApi.serviceLines.v2.MeasurementUnitCode.Milliliters,
280
- * linkSequenceNumber: "string",
281
- * pharmacyPrescriptionNumber: "string",
282
- * conversionFormula: "string",
283
- * drugDescription: "string"
284
- * },
285
- * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
286
- * description: "string",
287
- * dateOfService: "2023-01-15",
288
- * endDateOfService: "2023-01-15",
289
- * orderingProvider: {
290
- * npi: "string",
291
- * taxonomyCode: "string",
292
- * address: {
293
- * address1: "123 Main St",
294
- * address2: "Apt 1",
295
- * city: "New York",
296
- * state: CandidApi.State.Ny,
297
- * zipCode: "10001",
298
- * zipPlusFourCode: "1234"
299
- * },
300
- * firstName: "string",
301
- * lastName: "string",
302
- * organizationName: "string"
303
- * },
304
- * testResults: [{
305
- * value: 1.1,
306
- * resultType: CandidApi.serviceLines.v2.TestResultType.Hematocrit
307
- * }]
267
+ * diagnosisPointers: []
308
268
  * }],
309
269
  * guarantor: {
310
270
  * phoneNumbers: [{
@@ -353,6 +313,11 @@ export declare class V4 {
353
313
  * }
354
314
  * }],
355
315
  * referralNumber: "string",
316
+ * epsdtReferral: {
317
+ * conditionIndicator1: CandidApi.EpsdtReferralConditionIndicatorCode.Av,
318
+ * conditionIndicator2: CandidApi.EpsdtReferralConditionIndicatorCode.Av,
319
+ * conditionIndicator3: CandidApi.EpsdtReferralConditionIndicatorCode.Av
320
+ * },
356
321
  * externalId: CandidApi.EncounterExternalId("string"),
357
322
  * dateOfService: "2023-01-15",
358
323
  * endDateOfService: "2023-01-15",
@@ -524,12 +489,7 @@ export declare class V4 {
524
489
  * }],
525
490
  * clinicalNotes: [{
526
491
  * category: CandidApi.encounters.v4.NoteCategory.Clinical,
527
- * notes: [{
528
- * text: "string",
529
- * authorName: "string",
530
- * authorNpi: CandidApi.Npi("string"),
531
- * timestamp: new Date("2024-01-15T09:30:00.000Z")
532
- * }]
492
+ * notes: []
533
493
  * }],
534
494
  * billingNotes: [{
535
495
  * text: "string"
@@ -551,46 +511,234 @@ export declare class V4 {
551
511
  * }]
552
512
  * }],
553
513
  * serviceLines: [{
554
- * modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
555
514
  * procedureCode: "string",
556
515
  * quantity: CandidApi.Decimal("string"),
557
516
  * units: CandidApi.ServiceLineUnits.Mj,
558
- * chargeAmountCents: 1,
559
- * diagnosisPointers: [1],
560
- * drugIdentification: {
561
- * serviceIdQualifier: CandidApi.serviceLines.v2.ServiceIdQualifier.EanUcc13,
562
- * nationalDrugCode: "string",
563
- * nationalDrugUnitCount: "string",
564
- * measurementUnitCode: CandidApi.serviceLines.v2.MeasurementUnitCode.Milliliters,
565
- * linkSequenceNumber: "string",
566
- * pharmacyPrescriptionNumber: "string",
567
- * conversionFormula: "string",
568
- * drugDescription: "string"
569
- * },
570
- * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
571
- * description: "string",
572
- * dateOfService: "2023-01-15",
573
- * endDateOfService: "2023-01-15",
574
- * orderingProvider: {
575
- * npi: "string",
576
- * taxonomyCode: "string",
577
- * address: {
578
- * address1: "123 Main St",
579
- * address2: "Apt 1",
580
- * city: "New York",
581
- * state: CandidApi.State.Ny,
582
- * zipCode: "10001",
583
- * zipPlusFourCode: "1234"
584
- * },
585
- * firstName: "string",
586
- * lastName: "string",
587
- * organizationName: "string"
517
+ * diagnosisPointers: []
518
+ * }],
519
+ * externalClaimSubmission: {
520
+ * claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
521
+ * patientControlNumber: "PATIENT_CONTROL_NUMBER",
522
+ * submissionRecords: [{
523
+ * submittedAt: new Date("2023-01-01T13:00:00.000Z"),
524
+ * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
525
+ * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
526
+ * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
527
+ * }, {
528
+ * submittedAt: new Date("2023-01-04T12:00:00.000Z"),
529
+ * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
530
+ * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
531
+ * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
532
+ * }]
533
+ * },
534
+ * tagIds: [CandidApi.TagId("string")],
535
+ * schemaInstances: [{
536
+ * schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
537
+ * content: {
538
+ * "provider_category": "internist",
539
+ * "is_urgent_care": true,
540
+ * "bmi": 24.2,
541
+ * "age": 38
542
+ * }
543
+ * }],
544
+ * externalId: CandidApi.EncounterExternalId("string"),
545
+ * dateOfService: "2023-01-15",
546
+ * endDateOfService: "2023-01-15",
547
+ * patientAuthorizedRelease: true,
548
+ * benefitsAssignedToProvider: true,
549
+ * providerAcceptsAssignment: true,
550
+ * appointmentType: "string",
551
+ * existingMedications: [{
552
+ * name: "Lisinopril",
553
+ * rxCui: CandidApi.encounters.v4.RxCui("860975"),
554
+ * dosage: "10mg",
555
+ * dosageForm: "Tablet",
556
+ * frequency: "Once Daily",
557
+ * asNeeded: true
558
+ * }],
559
+ * vitals: {
560
+ * heightIn: 70,
561
+ * weightLbs: 165,
562
+ * bloodPressureSystolicMmhg: 115,
563
+ * bloodPressureDiastolicMmhg: 85,
564
+ * bodyTemperatureF: 98,
565
+ * hemoglobinGdl: 15.1,
566
+ * hematocritPct: 51.2
567
+ * },
568
+ * interventions: [{
569
+ * name: "Physical Therapy Session",
570
+ * category: CandidApi.encounters.v4.InterventionCategory.Lifestyle,
571
+ * description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
572
+ * medication: {
573
+ * name: "Lisinopril",
574
+ * rxCui: CandidApi.encounters.v4.RxCui("860975"),
575
+ * dosage: "10mg",
576
+ * dosageForm: "Tablet",
577
+ * frequency: "Once Daily",
578
+ * asNeeded: true
588
579
  * },
589
- * testResults: [{
590
- * value: 1.1,
591
- * resultType: CandidApi.serviceLines.v2.TestResultType.Hematocrit
580
+ * labs: [{
581
+ * name: "Genetic Health Labs",
582
+ * code: "GH12345",
583
+ * codeType: CandidApi.encounters.v4.LabCodeType.Quest
584
+ * }]
585
+ * }],
586
+ * payToAddress: {
587
+ * address1: "123 Main St",
588
+ * address2: "Apt 1",
589
+ * city: "New York",
590
+ * state: CandidApi.State.Ny,
591
+ * zipCode: "10001",
592
+ * zipPlusFourCode: "1234"
593
+ * },
594
+ * synchronicity: CandidApi.encounters.v4.SynchronicityType.Synchronous,
595
+ * billableStatus: CandidApi.encounters.v4.BillableStatusType.Billable,
596
+ * additionalInformation: "string",
597
+ * serviceAuthorizationExceptionCode: CandidApi.encounters.v4.ServiceAuthorizationExceptionCode.C1,
598
+ * admissionDate: "2023-01-15",
599
+ * dischargeDate: "2023-01-15",
600
+ * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
601
+ * lastMenstrualPeriodDate: "2023-01-15",
602
+ * delayReasonCode: CandidApi.DelayReasonCode.C1
603
+ * })
604
+ */
605
+ createFromPreEncounterPatient(request: CandidApi.encounters.v4.EncounterCreateFromPreEncounter, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.encounters.v4.Encounter, CandidApi.encounters.v4.createFromPreEncounterPatient.Error>>;
606
+ /**
607
+ * Create an encounter from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
608
+ * patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
609
+ * of the pre-encounter service should use the standard create endpoint.
610
+ *
611
+ * The endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects
612
+ * where applicable. In particular, the following fields are populated from the patient and appointment objects:
613
+ *
614
+ * - Patient
615
+ * - Referring Provider
616
+ * - Subscriber Primary
617
+ * - Subscriber Secondary
618
+ * - Referral Number
619
+ * - Responsible Party
620
+ * - Guarantor
621
+ *
622
+ * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
623
+ * encounter has not already been submitted or adjudicated.
624
+ *
625
+ * @param {CandidApi.encounters.v4.EncounterCreateFromPreEncounter} request
626
+ * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
627
+ *
628
+ * @example
629
+ * await client.encounters.v4.createFromPreEncounterPatientInternal({
630
+ * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
631
+ * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
632
+ * billingProvider: {
633
+ * address: {
634
+ * address1: "123 Main St",
635
+ * address2: "Apt 1",
636
+ * city: "New York",
637
+ * state: CandidApi.State.Ny,
638
+ * zipCode: "10001",
639
+ * zipPlusFourCode: "1234"
640
+ * },
641
+ * taxId: "string",
642
+ * npi: "string",
643
+ * taxonomyCode: "string",
644
+ * providerCommercialLicenseType: CandidApi.BillingProviderCommercialLicenseType.LicensedClinicalSocialWorker,
645
+ * firstName: "string",
646
+ * lastName: "string",
647
+ * organizationName: "string"
648
+ * },
649
+ * renderingProvider: {
650
+ * npi: "string",
651
+ * taxonomyCode: "string",
652
+ * address: {
653
+ * address1: "123 Main St",
654
+ * address2: "Apt 1",
655
+ * city: "New York",
656
+ * state: CandidApi.State.Ny,
657
+ * zipCode: "10001",
658
+ * zipPlusFourCode: "1234"
659
+ * },
660
+ * firstName: "string",
661
+ * lastName: "string",
662
+ * organizationName: "string"
663
+ * },
664
+ * initialReferringProvider: {
665
+ * npi: "string",
666
+ * taxonomyCode: "string",
667
+ * address: {
668
+ * address1: "123 Main St",
669
+ * address2: "Apt 1",
670
+ * city: "New York",
671
+ * state: CandidApi.State.Ny,
672
+ * zipCode: "10001",
673
+ * zipPlusFourCode: "1234"
674
+ * },
675
+ * qualifier: CandidApi.QualifierCode.Dq,
676
+ * firstName: "string",
677
+ * lastName: "string",
678
+ * organizationName: "string"
679
+ * },
680
+ * supervisingProvider: {
681
+ * npi: "string",
682
+ * taxonomyCode: "string",
683
+ * address: {
684
+ * address1: "123 Main St",
685
+ * address2: "Apt 1",
686
+ * city: "New York",
687
+ * state: CandidApi.State.Ny,
688
+ * zipCode: "10001",
689
+ * zipPlusFourCode: "1234"
690
+ * },
691
+ * firstName: "string",
692
+ * lastName: "string",
693
+ * organizationName: "string"
694
+ * },
695
+ * serviceFacility: {
696
+ * organizationName: "string",
697
+ * npi: "string",
698
+ * address: {
699
+ * address1: "123 Main St",
700
+ * address2: "Apt 1",
701
+ * city: "New York",
702
+ * state: CandidApi.State.Ny,
703
+ * zipCode: "10001",
704
+ * zipPlusFourCode: "1234"
705
+ * },
706
+ * secondaryIdentification: "string"
707
+ * },
708
+ * diagnoses: [{
709
+ * name: "string",
710
+ * codeType: CandidApi.DiagnosisTypeCode.Abf,
711
+ * code: "string"
712
+ * }],
713
+ * clinicalNotes: [{
714
+ * category: CandidApi.encounters.v4.NoteCategory.Clinical,
715
+ * notes: []
716
+ * }],
717
+ * billingNotes: [{
718
+ * text: "string"
719
+ * }],
720
+ * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
721
+ * patientHistories: [{
722
+ * category: CandidApi.encounters.v4.PatientHistoryCategoryEnum.PresentIllness,
723
+ * questions: [{
724
+ * id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
725
+ * text: "Do you have any allergies?",
726
+ * responses: [{
727
+ * response: "No allergies",
728
+ * followUps: [{
729
+ * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
730
+ * text: "Do you have any allergies?",
731
+ * response: "No allergies"
732
+ * }]
733
+ * }]
592
734
  * }]
593
735
  * }],
736
+ * serviceLines: [{
737
+ * procedureCode: "string",
738
+ * quantity: CandidApi.Decimal("string"),
739
+ * units: CandidApi.ServiceLineUnits.Mj,
740
+ * diagnosisPointers: []
741
+ * }],
594
742
  * externalClaimSubmission: {
595
743
  * claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
596
744
  * patientControlNumber: "PATIENT_CONTROL_NUMBER",
@@ -677,7 +825,7 @@ export declare class V4 {
677
825
  * delayReasonCode: CandidApi.DelayReasonCode.C1
678
826
  * })
679
827
  */
680
- createFromPreEncounterPatient(request: CandidApi.encounters.v4.EncounterCreateFromPreEncounter, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.encounters.v4.Encounter, CandidApi.encounters.v4.createFromPreEncounterPatient.Error>>;
828
+ createFromPreEncounterPatientInternal(request: CandidApi.encounters.v4.EncounterCreateFromPreEncounter, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.encounters.v4.Encounter, CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error>>;
681
829
  /**
682
830
  * @param {CandidApi.EncounterId} encounterId
683
831
  * @param {CandidApi.encounters.v4.EncounterUpdate} request