candidhealth 0.24.7 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +13 -8
  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/commons/types/AppointmentId.d.ts +8 -0
  6. package/api/resources/commons/types/AppointmentId.js +10 -0
  7. package/api/resources/commons/types/index.d.ts +1 -0
  8. package/api/resources/commons/types/index.js +1 -0
  9. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  10. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  11. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  12. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  13. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  14. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  15. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  16. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  17. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  18. package/api/resources/financials/types/AllocationTarget.d.ts +4 -1
  19. package/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -1
  20. package/api/resources/financials/types/AppointmentAllocationTarget.d.ts +7 -0
  21. package/api/resources/financials/types/AppointmentAllocationTarget.js +5 -0
  22. package/api/resources/financials/types/index.d.ts +1 -0
  23. package/api/resources/financials/types/index.js +1 -0
  24. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  25. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  26. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  27. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  28. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  29. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  30. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  31. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  32. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  33. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  34. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +6 -6
  35. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
  36. package/api/resources/serviceFacility/client/Client.js +1 -1
  37. package/api/resources/serviceLines/client/Client.d.ts +26 -0
  38. package/api/resources/serviceLines/client/Client.js +17 -0
  39. package/api/resources/serviceLines/client/index.d.ts +1 -0
  40. package/api/resources/serviceLines/client/index.js +2 -0
  41. package/api/resources/serviceLines/index.d.ts +1 -0
  42. package/api/resources/serviceLines/index.js +1 -0
  43. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +92 -0
  44. package/api/resources/serviceLines/resources/v2/client/Client.js +238 -0
  45. package/api/resources/serviceLines/resources/v2/client/create.d.ts +28 -0
  46. package/api/resources/serviceLines/resources/v2/client/create.js +58 -0
  47. package/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  48. package/api/resources/serviceLines/resources/v2/client/index.js +28 -0
  49. package/api/resources/serviceLines/resources/v2/client/update.d.ts +40 -0
  50. package/api/resources/serviceLines/resources/v2/client/update.js +80 -0
  51. package/api/resources/serviceLines/resources/v2/index.d.ts +1 -0
  52. package/api/resources/serviceLines/resources/v2/index.js +1 -0
  53. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +36 -0
  54. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -0
  55. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +37 -0
  56. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -0
  57. package/api/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
  58. package/api/resources/serviceLines/resources/v2/types/index.js +2 -0
  59. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  60. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  61. package/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +2 -0
  62. package/dist/Client.d.ts +3 -0
  63. package/dist/Client.js +13 -8
  64. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  65. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  66. package/dist/api/resources/commons/types/AppointmentId.d.ts +8 -0
  67. package/dist/api/resources/commons/types/AppointmentId.js +10 -0
  68. package/dist/api/resources/commons/types/index.d.ts +1 -0
  69. package/dist/api/resources/commons/types/index.js +1 -0
  70. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  71. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  72. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  73. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  74. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  75. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  76. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  77. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  78. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  79. package/dist/api/resources/financials/types/AllocationTarget.d.ts +4 -1
  80. package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -1
  81. package/dist/api/resources/financials/types/AppointmentAllocationTarget.d.ts +7 -0
  82. package/dist/api/resources/financials/types/AppointmentAllocationTarget.js +5 -0
  83. package/dist/api/resources/financials/types/index.d.ts +1 -0
  84. package/dist/api/resources/financials/types/index.js +1 -0
  85. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  86. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  87. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  88. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  89. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  90. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  91. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  92. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  93. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  94. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  95. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +6 -6
  96. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
  97. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  98. package/dist/api/resources/serviceLines/client/Client.d.ts +26 -0
  99. package/dist/api/resources/serviceLines/client/Client.js +17 -0
  100. package/dist/api/resources/serviceLines/client/index.d.ts +1 -0
  101. package/dist/api/resources/serviceLines/client/index.js +2 -0
  102. package/dist/api/resources/serviceLines/index.d.ts +1 -0
  103. package/dist/api/resources/serviceLines/index.js +1 -0
  104. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +92 -0
  105. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +238 -0
  106. package/dist/api/resources/serviceLines/resources/v2/client/create.d.ts +28 -0
  107. package/dist/api/resources/serviceLines/resources/v2/client/create.js +58 -0
  108. package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  109. package/dist/api/resources/serviceLines/resources/v2/client/index.js +28 -0
  110. package/dist/api/resources/serviceLines/resources/v2/client/update.d.ts +40 -0
  111. package/dist/api/resources/serviceLines/resources/v2/client/update.js +80 -0
  112. package/dist/api/resources/serviceLines/resources/v2/index.d.ts +1 -0
  113. package/dist/api/resources/serviceLines/resources/v2/index.js +1 -0
  114. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +36 -0
  115. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -0
  116. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +37 -0
  117. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -0
  118. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
  119. package/dist/api/resources/serviceLines/resources/v2/types/index.js +2 -0
  120. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  121. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  122. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +2 -0
  123. package/dist/serialization/resources/commons/types/AppointmentId.d.ts +10 -0
  124. package/dist/serialization/resources/commons/types/AppointmentId.js +35 -0
  125. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  126. package/dist/serialization/resources/commons/types/index.js +1 -0
  127. package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +5 -1
  128. package/dist/serialization/resources/financials/types/AllocationTarget.js +2 -0
  129. package/dist/serialization/resources/financials/types/AllocationTargetCreate.d.ts +6 -1
  130. package/dist/serialization/resources/financials/types/AllocationTargetCreate.js +4 -0
  131. package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +13 -0
  132. package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.js +34 -0
  133. package/dist/serialization/resources/financials/types/index.d.ts +1 -0
  134. package/dist/serialization/resources/financials/types/index.js +1 -0
  135. package/dist/serialization/resources/serviceLines/resources/v2/client/create.d.ts +15 -0
  136. package/dist/serialization/resources/serviceLines/resources/v2/client/create.js +61 -0
  137. package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  138. package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +28 -0
  139. package/dist/serialization/resources/serviceLines/resources/v2/client/update.d.ts +25 -0
  140. package/dist/serialization/resources/serviceLines/resources/v2/client/update.js +73 -0
  141. package/dist/serialization/resources/serviceLines/resources/v2/index.d.ts +1 -0
  142. package/dist/serialization/resources/serviceLines/resources/v2/index.js +1 -0
  143. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +43 -0
  144. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +64 -0
  145. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +42 -0
  146. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +63 -0
  147. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
  148. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +2 -0
  149. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +4 -0
  150. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +4 -0
  151. package/package.json +1 -1
  152. package/reference.md +156 -0
  153. package/serialization/resources/commons/types/AppointmentId.d.ts +10 -0
  154. package/serialization/resources/commons/types/AppointmentId.js +35 -0
  155. package/serialization/resources/commons/types/index.d.ts +1 -0
  156. package/serialization/resources/commons/types/index.js +1 -0
  157. package/serialization/resources/financials/types/AllocationTarget.d.ts +5 -1
  158. package/serialization/resources/financials/types/AllocationTarget.js +2 -0
  159. package/serialization/resources/financials/types/AllocationTargetCreate.d.ts +6 -1
  160. package/serialization/resources/financials/types/AllocationTargetCreate.js +4 -0
  161. package/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +13 -0
  162. package/serialization/resources/financials/types/AppointmentAllocationTarget.js +34 -0
  163. package/serialization/resources/financials/types/index.d.ts +1 -0
  164. package/serialization/resources/financials/types/index.js +1 -0
  165. package/serialization/resources/serviceLines/resources/v2/client/create.d.ts +15 -0
  166. package/serialization/resources/serviceLines/resources/v2/client/create.js +61 -0
  167. package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  168. package/serialization/resources/serviceLines/resources/v2/client/index.js +28 -0
  169. package/serialization/resources/serviceLines/resources/v2/client/update.d.ts +25 -0
  170. package/serialization/resources/serviceLines/resources/v2/client/update.js +73 -0
  171. package/serialization/resources/serviceLines/resources/v2/index.d.ts +1 -0
  172. package/serialization/resources/serviceLines/resources/v2/index.js +1 -0
  173. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +43 -0
  174. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +64 -0
  175. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +42 -0
  176. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +63 -0
  177. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
  178. package/serialization/resources/serviceLines/resources/v2/types/index.js +2 -0
  179. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +4 -0
  180. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +4 -0
@@ -0,0 +1,73 @@
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 EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
44
+ const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
45
+ const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
46
+ exports.Error = core.serialization
47
+ .union("errorName", {
48
+ EntityNotFoundError: core.serialization.object({
49
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
50
+ }),
51
+ UnauthorizedError: core.serialization.object({
52
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
53
+ }),
54
+ HttpRequestValidationError: core.serialization.object({
55
+ content: RequestValidationError_1.RequestValidationError,
56
+ }),
57
+ })
58
+ .transform({
59
+ transform: (value) => {
60
+ switch (value.errorName) {
61
+ case "EntityNotFoundError":
62
+ return CandidApi.serviceLines.v2.update.Error.entityNotFoundError(value.content);
63
+ case "UnauthorizedError":
64
+ return CandidApi.serviceLines.v2.update.Error.unauthorizedError(value.content);
65
+ case "HttpRequestValidationError":
66
+ return CandidApi.serviceLines.v2.update.Error.httpRequestValidationError(value.content);
67
+ }
68
+ },
69
+ untransform: (_a) => {
70
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
71
+ return value;
72
+ },
73
+ });
@@ -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,43 @@
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 { ProcedureModifier } from "../../../../commons/types/ProcedureModifier";
8
+ import { DiagnosisId } from "../../../../diagnoses/types/DiagnosisId";
9
+ import { ServiceLineAdjustment } from "./ServiceLineAdjustment";
10
+ import { ServiceLineDenialReason } from "./ServiceLineDenialReason";
11
+ import { FacilityTypeCode } from "../../../../commons/types/FacilityTypeCode";
12
+ import { Decimal } from "../../../../commons/types/Decimal";
13
+ import { ServiceLineUnits } from "../../../../commons/types/ServiceLineUnits";
14
+ import { ClaimId } from "../../../../commons/types/ClaimId";
15
+ export declare const ServiceLineCreateStandalone: core.serialization.ObjectSchema<serializers.serviceLines.v2.ServiceLineCreateStandalone.Raw, CandidApi.serviceLines.v2.ServiceLineCreateStandalone>;
16
+ export declare namespace ServiceLineCreateStandalone {
17
+ interface Raw {
18
+ modifiers?: ProcedureModifier.Raw[] | null;
19
+ charge_amount_cents?: number | null;
20
+ allowed_amount_cents?: number | null;
21
+ insurance_balance_cents?: number | null;
22
+ patient_balance_cents?: number | null;
23
+ primary_paid_amount_cents?: number | null;
24
+ secondary_paid_amount_cents?: number | null;
25
+ tertiary_paid_amount_cents?: number | null;
26
+ patient_responsibility_cents?: number | null;
27
+ diagnosis_id_zero?: DiagnosisId.Raw | null;
28
+ diagnosis_id_one?: DiagnosisId.Raw | null;
29
+ diagnosis_id_two?: DiagnosisId.Raw | null;
30
+ diagnosis_id_three?: DiagnosisId.Raw | null;
31
+ service_line_manual_adjustments?: ServiceLineAdjustment.Raw[] | null;
32
+ denial_reason?: ServiceLineDenialReason.Raw | null;
33
+ place_of_service_code?: FacilityTypeCode.Raw | null;
34
+ place_of_service_code_as_submitted?: FacilityTypeCode.Raw | null;
35
+ procedure_code: string;
36
+ quantity: Decimal.Raw;
37
+ units: ServiceLineUnits.Raw;
38
+ claim_id: ClaimId.Raw;
39
+ description?: string | null;
40
+ date_of_service?: string | null;
41
+ end_date_of_service?: string | null;
42
+ }
43
+ }
@@ -0,0 +1,64 @@
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.ServiceLineCreateStandalone = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ const ProcedureModifier_1 = require("../../../../commons/types/ProcedureModifier");
32
+ const DiagnosisId_1 = require("../../../../diagnoses/types/DiagnosisId");
33
+ const ServiceLineAdjustment_1 = require("./ServiceLineAdjustment");
34
+ const ServiceLineDenialReason_1 = require("./ServiceLineDenialReason");
35
+ const FacilityTypeCode_1 = require("../../../../commons/types/FacilityTypeCode");
36
+ const Decimal_1 = require("../../../../commons/types/Decimal");
37
+ const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits");
38
+ const ClaimId_1 = require("../../../../commons/types/ClaimId");
39
+ exports.ServiceLineCreateStandalone = core.serialization.object({
40
+ modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
41
+ chargeAmountCents: core.serialization.property("charge_amount_cents", core.serialization.number().optional()),
42
+ allowedAmountCents: core.serialization.property("allowed_amount_cents", core.serialization.number().optional()),
43
+ insuranceBalanceCents: core.serialization.property("insurance_balance_cents", core.serialization.number().optional()),
44
+ patientBalanceCents: core.serialization.property("patient_balance_cents", core.serialization.number().optional()),
45
+ primaryPaidAmountCents: core.serialization.property("primary_paid_amount_cents", core.serialization.number().optional()),
46
+ secondaryPaidAmountCents: core.serialization.property("secondary_paid_amount_cents", core.serialization.number().optional()),
47
+ tertiaryPaidAmountCents: core.serialization.property("tertiary_paid_amount_cents", core.serialization.number().optional()),
48
+ patientResponsibilityCents: core.serialization.property("patient_responsibility_cents", core.serialization.number().optional()),
49
+ diagnosisIdZero: core.serialization.property("diagnosis_id_zero", DiagnosisId_1.DiagnosisId.optional()),
50
+ diagnosisIdOne: core.serialization.property("diagnosis_id_one", DiagnosisId_1.DiagnosisId.optional()),
51
+ diagnosisIdTwo: core.serialization.property("diagnosis_id_two", DiagnosisId_1.DiagnosisId.optional()),
52
+ diagnosisIdThree: core.serialization.property("diagnosis_id_three", DiagnosisId_1.DiagnosisId.optional()),
53
+ serviceLineManualAdjustments: core.serialization.property("service_line_manual_adjustments", core.serialization.list(ServiceLineAdjustment_1.ServiceLineAdjustment).optional()),
54
+ denialReason: core.serialization.property("denial_reason", ServiceLineDenialReason_1.ServiceLineDenialReason.optional()),
55
+ placeOfServiceCode: core.serialization.property("place_of_service_code", FacilityTypeCode_1.FacilityTypeCode.optional()),
56
+ placeOfServiceCodeAsSubmitted: core.serialization.property("place_of_service_code_as_submitted", FacilityTypeCode_1.FacilityTypeCode.optional()),
57
+ procedureCode: core.serialization.property("procedure_code", core.serialization.string()),
58
+ quantity: Decimal_1.Decimal,
59
+ units: ServiceLineUnits_1.ServiceLineUnits,
60
+ claimId: core.serialization.property("claim_id", ClaimId_1.ClaimId),
61
+ description: core.serialization.string().optional(),
62
+ dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
63
+ endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
64
+ });
@@ -0,0 +1,42 @@
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 { ProcedureModifier } from "../../../../commons/types/ProcedureModifier";
8
+ import { DiagnosisId } from "../../../../diagnoses/types/DiagnosisId";
9
+ import { ServiceLineAdjustment } from "./ServiceLineAdjustment";
10
+ import { ServiceLineDenialReason } from "./ServiceLineDenialReason";
11
+ import { FacilityTypeCode } from "../../../../commons/types/FacilityTypeCode";
12
+ import { ServiceLineUnits } from "../../../../commons/types/ServiceLineUnits";
13
+ import { Decimal } from "../../../../commons/types/Decimal";
14
+ export declare const ServiceLineUpdate: core.serialization.ObjectSchema<serializers.serviceLines.v2.ServiceLineUpdate.Raw, CandidApi.serviceLines.v2.ServiceLineUpdate>;
15
+ export declare namespace ServiceLineUpdate {
16
+ interface Raw {
17
+ edit_reason?: string | null;
18
+ modifiers?: ProcedureModifier.Raw[] | null;
19
+ charge_amount_cents?: number | null;
20
+ allowed_amount_cents?: number | null;
21
+ insurance_balance_cents?: number | null;
22
+ patient_balance_cents?: number | null;
23
+ primary_paid_amount_cents?: number | null;
24
+ secondary_paid_amount_cents?: number | null;
25
+ tertiary_paid_amount_cents?: number | null;
26
+ patient_responsibility_cents?: number | null;
27
+ diagnosis_id_zero?: DiagnosisId.Raw | null;
28
+ diagnosis_id_one?: DiagnosisId.Raw | null;
29
+ diagnosis_id_two?: DiagnosisId.Raw | null;
30
+ diagnosis_id_three?: DiagnosisId.Raw | null;
31
+ service_line_manual_adjustments?: ServiceLineAdjustment.Raw[] | null;
32
+ denial_reason?: ServiceLineDenialReason.Raw | null;
33
+ place_of_service_code?: FacilityTypeCode.Raw | null;
34
+ place_of_service_code_as_submitted?: FacilityTypeCode.Raw | null;
35
+ units?: ServiceLineUnits.Raw | null;
36
+ procedure_code?: string | null;
37
+ quantity?: Decimal.Raw | null;
38
+ description?: string | null;
39
+ date_of_service?: string | null;
40
+ end_date_of_service?: string | null;
41
+ }
42
+ }
@@ -0,0 +1,63 @@
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.ServiceLineUpdate = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ const ProcedureModifier_1 = require("../../../../commons/types/ProcedureModifier");
32
+ const DiagnosisId_1 = require("../../../../diagnoses/types/DiagnosisId");
33
+ const ServiceLineAdjustment_1 = require("./ServiceLineAdjustment");
34
+ const ServiceLineDenialReason_1 = require("./ServiceLineDenialReason");
35
+ const FacilityTypeCode_1 = require("../../../../commons/types/FacilityTypeCode");
36
+ const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits");
37
+ const Decimal_1 = require("../../../../commons/types/Decimal");
38
+ exports.ServiceLineUpdate = core.serialization.object({
39
+ editReason: core.serialization.property("edit_reason", core.serialization.string().optional()),
40
+ modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
41
+ chargeAmountCents: core.serialization.property("charge_amount_cents", core.serialization.number().optional()),
42
+ allowedAmountCents: core.serialization.property("allowed_amount_cents", core.serialization.number().optional()),
43
+ insuranceBalanceCents: core.serialization.property("insurance_balance_cents", core.serialization.number().optional()),
44
+ patientBalanceCents: core.serialization.property("patient_balance_cents", core.serialization.number().optional()),
45
+ primaryPaidAmountCents: core.serialization.property("primary_paid_amount_cents", core.serialization.number().optional()),
46
+ secondaryPaidAmountCents: core.serialization.property("secondary_paid_amount_cents", core.serialization.number().optional()),
47
+ tertiaryPaidAmountCents: core.serialization.property("tertiary_paid_amount_cents", core.serialization.number().optional()),
48
+ patientResponsibilityCents: core.serialization.property("patient_responsibility_cents", core.serialization.number().optional()),
49
+ diagnosisIdZero: core.serialization.property("diagnosis_id_zero", DiagnosisId_1.DiagnosisId.optional()),
50
+ diagnosisIdOne: core.serialization.property("diagnosis_id_one", DiagnosisId_1.DiagnosisId.optional()),
51
+ diagnosisIdTwo: core.serialization.property("diagnosis_id_two", DiagnosisId_1.DiagnosisId.optional()),
52
+ diagnosisIdThree: core.serialization.property("diagnosis_id_three", DiagnosisId_1.DiagnosisId.optional()),
53
+ serviceLineManualAdjustments: core.serialization.property("service_line_manual_adjustments", core.serialization.list(ServiceLineAdjustment_1.ServiceLineAdjustment).optional()),
54
+ denialReason: core.serialization.property("denial_reason", ServiceLineDenialReason_1.ServiceLineDenialReason.optional()),
55
+ placeOfServiceCode: core.serialization.property("place_of_service_code", FacilityTypeCode_1.FacilityTypeCode.optional()),
56
+ placeOfServiceCodeAsSubmitted: core.serialization.property("place_of_service_code_as_submitted", FacilityTypeCode_1.FacilityTypeCode.optional()),
57
+ units: ServiceLineUnits_1.ServiceLineUnits.optional(),
58
+ procedureCode: core.serialization.property("procedure_code", core.serialization.string().optional()),
59
+ quantity: Decimal_1.Decimal.optional(),
60
+ description: core.serialization.string().optional(),
61
+ dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
62
+ endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
63
+ });
@@ -1,4 +1,6 @@
1
1
  export * from "./ServiceLineCreate";
2
+ export * from "./ServiceLineCreateStandalone";
3
+ export * from "./ServiceLineUpdate";
2
4
  export * from "./ServiceLine";
3
5
  export * from "./ServiceLineEraData";
4
6
  export * from "./ServiceLineAdjustment";
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ServiceLineCreate"), exports);
18
+ __exportStar(require("./ServiceLineCreateStandalone"), exports);
19
+ __exportStar(require("./ServiceLineUpdate"), exports);
18
20
  __exportStar(require("./ServiceLine"), exports);
19
21
  __exportStar(require("./ServiceLineEraData"), exports);
20
22
  __exportStar(require("./ServiceLineAdjustment"), exports);
@@ -6,6 +6,8 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { WriteOffId } from "./WriteOffId";
8
8
  import { PatientWriteOffReason } from "./PatientWriteOffReason";
9
+ import { PatientExternalId } from "../../../../commons/types/PatientExternalId";
10
+ import { ClaimId } from "../../../../commons/types/ClaimId";
9
11
  import { ServiceLineId } from "../../../../commons/types/ServiceLineId";
10
12
  export declare const PatientWriteOff: core.serialization.ObjectSchema<serializers.writeOffs.v1.PatientWriteOff.Raw, CandidApi.writeOffs.v1.PatientWriteOff>;
11
13
  export declare namespace PatientWriteOff {
@@ -14,6 +16,8 @@ export declare namespace PatientWriteOff {
14
16
  write_off_timestamp: string;
15
17
  write_off_note?: string | null;
16
18
  write_off_reason: PatientWriteOffReason.Raw;
19
+ patient_external_id: PatientExternalId.Raw;
20
+ claim_id: ClaimId.Raw;
17
21
  service_line_id: ServiceLineId.Raw;
18
22
  reverts_write_off_id?: WriteOffId.Raw | null;
19
23
  reverted_by_write_off_id?: WriteOffId.Raw | null;
@@ -30,12 +30,16 @@ exports.PatientWriteOff = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  const WriteOffId_1 = require("./WriteOffId");
32
32
  const PatientWriteOffReason_1 = require("./PatientWriteOffReason");
33
+ const PatientExternalId_1 = require("../../../../commons/types/PatientExternalId");
34
+ const ClaimId_1 = require("../../../../commons/types/ClaimId");
33
35
  const ServiceLineId_1 = require("../../../../commons/types/ServiceLineId");
34
36
  exports.PatientWriteOff = core.serialization.object({
35
37
  writeOffId: core.serialization.property("write_off_id", WriteOffId_1.WriteOffId),
36
38
  writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
37
39
  writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
38
40
  writeOffReason: core.serialization.property("write_off_reason", PatientWriteOffReason_1.PatientWriteOffReason),
41
+ patientExternalId: core.serialization.property("patient_external_id", PatientExternalId_1.PatientExternalId),
42
+ claimId: core.serialization.property("claim_id", ClaimId_1.ClaimId),
39
43
  serviceLineId: core.serialization.property("service_line_id", ServiceLineId_1.ServiceLineId),
40
44
  revertsWriteOffId: core.serialization.property("reverts_write_off_id", WriteOffId_1.WriteOffId.optional()),
41
45
  revertedByWriteOffId: core.serialization.property("reverted_by_write_off_id", WriteOffId_1.WriteOffId.optional()),