candidhealth 0.30.0 → 0.32.0

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 (290) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +37 -32
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  5. package/api/resources/contracts/resources/v2/client/Client.d.ts +8 -1
  6. package/api/resources/contracts/resources/v2/client/Client.js +13 -6
  7. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +8 -1
  8. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  9. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  10. package/api/resources/encounters/resources/v4/client/Client.d.ts +32 -50
  11. package/api/resources/encounters/resources/v4/client/Client.js +36 -54
  12. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +16 -50
  13. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +22 -2
  14. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +7 -0
  15. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +7 -0
  16. package/api/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +24 -0
  17. package/api/resources/encounters/resources/v4/types/VitalsUpdate.js +5 -0
  18. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  19. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  20. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  21. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +22 -2
  22. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +24 -4
  23. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  24. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  25. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +1 -1
  26. package/api/resources/feeSchedules/resources/v3/client/Client.js +11 -11
  27. package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  28. package/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  29. package/api/resources/financials/types/AllocationTargetCreate.d.ts +3 -4
  30. package/api/resources/financials/types/AppointmentAllocationTarget.d.ts +1 -0
  31. package/api/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +8 -0
  32. package/api/resources/financials/types/AppointmentByIdAndPatientExternalId.js +5 -0
  33. package/api/resources/financials/types/index.d.ts +1 -0
  34. package/api/resources/financials/types/index.js +1 -0
  35. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  36. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +14 -2
  37. package/api/resources/importInvoice/resources/v1/client/Client.js +34 -7
  38. package/api/resources/importInvoice/resources/v1/client/importInvoice.d.ts +13 -1
  39. package/api/resources/importInvoice/resources/v1/client/importInvoice.js +22 -0
  40. package/api/resources/index.d.ts +1 -0
  41. package/api/resources/index.js +2 -1
  42. package/api/resources/individual/types/Patient.d.ts +8 -0
  43. package/api/resources/individual/types/PatientCreate.d.ts +1 -0
  44. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +27 -2
  45. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +30 -5
  46. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +7 -1
  47. package/api/resources/insurancePayments/resources/v1/client/Client.js +12 -6
  48. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +7 -1
  49. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +12 -6
  50. package/api/resources/medicationDispense/client/Client.d.ts +26 -0
  51. package/api/resources/medicationDispense/client/Client.js +17 -0
  52. package/api/resources/medicationDispense/client/index.d.ts +1 -0
  53. package/api/resources/medicationDispense/client/index.js +2 -0
  54. package/api/resources/medicationDispense/index.d.ts +2 -0
  55. package/api/resources/medicationDispense/index.js +18 -0
  56. package/api/resources/medicationDispense/resources/index.d.ts +1 -0
  57. package/api/resources/medicationDispense/resources/index.js +27 -0
  58. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +51 -0
  59. package/api/resources/medicationDispense/resources/v1/client/Client.js +145 -0
  60. package/api/resources/medicationDispense/resources/v1/client/create.d.ts +52 -0
  61. package/api/resources/medicationDispense/resources/v1/client/create.js +102 -0
  62. package/api/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
  63. package/api/resources/medicationDispense/resources/v1/client/index.js +27 -0
  64. package/api/resources/medicationDispense/resources/v1/index.d.ts +2 -0
  65. package/api/resources/medicationDispense/resources/v1/index.js +18 -0
  66. package/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +15 -0
  67. package/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +5 -0
  68. package/api/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
  69. package/api/resources/medicationDispense/resources/v1/types/index.js +17 -0
  70. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +7 -1
  71. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +12 -6
  72. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +7 -1
  73. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +12 -6
  74. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  75. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +10 -0
  76. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +23 -2
  77. package/api/resources/organizationProviders/resources/v3/client/Client.js +27 -6
  78. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  79. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  80. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  81. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  82. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +144 -4
  83. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +150 -10
  84. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +54 -8
  85. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +62 -16
  86. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +456 -33
  87. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +465 -42
  88. package/api/resources/serviceFacility/client/Client.js +1 -1
  89. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +15 -2
  90. package/api/resources/serviceLines/resources/v2/client/Client.js +18 -5
  91. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -3
  92. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -17
  93. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  94. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  95. package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.d.ts +7 -1
  96. package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +12 -6
  97. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.d.ts +7 -1
  98. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +12 -6
  99. package/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
  100. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  101. package/dist/Client.d.ts +3 -0
  102. package/dist/Client.js +37 -32
  103. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  104. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  105. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +8 -1
  106. package/dist/api/resources/contracts/resources/v2/client/Client.js +13 -6
  107. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +8 -1
  108. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  109. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  110. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +32 -50
  111. package/dist/api/resources/encounters/resources/v4/client/Client.js +36 -54
  112. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +16 -50
  113. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +22 -2
  114. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +7 -0
  115. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +7 -0
  116. package/dist/api/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +24 -0
  117. package/dist/api/resources/encounters/resources/v4/types/VitalsUpdate.js +5 -0
  118. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  119. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  120. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  121. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +22 -2
  122. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +24 -4
  123. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  124. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  125. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +1 -1
  126. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +11 -11
  127. package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  128. package/dist/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  129. package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +3 -4
  130. package/dist/api/resources/financials/types/AppointmentAllocationTarget.d.ts +1 -0
  131. package/dist/api/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +8 -0
  132. package/dist/api/resources/financials/types/AppointmentByIdAndPatientExternalId.js +5 -0
  133. package/dist/api/resources/financials/types/index.d.ts +1 -0
  134. package/dist/api/resources/financials/types/index.js +1 -0
  135. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  136. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +14 -2
  137. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +34 -7
  138. package/dist/api/resources/importInvoice/resources/v1/client/importInvoice.d.ts +13 -1
  139. package/dist/api/resources/importInvoice/resources/v1/client/importInvoice.js +22 -0
  140. package/dist/api/resources/index.d.ts +1 -0
  141. package/dist/api/resources/index.js +2 -1
  142. package/dist/api/resources/individual/types/Patient.d.ts +8 -0
  143. package/dist/api/resources/individual/types/PatientCreate.d.ts +1 -0
  144. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +27 -2
  145. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +30 -5
  146. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +7 -1
  147. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +12 -6
  148. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +7 -1
  149. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +12 -6
  150. package/dist/api/resources/medicationDispense/client/Client.d.ts +26 -0
  151. package/dist/api/resources/medicationDispense/client/Client.js +17 -0
  152. package/dist/api/resources/medicationDispense/client/index.d.ts +1 -0
  153. package/dist/api/resources/medicationDispense/client/index.js +2 -0
  154. package/dist/api/resources/medicationDispense/index.d.ts +2 -0
  155. package/dist/api/resources/medicationDispense/index.js +18 -0
  156. package/dist/api/resources/medicationDispense/resources/index.d.ts +1 -0
  157. package/dist/api/resources/medicationDispense/resources/index.js +27 -0
  158. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +51 -0
  159. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +145 -0
  160. package/dist/api/resources/medicationDispense/resources/v1/client/create.d.ts +52 -0
  161. package/dist/api/resources/medicationDispense/resources/v1/client/create.js +102 -0
  162. package/dist/api/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
  163. package/dist/api/resources/medicationDispense/resources/v1/client/index.js +27 -0
  164. package/dist/api/resources/medicationDispense/resources/v1/index.d.ts +2 -0
  165. package/dist/api/resources/medicationDispense/resources/v1/index.js +18 -0
  166. package/dist/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +15 -0
  167. package/dist/api/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +5 -0
  168. package/dist/api/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
  169. package/dist/api/resources/medicationDispense/resources/v1/types/index.js +17 -0
  170. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +7 -1
  171. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +12 -6
  172. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +7 -1
  173. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +12 -6
  174. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  175. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayer.d.ts +10 -0
  176. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +23 -2
  177. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +27 -6
  178. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  179. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  180. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  181. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  182. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +144 -4
  183. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +150 -10
  184. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +54 -8
  185. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +62 -16
  186. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +456 -33
  187. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +465 -42
  188. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  189. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +15 -2
  190. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +18 -5
  191. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -3
  192. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -17
  193. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  194. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  195. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.d.ts +7 -1
  196. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +12 -6
  197. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.d.ts +7 -1
  198. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +12 -6
  199. package/dist/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
  200. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  201. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
  202. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
  203. package/dist/serialization/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +18 -0
  204. package/dist/serialization/resources/encounters/resources/v4/types/VitalsUpdate.js +39 -0
  205. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  206. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  207. package/dist/serialization/resources/financials/types/AllocationTargetCreate.d.ts +4 -5
  208. package/dist/serialization/resources/financials/types/AllocationTargetCreate.js +2 -4
  209. package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +2 -0
  210. package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.js +2 -0
  211. package/dist/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +15 -0
  212. package/dist/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.js +36 -0
  213. package/dist/serialization/resources/financials/types/index.d.ts +1 -0
  214. package/dist/serialization/resources/financials/types/index.js +1 -0
  215. package/dist/serialization/resources/importInvoice/resources/v1/client/importInvoice.d.ts +20 -0
  216. package/dist/serialization/resources/importInvoice/resources/v1/client/importInvoice.js +67 -0
  217. package/dist/serialization/resources/importInvoice/resources/v1/client/index.d.ts +1 -0
  218. package/dist/serialization/resources/importInvoice/resources/v1/client/index.js +2 -1
  219. package/dist/serialization/resources/index.d.ts +1 -0
  220. package/dist/serialization/resources/index.js +2 -1
  221. package/dist/serialization/resources/individual/types/Patient.d.ts +2 -0
  222. package/dist/serialization/resources/individual/types/Patient.js +2 -0
  223. package/dist/serialization/resources/individual/types/PatientCreate.d.ts +2 -0
  224. package/dist/serialization/resources/individual/types/PatientCreate.js +2 -0
  225. package/dist/serialization/resources/medicationDispense/index.d.ts +1 -0
  226. package/dist/serialization/resources/medicationDispense/index.js +17 -0
  227. package/dist/serialization/resources/medicationDispense/resources/index.d.ts +1 -0
  228. package/dist/serialization/resources/medicationDispense/resources/index.js +27 -0
  229. package/dist/serialization/resources/medicationDispense/resources/v1/client/create.d.ts +35 -0
  230. package/dist/serialization/resources/medicationDispense/resources/v1/client/create.js +85 -0
  231. package/dist/serialization/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
  232. package/dist/serialization/resources/medicationDispense/resources/v1/client/index.js +27 -0
  233. package/dist/serialization/resources/medicationDispense/resources/v1/index.d.ts +2 -0
  234. package/dist/serialization/resources/medicationDispense/resources/v1/index.js +18 -0
  235. package/dist/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +24 -0
  236. package/dist/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +45 -0
  237. package/dist/serialization/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
  238. package/dist/serialization/resources/medicationDispense/resources/v1/types/index.js +17 -0
  239. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -3
  240. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -3
  241. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -6
  242. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +0 -6
  243. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  244. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
  245. package/package.json +1 -1
  246. package/reference.md +994 -111
  247. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -0
  248. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +2 -0
  249. package/serialization/resources/encounters/resources/v4/types/VitalsUpdate.d.ts +18 -0
  250. package/serialization/resources/encounters/resources/v4/types/VitalsUpdate.js +39 -0
  251. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  252. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  253. package/serialization/resources/financials/types/AllocationTargetCreate.d.ts +4 -5
  254. package/serialization/resources/financials/types/AllocationTargetCreate.js +2 -4
  255. package/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +2 -0
  256. package/serialization/resources/financials/types/AppointmentAllocationTarget.js +2 -0
  257. package/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.d.ts +15 -0
  258. package/serialization/resources/financials/types/AppointmentByIdAndPatientExternalId.js +36 -0
  259. package/serialization/resources/financials/types/index.d.ts +1 -0
  260. package/serialization/resources/financials/types/index.js +1 -0
  261. package/serialization/resources/importInvoice/resources/v1/client/importInvoice.d.ts +20 -0
  262. package/serialization/resources/importInvoice/resources/v1/client/importInvoice.js +67 -0
  263. package/serialization/resources/importInvoice/resources/v1/client/index.d.ts +1 -0
  264. package/serialization/resources/importInvoice/resources/v1/client/index.js +2 -1
  265. package/serialization/resources/index.d.ts +1 -0
  266. package/serialization/resources/index.js +2 -1
  267. package/serialization/resources/individual/types/Patient.d.ts +2 -0
  268. package/serialization/resources/individual/types/Patient.js +2 -0
  269. package/serialization/resources/individual/types/PatientCreate.d.ts +2 -0
  270. package/serialization/resources/individual/types/PatientCreate.js +2 -0
  271. package/serialization/resources/medicationDispense/index.d.ts +1 -0
  272. package/serialization/resources/medicationDispense/index.js +17 -0
  273. package/serialization/resources/medicationDispense/resources/index.d.ts +1 -0
  274. package/serialization/resources/medicationDispense/resources/index.js +27 -0
  275. package/serialization/resources/medicationDispense/resources/v1/client/create.d.ts +35 -0
  276. package/serialization/resources/medicationDispense/resources/v1/client/create.js +85 -0
  277. package/serialization/resources/medicationDispense/resources/v1/client/index.d.ts +1 -0
  278. package/serialization/resources/medicationDispense/resources/v1/client/index.js +27 -0
  279. package/serialization/resources/medicationDispense/resources/v1/index.d.ts +2 -0
  280. package/serialization/resources/medicationDispense/resources/v1/index.js +18 -0
  281. package/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.d.ts +24 -0
  282. package/serialization/resources/medicationDispense/resources/v1/types/MedicationDispenseCreate.js +45 -0
  283. package/serialization/resources/medicationDispense/resources/v1/types/index.d.ts +1 -0
  284. package/serialization/resources/medicationDispense/resources/v1/types/index.js +17 -0
  285. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -3
  286. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -3
  287. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +0 -6
  288. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +0 -6
  289. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
  290. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
@@ -8,6 +8,7 @@ export * from "./AppointmentAllocationTarget";
8
8
  export * from "./AllocationTarget";
9
9
  export * from "./AllocationCreate";
10
10
  export * from "./AllocationTargetCreate";
11
+ export * from "./AppointmentByIdAndPatientExternalId";
11
12
  export * from "./AccountType";
12
13
  export * from "./NoteUpdate";
13
14
  export * from "./InvoiceUpdate";
@@ -24,6 +24,7 @@ __exportStar(require("./AppointmentAllocationTarget"), exports);
24
24
  __exportStar(require("./AllocationTarget"), exports);
25
25
  __exportStar(require("./AllocationCreate"), exports);
26
26
  __exportStar(require("./AllocationTargetCreate"), exports);
27
+ __exportStar(require("./AppointmentByIdAndPatientExternalId"), exports);
27
28
  __exportStar(require("./AccountType"), exports);
28
29
  __exportStar(require("./NoteUpdate"), exports);
29
30
  __exportStar(require("./InvoiceUpdate"), exports);
@@ -0,0 +1,20 @@
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
+ import { EntityConflictErrorMessage } from "../../../../commons/types/EntityConflictErrorMessage";
9
+ export declare const Error: core.serialization.Schema<serializers.importInvoice.v1.importInvoice.Error.Raw, CandidApi.importInvoice.v1.importInvoice.Error>;
10
+ export declare namespace Error {
11
+ type Raw = Error.UnprocessableEntityError | Error.EntityConflictError;
12
+ interface UnprocessableEntityError {
13
+ errorName: "UnprocessableEntityError";
14
+ content: UnprocessableEntityErrorMessage.Raw;
15
+ }
16
+ interface EntityConflictError {
17
+ errorName: "EntityConflictError";
18
+ content: EntityConflictErrorMessage.Raw;
19
+ }
20
+ }
@@ -0,0 +1,67 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __rest = (this && this.__rest) || function (s, e) {
29
+ var t = {};
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
+ t[p] = s[p];
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
37
+ return t;
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.Error = void 0;
41
+ const CandidApi = __importStar(require("../../../../../../api/index"));
42
+ const core = __importStar(require("../../../../../../core"));
43
+ const UnprocessableEntityErrorMessage_1 = require("../../../../commons/types/UnprocessableEntityErrorMessage");
44
+ const EntityConflictErrorMessage_1 = require("../../../../commons/types/EntityConflictErrorMessage");
45
+ exports.Error = core.serialization
46
+ .union("errorName", {
47
+ UnprocessableEntityError: core.serialization.object({
48
+ content: UnprocessableEntityErrorMessage_1.UnprocessableEntityErrorMessage,
49
+ }),
50
+ EntityConflictError: core.serialization.object({
51
+ content: EntityConflictErrorMessage_1.EntityConflictErrorMessage,
52
+ }),
53
+ })
54
+ .transform({
55
+ transform: (value) => {
56
+ switch (value.errorName) {
57
+ case "UnprocessableEntityError":
58
+ return CandidApi.importInvoice.v1.importInvoice.Error.unprocessableEntityError(value.content);
59
+ case "EntityConflictError":
60
+ return CandidApi.importInvoice.v1.importInvoice.Error.entityConflictError(value.content);
61
+ }
62
+ },
63
+ untransform: (_a) => {
64
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
65
+ return value;
66
+ },
67
+ });
@@ -1,2 +1,3 @@
1
+ export * as importInvoice from "./importInvoice";
1
2
  export * as get from "./get";
2
3
  export * as update from "./update";
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.update = exports.get = void 0;
26
+ exports.update = exports.get = exports.importInvoice = void 0;
27
+ exports.importInvoice = __importStar(require("./importInvoice"));
27
28
  exports.get = __importStar(require("./get"));
28
29
  exports.update = __importStar(require("./update"));
@@ -18,6 +18,7 @@ export * as insuranceCards from "./insuranceCards";
18
18
  export * as insurancePayments from "./insurancePayments";
19
19
  export * as insuranceRefunds from "./insuranceRefunds";
20
20
  export * as invoices from "./invoices";
21
+ export * as medicationDispense from "./medicationDispense";
21
22
  export * as nonInsurancePayerPayments from "./nonInsurancePayerPayments";
22
23
  export * as nonInsurancePayerRefunds from "./nonInsurancePayerRefunds";
23
24
  export * as nonInsurancePayers from "./nonInsurancePayers";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.eligibility = 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.thirdPartyPayers = exports.thirdPartyPayerRefunds = exports.thirdPartyPayerPayments = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = 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.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = exports.commons = exports.feeSchedules = void 0;
29
+ exports.eligibility = 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.thirdPartyPayers = exports.thirdPartyPayerRefunds = exports.thirdPartyPayerPayments = exports.tasks = exports.serviceLines = exports.remits = exports.payers = 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.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = exports.commons = exports.feeSchedules = void 0;
30
30
  exports.feeSchedules = __importStar(require("./feeSchedules"));
31
31
  exports.commons = __importStar(require("./commons"));
32
32
  __exportStar(require("./commons/errors"), exports);
@@ -47,6 +47,7 @@ exports.insuranceCards = __importStar(require("./insuranceCards"));
47
47
  exports.insurancePayments = __importStar(require("./insurancePayments"));
48
48
  exports.insuranceRefunds = __importStar(require("./insuranceRefunds"));
49
49
  exports.invoices = __importStar(require("./invoices"));
50
+ exports.medicationDispense = __importStar(require("./medicationDispense"));
50
51
  exports.nonInsurancePayerPayments = __importStar(require("./nonInsurancePayerPayments"));
51
52
  exports.nonInsurancePayerRefunds = __importStar(require("./nonInsurancePayerRefunds"));
52
53
  exports.nonInsurancePayers = __importStar(require("./nonInsurancePayers"));
@@ -7,6 +7,7 @@ import * as core from "../../../../core";
7
7
  import { IndividualId } from "./IndividualId";
8
8
  import { PhoneNumber } from "../../commons/types/PhoneNumber";
9
9
  import { Email } from "../../commons/types/Email";
10
+ import { NonInsurancePayer } from "../../nonInsurancePayers/resources/v1/types/NonInsurancePayer";
10
11
  import { PatientBase } from "./PatientBase";
11
12
  export declare const Patient: core.serialization.ObjectSchema<serializers.Patient.Raw, CandidApi.Patient>;
12
13
  export declare namespace Patient {
@@ -16,5 +17,6 @@ export declare namespace Patient {
16
17
  phone_consent: boolean;
17
18
  email?: Email.Raw | null;
18
19
  email_consent: boolean;
20
+ non_insurance_payers: NonInsurancePayer.Raw[];
19
21
  }
20
22
  }
@@ -31,6 +31,7 @@ const core = __importStar(require("../../../../core"));
31
31
  const IndividualId_1 = require("./IndividualId");
32
32
  const PhoneNumber_1 = require("../../commons/types/PhoneNumber");
33
33
  const Email_1 = require("../../commons/types/Email");
34
+ const NonInsurancePayer_1 = require("../../nonInsurancePayers/resources/v1/types/NonInsurancePayer");
34
35
  const PatientBase_1 = require("./PatientBase");
35
36
  exports.Patient = core.serialization
36
37
  .object({
@@ -39,5 +40,6 @@ exports.Patient = core.serialization
39
40
  phoneConsent: core.serialization.property("phone_consent", core.serialization.boolean()),
40
41
  email: Email_1.Email.optional(),
41
42
  emailConsent: core.serialization.property("email_consent", core.serialization.boolean()),
43
+ nonInsurancePayers: core.serialization.property("non_insurance_payers", core.serialization.list(NonInsurancePayer_1.NonInsurancePayer)),
42
44
  })
43
45
  .extend(PatientBase_1.PatientBase);
@@ -6,6 +6,7 @@ import * as CandidApi from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { PhoneNumber } from "../../commons/types/PhoneNumber";
8
8
  import { Email } from "../../commons/types/Email";
9
+ import { NonInsurancePayerId } from "../../nonInsurancePayers/resources/v1/types/NonInsurancePayerId";
9
10
  import { PatientBase } from "./PatientBase";
10
11
  export declare const PatientCreate: core.serialization.ObjectSchema<serializers.PatientCreate.Raw, CandidApi.PatientCreate>;
11
12
  export declare namespace PatientCreate {
@@ -13,6 +14,7 @@ export declare namespace PatientCreate {
13
14
  phone_numbers?: PhoneNumber.Raw[] | null;
14
15
  phone_consent?: boolean | null;
15
16
  email?: Email.Raw | null;
17
+ non_insurance_payers?: NonInsurancePayerId.Raw[] | null;
16
18
  email_consent?: boolean | null;
17
19
  }
18
20
  }
@@ -30,12 +30,14 @@ exports.PatientCreate = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const PhoneNumber_1 = require("../../commons/types/PhoneNumber");
32
32
  const Email_1 = require("../../commons/types/Email");
33
+ const NonInsurancePayerId_1 = require("../../nonInsurancePayers/resources/v1/types/NonInsurancePayerId");
33
34
  const PatientBase_1 = require("./PatientBase");
34
35
  exports.PatientCreate = core.serialization
35
36
  .object({
36
37
  phoneNumbers: core.serialization.property("phone_numbers", core.serialization.list(PhoneNumber_1.PhoneNumber).optional()),
37
38
  phoneConsent: core.serialization.property("phone_consent", core.serialization.boolean().optional()),
38
39
  email: Email_1.Email.optional(),
40
+ nonInsurancePayers: core.serialization.property("non_insurance_payers", core.serialization.list(NonInsurancePayerId_1.NonInsurancePayerId).optional()),
39
41
  emailConsent: core.serialization.property("email_consent", core.serialization.boolean().optional()),
40
42
  })
41
43
  .extend(PatientBase_1.PatientBase);
@@ -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,27 @@
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 (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.v1 = void 0;
27
+ exports.v1 = __importStar(require("./v1"));
@@ -0,0 +1,35 @@
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 { RequestValidationError } from "../../../../commons/types/RequestValidationError";
8
+ import { EncounterExternalIdUniquenessErrorType } from "../../../../encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType";
9
+ import { EncounterPatientControlNumberUniquenessErrorType } from "../../../../encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType";
10
+ import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
11
+ import { SchemaInstanceValidationFailure } from "../../../../encounters/resources/v4/types/SchemaInstanceValidationFailure";
12
+ export declare const Error: core.serialization.Schema<serializers.medicationDispense.v1.create.Error.Raw, CandidApi.medicationDispense.v1.create.Error>;
13
+ export declare namespace Error {
14
+ type Raw = Error.HttpRequestValidationError | Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.SchemaInstanceValidationHttpFailure;
15
+ interface HttpRequestValidationError {
16
+ errorName: "HttpRequestValidationError";
17
+ content: RequestValidationError.Raw;
18
+ }
19
+ interface EncounterExternalIdUniquenessError {
20
+ errorName: "EncounterExternalIdUniquenessError";
21
+ content: EncounterExternalIdUniquenessErrorType.Raw;
22
+ }
23
+ interface EncounterPatientControlNumberUniquenessError {
24
+ errorName: "EncounterPatientControlNumberUniquenessError";
25
+ content: EncounterPatientControlNumberUniquenessErrorType.Raw;
26
+ }
27
+ interface EntityNotFoundError {
28
+ errorName: "EntityNotFoundError";
29
+ content: EntityNotFoundErrorMessage.Raw;
30
+ }
31
+ interface SchemaInstanceValidationHttpFailure {
32
+ errorName: "SchemaInstanceValidationHttpFailure";
33
+ content: SchemaInstanceValidationFailure.Raw;
34
+ }
35
+ }
@@ -0,0 +1,85 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __rest = (this && this.__rest) || function (s, e) {
29
+ var t = {};
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
+ t[p] = s[p];
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
37
+ return t;
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.Error = void 0;
41
+ const CandidApi = __importStar(require("../../../../../../api/index"));
42
+ const core = __importStar(require("../../../../../../core"));
43
+ const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
44
+ const EncounterExternalIdUniquenessErrorType_1 = require("../../../../encounters/resources/v4/types/EncounterExternalIdUniquenessErrorType");
45
+ const EncounterPatientControlNumberUniquenessErrorType_1 = require("../../../../encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType");
46
+ const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
47
+ const SchemaInstanceValidationFailure_1 = require("../../../../encounters/resources/v4/types/SchemaInstanceValidationFailure");
48
+ exports.Error = core.serialization
49
+ .union("errorName", {
50
+ HttpRequestValidationError: core.serialization.object({
51
+ content: RequestValidationError_1.RequestValidationError,
52
+ }),
53
+ EncounterExternalIdUniquenessError: core.serialization.object({
54
+ content: EncounterExternalIdUniquenessErrorType_1.EncounterExternalIdUniquenessErrorType,
55
+ }),
56
+ EncounterPatientControlNumberUniquenessError: core.serialization.object({
57
+ content: EncounterPatientControlNumberUniquenessErrorType_1.EncounterPatientControlNumberUniquenessErrorType,
58
+ }),
59
+ EntityNotFoundError: core.serialization.object({
60
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
61
+ }),
62
+ SchemaInstanceValidationHttpFailure: core.serialization.object({
63
+ content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
64
+ }),
65
+ })
66
+ .transform({
67
+ transform: (value) => {
68
+ switch (value.errorName) {
69
+ case "HttpRequestValidationError":
70
+ return CandidApi.medicationDispense.v1.create.Error.httpRequestValidationError(value.content);
71
+ case "EncounterExternalIdUniquenessError":
72
+ return CandidApi.medicationDispense.v1.create.Error.encounterExternalIdUniquenessError(value.content);
73
+ case "EncounterPatientControlNumberUniquenessError":
74
+ return CandidApi.medicationDispense.v1.create.Error.encounterPatientControlNumberUniquenessError(value.content);
75
+ case "EntityNotFoundError":
76
+ return CandidApi.medicationDispense.v1.create.Error.entityNotFoundError(value.content);
77
+ case "SchemaInstanceValidationHttpFailure":
78
+ return CandidApi.medicationDispense.v1.create.Error.schemaInstanceValidationHttpFailure(value.content);
79
+ }
80
+ },
81
+ untransform: (_a) => {
82
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
83
+ return value;
84
+ },
85
+ });
@@ -0,0 +1 @@
1
+ export * as create from "./create";
@@ -0,0 +1,27 @@
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 (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.create = void 0;
27
+ exports.create = __importStar(require("./create"));
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
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("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,24 @@
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 { Decimal } from "../../../../commons/types/Decimal";
8
+ import { ServiceLineUnits } from "../../../../commons/types/ServiceLineUnits";
9
+ import { DrugIdentification } from "../../../../serviceLines/resources/v2/types/DrugIdentification";
10
+ import { ProcedureModifier } from "../../../../commons/types/ProcedureModifier";
11
+ export declare const MedicationDispenseCreate: core.serialization.ObjectSchema<serializers.medicationDispense.v1.MedicationDispenseCreate.Raw, CandidApi.medicationDispense.v1.MedicationDispenseCreate>;
12
+ export declare namespace MedicationDispenseCreate {
13
+ interface Raw {
14
+ medication_dispense_external_id: string;
15
+ patient_external_id: string;
16
+ procedure_code: string;
17
+ quantity: Decimal.Raw;
18
+ units: ServiceLineUnits.Raw;
19
+ date_of_service: string;
20
+ drug_identification?: DrugIdentification.Raw | null;
21
+ description?: string | null;
22
+ modifiers?: ProcedureModifier.Raw[] | null;
23
+ }
24
+ }
@@ -0,0 +1,45 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.MedicationDispenseCreate = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ const Decimal_1 = require("../../../../commons/types/Decimal");
32
+ const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits");
33
+ const DrugIdentification_1 = require("../../../../serviceLines/resources/v2/types/DrugIdentification");
34
+ const ProcedureModifier_1 = require("../../../../commons/types/ProcedureModifier");
35
+ exports.MedicationDispenseCreate = core.serialization.object({
36
+ medicationDispenseExternalId: core.serialization.property("medication_dispense_external_id", core.serialization.string()),
37
+ patientExternalId: core.serialization.property("patient_external_id", core.serialization.string()),
38
+ procedureCode: core.serialization.property("procedure_code", core.serialization.string()),
39
+ quantity: Decimal_1.Decimal,
40
+ units: ServiceLineUnits_1.ServiceLineUnits,
41
+ dateOfService: core.serialization.property("date_of_service", core.serialization.string()),
42
+ drugIdentification: core.serialization.property("drug_identification", DrugIdentification_1.DrugIdentification.optional()),
43
+ description: core.serialization.string().optional(),
44
+ modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
45
+ });
@@ -0,0 +1 @@
1
+ export * from "./MedicationDispenseCreate";
@@ -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("./MedicationDispenseCreate"), exports);
@@ -6,6 +6,7 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { ProcedureModifier } from "../../../../commons/types/ProcedureModifier";
8
8
  import { DiagnosisId } from "../../../../diagnoses/types/DiagnosisId";
9
+ import { DrugIdentification } from "./DrugIdentification";
9
10
  import { ServiceLineEraData } from "./ServiceLineEraData";
10
11
  import { ServiceLineAdjustment } from "./ServiceLineAdjustment";
11
12
  import { Invoice } from "../../../../invoices/types/Invoice";
@@ -35,6 +36,7 @@ export declare namespace ServiceLine {
35
36
  diagnosis_id_one?: DiagnosisId.Raw | null;
36
37
  diagnosis_id_two?: DiagnosisId.Raw | null;
37
38
  diagnosis_id_three?: DiagnosisId.Raw | null;
39
+ drug_identification?: DrugIdentification.Raw | null;
38
40
  service_line_era_data?: ServiceLineEraData.Raw | null;
39
41
  service_line_manual_adjustments?: ServiceLineAdjustment.Raw[] | null;
40
42
  related_invoices?: Invoice.Raw[] | null;
@@ -44,9 +46,6 @@ export declare namespace ServiceLine {
44
46
  place_of_service_code_as_submitted?: FacilityTypeCode.Raw | null;
45
47
  service_line_id: ServiceLineId.Raw;
46
48
  procedure_code: string;
47
- referring_provider?: EncounterProvider.Raw | null;
48
- initial_referring_provider?: EncounterProvider.Raw | null;
49
- supervising_provider?: EncounterProvider.Raw | null;
50
49
  ordering_provider?: EncounterProvider.Raw | null;
51
50
  quantity: Decimal.Raw;
52
51
  units: ServiceLineUnits.Raw;
@@ -30,6 +30,7 @@ exports.ServiceLine = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  const ProcedureModifier_1 = require("../../../../commons/types/ProcedureModifier");
32
32
  const DiagnosisId_1 = require("../../../../diagnoses/types/DiagnosisId");
33
+ const DrugIdentification_1 = require("./DrugIdentification");
33
34
  const ServiceLineEraData_1 = require("./ServiceLineEraData");
34
35
  const ServiceLineAdjustment_1 = require("./ServiceLineAdjustment");
35
36
  const Invoice_1 = require("../../../../invoices/types/Invoice");
@@ -57,6 +58,7 @@ exports.ServiceLine = core.serialization.object({
57
58
  diagnosisIdOne: core.serialization.property("diagnosis_id_one", DiagnosisId_1.DiagnosisId.optional()),
58
59
  diagnosisIdTwo: core.serialization.property("diagnosis_id_two", DiagnosisId_1.DiagnosisId.optional()),
59
60
  diagnosisIdThree: core.serialization.property("diagnosis_id_three", DiagnosisId_1.DiagnosisId.optional()),
61
+ drugIdentification: core.serialization.property("drug_identification", DrugIdentification_1.DrugIdentification.optional()),
60
62
  serviceLineEraData: core.serialization.property("service_line_era_data", ServiceLineEraData_1.ServiceLineEraData.optional()),
61
63
  serviceLineManualAdjustments: core.serialization.property("service_line_manual_adjustments", core.serialization.list(ServiceLineAdjustment_1.ServiceLineAdjustment).optional()),
62
64
  relatedInvoices: core.serialization.property("related_invoices", core.serialization.list(Invoice_1.Invoice).optional()),
@@ -66,9 +68,6 @@ exports.ServiceLine = core.serialization.object({
66
68
  placeOfServiceCodeAsSubmitted: core.serialization.property("place_of_service_code_as_submitted", FacilityTypeCode_1.FacilityTypeCode.optional()),
67
69
  serviceLineId: core.serialization.property("service_line_id", ServiceLineId_1.ServiceLineId),
68
70
  procedureCode: core.serialization.property("procedure_code", core.serialization.string()),
69
- referringProvider: core.serialization.property("referring_provider", EncounterProvider_1.EncounterProvider.optional()),
70
- initialReferringProvider: core.serialization.property("initial_referring_provider", EncounterProvider_1.EncounterProvider.optional()),
71
- supervisingProvider: core.serialization.property("supervising_provider", EncounterProvider_1.EncounterProvider.optional()),
72
71
  orderingProvider: core.serialization.property("ordering_provider", EncounterProvider_1.EncounterProvider.optional()),
73
72
  quantity: Decimal_1.Decimal,
74
73
  units: ServiceLineUnits_1.ServiceLineUnits,
@@ -9,9 +9,6 @@ import { Decimal } from "../../../../commons/types/Decimal";
9
9
  import { ServiceLineUnits } from "../../../../commons/types/ServiceLineUnits";
10
10
  import { DrugIdentification } from "./DrugIdentification";
11
11
  import { FacilityTypeCode } from "../../../../commons/types/FacilityTypeCode";
12
- import { ReferringProvider } from "../../../../encounterProviders/resources/v2/types/ReferringProvider";
13
- import { InitialReferringProvider } from "../../../../encounterProviders/resources/v2/types/InitialReferringProvider";
14
- import { SupervisingProvider } from "../../../../encounterProviders/resources/v2/types/SupervisingProvider";
15
12
  import { OrderingProvider } from "../../../../encounterProviders/resources/v2/types/OrderingProvider";
16
13
  export declare const ServiceLineCreate: core.serialization.ObjectSchema<serializers.serviceLines.v2.ServiceLineCreate.Raw, CandidApi.serviceLines.v2.ServiceLineCreate>;
17
14
  export declare namespace ServiceLineCreate {
@@ -27,9 +24,6 @@ export declare namespace ServiceLineCreate {
27
24
  description?: string | null;
28
25
  date_of_service?: string | null;
29
26
  end_date_of_service?: string | null;
30
- referring_provider?: ReferringProvider.Raw | null;
31
- initial_referring_provider?: InitialReferringProvider.Raw | null;
32
- supervising_provider?: SupervisingProvider.Raw | null;
33
27
  ordering_provider?: OrderingProvider.Raw | null;
34
28
  }
35
29
  }