candidhealth 0.34.5 → 0.34.9

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 (346) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +7 -2
  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/claims/types/Claim.d.ts +4 -4
  6. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  7. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  8. package/api/resources/diagnoses/client/Client.d.ts +65 -0
  9. package/api/resources/diagnoses/client/Client.js +237 -0
  10. package/api/resources/diagnoses/client/create.d.ts +22 -0
  11. package/api/resources/diagnoses/client/create.js +47 -0
  12. package/api/resources/diagnoses/client/delete.d.ts +28 -0
  13. package/api/resources/diagnoses/client/delete.js +58 -0
  14. package/api/resources/diagnoses/client/index.d.ts +4 -0
  15. package/api/resources/diagnoses/client/index.js +33 -0
  16. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +33 -0
  17. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.js +5 -0
  18. package/api/resources/diagnoses/client/requests/index.d.ts +1 -0
  19. package/api/resources/diagnoses/client/requests/index.js +2 -0
  20. package/api/resources/diagnoses/client/update.d.ts +28 -0
  21. package/api/resources/diagnoses/client/update.js +58 -0
  22. package/api/resources/diagnoses/index.d.ts +1 -0
  23. package/api/resources/diagnoses/index.js +1 -0
  24. package/api/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +8 -0
  25. package/api/resources/diagnoses/types/DiagnosisNotFoundError.js +5 -0
  26. package/api/resources/diagnoses/types/index.d.ts +1 -0
  27. package/api/resources/diagnoses/types/index.js +1 -0
  28. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  29. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  30. package/api/resources/encounters/resources/v4/client/Client.d.ts +27 -14
  31. package/api/resources/encounters/resources/v4/client/Client.js +32 -19
  32. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +12 -6
  33. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +8 -6
  34. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +12 -2
  35. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +14 -4
  36. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -0
  37. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +14 -4
  38. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  39. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  40. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  41. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  42. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  43. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  44. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  45. package/api/resources/index.d.ts +1 -0
  46. package/api/resources/index.js +1 -0
  47. package/api/resources/individual/types/Patient.d.ts +11 -0
  48. package/api/resources/individual/types/PatientCreate.d.ts +1 -0
  49. package/api/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +21 -0
  50. package/api/resources/individual/types/PatientNonInsurancePayerInfo.js +5 -0
  51. package/api/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +8 -0
  52. package/api/resources/individual/types/PatientNonInsurancePayerInfoCreate.js +5 -0
  53. package/api/resources/individual/types/PatientUpdate.d.ts +2 -0
  54. package/api/resources/individual/types/index.d.ts +2 -0
  55. package/api/resources/individual/types/index.js +2 -0
  56. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  57. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  58. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  59. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +2 -1
  60. package/api/resources/medicationDispense/resources/v1/client/Client.js +3 -2
  61. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  62. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  63. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +12 -1
  64. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +18 -7
  65. package/api/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
  66. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.d.ts +14 -0
  67. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.js +5 -0
  68. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.d.ts +1 -0
  69. package/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  70. package/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  71. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  72. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  73. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  74. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  75. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  76. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  77. package/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +8 -0
  78. package/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +5 -0
  79. package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  80. package/api/resources/preEncounter/resources/common/types/index.js +1 -0
  81. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +34 -2
  82. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +42 -10
  83. package/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -0
  84. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  85. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +16 -2
  86. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +24 -10
  87. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +8 -1
  88. package/api/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  89. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  90. package/api/resources/serviceFacility/client/Client.js +1 -1
  91. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +21 -6
  92. package/api/resources/serviceLines/resources/v2/client/Client.js +24 -9
  93. package/api/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
  94. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -6
  95. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -2
  96. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +3 -0
  97. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -2
  98. package/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +3 -10
  99. package/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +8 -0
  100. package/api/resources/serviceLines/resources/v2/types/TestResultType.js +10 -0
  101. package/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  102. package/api/resources/serviceLines/resources/v2/types/index.js +1 -0
  103. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  104. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  105. package/dist/Client.d.ts +3 -0
  106. package/dist/Client.js +7 -2
  107. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  108. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  109. package/dist/api/resources/claims/types/Claim.d.ts +4 -4
  110. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  111. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  112. package/dist/api/resources/diagnoses/client/Client.d.ts +65 -0
  113. package/dist/api/resources/diagnoses/client/Client.js +237 -0
  114. package/dist/api/resources/diagnoses/client/create.d.ts +22 -0
  115. package/dist/api/resources/diagnoses/client/create.js +47 -0
  116. package/dist/api/resources/diagnoses/client/delete.d.ts +28 -0
  117. package/dist/api/resources/diagnoses/client/delete.js +58 -0
  118. package/dist/api/resources/diagnoses/client/index.d.ts +4 -0
  119. package/dist/api/resources/diagnoses/client/index.js +33 -0
  120. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +33 -0
  121. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.js +5 -0
  122. package/dist/api/resources/diagnoses/client/requests/index.d.ts +1 -0
  123. package/dist/api/resources/diagnoses/client/requests/index.js +2 -0
  124. package/dist/api/resources/diagnoses/client/update.d.ts +28 -0
  125. package/dist/api/resources/diagnoses/client/update.js +58 -0
  126. package/dist/api/resources/diagnoses/index.d.ts +1 -0
  127. package/dist/api/resources/diagnoses/index.js +1 -0
  128. package/dist/api/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +8 -0
  129. package/dist/api/resources/diagnoses/types/DiagnosisNotFoundError.js +5 -0
  130. package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
  131. package/dist/api/resources/diagnoses/types/index.js +1 -0
  132. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  133. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  134. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +27 -14
  135. package/dist/api/resources/encounters/resources/v4/client/Client.js +32 -19
  136. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +12 -6
  137. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +8 -6
  138. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +12 -2
  139. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +14 -4
  140. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -0
  141. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +14 -4
  142. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  143. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  144. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  145. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  146. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  147. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  148. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  149. package/dist/api/resources/index.d.ts +1 -0
  150. package/dist/api/resources/index.js +1 -0
  151. package/dist/api/resources/individual/types/Patient.d.ts +11 -0
  152. package/dist/api/resources/individual/types/PatientCreate.d.ts +1 -0
  153. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +21 -0
  154. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfo.js +5 -0
  155. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +8 -0
  156. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreate.js +5 -0
  157. package/dist/api/resources/individual/types/PatientUpdate.d.ts +2 -0
  158. package/dist/api/resources/individual/types/index.d.ts +2 -0
  159. package/dist/api/resources/individual/types/index.js +2 -0
  160. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  161. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  162. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  163. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +2 -1
  164. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +3 -2
  165. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  166. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  167. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +12 -1
  168. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +18 -7
  169. package/dist/api/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
  170. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.d.ts +14 -0
  171. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.js +5 -0
  172. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.d.ts +1 -0
  173. package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  174. package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  175. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  176. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  177. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  178. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  179. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  180. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  181. package/dist/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +8 -0
  182. package/dist/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +5 -0
  183. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  184. package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -0
  185. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +34 -2
  186. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +42 -10
  187. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -0
  188. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  189. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +16 -2
  190. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +24 -10
  191. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +8 -1
  192. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  193. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  194. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  195. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +21 -6
  196. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +24 -9
  197. package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
  198. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -6
  199. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -2
  200. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +3 -0
  201. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -2
  202. package/dist/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +3 -10
  203. package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +8 -0
  204. package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.js +10 -0
  205. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  206. package/dist/api/resources/serviceLines/resources/v2/types/index.js +1 -0
  207. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  208. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  209. package/dist/serialization/resources/diagnoses/client/delete.d.ts +15 -0
  210. package/dist/serialization/resources/diagnoses/client/delete.js +61 -0
  211. package/dist/serialization/resources/diagnoses/client/index.d.ts +3 -0
  212. package/dist/serialization/resources/diagnoses/client/index.js +32 -0
  213. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +15 -0
  214. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +36 -0
  215. package/dist/serialization/resources/diagnoses/client/requests/index.d.ts +1 -0
  216. package/dist/serialization/resources/diagnoses/client/requests/index.js +5 -0
  217. package/dist/serialization/resources/diagnoses/client/update.d.ts +15 -0
  218. package/dist/serialization/resources/diagnoses/client/update.js +61 -0
  219. package/dist/serialization/resources/diagnoses/index.d.ts +1 -0
  220. package/dist/serialization/resources/diagnoses/index.js +1 -0
  221. package/dist/serialization/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +14 -0
  222. package/dist/serialization/resources/diagnoses/types/DiagnosisNotFoundError.js +35 -0
  223. package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
  224. package/dist/serialization/resources/diagnoses/types/index.js +1 -0
  225. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  226. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
  227. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -0
  228. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +1 -0
  229. package/dist/serialization/resources/index.d.ts +1 -0
  230. package/dist/serialization/resources/index.js +1 -0
  231. package/dist/serialization/resources/individual/types/Patient.d.ts +2 -0
  232. package/dist/serialization/resources/individual/types/Patient.js +2 -0
  233. package/dist/serialization/resources/individual/types/PatientCreate.d.ts +2 -0
  234. package/dist/serialization/resources/individual/types/PatientCreate.js +2 -0
  235. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +14 -0
  236. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfo.js +35 -0
  237. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +14 -0
  238. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.js +35 -0
  239. package/dist/serialization/resources/individual/types/PatientUpdate.d.ts +2 -0
  240. package/dist/serialization/resources/individual/types/PatientUpdate.js +2 -0
  241. package/dist/serialization/resources/individual/types/index.d.ts +2 -0
  242. package/dist/serialization/resources/individual/types/index.js +2 -0
  243. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
  244. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.js +2 -0
  245. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.d.ts +18 -0
  246. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.js +42 -0
  247. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.d.ts +2 -0
  248. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.js +2 -0
  249. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  250. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  251. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +14 -0
  252. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +35 -0
  253. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  254. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  255. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +2 -0
  256. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +2 -0
  257. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  258. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.js +1 -1
  259. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -0
  260. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -0
  261. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
  262. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.js +1 -0
  263. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -1
  264. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +1 -1
  265. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
  266. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -1
  267. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +4 -0
  268. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +4 -0
  269. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -1
  270. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -1
  271. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +4 -8
  272. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.js +4 -12
  273. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +10 -0
  274. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +31 -0
  275. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  276. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
  277. package/package.json +1 -1
  278. package/reference.md +322 -12
  279. package/serialization/resources/diagnoses/client/delete.d.ts +15 -0
  280. package/serialization/resources/diagnoses/client/delete.js +61 -0
  281. package/serialization/resources/diagnoses/client/index.d.ts +3 -0
  282. package/serialization/resources/diagnoses/client/index.js +32 -0
  283. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +15 -0
  284. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +36 -0
  285. package/serialization/resources/diagnoses/client/requests/index.d.ts +1 -0
  286. package/serialization/resources/diagnoses/client/requests/index.js +5 -0
  287. package/serialization/resources/diagnoses/client/update.d.ts +15 -0
  288. package/serialization/resources/diagnoses/client/update.js +61 -0
  289. package/serialization/resources/diagnoses/index.d.ts +1 -0
  290. package/serialization/resources/diagnoses/index.js +1 -0
  291. package/serialization/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +14 -0
  292. package/serialization/resources/diagnoses/types/DiagnosisNotFoundError.js +35 -0
  293. package/serialization/resources/diagnoses/types/index.d.ts +1 -0
  294. package/serialization/resources/diagnoses/types/index.js +1 -0
  295. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  296. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
  297. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -0
  298. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +1 -0
  299. package/serialization/resources/index.d.ts +1 -0
  300. package/serialization/resources/index.js +1 -0
  301. package/serialization/resources/individual/types/Patient.d.ts +2 -0
  302. package/serialization/resources/individual/types/Patient.js +2 -0
  303. package/serialization/resources/individual/types/PatientCreate.d.ts +2 -0
  304. package/serialization/resources/individual/types/PatientCreate.js +2 -0
  305. package/serialization/resources/individual/types/PatientNonInsurancePayerInfo.d.ts +14 -0
  306. package/serialization/resources/individual/types/PatientNonInsurancePayerInfo.js +35 -0
  307. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.d.ts +14 -0
  308. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreate.js +35 -0
  309. package/serialization/resources/individual/types/PatientUpdate.d.ts +2 -0
  310. package/serialization/resources/individual/types/PatientUpdate.js +2 -0
  311. package/serialization/resources/individual/types/index.d.ts +2 -0
  312. package/serialization/resources/individual/types/index.js +2 -0
  313. package/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.d.ts +2 -0
  314. package/serialization/resources/nonInsurancePayers/resources/v1/types/CreateNonInsurancePayerRequest.js +2 -0
  315. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.d.ts +18 -0
  316. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerAddressUpdate.js +42 -0
  317. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.d.ts +2 -0
  318. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerUpdateRequest.js +2 -0
  319. package/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  320. package/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  321. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +14 -0
  322. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +35 -0
  323. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  324. package/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  325. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +2 -0
  326. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +2 -0
  327. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  328. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.js +1 -1
  329. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -0
  330. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -0
  331. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
  332. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.js +1 -0
  333. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -1
  334. package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +1 -1
  335. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
  336. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -1
  337. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +4 -0
  338. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +4 -0
  339. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -1
  340. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -1
  341. package/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +4 -8
  342. package/serialization/resources/serviceLines/resources/v2/types/TestResult.js +4 -12
  343. package/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +10 -0
  344. package/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +31 -0
  345. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
  346. package/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
@@ -0,0 +1,36 @@
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.DiagnosisUpdate = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const DiagnosisTypeCode_1 = require("../../types/DiagnosisTypeCode");
32
+ exports.DiagnosisUpdate = core.serialization.object({
33
+ name: core.serialization.string().optional(),
34
+ codeType: core.serialization.property("code_type", DiagnosisTypeCode_1.DiagnosisTypeCode.optional()),
35
+ code: core.serialization.string().optional(),
36
+ });
@@ -0,0 +1 @@
1
+ export { DiagnosisUpdate } from "./DiagnosisUpdate";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DiagnosisUpdate = void 0;
4
+ var DiagnosisUpdate_1 = require("./DiagnosisUpdate");
5
+ Object.defineProperty(exports, "DiagnosisUpdate", { enumerable: true, get: function () { return DiagnosisUpdate_1.DiagnosisUpdate; } });
@@ -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 { DiagnosisNotFoundError } from "../types/DiagnosisNotFoundError";
8
+ export declare const Error: core.serialization.Schema<serializers.diagnoses.update.Error.Raw, CandidApi.diagnoses.update.Error>;
9
+ export declare namespace Error {
10
+ type Raw = Error.DiagnosisNotFoundHttpError;
11
+ interface DiagnosisNotFoundHttpError {
12
+ errorName: "DiagnosisNotFoundHTTPError";
13
+ content: DiagnosisNotFoundError.Raw;
14
+ }
15
+ }
@@ -0,0 +1,61 @@
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 DiagnosisNotFoundError_1 = require("../types/DiagnosisNotFoundError");
44
+ exports.Error = core.serialization
45
+ .union("errorName", {
46
+ DiagnosisNotFoundHTTPError: core.serialization.object({
47
+ content: DiagnosisNotFoundError_1.DiagnosisNotFoundError,
48
+ }),
49
+ })
50
+ .transform({
51
+ transform: (value) => {
52
+ switch (value.errorName) {
53
+ case "DiagnosisNotFoundHTTPError":
54
+ return CandidApi.diagnoses.update.Error.diagnosisNotFoundHttpError(value.content);
55
+ }
56
+ },
57
+ untransform: (_a) => {
58
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
59
+ return value;
60
+ },
61
+ });
@@ -1 +1,2 @@
1
1
  export * from "./types";
2
+ export * from "./client";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,14 @@
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 { DiagnosisId } from "./DiagnosisId";
8
+ export declare const DiagnosisNotFoundError: core.serialization.ObjectSchema<serializers.DiagnosisNotFoundError.Raw, CandidApi.DiagnosisNotFoundError>;
9
+ export declare namespace DiagnosisNotFoundError {
10
+ interface Raw {
11
+ diagnosis_id?: DiagnosisId.Raw | null;
12
+ message: string;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.DiagnosisNotFoundError = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const DiagnosisId_1 = require("./DiagnosisId");
32
+ exports.DiagnosisNotFoundError = core.serialization.object({
33
+ diagnosisId: core.serialization.property("diagnosis_id", DiagnosisId_1.DiagnosisId.optional()),
34
+ message: core.serialization.string(),
35
+ });
@@ -3,3 +3,4 @@ export * from "./DiagnosisCreate";
3
3
  export * from "./StandaloneDiagnosisCreate";
4
4
  export * from "./DiagnosisTypeCode";
5
5
  export * from "./Diagnosis";
6
+ export * from "./DiagnosisNotFoundError";
@@ -19,3 +19,4 @@ __exportStar(require("./DiagnosisCreate"), exports);
19
19
  __exportStar(require("./StandaloneDiagnosisCreate"), exports);
20
20
  __exportStar(require("./DiagnosisTypeCode"), exports);
21
21
  __exportStar(require("./Diagnosis"), exports);
22
+ __exportStar(require("./DiagnosisNotFoundError"), exports);
@@ -68,5 +68,6 @@ export declare namespace EncounterUpdate {
68
68
  supervising_provider?: SupervisingProviderUpdate.Raw | null;
69
69
  referring_provider?: ReferringProviderUpdate.Raw | null;
70
70
  initial_referring_provider?: InitialReferringProviderUpdate.Raw | null;
71
+ referral_number?: string | null;
71
72
  }
72
73
  }
@@ -90,4 +90,5 @@ exports.EncounterUpdate = core.serialization.object({
90
90
  supervisingProvider: core.serialization.property("supervising_provider", SupervisingProviderUpdate_1.SupervisingProviderUpdate.optional()),
91
91
  referringProvider: core.serialization.property("referring_provider", ReferringProviderUpdate_1.ReferringProviderUpdate.optional()),
92
92
  initialReferringProvider: core.serialization.property("initial_referring_provider", InitialReferringProviderUpdate_1.InitialReferringProviderUpdate.optional()),
93
+ referralNumber: core.serialization.property("referral_number", core.serialization.string().optional()),
93
94
  });
@@ -36,5 +36,6 @@ export declare namespace EncounterBase {
36
36
  onset_of_current_illness_or_symptom_date?: string | null;
37
37
  last_menstrual_period_date?: string | null;
38
38
  delay_reason_code?: DelayReasonCode.Raw | null;
39
+ referral_number?: string | null;
39
40
  }
40
41
  }
@@ -58,4 +58,5 @@ exports.EncounterBase = core.serialization.object({
58
58
  onsetOfCurrentIllnessOrSymptomDate: core.serialization.property("onset_of_current_illness_or_symptom_date", core.serialization.string().optional()),
59
59
  lastMenstrualPeriodDate: core.serialization.property("last_menstrual_period_date", core.serialization.string().optional()),
60
60
  delayReasonCode: core.serialization.property("delay_reason_code", DelayReasonCode_1.DelayReasonCode.optional()),
61
+ referralNumber: core.serialization.property("referral_number", core.serialization.string().optional()),
61
62
  });
@@ -56,3 +56,4 @@ export * from "./serviceFacility/types";
56
56
  export * as tags from "./tags";
57
57
  export * from "./tags/types";
58
58
  export * as eligibility from "./eligibility";
59
+ export * from "./diagnoses/client/requests";
@@ -85,3 +85,4 @@ __exportStar(require("./serviceFacility/types"), exports);
85
85
  exports.tags = __importStar(require("./tags"));
86
86
  __exportStar(require("./tags/types"), exports);
87
87
  exports.eligibility = __importStar(require("./eligibility"));
88
+ __exportStar(require("./diagnoses/client/requests"), exports);
@@ -8,6 +8,7 @@ import { IndividualId } from "./IndividualId";
8
8
  import { PhoneNumber } from "../../commons/types/PhoneNumber";
9
9
  import { Email } from "../../commons/types/Email";
10
10
  import { NonInsurancePayer } from "../../nonInsurancePayers/resources/v1/types/NonInsurancePayer";
11
+ import { PatientNonInsurancePayerInfo } from "./PatientNonInsurancePayerInfo";
11
12
  import { PatientBase } from "./PatientBase";
12
13
  export declare const Patient: core.serialization.ObjectSchema<serializers.Patient.Raw, CandidApi.Patient>;
13
14
  export declare namespace Patient {
@@ -18,5 +19,6 @@ export declare namespace Patient {
18
19
  email?: Email.Raw | null;
19
20
  email_consent: boolean;
20
21
  non_insurance_payers: NonInsurancePayer.Raw[];
22
+ non_insurance_payers_info: PatientNonInsurancePayerInfo.Raw[];
21
23
  }
22
24
  }
@@ -32,6 +32,7 @@ const IndividualId_1 = require("./IndividualId");
32
32
  const PhoneNumber_1 = require("../../commons/types/PhoneNumber");
33
33
  const Email_1 = require("../../commons/types/Email");
34
34
  const NonInsurancePayer_1 = require("../../nonInsurancePayers/resources/v1/types/NonInsurancePayer");
35
+ const PatientNonInsurancePayerInfo_1 = require("./PatientNonInsurancePayerInfo");
35
36
  const PatientBase_1 = require("./PatientBase");
36
37
  exports.Patient = core.serialization
37
38
  .object({
@@ -41,5 +42,6 @@ exports.Patient = core.serialization
41
42
  email: Email_1.Email.optional(),
42
43
  emailConsent: core.serialization.property("email_consent", core.serialization.boolean()),
43
44
  nonInsurancePayers: core.serialization.property("non_insurance_payers", core.serialization.list(NonInsurancePayer_1.NonInsurancePayer)),
45
+ nonInsurancePayersInfo: core.serialization.property("non_insurance_payers_info", core.serialization.list(PatientNonInsurancePayerInfo_1.PatientNonInsurancePayerInfo)),
44
46
  })
45
47
  .extend(PatientBase_1.PatientBase);
@@ -7,6 +7,7 @@ import * as core from "../../../../core";
7
7
  import { PhoneNumber } from "../../commons/types/PhoneNumber";
8
8
  import { Email } from "../../commons/types/Email";
9
9
  import { NonInsurancePayerId } from "../../nonInsurancePayers/resources/v1/types/NonInsurancePayerId";
10
+ import { PatientNonInsurancePayerInfoCreate } from "./PatientNonInsurancePayerInfoCreate";
10
11
  import { PatientBase } from "./PatientBase";
11
12
  export declare const PatientCreate: core.serialization.ObjectSchema<serializers.PatientCreate.Raw, CandidApi.PatientCreate>;
12
13
  export declare namespace PatientCreate {
@@ -15,6 +16,7 @@ export declare namespace PatientCreate {
15
16
  phone_consent?: boolean | null;
16
17
  email?: Email.Raw | null;
17
18
  non_insurance_payers?: NonInsurancePayerId.Raw[] | null;
19
+ non_insurance_payers_info?: PatientNonInsurancePayerInfoCreate.Raw[] | null;
18
20
  email_consent?: boolean | null;
19
21
  }
20
22
  }
@@ -31,6 +31,7 @@ const core = __importStar(require("../../../../core"));
31
31
  const PhoneNumber_1 = require("../../commons/types/PhoneNumber");
32
32
  const Email_1 = require("../../commons/types/Email");
33
33
  const NonInsurancePayerId_1 = require("../../nonInsurancePayers/resources/v1/types/NonInsurancePayerId");
34
+ const PatientNonInsurancePayerInfoCreate_1 = require("./PatientNonInsurancePayerInfoCreate");
34
35
  const PatientBase_1 = require("./PatientBase");
35
36
  exports.PatientCreate = core.serialization
36
37
  .object({
@@ -38,6 +39,7 @@ exports.PatientCreate = core.serialization
38
39
  phoneConsent: core.serialization.property("phone_consent", core.serialization.boolean().optional()),
39
40
  email: Email_1.Email.optional(),
40
41
  nonInsurancePayers: core.serialization.property("non_insurance_payers", core.serialization.list(NonInsurancePayerId_1.NonInsurancePayerId).optional()),
42
+ nonInsurancePayersInfo: core.serialization.property("non_insurance_payers_info", core.serialization.list(PatientNonInsurancePayerInfoCreate_1.PatientNonInsurancePayerInfoCreate).optional()),
41
43
  emailConsent: core.serialization.property("email_consent", core.serialization.boolean().optional()),
42
44
  })
43
45
  .extend(PatientBase_1.PatientBase);
@@ -0,0 +1,14 @@
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 { NonInsurancePayer } from "../../nonInsurancePayers/resources/v1/types/NonInsurancePayer";
8
+ export declare const PatientNonInsurancePayerInfo: core.serialization.ObjectSchema<serializers.PatientNonInsurancePayerInfo.Raw, CandidApi.PatientNonInsurancePayerInfo>;
9
+ export declare namespace PatientNonInsurancePayerInfo {
10
+ interface Raw {
11
+ non_insurance_payer: NonInsurancePayer.Raw;
12
+ member_id?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.PatientNonInsurancePayerInfo = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const NonInsurancePayer_1 = require("../../nonInsurancePayers/resources/v1/types/NonInsurancePayer");
32
+ exports.PatientNonInsurancePayerInfo = core.serialization.object({
33
+ nonInsurancePayer: core.serialization.property("non_insurance_payer", NonInsurancePayer_1.NonInsurancePayer),
34
+ memberId: core.serialization.property("member_id", core.serialization.string().optional()),
35
+ });
@@ -0,0 +1,14 @@
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 { NonInsurancePayerId } from "../../nonInsurancePayers/resources/v1/types/NonInsurancePayerId";
8
+ export declare const PatientNonInsurancePayerInfoCreate: core.serialization.ObjectSchema<serializers.PatientNonInsurancePayerInfoCreate.Raw, CandidApi.PatientNonInsurancePayerInfoCreate>;
9
+ export declare namespace PatientNonInsurancePayerInfoCreate {
10
+ interface Raw {
11
+ non_insurance_payer_id: NonInsurancePayerId.Raw;
12
+ member_id?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.PatientNonInsurancePayerInfoCreate = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const NonInsurancePayerId_1 = require("../../nonInsurancePayers/resources/v1/types/NonInsurancePayerId");
32
+ exports.PatientNonInsurancePayerInfoCreate = core.serialization.object({
33
+ nonInsurancePayerId: core.serialization.property("non_insurance_payer_id", NonInsurancePayerId_1.NonInsurancePayerId),
34
+ memberId: core.serialization.property("member_id", core.serialization.string().optional()),
35
+ });
@@ -9,6 +9,7 @@ import { StreetAddressShortZip } from "../../commons/types/StreetAddressShortZip
9
9
  import { PhoneNumber } from "../../commons/types/PhoneNumber";
10
10
  import { Email } from "../../commons/types/Email";
11
11
  import { NonInsurancePayerId } from "../../nonInsurancePayers/resources/v1/types/NonInsurancePayerId";
12
+ import { PatientNonInsurancePayerInfoCreate } from "./PatientNonInsurancePayerInfoCreate";
12
13
  export declare const PatientUpdate: core.serialization.ObjectSchema<serializers.PatientUpdate.Raw, CandidApi.PatientUpdate>;
13
14
  export declare namespace PatientUpdate {
14
15
  interface Raw {
@@ -23,5 +24,6 @@ export declare namespace PatientUpdate {
23
24
  email?: Email.Raw | null;
24
25
  email_consent?: boolean | null;
25
26
  non_insurance_payers?: NonInsurancePayerId.Raw[] | null;
27
+ non_insurance_payers_info?: PatientNonInsurancePayerInfoCreate.Raw[] | null;
26
28
  }
27
29
  }
@@ -33,6 +33,7 @@ const StreetAddressShortZip_1 = require("../../commons/types/StreetAddressShortZ
33
33
  const PhoneNumber_1 = require("../../commons/types/PhoneNumber");
34
34
  const Email_1 = require("../../commons/types/Email");
35
35
  const NonInsurancePayerId_1 = require("../../nonInsurancePayers/resources/v1/types/NonInsurancePayerId");
36
+ const PatientNonInsurancePayerInfoCreate_1 = require("./PatientNonInsurancePayerInfoCreate");
36
37
  exports.PatientUpdate = core.serialization.object({
37
38
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
38
39
  lastName: core.serialization.property("last_name", core.serialization.string().optional()),
@@ -45,4 +46,5 @@ exports.PatientUpdate = core.serialization.object({
45
46
  email: Email_1.Email.optional(),
46
47
  emailConsent: core.serialization.property("email_consent", core.serialization.boolean().optional()),
47
48
  nonInsurancePayers: core.serialization.property("non_insurance_payers", core.serialization.list(NonInsurancePayerId_1.NonInsurancePayerId).optional()),
49
+ nonInsurancePayersInfo: core.serialization.property("non_insurance_payers_info", core.serialization.list(PatientNonInsurancePayerInfoCreate_1.PatientNonInsurancePayerInfoCreate).optional()),
48
50
  });
@@ -3,6 +3,8 @@ export * from "./IndividualBase";
3
3
  export * from "./SubscriberBase";
4
4
  export * from "./SubscriberCreate";
5
5
  export * from "./Subscriber";
6
+ export * from "./PatientNonInsurancePayerInfoCreate";
7
+ export * from "./PatientNonInsurancePayerInfo";
6
8
  export * from "./PatientCreate";
7
9
  export * from "./PatientUpdate";
8
10
  export * from "./PatientBase";
@@ -19,6 +19,8 @@ __exportStar(require("./IndividualBase"), exports);
19
19
  __exportStar(require("./SubscriberBase"), exports);
20
20
  __exportStar(require("./SubscriberCreate"), exports);
21
21
  __exportStar(require("./Subscriber"), exports);
22
+ __exportStar(require("./PatientNonInsurancePayerInfoCreate"), exports);
23
+ __exportStar(require("./PatientNonInsurancePayerInfo"), exports);
22
24
  __exportStar(require("./PatientCreate"), exports);
23
25
  __exportStar(require("./PatientUpdate"), exports);
24
26
  __exportStar(require("./PatientBase"), exports);
@@ -4,11 +4,13 @@
4
4
  import * as serializers from "../../../../../index";
5
5
  import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
+ import { StreetAddressShortZip } from "../../../../commons/types/StreetAddressShortZip";
7
8
  export declare const CreateNonInsurancePayerRequest: core.serialization.ObjectSchema<serializers.nonInsurancePayers.v1.CreateNonInsurancePayerRequest.Raw, CandidApi.nonInsurancePayers.v1.CreateNonInsurancePayerRequest>;
8
9
  export declare namespace CreateNonInsurancePayerRequest {
9
10
  interface Raw {
10
11
  name: string;
11
12
  description?: string | null;
12
13
  category?: string | null;
14
+ address?: StreetAddressShortZip.Raw | null;
13
15
  }
14
16
  }
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CreateNonInsurancePayerRequest = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
+ const StreetAddressShortZip_1 = require("../../../../commons/types/StreetAddressShortZip");
31
32
  exports.CreateNonInsurancePayerRequest = core.serialization.object({
32
33
  name: core.serialization.string(),
33
34
  description: core.serialization.string().optional(),
34
35
  category: core.serialization.string().optional(),
36
+ address: StreetAddressShortZip_1.StreetAddressShortZip.optional(),
35
37
  });
@@ -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 { StreetAddressShortZip } from "../../../../commons/types/StreetAddressShortZip";
8
+ export declare const NonInsurancePayerAddressUpdate: core.serialization.Schema<serializers.nonInsurancePayers.v1.NonInsurancePayerAddressUpdate.Raw, CandidApi.nonInsurancePayers.v1.NonInsurancePayerAddressUpdate>;
9
+ export declare namespace NonInsurancePayerAddressUpdate {
10
+ type Raw = NonInsurancePayerAddressUpdate.Remove | NonInsurancePayerAddressUpdate.Set;
11
+ interface Remove {
12
+ type: "remove";
13
+ }
14
+ interface Set {
15
+ type: "set";
16
+ value?: StreetAddressShortZip.Raw | null;
17
+ }
18
+ }
@@ -0,0 +1,42 @@
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.NonInsurancePayerAddressUpdate = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ const StreetAddressShortZip_1 = require("../../../../commons/types/StreetAddressShortZip");
32
+ exports.NonInsurancePayerAddressUpdate = core.serialization
33
+ .union("type", {
34
+ remove: core.serialization.object({}),
35
+ set: core.serialization.object({
36
+ value: StreetAddressShortZip_1.StreetAddressShortZip.optional(),
37
+ }),
38
+ })
39
+ .transform({
40
+ transform: (value) => value,
41
+ untransform: (value) => value,
42
+ });
@@ -6,11 +6,13 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { NonInsurancePayerDescriptionUpdate } from "./NonInsurancePayerDescriptionUpdate";
8
8
  import { NonInsurancePayerCategoryUpdate } from "./NonInsurancePayerCategoryUpdate";
9
+ import { NonInsurancePayerAddressUpdate } from "./NonInsurancePayerAddressUpdate";
9
10
  export declare const NonInsurancePayerUpdateRequest: core.serialization.ObjectSchema<serializers.nonInsurancePayers.v1.NonInsurancePayerUpdateRequest.Raw, CandidApi.nonInsurancePayers.v1.NonInsurancePayerUpdateRequest>;
10
11
  export declare namespace NonInsurancePayerUpdateRequest {
11
12
  interface Raw {
12
13
  name?: string | null;
13
14
  description?: NonInsurancePayerDescriptionUpdate.Raw | null;
14
15
  category?: NonInsurancePayerCategoryUpdate.Raw | null;
16
+ address?: NonInsurancePayerAddressUpdate.Raw | null;
15
17
  }
16
18
  }
@@ -30,8 +30,10 @@ exports.NonInsurancePayerUpdateRequest = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  const NonInsurancePayerDescriptionUpdate_1 = require("./NonInsurancePayerDescriptionUpdate");
32
32
  const NonInsurancePayerCategoryUpdate_1 = require("./NonInsurancePayerCategoryUpdate");
33
+ const NonInsurancePayerAddressUpdate_1 = require("./NonInsurancePayerAddressUpdate");
33
34
  exports.NonInsurancePayerUpdateRequest = core.serialization.object({
34
35
  name: core.serialization.string().optional(),
35
36
  description: NonInsurancePayerDescriptionUpdate_1.NonInsurancePayerDescriptionUpdate.optional(),
36
37
  category: NonInsurancePayerCategoryUpdate_1.NonInsurancePayerCategoryUpdate.optional(),
38
+ address: NonInsurancePayerAddressUpdate_1.NonInsurancePayerAddressUpdate.optional(),
37
39
  });
@@ -5,5 +5,6 @@ export * from "./NonInsurancePayerPage";
5
5
  export * from "./NonInsurancePayerSortField";
6
6
  export * from "./NonInsurancePayerDescriptionUpdate";
7
7
  export * from "./NonInsurancePayerCategoryUpdate";
8
+ export * from "./NonInsurancePayerAddressUpdate";
8
9
  export * from "./ToggleNonInsurancePayerEnablementRequest";
9
10
  export * from "./NonInsurancePayerUpdateRequest";
@@ -21,5 +21,6 @@ __exportStar(require("./NonInsurancePayerPage"), exports);
21
21
  __exportStar(require("./NonInsurancePayerSortField"), exports);
22
22
  __exportStar(require("./NonInsurancePayerDescriptionUpdate"), exports);
23
23
  __exportStar(require("./NonInsurancePayerCategoryUpdate"), exports);
24
+ __exportStar(require("./NonInsurancePayerAddressUpdate"), exports);
24
25
  __exportStar(require("./ToggleNonInsurancePayerEnablementRequest"), exports);
25
26
  __exportStar(require("./NonInsurancePayerUpdateRequest"), exports);
@@ -0,0 +1,14 @@
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 { CanonicalNonInsurancePayerId } from "./CanonicalNonInsurancePayerId";
8
+ export declare const CanonicalNonInsurancePayerAssociation: core.serialization.ObjectSchema<serializers.preEncounter.CanonicalNonInsurancePayerAssociation.Raw, CandidApi.preEncounter.CanonicalNonInsurancePayerAssociation>;
9
+ export declare namespace CanonicalNonInsurancePayerAssociation {
10
+ interface Raw {
11
+ id: CanonicalNonInsurancePayerId.Raw;
12
+ member_id?: string | null;
13
+ }
14
+ }