candidhealth 0.41.1 → 0.41.3

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 (262) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +15 -10
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  5. package/api/resources/chargeCapture/resources/v1/client/Client.js +6 -6
  6. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  7. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +5 -0
  8. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +5 -1
  9. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -0
  10. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
  11. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  12. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  13. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  14. package/api/resources/diagnoses/client/Client.js +3 -3
  15. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  16. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  17. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  18. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  19. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  20. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  21. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  22. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  23. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  24. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  25. package/api/resources/index.d.ts +1 -0
  26. package/api/resources/index.js +3 -2
  27. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  28. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  29. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  30. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  31. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  32. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  33. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  34. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  35. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  36. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  37. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  38. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  39. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  40. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  41. package/api/resources/preEncounter/resources/common/types/Gender.d.ts +3 -1
  42. package/api/resources/preEncounter/resources/common/types/Gender.js +2 -0
  43. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +16 -0
  44. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +52 -9
  45. package/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.d.ts +22 -0
  46. package/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.js +57 -0
  47. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  48. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -1
  49. package/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +10 -0
  50. package/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +5 -0
  51. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  52. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  53. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  54. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  55. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  56. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  57. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +3 -0
  58. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +14 -11
  59. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +1 -0
  60. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +1 -0
  61. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  62. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  63. package/api/resources/serviceFacility/client/Client.js +1 -1
  64. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  65. package/api/resources/superbills/client/Client.d.ts +30 -0
  66. package/api/resources/superbills/client/Client.js +17 -0
  67. package/api/resources/superbills/client/index.d.ts +1 -0
  68. package/api/resources/superbills/client/index.js +2 -0
  69. package/api/resources/superbills/index.d.ts +2 -0
  70. package/api/resources/superbills/index.js +18 -0
  71. package/api/resources/superbills/resources/index.d.ts +1 -0
  72. package/api/resources/superbills/resources/index.js +37 -0
  73. package/api/resources/superbills/resources/v1/client/Client.d.ts +49 -0
  74. package/api/resources/superbills/resources/v1/client/Client.js +137 -0
  75. package/api/resources/superbills/resources/v1/client/createSuperbill.d.ts +28 -0
  76. package/api/resources/superbills/resources/v1/client/createSuperbill.js +68 -0
  77. package/api/resources/superbills/resources/v1/client/index.d.ts +2 -0
  78. package/api/resources/superbills/resources/v1/client/index.js +41 -0
  79. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +33 -0
  80. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +5 -0
  81. package/api/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  82. package/api/resources/superbills/resources/v1/client/requests/index.js +2 -0
  83. package/api/resources/superbills/resources/v1/index.d.ts +2 -0
  84. package/api/resources/superbills/resources/v1/index.js +18 -0
  85. package/api/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  86. package/api/resources/superbills/resources/v1/types/Superbill.js +5 -0
  87. package/api/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +8 -0
  88. package/api/resources/superbills/resources/v1/types/SuperbillResponse.js +5 -0
  89. package/api/resources/superbills/resources/v1/types/index.d.ts +2 -0
  90. package/api/resources/superbills/resources/v1/types/index.js +18 -0
  91. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  92. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  93. package/dist/Client.d.ts +3 -0
  94. package/dist/Client.js +15 -10
  95. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  96. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  97. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +6 -6
  98. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  99. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +5 -0
  100. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +5 -1
  101. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -0
  102. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
  103. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  104. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  105. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  106. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  107. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  108. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  109. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  110. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  111. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  112. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  113. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  114. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  115. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  116. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  117. package/dist/api/resources/index.d.ts +1 -0
  118. package/dist/api/resources/index.js +3 -2
  119. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  120. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  121. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  122. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  123. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  124. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  125. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  126. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  127. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  128. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  129. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  130. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  131. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  132. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  133. package/dist/api/resources/preEncounter/resources/common/types/Gender.d.ts +3 -1
  134. package/dist/api/resources/preEncounter/resources/common/types/Gender.js +2 -0
  135. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +16 -0
  136. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +52 -9
  137. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.d.ts +22 -0
  138. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.js +57 -0
  139. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  140. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -1
  141. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +10 -0
  142. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +5 -0
  143. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  144. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  145. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  146. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  147. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  148. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  149. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +3 -0
  150. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +14 -11
  151. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +1 -0
  152. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +1 -0
  153. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  154. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  155. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  156. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  157. package/dist/api/resources/superbills/client/Client.d.ts +30 -0
  158. package/dist/api/resources/superbills/client/Client.js +17 -0
  159. package/dist/api/resources/superbills/client/index.d.ts +1 -0
  160. package/dist/api/resources/superbills/client/index.js +2 -0
  161. package/dist/api/resources/superbills/index.d.ts +2 -0
  162. package/dist/api/resources/superbills/index.js +18 -0
  163. package/dist/api/resources/superbills/resources/index.d.ts +1 -0
  164. package/dist/api/resources/superbills/resources/index.js +37 -0
  165. package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +49 -0
  166. package/dist/api/resources/superbills/resources/v1/client/Client.js +137 -0
  167. package/dist/api/resources/superbills/resources/v1/client/createSuperbill.d.ts +28 -0
  168. package/dist/api/resources/superbills/resources/v1/client/createSuperbill.js +68 -0
  169. package/dist/api/resources/superbills/resources/v1/client/index.d.ts +2 -0
  170. package/dist/api/resources/superbills/resources/v1/client/index.js +41 -0
  171. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +33 -0
  172. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +5 -0
  173. package/dist/api/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  174. package/dist/api/resources/superbills/resources/v1/client/requests/index.js +2 -0
  175. package/dist/api/resources/superbills/resources/v1/index.d.ts +2 -0
  176. package/dist/api/resources/superbills/resources/v1/index.js +18 -0
  177. package/dist/api/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  178. package/dist/api/resources/superbills/resources/v1/types/Superbill.js +5 -0
  179. package/dist/api/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +8 -0
  180. package/dist/api/resources/superbills/resources/v1/types/SuperbillResponse.js +5 -0
  181. package/dist/api/resources/superbills/resources/v1/types/index.d.ts +2 -0
  182. package/dist/api/resources/superbills/resources/v1/types/index.js +18 -0
  183. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  184. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  185. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -0
  186. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -0
  187. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  188. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +9 -1
  189. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +1 -0
  190. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +1 -0
  191. package/dist/serialization/resources/index.d.ts +1 -0
  192. package/dist/serialization/resources/index.js +3 -2
  193. package/dist/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
  194. package/dist/serialization/resources/preEncounter/resources/common/types/Gender.js +11 -1
  195. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +18 -0
  196. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +49 -0
  197. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  198. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  199. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -0
  200. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +1 -0
  201. package/dist/serialization/resources/superbills/index.d.ts +1 -0
  202. package/dist/serialization/resources/superbills/index.js +17 -0
  203. package/dist/serialization/resources/superbills/resources/index.d.ts +1 -0
  204. package/dist/serialization/resources/superbills/resources/index.js +37 -0
  205. package/dist/serialization/resources/superbills/resources/v1/client/createSuperbill.d.ts +15 -0
  206. package/dist/serialization/resources/superbills/resources/v1/client/createSuperbill.js +71 -0
  207. package/dist/serialization/resources/superbills/resources/v1/client/index.d.ts +2 -0
  208. package/dist/serialization/resources/superbills/resources/v1/client/index.js +41 -0
  209. package/dist/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +17 -0
  210. package/dist/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +48 -0
  211. package/dist/serialization/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  212. package/dist/serialization/resources/superbills/resources/v1/client/requests/index.js +5 -0
  213. package/dist/serialization/resources/superbills/resources/v1/index.d.ts +2 -0
  214. package/dist/serialization/resources/superbills/resources/v1/index.js +18 -0
  215. package/dist/serialization/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  216. package/dist/serialization/resources/superbills/resources/v1/types/Superbill.js +49 -0
  217. package/dist/serialization/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +13 -0
  218. package/dist/serialization/resources/superbills/resources/v1/types/SuperbillResponse.js +44 -0
  219. package/dist/serialization/resources/superbills/resources/v1/types/index.d.ts +2 -0
  220. package/dist/serialization/resources/superbills/resources/v1/types/index.js +18 -0
  221. package/dist/version.d.ts +1 -1
  222. package/dist/version.js +1 -1
  223. package/package.json +1 -1
  224. package/reference.md +144 -0
  225. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -0
  226. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -0
  227. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  228. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +9 -1
  229. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +1 -0
  230. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +1 -0
  231. package/serialization/resources/index.d.ts +1 -0
  232. package/serialization/resources/index.js +3 -2
  233. package/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
  234. package/serialization/resources/preEncounter/resources/common/types/Gender.js +11 -1
  235. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +18 -0
  236. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +49 -0
  237. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
  238. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
  239. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -0
  240. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +1 -0
  241. package/serialization/resources/superbills/index.d.ts +1 -0
  242. package/serialization/resources/superbills/index.js +17 -0
  243. package/serialization/resources/superbills/resources/index.d.ts +1 -0
  244. package/serialization/resources/superbills/resources/index.js +37 -0
  245. package/serialization/resources/superbills/resources/v1/client/createSuperbill.d.ts +15 -0
  246. package/serialization/resources/superbills/resources/v1/client/createSuperbill.js +71 -0
  247. package/serialization/resources/superbills/resources/v1/client/index.d.ts +2 -0
  248. package/serialization/resources/superbills/resources/v1/client/index.js +41 -0
  249. package/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +17 -0
  250. package/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +48 -0
  251. package/serialization/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
  252. package/serialization/resources/superbills/resources/v1/client/requests/index.js +5 -0
  253. package/serialization/resources/superbills/resources/v1/index.d.ts +2 -0
  254. package/serialization/resources/superbills/resources/v1/index.js +18 -0
  255. package/serialization/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
  256. package/serialization/resources/superbills/resources/v1/types/Superbill.js +49 -0
  257. package/serialization/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +13 -0
  258. package/serialization/resources/superbills/resources/v1/types/SuperbillResponse.js +44 -0
  259. package/serialization/resources/superbills/resources/v1/types/index.d.ts +2 -0
  260. package/serialization/resources/superbills/resources/v1/types/index.js +18 -0
  261. package/version.d.ts +1 -1
  262. package/version.js +1 -1
package/reference.md CHANGED
@@ -9166,6 +9166,68 @@ await client.serviceLines.v2.delete(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-
9166
9166
  </dl>
9167
9167
  </details>
9168
9168
 
9169
+ ## Superbills V1
9170
+
9171
+ <details><summary><code>client.superbills.v1.<a href="/src/api/resources/superbills/resources/v1/client/Client.ts">createSuperbill</a>({ ...params }) -> core.APIResponse<CandidApi.SuperbillResponse, CandidApi.superbills.v1.createSuperbill.Error></code></summary>
9172
+ <dl>
9173
+ <dd>
9174
+
9175
+ #### 🔌 Usage
9176
+
9177
+ <dl>
9178
+ <dd>
9179
+
9180
+ <dl>
9181
+ <dd>
9182
+
9183
+ ```typescript
9184
+ await client.superbills.v1.createSuperbill({
9185
+ patientExternalId: CandidApi.PatientExternalId("string"),
9186
+ dateRangeMin: "2023-01-15",
9187
+ dateRangeMax: "2023-01-15",
9188
+ payToAddress: {
9189
+ address1: "123 Main St",
9190
+ address2: "Apt 1",
9191
+ city: "New York",
9192
+ state: "NY",
9193
+ zipCode: "10001",
9194
+ zipPlusFourCode: "1234",
9195
+ },
9196
+ });
9197
+ ```
9198
+
9199
+ </dd>
9200
+ </dl>
9201
+ </dd>
9202
+ </dl>
9203
+
9204
+ #### ⚙️ Parameters
9205
+
9206
+ <dl>
9207
+ <dd>
9208
+
9209
+ <dl>
9210
+ <dd>
9211
+
9212
+ **request:** `CandidApi.superbills.v1.CreateSuperbillRequest`
9213
+
9214
+ </dd>
9215
+ </dl>
9216
+
9217
+ <dl>
9218
+ <dd>
9219
+
9220
+ **requestOptions:** `V1.RequestOptions`
9221
+
9222
+ </dd>
9223
+ </dl>
9224
+ </dd>
9225
+ </dl>
9226
+
9227
+ </dd>
9228
+ </dl>
9229
+ </details>
9230
+
9169
9231
  ## Tasks V3
9170
9232
 
9171
9233
  <details><summary><code>client.tasks.v3.<a href="/src/api/resources/tasks/resources/v3/client/Client.ts">getActions</a>(taskId) -> core.APIResponse<CandidApi.TaskActions, CandidApi.tasks.v3.getActions.Error></code></summary>
@@ -10964,6 +11026,85 @@ await client.preEncounter.coverages.v1.scan({
10964
11026
  </dl>
10965
11027
  </details>
10966
11028
 
11029
+ <details><summary><code>client.preEncounter.coverages.v1.<a href="/src/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.ts">batchUpdatePpg</a>(ppgId, { ...params }) -> core.APIResponse<void, CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error></code></summary>
11030
+ <dl>
11031
+ <dd>
11032
+
11033
+ #### 📝 Description
11034
+
11035
+ <dl>
11036
+ <dd>
11037
+
11038
+ <dl>
11039
+ <dd>
11040
+
11041
+ Finds all coverages associated with the given ppg_id and updates the ppg_fields for each coverage.
11042
+
11043
+ </dd>
11044
+ </dl>
11045
+ </dd>
11046
+ </dl>
11047
+
11048
+ #### 🔌 Usage
11049
+
11050
+ <dl>
11051
+ <dd>
11052
+
11053
+ <dl>
11054
+ <dd>
11055
+
11056
+ ```typescript
11057
+ await client.preEncounter.coverages.v1.batchUpdatePpg(
11058
+ CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
11059
+ {
11060
+ payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
11061
+ payerId: CandidApi.PayerId("string"),
11062
+ payerName: "string",
11063
+ planType: "09",
11064
+ },
11065
+ );
11066
+ ```
11067
+
11068
+ </dd>
11069
+ </dl>
11070
+ </dd>
11071
+ </dl>
11072
+
11073
+ #### ⚙️ Parameters
11074
+
11075
+ <dl>
11076
+ <dd>
11077
+
11078
+ <dl>
11079
+ <dd>
11080
+
11081
+ **ppgId:** `CandidApi.PayerPlanGroupId`
11082
+
11083
+ </dd>
11084
+ </dl>
11085
+
11086
+ <dl>
11087
+ <dd>
11088
+
11089
+ **request:** `CandidApi.PayerPlanGroupFields`
11090
+
11091
+ </dd>
11092
+ </dl>
11093
+
11094
+ <dl>
11095
+ <dd>
11096
+
11097
+ **requestOptions:** `V1.RequestOptions`
11098
+
11099
+ </dd>
11100
+ </dl>
11101
+ </dd>
11102
+ </dl>
11103
+
11104
+ </dd>
11105
+ </dl>
11106
+ </details>
11107
+
10967
11108
  <details><summary><code>client.preEncounter.coverages.v1.<a href="/src/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.ts">checkEligibility</a>(id, { ...params }) -> core.APIResponse<CandidApi.EligibilityCheckMetadata, CandidApi.preEncounter.coverages.v1.checkEligibility.Error></code></summary>
10968
11109
  <dl>
10969
11110
  <dd>
@@ -12058,6 +12199,7 @@ await client.preEncounter.patients.v1.create({
12058
12199
  socialSecurityNumber: "string",
12059
12200
  biologicalSex: "FEMALE",
12060
12201
  sexualOrientation: "HETEROSEXUAL",
12202
+ pronouns: ["string"],
12061
12203
  race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
12062
12204
  ethnicity: "HISPANIC_OR_LATINO",
12063
12205
  disabilityStatus: "DISABLED",
@@ -12329,6 +12471,7 @@ await client.preEncounter.patients.v1.createWithMrn({
12329
12471
  socialSecurityNumber: "string",
12330
12472
  biologicalSex: "FEMALE",
12331
12473
  sexualOrientation: "HETEROSEXUAL",
12474
+ pronouns: ["string"],
12332
12475
  race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
12333
12476
  ethnicity: "HISPANIC_OR_LATINO",
12334
12477
  disabilityStatus: "DISABLED",
@@ -12857,6 +13000,7 @@ await client.preEncounter.patients.v1.update(CandidApi.PatientId("string"), "str
12857
13000
  socialSecurityNumber: "string",
12858
13001
  biologicalSex: "FEMALE",
12859
13002
  sexualOrientation: "HETEROSEXUAL",
13003
+ pronouns: ["string"],
12860
13004
  race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
12861
13005
  ethnicity: "HISPANIC_OR_LATINO",
12862
13006
  disabilityStatus: "DISABLED",
@@ -15,6 +15,7 @@ export declare namespace ChargeCaptureBundle {
15
15
  id: ChargeCaptureBundleId.Raw;
16
16
  created_encounter_id?: EncounterId.Raw | null;
17
17
  status: ChargeCaptureBundleStatus.Raw;
18
+ characteristics: Record<string, string>;
18
19
  charge_captures: ChargeCapture.Raw[];
19
20
  errors: ChargeCaptureError.Raw[];
20
21
  }
@@ -47,6 +47,7 @@ exports.ChargeCaptureBundle = core.serialization.object({
47
47
  id: ChargeCaptureBundleId_1.ChargeCaptureBundleId,
48
48
  createdEncounterId: core.serialization.property("created_encounter_id", EncounterId_1.EncounterId.optional()),
49
49
  status: ChargeCaptureBundleStatus_1.ChargeCaptureBundleStatus,
50
+ characteristics: core.serialization.record(core.serialization.string(), core.serialization.string()),
50
51
  chargeCaptures: core.serialization.property("charge_captures", core.serialization.list(ChargeCapture_1.ChargeCapture)),
51
52
  errors: core.serialization.list(ChargeCaptureError_1.ChargeCaptureError),
52
53
  });
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const ChargeCaptureBundleStatus: core.serialization.Schema<serializers.chargeCaptureBundles.v1.ChargeCaptureBundleStatus.Raw, CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleStatus>;
8
8
  export declare namespace ChargeCaptureBundleStatus {
9
- type Raw = "not-started" | "in-progress" | "in-error" | "successful" | "successful-dry-run" | "aborted";
9
+ type Raw = "not-started" | "in-progress" | "in-error" | "successful" | "successful-dry-run" | "aborted" | "held";
10
10
  }
@@ -38,4 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChargeCaptureBundleStatus = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- exports.ChargeCaptureBundleStatus = core.serialization.enum_(["not-started", "in-progress", "in-error", "successful", "successful-dry-run", "aborted"]);
41
+ exports.ChargeCaptureBundleStatus = core.serialization.enum_([
42
+ "not-started",
43
+ "in-progress",
44
+ "in-error",
45
+ "successful",
46
+ "successful-dry-run",
47
+ "aborted",
48
+ "held",
49
+ ]);
@@ -8,6 +8,7 @@ export declare const ChargeCaptureBundleSummary: core.serialization.ObjectSchema
8
8
  export declare namespace ChargeCaptureBundleSummary {
9
9
  interface Raw {
10
10
  charge_capture_unbundled_count: number;
11
+ charge_capture_bundles_not_started_count: number;
11
12
  charge_capture_bundles_in_error_count: number;
12
13
  charge_capture_unresolved_change_count: number;
13
14
  }
@@ -40,6 +40,7 @@ exports.ChargeCaptureBundleSummary = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
41
  exports.ChargeCaptureBundleSummary = core.serialization.object({
42
42
  chargeCaptureUnbundledCount: core.serialization.property("charge_capture_unbundled_count", core.serialization.number()),
43
+ chargeCaptureBundlesNotStartedCount: core.serialization.property("charge_capture_bundles_not_started_count", core.serialization.number()),
43
44
  chargeCaptureBundlesInErrorCount: core.serialization.property("charge_capture_bundles_in_error_count", core.serialization.number()),
44
45
  chargeCaptureUnresolvedChangeCount: core.serialization.property("charge_capture_unresolved_change_count", core.serialization.number()),
45
46
  });
@@ -35,6 +35,7 @@ export * as payers from "./payers";
35
35
  export * as remitDrafts from "./remitDrafts";
36
36
  export * as remits from "./remits";
37
37
  export * as serviceLines from "./serviceLines";
38
+ export * as superbills from "./superbills";
38
39
  export * as tasks from "./tasks";
39
40
  export * as writeOffs from "./writeOffs";
40
41
  export * as x12 from "./x12";
@@ -36,8 +36,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.tags = exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.remitDrafts = exports.payers = exports.payerPlanGroups = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.medicationDispense = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.credentialing = exports.contracts = exports.clinicalTrials = exports.claimSubmission = exports.chargeCapture = exports.chargeCaptureBundles = exports.billingNotes = exports.auth = exports.commons = exports.feeSchedules = void 0;
40
- exports.eligibility = void 0;
39
+ exports.serviceFacility = exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.tasks = exports.superbills = exports.serviceLines = exports.remits = exports.remitDrafts = exports.payers = exports.payerPlanGroups = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.medicationDispense = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.customSchemas = exports.credentialing = exports.contracts = exports.clinicalTrials = exports.claimSubmission = exports.chargeCapture = exports.chargeCaptureBundles = exports.billingNotes = exports.auth = exports.commons = exports.feeSchedules = void 0;
40
+ exports.eligibility = exports.tags = void 0;
41
41
  exports.feeSchedules = __importStar(require("./feeSchedules"));
42
42
  exports.commons = __importStar(require("./commons"));
43
43
  __exportStar(require("./commons/errors"), exports);
@@ -75,6 +75,7 @@ exports.payers = __importStar(require("./payers"));
75
75
  exports.remitDrafts = __importStar(require("./remitDrafts"));
76
76
  exports.remits = __importStar(require("./remits"));
77
77
  exports.serviceLines = __importStar(require("./serviceLines"));
78
+ exports.superbills = __importStar(require("./superbills"));
78
79
  exports.tasks = __importStar(require("./tasks"));
79
80
  exports.writeOffs = __importStar(require("./writeOffs"));
80
81
  exports.x12 = __importStar(require("./x12"));
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Gender: core.serialization.Schema<serializers.preEncounter.Gender.Raw, CandidApi.preEncounter.Gender>;
8
8
  export declare namespace Gender {
9
- type Raw = "MAN" | "WOMAN" | "NON_BINARY" | "TWO_SPIRIT" | "OTHER" | "UNKNOWN" | "REFUSED";
9
+ type Raw = "MAN" | "WOMAN" | "NON_BINARY" | "TWO_SPIRIT" | "FEMALE_TO_MALE" | "MALE_TO_FEMALE" | "OTHER" | "UNKNOWN" | "REFUSED";
10
10
  }
@@ -38,4 +38,14 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Gender = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- exports.Gender = core.serialization.enum_(["MAN", "WOMAN", "NON_BINARY", "TWO_SPIRIT", "OTHER", "UNKNOWN", "REFUSED"]);
41
+ exports.Gender = core.serialization.enum_([
42
+ "MAN",
43
+ "WOMAN",
44
+ "NON_BINARY",
45
+ "TWO_SPIRIT",
46
+ "FEMALE_TO_MALE",
47
+ "MALE_TO_FEMALE",
48
+ "OTHER",
49
+ "UNKNOWN",
50
+ "REFUSED",
51
+ ]);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ import { PayerPlanGroupId } from "../../../../common/types/PayerPlanGroupId";
8
+ import { PayerId } from "../../../../common/types/PayerId";
9
+ import { NetworkType } from "./NetworkType";
10
+ export declare const PayerPlanGroupFields: core.serialization.ObjectSchema<serializers.preEncounter.coverages.v1.PayerPlanGroupFields.Raw, CandidApi.preEncounter.coverages.v1.PayerPlanGroupFields>;
11
+ export declare namespace PayerPlanGroupFields {
12
+ interface Raw {
13
+ payer_plan_group_id: PayerPlanGroupId.Raw;
14
+ payer_id: PayerId.Raw;
15
+ payer_name: string;
16
+ plan_type: NetworkType.Raw;
17
+ }
18
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.PayerPlanGroupFields = void 0;
40
+ const core = __importStar(require("../../../../../../../../core"));
41
+ const PayerPlanGroupId_1 = require("../../../../common/types/PayerPlanGroupId");
42
+ const PayerId_1 = require("../../../../common/types/PayerId");
43
+ const NetworkType_1 = require("./NetworkType");
44
+ exports.PayerPlanGroupFields = core.serialization.object({
45
+ payerPlanGroupId: core.serialization.property("payer_plan_group_id", PayerPlanGroupId_1.PayerPlanGroupId),
46
+ payerId: core.serialization.property("payer_id", PayerId_1.PayerId),
47
+ payerName: core.serialization.property("payer_name", core.serialization.string()),
48
+ planType: core.serialization.property("plan_type", NetworkType_1.NetworkType),
49
+ });
@@ -1,3 +1,4 @@
1
+ export * from "./PayerPlanGroupFields";
1
2
  export * from "./CoveragesPage";
2
3
  export * from "./LatestEligibilityCheck";
3
4
  export * from "./EligibilityCheckMetadata";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PayerPlanGroupFields"), exports);
17
18
  __exportStar(require("./CoveragesPage"), exports);
18
19
  __exportStar(require("./LatestEligibilityCheck"), exports);
19
20
  __exportStar(require("./EligibilityCheckMetadata"), exports);
@@ -38,6 +38,7 @@ export declare namespace MutablePatient {
38
38
  social_security_number?: string | null;
39
39
  biological_sex: Sex.Raw;
40
40
  sexual_orientation?: SexualOrientation.Raw | null;
41
+ pronouns?: string[] | null;
41
42
  race?: Race.Raw | null;
42
43
  ethnicity?: Ethnicity.Raw | null;
43
44
  disability_status?: DisabilityStatus.Raw | null;
@@ -70,6 +70,7 @@ exports.MutablePatient = core.serialization.object({
70
70
  socialSecurityNumber: core.serialization.property("social_security_number", core.serialization.string().optional()),
71
71
  biologicalSex: core.serialization.property("biological_sex", Sex_1.Sex),
72
72
  sexualOrientation: core.serialization.property("sexual_orientation", SexualOrientation_1.SexualOrientation.optional()),
73
+ pronouns: core.serialization.list(core.serialization.string()).optional(),
73
74
  race: Race_1.Race.optional(),
74
75
  ethnicity: Ethnicity_1.Ethnicity.optional(),
75
76
  disabilityStatus: core.serialization.property("disability_status", DisabilityStatus_1.DisabilityStatus.optional()),
@@ -0,0 +1 @@
1
+ export * from "./resources";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1 @@
1
+ export * as v1 from "./v1";
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.v1 = void 0;
37
+ exports.v1 = __importStar(require("./v1"));
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { UnprocessableEntityErrorMessage } from "../../../../commons/types/UnprocessableEntityErrorMessage";
8
+ export declare const Error: core.serialization.Schema<serializers.superbills.v1.createSuperbill.Error.Raw, CandidApi.superbills.v1.createSuperbill.Error>;
9
+ export declare namespace Error {
10
+ type Raw = Error.UnprocessableEntityError;
11
+ interface UnprocessableEntityError {
12
+ errorName: "UnprocessableEntityError";
13
+ content: UnprocessableEntityErrorMessage.Raw;
14
+ }
15
+ }
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __rest = (this && this.__rest) || function (s, e) {
39
+ var t = {};
40
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
41
+ t[p] = s[p];
42
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
43
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
45
+ t[p[i]] = s[p[i]];
46
+ }
47
+ return t;
48
+ };
49
+ Object.defineProperty(exports, "__esModule", { value: true });
50
+ exports.Error = void 0;
51
+ const CandidApi = __importStar(require("../../../../../../api/index"));
52
+ const core = __importStar(require("../../../../../../core"));
53
+ const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
54
+ exports.Error = core.serialization
55
+ .union("errorName", {
56
+ UnprocessableEntityError: core.serialization.object({
57
+ content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
58
+ }),
59
+ })
60
+ .transform({
61
+ transform: (value) => {
62
+ switch (value.errorName) {
63
+ case "UnprocessableEntityError":
64
+ return CandidApi.superbills.v1.createSuperbill.Error.unprocessableEntityError(value.content);
65
+ }
66
+ },
67
+ untransform: (_a) => {
68
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
69
+ return value;
70
+ },
71
+ });
@@ -0,0 +1,2 @@
1
+ export * as createSuperbill from "./createSuperbill";
2
+ export * from "./requests";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.createSuperbill = void 0;
40
+ exports.createSuperbill = __importStar(require("./createSuperbill"));
41
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../api/index";
6
+ import * as core from "../../../../../../../core";
7
+ import { PatientExternalId } from "../../../../../commons/types/PatientExternalId";
8
+ import { StreetAddressShortZip } from "../../../../../commons/types/StreetAddressShortZip";
9
+ export declare const CreateSuperbillRequest: core.serialization.Schema<serializers.superbills.v1.CreateSuperbillRequest.Raw, CandidApi.superbills.v1.CreateSuperbillRequest>;
10
+ export declare namespace CreateSuperbillRequest {
11
+ interface Raw {
12
+ patient_external_id: PatientExternalId.Raw;
13
+ date_range_min: string;
14
+ date_range_max: string;
15
+ pay_to_address?: StreetAddressShortZip.Raw | null;
16
+ }
17
+ }