candidhealth 0.3.0 → 0.3.1

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 (239) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/client/Client.js +1 -1
  3. package/api/resources/commons/types/DateRangeOptionalEnd.d.ts +8 -0
  4. package/api/resources/commons/types/Decimal.d.ts +11 -0
  5. package/api/resources/commons/types/Decimal.js +10 -0
  6. package/api/resources/commons/types/EmrPayerCrosswalk.d.ts +8 -0
  7. package/api/resources/commons/types/EmrPayerCrosswalk.js +10 -0
  8. package/api/resources/commons/types/UserId.d.ts +8 -0
  9. package/api/resources/commons/types/index.d.ts +4 -1
  10. package/api/resources/commons/types/index.js +4 -1
  11. package/api/resources/encounters/resources/v4/client/Client.js +16 -12
  12. package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  13. package/api/resources/encounters/resources/v4/client/create.js +11 -0
  14. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  15. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -7
  16. package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -1
  17. package/api/resources/encounters/resources/v4/types/BillableStatusType.d.ts +8 -0
  18. package/api/resources/encounters/resources/v4/types/BillableStatusType.js +10 -0
  19. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  20. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +13 -7
  21. package/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +6 -0
  22. package/api/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +9 -0
  23. package/api/resources/encounters/resources/v4/types/ResponsiblePartyType.js +11 -0
  24. package/api/resources/encounters/resources/v4/types/index.d.ts +3 -0
  25. package/api/resources/encounters/resources/v4/types/index.js +3 -0
  26. package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  27. package/api/resources/guarantor/resources/v1/client/Client.d.ts +2 -2
  28. package/api/resources/guarantor/resources/v1/client/Client.js +20 -6
  29. package/api/resources/guarantor/resources/v1/client/create.d.ts +7 -1
  30. package/api/resources/guarantor/resources/v1/client/create.js +11 -0
  31. package/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  32. package/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +6 -0
  33. package/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js +5 -0
  34. package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  35. package/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  36. package/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
  37. package/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  38. package/api/resources/guarantor/resources/v1/types/index.js +1 -0
  39. package/api/resources/individual/types/Patient.d.ts +4 -0
  40. package/api/resources/individual/types/PatientBase.d.ts +0 -1
  41. package/api/resources/individual/types/PatientCreate.d.ts +6 -0
  42. package/api/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  43. package/api/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  44. package/api/resources/payers/client/Client.js +2 -2
  45. package/api/resources/serviceLines/types/ServiceLine.d.ts +13 -1
  46. package/api/resources/serviceLines/types/ServiceLineCreate.d.ts +7 -1
  47. package/api/resources/tasks/resources/v3/client/Client.js +1 -1
  48. package/api/resources/users/resources/v2/types/UserV2.d.ts +1 -1
  49. package/api/resources/users/resources/v2/types/index.d.ts +0 -1
  50. package/api/resources/users/resources/v2/types/index.js +0 -1
  51. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  52. package/dist/api/resources/billingNotes/client/Client.js +1 -1
  53. package/dist/api/resources/commons/types/DateRangeOptionalEnd.d.ts +8 -0
  54. package/dist/api/resources/commons/types/DateRangeOptionalEnd.js +5 -0
  55. package/dist/api/resources/commons/types/Decimal.d.ts +11 -0
  56. package/dist/api/resources/commons/types/Decimal.js +10 -0
  57. package/dist/api/resources/commons/types/EmrPayerCrosswalk.d.ts +8 -0
  58. package/dist/api/resources/commons/types/EmrPayerCrosswalk.js +10 -0
  59. package/dist/api/resources/commons/types/UserId.d.ts +8 -0
  60. package/dist/api/resources/commons/types/index.d.ts +4 -1
  61. package/dist/api/resources/commons/types/index.js +4 -1
  62. package/dist/api/resources/encounters/resources/v4/client/Client.js +16 -12
  63. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  64. package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
  65. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  66. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -7
  67. package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +2 -1
  68. package/dist/api/resources/encounters/resources/v4/types/BillableStatusType.d.ts +8 -0
  69. package/dist/api/resources/encounters/resources/v4/types/BillableStatusType.js +10 -0
  70. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  71. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +13 -7
  72. package/dist/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +6 -0
  73. package/dist/api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js +5 -0
  74. package/dist/api/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +9 -0
  75. package/dist/api/resources/encounters/resources/v4/types/ResponsiblePartyType.js +11 -0
  76. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +3 -0
  77. package/dist/api/resources/encounters/resources/v4/types/index.js +3 -0
  78. package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  79. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +2 -2
  80. package/dist/api/resources/guarantor/resources/v1/client/Client.js +20 -6
  81. package/dist/api/resources/guarantor/resources/v1/client/create.d.ts +7 -1
  82. package/dist/api/resources/guarantor/resources/v1/client/create.js +11 -0
  83. package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  84. package/dist/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +6 -0
  85. package/dist/api/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js +5 -0
  86. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  87. package/dist/api/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  88. package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +6 -0
  89. package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  90. package/dist/api/resources/guarantor/resources/v1/types/index.js +1 -0
  91. package/dist/api/resources/individual/types/Patient.d.ts +4 -0
  92. package/dist/api/resources/individual/types/PatientBase.d.ts +0 -1
  93. package/dist/api/resources/individual/types/PatientCreate.d.ts +6 -0
  94. package/dist/api/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  95. package/dist/api/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  96. package/dist/api/resources/payers/client/Client.js +2 -2
  97. package/dist/api/resources/serviceLines/types/ServiceLine.d.ts +13 -1
  98. package/dist/api/resources/serviceLines/types/ServiceLineCreate.d.ts +7 -1
  99. package/dist/api/resources/tasks/resources/v3/client/Client.js +1 -1
  100. package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +1 -1
  101. package/dist/api/resources/users/resources/v2/types/index.d.ts +0 -1
  102. package/dist/api/resources/users/resources/v2/types/index.js +0 -1
  103. package/dist/serialization/resources/commons/types/DateRangeOptionalEnd.d.ts +13 -0
  104. package/dist/serialization/resources/commons/types/{ContactInfo.js → DateRangeOptionalEnd.js} +4 -6
  105. package/dist/serialization/resources/commons/types/Decimal.d.ts +10 -0
  106. package/{serialization/resources/commons/types/ContactInfo.js → dist/serialization/resources/commons/types/Decimal.js} +7 -6
  107. package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +10 -0
  108. package/dist/serialization/resources/commons/types/EmrPayerCrosswalk.js +31 -0
  109. package/dist/serialization/resources/commons/types/UserId.d.ts +10 -0
  110. package/dist/serialization/resources/commons/types/UserId.js +37 -0
  111. package/dist/serialization/resources/commons/types/index.d.ts +4 -1
  112. package/dist/serialization/resources/commons/types/index.js +4 -1
  113. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
  114. package/dist/serialization/resources/encounters/resources/v4/client/create.js +5 -0
  115. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  116. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -1
  117. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -2
  118. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +6 -2
  119. package/dist/serialization/resources/encounters/resources/v4/types/BillableStatusType.d.ts +10 -0
  120. package/dist/serialization/resources/encounters/resources/v4/types/BillableStatusType.js +31 -0
  121. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  122. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
  123. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +3 -2
  124. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +3 -2
  125. package/dist/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +12 -0
  126. package/dist/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js +33 -0
  127. package/dist/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +10 -0
  128. package/dist/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.js +31 -0
  129. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +3 -0
  130. package/dist/serialization/resources/encounters/resources/v4/types/index.js +3 -0
  131. package/dist/serialization/resources/guarantor/resources/v1/client/create.d.ts +14 -0
  132. package/dist/serialization/resources/guarantor/resources/v1/client/create.js +46 -0
  133. package/dist/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
  134. package/dist/serialization/resources/guarantor/resources/v1/client/index.js +14 -0
  135. package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  136. package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +8 -3
  137. package/dist/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +12 -0
  138. package/dist/serialization/resources/{users/resources/v2/types/UserId.js → guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js} +3 -5
  139. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  140. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +4 -0
  141. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  142. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -2
  143. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +4 -0
  144. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +8 -1
  145. package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  146. package/dist/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  147. package/dist/serialization/resources/individual/types/Patient.d.ts +4 -0
  148. package/dist/serialization/resources/individual/types/Patient.js +4 -0
  149. package/dist/serialization/resources/individual/types/PatientBase.d.ts +0 -1
  150. package/dist/serialization/resources/individual/types/PatientBase.js +0 -1
  151. package/dist/serialization/resources/individual/types/PatientCreate.d.ts +4 -0
  152. package/dist/serialization/resources/individual/types/PatientCreate.js +8 -1
  153. package/dist/serialization/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  154. package/dist/serialization/resources/insuranceCard/types/InsuranceCardBase.js +1 -1
  155. package/dist/serialization/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  156. package/dist/serialization/resources/insuranceCard/types/InsuranceCardCreate.js +1 -0
  157. package/dist/serialization/resources/serviceLines/types/ServiceLine.d.ts +2 -1
  158. package/dist/serialization/resources/serviceLines/types/ServiceLine.js +2 -1
  159. package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -1
  160. package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -1
  161. package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +1 -1
  162. package/dist/serialization/resources/users/resources/v2/types/UserV2.js +1 -1
  163. package/dist/serialization/resources/users/resources/v2/types/index.d.ts +0 -1
  164. package/dist/serialization/resources/users/resources/v2/types/index.js +0 -1
  165. package/package.json +1 -1
  166. package/serialization/resources/commons/types/DateRangeOptionalEnd.d.ts +13 -0
  167. package/serialization/resources/commons/types/DateRangeOptionalEnd.js +34 -0
  168. package/serialization/resources/commons/types/Decimal.d.ts +10 -0
  169. package/serialization/resources/commons/types/Decimal.js +37 -0
  170. package/serialization/resources/commons/types/EmrPayerCrosswalk.d.ts +10 -0
  171. package/serialization/resources/commons/types/EmrPayerCrosswalk.js +31 -0
  172. package/serialization/resources/commons/types/UserId.d.ts +10 -0
  173. package/serialization/resources/commons/types/UserId.js +37 -0
  174. package/serialization/resources/commons/types/index.d.ts +4 -1
  175. package/serialization/resources/commons/types/index.js +4 -1
  176. package/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
  177. package/serialization/resources/encounters/resources/v4/client/create.js +5 -0
  178. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  179. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -1
  180. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -2
  181. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +6 -2
  182. package/serialization/resources/encounters/resources/v4/types/BillableStatusType.d.ts +10 -0
  183. package/serialization/resources/encounters/resources/v4/types/BillableStatusType.js +31 -0
  184. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  185. package/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -0
  186. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +3 -2
  187. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +3 -2
  188. package/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.d.ts +12 -0
  189. package/serialization/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js +33 -0
  190. package/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.d.ts +10 -0
  191. package/serialization/resources/encounters/resources/v4/types/ResponsiblePartyType.js +31 -0
  192. package/serialization/resources/encounters/resources/v4/types/index.d.ts +3 -0
  193. package/serialization/resources/encounters/resources/v4/types/index.js +3 -0
  194. package/serialization/resources/guarantor/resources/v1/client/create.d.ts +14 -0
  195. package/serialization/resources/guarantor/resources/v1/client/create.js +46 -0
  196. package/serialization/resources/guarantor/resources/v1/client/index.d.ts +1 -0
  197. package/serialization/resources/guarantor/resources/v1/client/index.js +14 -0
  198. package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +6 -3
  199. package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.js +8 -3
  200. package/serialization/resources/guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.d.ts +12 -0
  201. package/serialization/resources/{users/resources/v2/types/UserId.js → guarantor/resources/v1/types/EncounterHasExistingGuarantorErrorType.js} +3 -5
  202. package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +4 -0
  203. package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +4 -0
  204. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.d.ts +1 -2
  205. package/serialization/resources/guarantor/resources/v1/types/GuarantorBase.js +1 -2
  206. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +4 -0
  207. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +8 -1
  208. package/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  209. package/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  210. package/serialization/resources/individual/types/Patient.d.ts +4 -0
  211. package/serialization/resources/individual/types/Patient.js +4 -0
  212. package/serialization/resources/individual/types/PatientBase.d.ts +0 -1
  213. package/serialization/resources/individual/types/PatientBase.js +0 -1
  214. package/serialization/resources/individual/types/PatientCreate.d.ts +4 -0
  215. package/serialization/resources/individual/types/PatientCreate.js +8 -1
  216. package/serialization/resources/insuranceCard/types/InsuranceCardBase.d.ts +1 -1
  217. package/serialization/resources/insuranceCard/types/InsuranceCardBase.js +1 -1
  218. package/serialization/resources/insuranceCard/types/InsuranceCardCreate.d.ts +1 -0
  219. package/serialization/resources/insuranceCard/types/InsuranceCardCreate.js +1 -0
  220. package/serialization/resources/serviceLines/types/ServiceLine.d.ts +2 -1
  221. package/serialization/resources/serviceLines/types/ServiceLine.js +2 -1
  222. package/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -1
  223. package/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -1
  224. package/serialization/resources/users/resources/v2/types/UserV2.d.ts +1 -1
  225. package/serialization/resources/users/resources/v2/types/UserV2.js +1 -1
  226. package/serialization/resources/users/resources/v2/types/index.d.ts +0 -1
  227. package/serialization/resources/users/resources/v2/types/index.js +0 -1
  228. package/api/resources/commons/types/ContactInfo.d.ts +0 -10
  229. package/api/resources/users/resources/v2/types/UserId.d.ts +0 -8
  230. package/dist/api/resources/commons/types/ContactInfo.d.ts +0 -10
  231. package/dist/api/resources/users/resources/v2/types/UserId.d.ts +0 -8
  232. package/dist/serialization/resources/commons/types/ContactInfo.d.ts +0 -15
  233. package/dist/serialization/resources/users/resources/v2/types/UserId.d.ts +0 -10
  234. package/serialization/resources/commons/types/ContactInfo.d.ts +0 -15
  235. package/serialization/resources/users/resources/v2/types/UserId.d.ts +0 -10
  236. /package/api/resources/commons/types/{ContactInfo.js → DateRangeOptionalEnd.js} +0 -0
  237. /package/api/resources/{users/resources/v2 → commons}/types/UserId.js +0 -0
  238. /package/{dist/api/resources/commons/types/ContactInfo.js → api/resources/encounters/resources/v4/types/EncounterGuarantorMissingContactInfoErrorType.js} +0 -0
  239. /package/dist/api/resources/{users/resources/v2 → commons}/types/UserId.js +0 -0
@@ -4,4 +4,8 @@
4
4
  import * as CandidApi from "../../../../..";
5
5
  export interface Guarantor extends CandidApi.guarantor.v1.GuarantorBase {
6
6
  guarantorId: CandidApi.guarantor.v1.GuarantorId;
7
+ phoneNumbers: CandidApi.PhoneNumber[];
8
+ phoneConsent: boolean;
9
+ email?: CandidApi.Email;
10
+ emailConsent: boolean;
7
11
  }
@@ -7,6 +7,5 @@ export interface GuarantorBase {
7
7
  lastName: string;
8
8
  externalId: string;
9
9
  dateOfBirth: string;
10
- address: CandidApi.StreetAddressLongZip;
11
- contactInfo: CandidApi.ContactInfo;
10
+ address: CandidApi.StreetAddressShortZip;
12
11
  }
@@ -3,4 +3,10 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  export interface GuarantorCreate extends CandidApi.guarantor.v1.GuarantorBase {
6
+ phoneNumbers?: CandidApi.PhoneNumber[];
7
+ /** Defaults to false */
8
+ phoneConsent?: boolean;
9
+ email?: CandidApi.Email;
10
+ /** Defaults to false */
11
+ emailConsent?: boolean;
6
12
  }
@@ -2,3 +2,4 @@ export * from "./GuarantorId";
2
2
  export * from "./GuarantorBase";
3
3
  export * from "./Guarantor";
4
4
  export * from "./GuarantorCreate";
5
+ export * from "./EncounterHasExistingGuarantorErrorType";
@@ -18,3 +18,4 @@ __exportStar(require("./GuarantorId"), exports);
18
18
  __exportStar(require("./GuarantorBase"), exports);
19
19
  __exportStar(require("./Guarantor"), exports);
20
20
  __exportStar(require("./GuarantorCreate"), exports);
21
+ __exportStar(require("./EncounterHasExistingGuarantorErrorType"), exports);
@@ -4,4 +4,8 @@
4
4
  import * as CandidApi from "../../..";
5
5
  export interface Patient extends CandidApi.PatientBase {
6
6
  individualId: CandidApi.IndividualId;
7
+ phoneNumbers: CandidApi.PhoneNumber[];
8
+ phoneConsent: boolean;
9
+ email?: CandidApi.Email;
10
+ emailConsent: boolean;
7
11
  }
@@ -13,5 +13,4 @@ export interface PatientBase extends CandidApi.IndividualBase {
13
13
  dateOfBirth: CandidApi.Date_;
14
14
  /** Box 5 on the CMS-1500 claim form. */
15
15
  address: CandidApi.StreetAddressShortZip;
16
- contactInfo?: CandidApi.ContactInfo;
17
16
  }
@@ -3,4 +3,10 @@
3
3
  */
4
4
  import * as CandidApi from "../../..";
5
5
  export interface PatientCreate extends CandidApi.PatientBase {
6
+ phoneNumbers?: CandidApi.PhoneNumber[];
7
+ /** Defaults to false */
8
+ phoneConsent?: boolean;
9
+ email?: CandidApi.Email;
10
+ /** Defaults to false */
11
+ emailConsent?: boolean;
6
12
  }
@@ -8,5 +8,5 @@ export interface InsuranceCardBase {
8
8
  /** Box 11c on the CMS-1500 claim form. */
9
9
  planName?: string;
10
10
  planType?: CandidApi.SourceOfPaymentCode;
11
- insuranceType?: string;
11
+ insuranceType?: CandidApi.InsuranceTypeCode;
12
12
  }
@@ -10,4 +10,5 @@ export interface InsuranceCardCreate extends CandidApi.InsuranceCardBase {
10
10
  rxPcn?: string;
11
11
  imageUrlFront?: string;
12
12
  imageUrlBack?: string;
13
+ emrPayerCrosswalk?: CandidApi.EmrPayerCrosswalk;
13
14
  }
@@ -49,7 +49,7 @@ class Payers {
49
49
  Authorization: await this._getAuthorizationHeader(),
50
50
  "X-Fern-Language": "JavaScript",
51
51
  "X-Fern-SDK-Name": "candidhealth",
52
- "X-Fern-SDK-Version": "0.3.0",
52
+ "X-Fern-SDK-Version": "0.3.1",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -89,7 +89,7 @@ class Payers {
89
89
  Authorization: await this._getAuthorizationHeader(),
90
90
  "X-Fern-Language": "JavaScript",
91
91
  "X-Fern-SDK-Name": "candidhealth",
92
- "X-Fern-SDK-Version": "0.3.0",
92
+ "X-Fern-SDK-Version": "0.3.1",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -5,7 +5,19 @@ import * as CandidApi from "../../..";
5
5
  export interface ServiceLine extends CandidApi.ServiceLineBaseWithOptionals {
6
6
  serviceLineId: CandidApi.ServiceLineId;
7
7
  procedureCode: string;
8
- quantity: string;
8
+ /**
9
+ * String representation of a Decimal that can be parsed by most libraries.
10
+ * A ServiceLine quantity cannot contain more than one digit of precision.
11
+ * Example: 1.1 is valid, 1.11 is not.
12
+ *
13
+ */
14
+ quantity: CandidApi.Decimal;
9
15
  units: CandidApi.ServiceLineUnits;
10
16
  claimId: CandidApi.ClaimId;
17
+ /**
18
+ * A range of dates of service for this service line. If the service line is for a single date, the end date
19
+ * will be empty.
20
+ *
21
+ */
22
+ dateOfServiceRange: CandidApi.DateRangeOptionalEnd;
11
23
  }
@@ -4,7 +4,13 @@
4
4
  import * as CandidApi from "../../..";
5
5
  export interface ServiceLineCreate extends CandidApi.ServiceLineBase {
6
6
  procedureCode: string;
7
- quantity: string;
7
+ /**
8
+ * String representation of a Decimal that can be parsed by most libraries.
9
+ * A ServiceLine quantity cannot contain more than one digit of precision.
10
+ * Example: 1.1 is valid, 1.11 is not.
11
+ *
12
+ */
13
+ quantity: CandidApi.Decimal;
8
14
  units: CandidApi.ServiceLineUnits;
9
15
  /**
10
16
  * The total amount charged for this service line taking quantity into account. For example, if a single unit
@@ -48,7 +48,7 @@ class V3 {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.3.0",
51
+ "X-Fern-SDK-Version": "0.3.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  timeoutMs: 60000,
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  export interface UserV2 {
6
- userId: CandidApi.users.v2.UserId;
6
+ userId: CandidApi.UserId;
7
7
  idpMetadata: CandidApi.users.v2.IdpUserMetadata[];
8
8
  primaryOrganizationId: CandidApi.OrganizationId;
9
9
  userMetadata: CandidApi.users.v2.UserMetadata;
@@ -1,5 +1,4 @@
1
1
  export * from "./HumanUserMetadata";
2
- export * from "./UserId";
3
2
  export * from "./MachineUserMetadata";
4
3
  export * from "./UserMetadata";
5
4
  export * from "./AuthZeroMetadata";
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./HumanUserMetadata"), exports);
18
- __exportStar(require("./UserId"), exports);
19
18
  __exportStar(require("./MachineUserMetadata"), exports);
20
19
  __exportStar(require("./UserMetadata"), exports);
21
20
  __exportStar(require("./AuthZeroMetadata"), exports);
@@ -48,7 +48,7 @@ class V2 {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.3.0",
51
+ "X-Fern-SDK-Version": "0.3.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class BillingNotes {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.3.0",
51
+ "X-Fern-SDK-Version": "0.3.1",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../..";
5
+ export interface DateRangeOptionalEnd {
6
+ startDate: CandidApi.Date_;
7
+ endDate?: CandidApi.Date_;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../..";
5
+ /**
6
+ * String representation of a Decimal that can be parsed by most libraries.
7
+ */
8
+ export declare type Decimal = string & {
9
+ Decimal: void;
10
+ };
11
+ export declare function Decimal(value: string): CandidApi.Decimal;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Decimal = void 0;
7
+ function Decimal(value) {
8
+ return value;
9
+ }
10
+ exports.Decimal = Decimal;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type EmrPayerCrosswalk = "HEALTHIE" | "CANVAS";
5
+ export declare const EmrPayerCrosswalk: {
6
+ readonly Healthie: "HEALTHIE";
7
+ readonly Canvas: "CANVAS";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EmrPayerCrosswalk = void 0;
7
+ exports.EmrPayerCrosswalk = {
8
+ Healthie: "HEALTHIE",
9
+ Canvas: "CANVAS",
10
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../..";
5
+ export declare type UserId = string & {
6
+ UserId: void;
7
+ };
8
+ export declare function UserId(value: string): CandidApi.UserId;
@@ -6,10 +6,13 @@ export * from "./PatientExternalId";
6
6
  export * from "./EncounterExternalId";
7
7
  export * from "./Npi";
8
8
  export * from "./WorkQueueId";
9
+ export * from "./UserId";
9
10
  export * from "./LinkUrl";
10
11
  export * from "./ContentDownloadUrl";
11
12
  export * from "./PageToken";
12
13
  export * from "./Date_";
14
+ export * from "./DateRangeOptionalEnd";
15
+ export * from "./Decimal";
13
16
  export * from "./ResourcePage";
14
17
  export * from "./StreetAddressBase";
15
18
  export * from "./StreetAddressShortZip";
@@ -24,7 +27,7 @@ export * from "./PatientRelationshipToInsuredCodeAll";
24
27
  export * from "./ProcedureModifier";
25
28
  export * from "./ServiceLineUnits";
26
29
  export * from "./InsuranceTypeCode";
30
+ export * from "./EmrPayerCrosswalk";
27
31
  export * from "./PhoneNumber";
28
32
  export * from "./PhoneNumberType";
29
33
  export * from "./Email";
30
- export * from "./ContactInfo";
@@ -22,10 +22,13 @@ __exportStar(require("./PatientExternalId"), exports);
22
22
  __exportStar(require("./EncounterExternalId"), exports);
23
23
  __exportStar(require("./Npi"), exports);
24
24
  __exportStar(require("./WorkQueueId"), exports);
25
+ __exportStar(require("./UserId"), exports);
25
26
  __exportStar(require("./LinkUrl"), exports);
26
27
  __exportStar(require("./ContentDownloadUrl"), exports);
27
28
  __exportStar(require("./PageToken"), exports);
28
29
  __exportStar(require("./Date_"), exports);
30
+ __exportStar(require("./DateRangeOptionalEnd"), exports);
31
+ __exportStar(require("./Decimal"), exports);
29
32
  __exportStar(require("./ResourcePage"), exports);
30
33
  __exportStar(require("./StreetAddressBase"), exports);
31
34
  __exportStar(require("./StreetAddressShortZip"), exports);
@@ -40,7 +43,7 @@ __exportStar(require("./PatientRelationshipToInsuredCodeAll"), exports);
40
43
  __exportStar(require("./ProcedureModifier"), exports);
41
44
  __exportStar(require("./ServiceLineUnits"), exports);
42
45
  __exportStar(require("./InsuranceTypeCode"), exports);
46
+ __exportStar(require("./EmrPayerCrosswalk"), exports);
43
47
  __exportStar(require("./PhoneNumber"), exports);
44
48
  __exportStar(require("./PhoneNumberType"), exports);
45
49
  __exportStar(require("./Email"), exports);
46
- __exportStar(require("./ContactInfo"), exports);
@@ -42,7 +42,7 @@ class V4 {
42
42
  this.options = options;
43
43
  }
44
44
  async getAll(request = {}) {
45
- const { limit, claimStatus, sort, pageToken, dateOfServiceMin, dateOfServiceMax, primaryPayerNames, searchTerm, externalId, diagnosesUpdatedSince, tagIds, doNotBill, workQueueId, } = request;
45
+ const { limit, claimStatus, sort, pageToken, dateOfServiceMin, dateOfServiceMax, primaryPayerNames, searchTerm, externalId, diagnosesUpdatedSince, tagIds, workQueueId, billableStatus, responsibleParty, } = request;
46
46
  const _queryParams = new url_search_params_1.default();
47
47
  if (limit != null) {
48
48
  _queryParams.append("limit", limit.toString());
@@ -84,12 +84,15 @@ class V4 {
84
84
  _queryParams.append("tag_ids", tagIds);
85
85
  }
86
86
  }
87
- if (doNotBill != null) {
88
- _queryParams.append("do_not_bill", doNotBill.toString());
89
- }
90
87
  if (workQueueId != null) {
91
88
  _queryParams.append("work_queue_id", workQueueId);
92
89
  }
90
+ if (billableStatus != null) {
91
+ _queryParams.append("billable_status", billableStatus);
92
+ }
93
+ if (responsibleParty != null) {
94
+ _queryParams.append("responsible_party", responsibleParty);
95
+ }
93
96
  const _response = await core.fetcher({
94
97
  url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/encounters/v4"),
95
98
  method: "GET",
@@ -97,7 +100,7 @@ class V4 {
97
100
  Authorization: await this._getAuthorizationHeader(),
98
101
  "X-Fern-Language": "JavaScript",
99
102
  "X-Fern-SDK-Name": "candidhealth",
100
- "X-Fern-SDK-Version": "0.3.0",
103
+ "X-Fern-SDK-Version": "0.3.1",
101
104
  },
102
105
  contentType: "application/json",
103
106
  queryParameters: _queryParams,
@@ -127,7 +130,7 @@ class V4 {
127
130
  Authorization: await this._getAuthorizationHeader(),
128
131
  "X-Fern-Language": "JavaScript",
129
132
  "X-Fern-SDK-Name": "candidhealth",
130
- "X-Fern-SDK-Version": "0.3.0",
133
+ "X-Fern-SDK-Version": "0.3.1",
131
134
  },
132
135
  contentType: "application/json",
133
136
  timeoutMs: 60000,
@@ -156,7 +159,7 @@ class V4 {
156
159
  Authorization: await this._getAuthorizationHeader(),
157
160
  "X-Fern-Language": "JavaScript",
158
161
  "X-Fern-SDK-Name": "candidhealth",
159
- "X-Fern-SDK-Version": "0.3.0",
162
+ "X-Fern-SDK-Version": "0.3.1",
160
163
  },
161
164
  contentType: "application/json",
162
165
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -178,6 +181,7 @@ class V4 {
178
181
  if (_response.error.reason === "status-code") {
179
182
  switch (_response.error.body?.errorName) {
180
183
  case "EncounterExternalIdUniquenessError":
184
+ case "EncounterGuarantorMissingContactInfoError":
181
185
  return {
182
186
  ok: false,
183
187
  error: await serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
@@ -202,7 +206,7 @@ class V4 {
202
206
  Authorization: await this._getAuthorizationHeader(),
203
207
  "X-Fern-Language": "JavaScript",
204
208
  "X-Fern-SDK-Name": "candidhealth",
205
- "X-Fern-SDK-Version": "0.3.0",
209
+ "X-Fern-SDK-Version": "0.3.1",
206
210
  },
207
211
  contentType: "application/json",
208
212
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -248,7 +252,7 @@ class V4 {
248
252
  Authorization: await this._getAuthorizationHeader(),
249
253
  "X-Fern-Language": "JavaScript",
250
254
  "X-Fern-SDK-Name": "candidhealth",
251
- "X-Fern-SDK-Version": "0.3.0",
255
+ "X-Fern-SDK-Version": "0.3.1",
252
256
  },
253
257
  contentType: "application/json",
254
258
  timeoutMs: 60000,
@@ -277,7 +281,7 @@ class V4 {
277
281
  Authorization: await this._getAuthorizationHeader(),
278
282
  "X-Fern-Language": "JavaScript",
279
283
  "X-Fern-SDK-Name": "candidhealth",
280
- "X-Fern-SDK-Version": "0.3.0",
284
+ "X-Fern-SDK-Version": "0.3.1",
281
285
  },
282
286
  contentType: "application/json",
283
287
  timeoutMs: 60000,
@@ -309,7 +313,7 @@ class V4 {
309
313
  Authorization: await this._getAuthorizationHeader(),
310
314
  "X-Fern-Language": "JavaScript",
311
315
  "X-Fern-SDK-Name": "candidhealth",
312
- "X-Fern-SDK-Version": "0.3.0",
316
+ "X-Fern-SDK-Version": "0.3.1",
313
317
  },
314
318
  contentType: "application/json",
315
319
  timeoutMs: 60000,
@@ -338,7 +342,7 @@ class V4 {
338
342
  Authorization: await this._getAuthorizationHeader(),
339
343
  "X-Fern-Language": "JavaScript",
340
344
  "X-Fern-SDK-Name": "candidhealth",
341
- "X-Fern-SDK-Version": "0.3.0",
345
+ "X-Fern-SDK-Version": "0.3.1",
342
346
  },
343
347
  contentType: "application/json",
344
348
  timeoutMs: 60000,
@@ -3,12 +3,16 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error._Unknown;
6
+ export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface EncounterExternalIdUniquenessError extends _Utils {
9
9
  errorName: "EncounterExternalIdUniquenessError";
10
10
  content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
11
11
  }
12
+ interface EncounterGuarantorMissingContactInfoError extends _Utils {
13
+ errorName: "EncounterGuarantorMissingContactInfoError";
14
+ content: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType;
15
+ }
12
16
  interface _Unknown extends _Utils {
13
17
  errorName: void;
14
18
  content: core.Fetcher.Error;
@@ -18,11 +22,13 @@ export declare namespace Error {
18
22
  }
19
23
  interface _Visitor<_Result> {
20
24
  encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
25
+ encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => _Result;
21
26
  _other: (value: core.Fetcher.Error) => _Result;
22
27
  }
23
28
  }
24
29
  export declare const Error: {
25
30
  readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError;
31
+ readonly encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError;
26
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.create.Error._Unknown;
27
33
  readonly _visit: <_Result>(value: CandidApi.encounters.v4.create.Error, visitor: CandidApi.encounters.v4.create.Error._Visitor<_Result>) => _Result;
28
34
  };
@@ -38,6 +38,15 @@ exports.Error = {
38
38
  },
39
39
  };
40
40
  },
41
+ encounterGuarantorMissingContactInfoError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "EncounterGuarantorMissingContactInfoError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.encounters.v4.create.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
41
50
  _unknown: (fetcherError) => {
42
51
  return {
43
52
  errorName: undefined,
@@ -51,6 +60,8 @@ exports.Error = {
51
60
  switch (value.errorName) {
52
61
  case "EncounterExternalIdUniquenessError":
53
62
  return visitor.encounterExternalIdUniquenessError(value.content);
63
+ case "EncounterGuarantorMissingContactInfoError":
64
+ return visitor.encounterGuarantorMissingContactInfoError(value.content);
54
65
  default:
55
66
  return visitor._other(value);
56
67
  }
@@ -4,7 +4,6 @@
4
4
  import * as CandidApi from "../../../../../..";
5
5
  export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
6
6
  patient: CandidApi.PatientCreate;
7
- patientIsSelfGuarantor?: boolean;
8
7
  billingProvider: CandidApi.encounterProviders.v2.BillingProvider;
9
8
  renderingProvider: CandidApi.encounterProviders.v2.RenderingProvider;
10
9
  /**
@@ -30,13 +30,8 @@ export interface EncounterUpdate {
30
30
  tagIds?: CandidApi.TagId[];
31
31
  clinicalNotes?: CandidApi.encounters.v4.ClinicalNoteCategoryCreate[];
32
32
  payToAddress?: CandidApi.StreetAddressLongZip;
33
- patientIsSelfGuarantor?: boolean;
34
- /**
35
- * If a patient is no longer a self-guarantor, a newly-created guarantor object can be passed
36
- * via this field. Note that patient_is_self_guarantor should be toggled to False
37
- *
38
- */
39
- guarantorId?: CandidApi.guarantor.v1.GuarantorId;
33
+ billableStatus?: CandidApi.encounters.v4.BillableStatusType;
34
+ responsibleParty?: CandidApi.encounters.v4.ResponsiblePartyType;
40
35
  providerAcceptsAssignment?: boolean;
41
36
  benefitsAssignedToProvider?: boolean;
42
37
  synchronicity?: CandidApi.encounters.v4.SynchronicityType;
@@ -36,6 +36,7 @@ export interface GetAllEncountersRequest {
36
36
  */
37
37
  diagnosesUpdatedSince?: Date;
38
38
  tagIds?: CandidApi.TagId | CandidApi.TagId[];
39
- doNotBill?: boolean;
40
39
  workQueueId?: CandidApi.WorkQueueId;
40
+ billableStatus?: CandidApi.encounters.v4.BillableStatusType;
41
+ responsibleParty?: CandidApi.encounters.v4.ResponsiblePartyType;
41
42
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type BillableStatusType = "BILLABLE" | "NOT_BILLABLE";
5
+ export declare const BillableStatusType: {
6
+ readonly Billable: "BILLABLE";
7
+ readonly NotBillable: "NOT_BILLABLE";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BillableStatusType = void 0;
7
+ exports.BillableStatusType = {
8
+ Billable: "BILLABLE",
9
+ NotBillable: "NOT_BILLABLE",
10
+ };
@@ -6,6 +6,7 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
6
6
  encounterId: CandidApi.EncounterId;
7
7
  claims: CandidApi.Claim[];
8
8
  patient: CandidApi.Patient;
9
+ guarantor?: CandidApi.guarantor.v1.Guarantor;
9
10
  billingProvider: CandidApi.encounterProviders.v2.EncounterProvider;
10
11
  renderingProvider: CandidApi.encounterProviders.v2.EncounterProvider;
11
12
  referringProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
@@ -9,7 +9,7 @@ export interface EncounterBase {
9
9
  * This field should not contain PHI.
10
10
  *
11
11
  */
12
- externalId?: CandidApi.EncounterExternalId;
12
+ externalId: CandidApi.EncounterExternalId;
13
13
  /**
14
14
  * Date formatted as YYYY-MM-DD; eg: 2019-08-24.
15
15
  * This date must be the local date in the timezone where the service occurred.
@@ -54,12 +54,6 @@ export interface EncounterBase {
54
54
  *
55
55
  */
56
56
  appointmentType?: string;
57
- /**
58
- * Should be set to true if Candid should not create or submit a claim but you'd
59
- * like us to track this encounter anyway (ex: patient is paying cash)
60
- *
61
- */
62
- doNotBill?: boolean;
63
57
  existingMedications?: CandidApi.encounters.v4.Medication[];
64
58
  vitals?: CandidApi.encounters.v4.Vitals;
65
59
  interventions?: CandidApi.encounters.v4.Intervention[];
@@ -73,4 +67,16 @@ export interface EncounterBase {
73
67
  *
74
68
  */
75
69
  synchronicity?: CandidApi.encounters.v4.SynchronicityType;
70
+ /**
71
+ * Defines if the Encounter is to be billed by Candid to the responsible_party.
72
+ * Examples for when this should be set to NOT_BILLABLE include
73
+ * if the Encounter has not occurred yet or if there is no intention of ever billing the responsible_party.
74
+ *
75
+ */
76
+ billableStatus: CandidApi.encounters.v4.BillableStatusType;
77
+ /**
78
+ * Defines the party to be billed with the initial balance owed on the claim.
79
+ *
80
+ */
81
+ responsibleParty: CandidApi.encounters.v4.ResponsiblePartyType;
76
82
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface EncounterGuarantorMissingContactInfoErrorType {
5
+ missingFields: string[];
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ResponsiblePartyType = "INSURANCE_PAY" | "SELF_PAY" | "UNKNOWN";
5
+ export declare const ResponsiblePartyType: {
6
+ readonly InsurancePay: "INSURANCE_PAY";
7
+ readonly SelfPay: "SELF_PAY";
8
+ readonly Unknown: "UNKNOWN";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ResponsiblePartyType = void 0;
7
+ exports.ResponsiblePartyType = {
8
+ InsurancePay: "INSURANCE_PAY",
9
+ SelfPay: "SELF_PAY",
10
+ Unknown: "UNKNOWN",
11
+ };