candidhealth 0.14.0 → 0.14.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 (99) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  3. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  4. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  5. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  6. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  7. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  8. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  9. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  10. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  11. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +1 -1
  12. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +6 -6
  13. package/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -2
  14. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  15. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  16. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  17. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  18. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  19. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  20. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  21. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOff.d.ts +3 -1
  22. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.d.ts +1 -1
  23. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +21 -0
  24. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +23 -0
  25. package/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +3 -1
  26. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +1 -1
  27. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +15 -0
  28. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +17 -0
  29. package/api/resources/writeOffs/resources/v1/types/index.d.ts +2 -1
  30. package/api/resources/writeOffs/resources/v1/types/index.js +2 -1
  31. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  32. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  33. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  34. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  35. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  36. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  37. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  38. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  39. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  40. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  41. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +1 -1
  42. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +6 -6
  43. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -2
  44. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  45. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  46. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  47. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  48. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  49. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  50. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  51. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOff.d.ts +3 -1
  52. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.d.ts +1 -1
  53. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +21 -0
  54. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +23 -0
  55. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +3 -1
  56. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +1 -1
  57. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +15 -0
  58. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +17 -0
  59. package/dist/api/resources/writeOffs/resources/v1/types/index.d.ts +2 -1
  60. package/dist/api/resources/writeOffs/resources/v1/types/index.js +2 -1
  61. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -2
  62. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.js +1 -2
  63. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.d.ts +3 -1
  64. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.js +3 -1
  65. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.d.ts +1 -1
  66. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.js +1 -1
  67. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +10 -0
  68. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +47 -0
  69. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +3 -1
  70. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +3 -1
  71. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +1 -1
  72. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.js +1 -1
  73. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +10 -0
  74. package/dist/serialization/resources/writeOffs/resources/v1/types/{WriteOffReason.js → PatientWriteOffReason.js} +12 -2
  75. package/dist/serialization/resources/writeOffs/resources/v1/types/index.d.ts +2 -1
  76. package/dist/serialization/resources/writeOffs/resources/v1/types/index.js +2 -1
  77. package/package.json +1 -1
  78. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -2
  79. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.js +1 -2
  80. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.d.ts +3 -1
  81. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.js +3 -1
  82. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.d.ts +1 -1
  83. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.js +1 -1
  84. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +10 -0
  85. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +47 -0
  86. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +3 -1
  87. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +3 -1
  88. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +1 -1
  89. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.js +1 -1
  90. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +10 -0
  91. package/serialization/resources/writeOffs/resources/v1/types/{WriteOffReason.js → PatientWriteOffReason.js} +12 -2
  92. package/serialization/resources/writeOffs/resources/v1/types/index.d.ts +2 -1
  93. package/serialization/resources/writeOffs/resources/v1/types/index.js +2 -1
  94. package/api/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +0 -10
  95. package/api/resources/writeOffs/resources/v1/types/WriteOffReason.js +0 -12
  96. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +0 -10
  97. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffReason.js +0 -12
  98. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +0 -10
  99. package/serialization/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +0 -10
@@ -8,6 +8,8 @@ export interface InsuranceWriteOff {
8
8
  writeOffTarget: CandidApi.writeOffs.v1.InsuranceWriteOffTarget;
9
9
  writeOffTimestamp: Date;
10
10
  writeOffNote?: string;
11
- writeOffReason: CandidApi.writeOffs.v1.WriteOffReason;
11
+ writeOffReason: CandidApi.writeOffs.v1.InsuranceWriteOffReason;
12
+ revertsWriteOffId?: CandidApi.writeOffs.v1.WriteOffId;
13
+ revertedByWriteOffId?: CandidApi.writeOffs.v1.WriteOffId;
12
14
  amountCents: number;
13
15
  }
@@ -7,6 +7,6 @@ export interface InsuranceWriteOffCreate {
7
7
  writeOffTarget: CandidApi.writeOffs.v1.InsuranceWriteOffTarget;
8
8
  writeOffTimestamp: Date;
9
9
  writeOffNote?: string;
10
- writeOffReason: CandidApi.writeOffs.v1.WriteOffReason;
10
+ writeOffReason: CandidApi.writeOffs.v1.InsuranceWriteOffReason;
11
11
  amountCents: number;
12
12
  }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type InsuranceWriteOffReason = "SMALL_BALANCE" | "NO_AUTHORIZATION_REFERRAL" | "TIMELY_FILING" | "STALE_DATE" | "TIMELY_FILING_LATE_ENCOUNTER" | "CREDENTIALING_OR_CONTRACTING" | "NON_COVERED_MAX_BENEFIT" | "NOT_MEDICALLY_NECESSARY" | "BUNDLED_OR_INCLUSIVE" | "UNCOLLECTIBLE_OR_NON_BILLABLE" | "EFFORTS_EXHAUSTED" | "ADMINISTRATIVE_WRITE_OFF" | "CASE_RATE_OR_CAPITATED" | "OTHER" | "UNKNOWN";
5
+ export declare const InsuranceWriteOffReason: {
6
+ readonly SmallBalance: "SMALL_BALANCE";
7
+ readonly NoAuthorizationReferral: "NO_AUTHORIZATION_REFERRAL";
8
+ readonly TimelyFiling: "TIMELY_FILING";
9
+ readonly StaleDate: "STALE_DATE";
10
+ readonly TimelyFilingLateEncounter: "TIMELY_FILING_LATE_ENCOUNTER";
11
+ readonly CredentialingOrContracting: "CREDENTIALING_OR_CONTRACTING";
12
+ readonly NonCoveredMaxBenefit: "NON_COVERED_MAX_BENEFIT";
13
+ readonly NotMedicallyNecessary: "NOT_MEDICALLY_NECESSARY";
14
+ readonly BundledOrInclusive: "BUNDLED_OR_INCLUSIVE";
15
+ readonly UncollectibleOrNonBillable: "UNCOLLECTIBLE_OR_NON_BILLABLE";
16
+ readonly EffortsExhausted: "EFFORTS_EXHAUSTED";
17
+ readonly AdministrativeWriteOff: "ADMINISTRATIVE_WRITE_OFF";
18
+ readonly CaseRateOrCapitated: "CASE_RATE_OR_CAPITATED";
19
+ readonly Other: "OTHER";
20
+ readonly Unknown: "UNKNOWN";
21
+ };
@@ -0,0 +1,23 @@
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.InsuranceWriteOffReason = void 0;
7
+ exports.InsuranceWriteOffReason = {
8
+ SmallBalance: "SMALL_BALANCE",
9
+ NoAuthorizationReferral: "NO_AUTHORIZATION_REFERRAL",
10
+ TimelyFiling: "TIMELY_FILING",
11
+ StaleDate: "STALE_DATE",
12
+ TimelyFilingLateEncounter: "TIMELY_FILING_LATE_ENCOUNTER",
13
+ CredentialingOrContracting: "CREDENTIALING_OR_CONTRACTING",
14
+ NonCoveredMaxBenefit: "NON_COVERED_MAX_BENEFIT",
15
+ NotMedicallyNecessary: "NOT_MEDICALLY_NECESSARY",
16
+ BundledOrInclusive: "BUNDLED_OR_INCLUSIVE",
17
+ UncollectibleOrNonBillable: "UNCOLLECTIBLE_OR_NON_BILLABLE",
18
+ EffortsExhausted: "EFFORTS_EXHAUSTED",
19
+ AdministrativeWriteOff: "ADMINISTRATIVE_WRITE_OFF",
20
+ CaseRateOrCapitated: "CASE_RATE_OR_CAPITATED",
21
+ Other: "OTHER",
22
+ Unknown: "UNKNOWN",
23
+ };
@@ -6,7 +6,9 @@ export interface PatientWriteOff {
6
6
  writeOffId: CandidApi.writeOffs.v1.WriteOffId;
7
7
  writeOffTimestamp: Date;
8
8
  writeOffNote?: string;
9
- writeOffReason: CandidApi.writeOffs.v1.WriteOffReason;
9
+ writeOffReason: CandidApi.writeOffs.v1.PatientWriteOffReason;
10
10
  serviceLineId: CandidApi.ServiceLineId;
11
+ revertsWriteOffId?: CandidApi.writeOffs.v1.WriteOffId;
12
+ revertedByWriteOffId?: CandidApi.writeOffs.v1.WriteOffId;
11
13
  amountCents: number;
12
14
  }
@@ -5,7 +5,7 @@ import * as CandidApi from "../../../../..";
5
5
  export interface PatientWriteOffCreate {
6
6
  writeOffTimestamp: Date;
7
7
  writeOffNote?: string;
8
- writeOffReason: CandidApi.writeOffs.v1.WriteOffReason;
8
+ writeOffReason: CandidApi.writeOffs.v1.PatientWriteOffReason;
9
9
  serviceLineId: CandidApi.ServiceLineId;
10
10
  amountCents: number;
11
11
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type PatientWriteOffReason = "SMALL_BALANCE" | "CHARITY_OR_FINANCIAL_ASSISTANCE" | "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY" | "OON_COURTESY_ADJUSTMENT" | "PROMPT_PAY_DISCOUNT" | "BAD_DEBT" | "COLLECTION_AGENCY" | "OTHER" | "UNKNOWN";
5
+ export declare const PatientWriteOffReason: {
6
+ readonly SmallBalance: "SMALL_BALANCE";
7
+ readonly CharityOrFinancialAssistance: "CHARITY_OR_FINANCIAL_ASSISTANCE";
8
+ readonly PatientExperienceOrServiceRecovery: "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY";
9
+ readonly OonCourtesyAdjustment: "OON_COURTESY_ADJUSTMENT";
10
+ readonly PromptPayDiscount: "PROMPT_PAY_DISCOUNT";
11
+ readonly BadDebt: "BAD_DEBT";
12
+ readonly CollectionAgency: "COLLECTION_AGENCY";
13
+ readonly Other: "OTHER";
14
+ readonly Unknown: "UNKNOWN";
15
+ };
@@ -0,0 +1,17 @@
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.PatientWriteOffReason = void 0;
7
+ exports.PatientWriteOffReason = {
8
+ SmallBalance: "SMALL_BALANCE",
9
+ CharityOrFinancialAssistance: "CHARITY_OR_FINANCIAL_ASSISTANCE",
10
+ PatientExperienceOrServiceRecovery: "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY",
11
+ OonCourtesyAdjustment: "OON_COURTESY_ADJUSTMENT",
12
+ PromptPayDiscount: "PROMPT_PAY_DISCOUNT",
13
+ BadDebt: "BAD_DEBT",
14
+ CollectionAgency: "COLLECTION_AGENCY",
15
+ Other: "OTHER",
16
+ Unknown: "UNKNOWN",
17
+ };
@@ -1,12 +1,13 @@
1
1
  export * from "./WriteOffId";
2
2
  export * from "./WriteOff";
3
3
  export * from "./WriteOffCreate";
4
+ export * from "./PatientWriteOffReason";
4
5
  export * from "./PatientWriteOff";
5
6
  export * from "./PatientWriteOffCreate";
6
7
  export * from "./InsuranceWriteOff";
7
8
  export * from "./InsuranceWriteOffCreate";
8
9
  export * from "./InsuranceWriteOffTarget";
9
- export * from "./WriteOffReason";
10
+ export * from "./InsuranceWriteOffReason";
10
11
  export * from "./CreateWriteOffsResponse";
11
12
  export * from "./WriteOffsPage";
12
13
  export * from "./WriteOffSortField";
@@ -17,12 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./WriteOffId"), exports);
18
18
  __exportStar(require("./WriteOff"), exports);
19
19
  __exportStar(require("./WriteOffCreate"), exports);
20
+ __exportStar(require("./PatientWriteOffReason"), exports);
20
21
  __exportStar(require("./PatientWriteOff"), exports);
21
22
  __exportStar(require("./PatientWriteOffCreate"), exports);
22
23
  __exportStar(require("./InsuranceWriteOff"), exports);
23
24
  __exportStar(require("./InsuranceWriteOffCreate"), exports);
24
25
  __exportStar(require("./InsuranceWriteOffTarget"), exports);
25
- __exportStar(require("./WriteOffReason"), exports);
26
+ __exportStar(require("./InsuranceWriteOffReason"), exports);
26
27
  __exportStar(require("./CreateWriteOffsResponse"), exports);
27
28
  __exportStar(require("./WriteOffsPage"), exports);
28
29
  __exportStar(require("./WriteOffSortField"), exports);
@@ -9,9 +9,8 @@ export declare namespace InsuranceRefundUpdate {
9
9
  interface Raw {
10
10
  refund_timestamp?: string | null;
11
11
  refund_note?: serializers.NoteUpdate.Raw | null;
12
- payer_identifier: serializers.payers.v3.PayerIdentifier.Raw;
12
+ payer_identifier?: serializers.payers.v3.PayerIdentifier.Raw | null;
13
13
  allocations?: serializers.AllocationAmountUpdate.Raw | null;
14
- invoice?: serializers.InvoiceUpdate.Raw | null;
15
14
  refund_reason?: serializers.RefundReasonUpdate.Raw | null;
16
15
  }
17
16
  }
@@ -31,10 +31,9 @@ const core = __importStar(require("../../../../../../../core"));
31
31
  exports.InsuranceRefundUpdate = core.serialization.object({
32
32
  refundTimestamp: core.serialization.property("refund_timestamp", core.serialization.date().optional()),
33
33
  refundNote: core.serialization.property("refund_note", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).NoteUpdate).optional()),
34
- payerIdentifier: core.serialization.property("payer_identifier", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).payers.v3.PayerIdentifier)),
34
+ payerIdentifier: core.serialization.property("payer_identifier", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).payers.v3.PayerIdentifier).optional()),
35
35
  allocations: core.serialization
36
36
  .lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).AllocationAmountUpdate)
37
37
  .optional(),
38
- invoice: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).InvoiceUpdate).optional(),
39
38
  refundReason: core.serialization.property("refund_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).RefundReasonUpdate).optional()),
40
39
  });
@@ -12,7 +12,9 @@ export declare namespace InsuranceWriteOff {
12
12
  write_off_target: serializers.writeOffs.v1.InsuranceWriteOffTarget.Raw;
13
13
  write_off_timestamp: string;
14
14
  write_off_note?: string | null;
15
- write_off_reason: serializers.writeOffs.v1.WriteOffReason.Raw;
15
+ write_off_reason: serializers.writeOffs.v1.InsuranceWriteOffReason.Raw;
16
+ reverts_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
17
+ reverted_by_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
16
18
  amount_cents: number;
17
19
  }
18
20
  }
@@ -34,6 +34,8 @@ exports.InsuranceWriteOff = core.serialization.object({
34
34
  writeOffTarget: core.serialization.property("write_off_target", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffTarget)),
35
35
  writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
36
36
  writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
37
- writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffReason)),
37
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffReason)),
38
+ revertsWriteOffId: core.serialization.property("reverts_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
39
+ revertedByWriteOffId: core.serialization.property("reverted_by_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
38
40
  amountCents: core.serialization.property("amount_cents", core.serialization.number()),
39
41
  });
@@ -11,7 +11,7 @@ export declare namespace InsuranceWriteOffCreate {
11
11
  write_off_target: serializers.writeOffs.v1.InsuranceWriteOffTarget.Raw;
12
12
  write_off_timestamp: string;
13
13
  write_off_note?: string | null;
14
- write_off_reason: serializers.writeOffs.v1.WriteOffReason.Raw;
14
+ write_off_reason: serializers.writeOffs.v1.InsuranceWriteOffReason.Raw;
15
15
  amount_cents: number;
16
16
  }
17
17
  }
@@ -33,6 +33,6 @@ exports.InsuranceWriteOffCreate = core.serialization.object({
33
33
  writeOffTarget: core.serialization.property("write_off_target", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffTarget)),
34
34
  writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
35
35
  writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
36
- writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffReason)),
36
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffReason)),
37
37
  amountCents: core.serialization.property("amount_cents", core.serialization.number()),
38
38
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const InsuranceWriteOffReason: core.serialization.Schema<serializers.writeOffs.v1.InsuranceWriteOffReason.Raw, CandidApi.writeOffs.v1.InsuranceWriteOffReason>;
8
+ export declare namespace InsuranceWriteOffReason {
9
+ type Raw = "SMALL_BALANCE" | "NO_AUTHORIZATION_REFERRAL" | "TIMELY_FILING" | "STALE_DATE" | "TIMELY_FILING_LATE_ENCOUNTER" | "CREDENTIALING_OR_CONTRACTING" | "NON_COVERED_MAX_BENEFIT" | "NOT_MEDICALLY_NECESSARY" | "BUNDLED_OR_INCLUSIVE" | "UNCOLLECTIBLE_OR_NON_BILLABLE" | "EFFORTS_EXHAUSTED" | "ADMINISTRATIVE_WRITE_OFF" | "CASE_RATE_OR_CAPITATED" | "OTHER" | "UNKNOWN";
10
+ }
@@ -0,0 +1,47 @@
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.InsuranceWriteOffReason = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.InsuranceWriteOffReason = core.serialization.enum_([
32
+ "SMALL_BALANCE",
33
+ "NO_AUTHORIZATION_REFERRAL",
34
+ "TIMELY_FILING",
35
+ "STALE_DATE",
36
+ "TIMELY_FILING_LATE_ENCOUNTER",
37
+ "CREDENTIALING_OR_CONTRACTING",
38
+ "NON_COVERED_MAX_BENEFIT",
39
+ "NOT_MEDICALLY_NECESSARY",
40
+ "BUNDLED_OR_INCLUSIVE",
41
+ "UNCOLLECTIBLE_OR_NON_BILLABLE",
42
+ "EFFORTS_EXHAUSTED",
43
+ "ADMINISTRATIVE_WRITE_OFF",
44
+ "CASE_RATE_OR_CAPITATED",
45
+ "OTHER",
46
+ "UNKNOWN",
47
+ ]);
@@ -10,8 +10,10 @@ export declare namespace PatientWriteOff {
10
10
  write_off_id: serializers.writeOffs.v1.WriteOffId.Raw;
11
11
  write_off_timestamp: string;
12
12
  write_off_note?: string | null;
13
- write_off_reason: serializers.writeOffs.v1.WriteOffReason.Raw;
13
+ write_off_reason: serializers.writeOffs.v1.PatientWriteOffReason.Raw;
14
14
  service_line_id: serializers.ServiceLineId.Raw;
15
+ reverts_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
16
+ reverted_by_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
15
17
  amount_cents: number;
16
18
  }
17
19
  }
@@ -32,7 +32,9 @@ exports.PatientWriteOff = core.serialization.object({
32
32
  writeOffId: core.serialization.property("write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId)),
33
33
  writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
34
34
  writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
35
- writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffReason)),
35
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.PatientWriteOffReason)),
36
36
  serviceLineId: core.serialization.property("service_line_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ServiceLineId)),
37
+ revertsWriteOffId: core.serialization.property("reverts_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
38
+ revertedByWriteOffId: core.serialization.property("reverted_by_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
37
39
  amountCents: core.serialization.property("amount_cents", core.serialization.number()),
38
40
  });
@@ -9,7 +9,7 @@ export declare namespace PatientWriteOffCreate {
9
9
  interface Raw {
10
10
  write_off_timestamp: string;
11
11
  write_off_note?: string | null;
12
- write_off_reason: serializers.writeOffs.v1.WriteOffReason.Raw;
12
+ write_off_reason: serializers.writeOffs.v1.PatientWriteOffReason.Raw;
13
13
  service_line_id: serializers.ServiceLineId.Raw;
14
14
  amount_cents: number;
15
15
  }
@@ -31,7 +31,7 @@ const core = __importStar(require("../../../../../../core"));
31
31
  exports.PatientWriteOffCreate = core.serialization.object({
32
32
  writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
33
33
  writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
34
- writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffReason)),
34
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.PatientWriteOffReason)),
35
35
  serviceLineId: core.serialization.property("service_line_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ServiceLineId)),
36
36
  amountCents: core.serialization.property("amount_cents", core.serialization.number()),
37
37
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const PatientWriteOffReason: core.serialization.Schema<serializers.writeOffs.v1.PatientWriteOffReason.Raw, CandidApi.writeOffs.v1.PatientWriteOffReason>;
8
+ export declare namespace PatientWriteOffReason {
9
+ type Raw = "SMALL_BALANCE" | "CHARITY_OR_FINANCIAL_ASSISTANCE" | "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY" | "OON_COURTESY_ADJUSTMENT" | "PROMPT_PAY_DISCOUNT" | "BAD_DEBT" | "COLLECTION_AGENCY" | "OTHER" | "UNKNOWN";
10
+ }
@@ -26,6 +26,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.WriteOffReason = void 0;
29
+ exports.PatientWriteOffReason = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
- exports.WriteOffReason = core.serialization.enum_(["SMALL_BALANCE", "NO_AUTH", "CODING", "CREDENTIALING"]);
31
+ exports.PatientWriteOffReason = core.serialization.enum_([
32
+ "SMALL_BALANCE",
33
+ "CHARITY_OR_FINANCIAL_ASSISTANCE",
34
+ "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY",
35
+ "OON_COURTESY_ADJUSTMENT",
36
+ "PROMPT_PAY_DISCOUNT",
37
+ "BAD_DEBT",
38
+ "COLLECTION_AGENCY",
39
+ "OTHER",
40
+ "UNKNOWN",
41
+ ]);
@@ -1,12 +1,13 @@
1
1
  export * from "./WriteOffId";
2
2
  export * from "./WriteOff";
3
3
  export * from "./WriteOffCreate";
4
+ export * from "./PatientWriteOffReason";
4
5
  export * from "./PatientWriteOff";
5
6
  export * from "./PatientWriteOffCreate";
6
7
  export * from "./InsuranceWriteOff";
7
8
  export * from "./InsuranceWriteOffCreate";
8
9
  export * from "./InsuranceWriteOffTarget";
9
- export * from "./WriteOffReason";
10
+ export * from "./InsuranceWriteOffReason";
10
11
  export * from "./CreateWriteOffsResponse";
11
12
  export * from "./WriteOffsPage";
12
13
  export * from "./WriteOffSortField";
@@ -17,12 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./WriteOffId"), exports);
18
18
  __exportStar(require("./WriteOff"), exports);
19
19
  __exportStar(require("./WriteOffCreate"), exports);
20
+ __exportStar(require("./PatientWriteOffReason"), exports);
20
21
  __exportStar(require("./PatientWriteOff"), exports);
21
22
  __exportStar(require("./PatientWriteOffCreate"), exports);
22
23
  __exportStar(require("./InsuranceWriteOff"), exports);
23
24
  __exportStar(require("./InsuranceWriteOffCreate"), exports);
24
25
  __exportStar(require("./InsuranceWriteOffTarget"), exports);
25
- __exportStar(require("./WriteOffReason"), exports);
26
+ __exportStar(require("./InsuranceWriteOffReason"), exports);
26
27
  __exportStar(require("./CreateWriteOffsResponse"), exports);
27
28
  __exportStar(require("./WriteOffsPage"), exports);
28
29
  __exportStar(require("./WriteOffSortField"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",
@@ -9,9 +9,8 @@ export declare namespace InsuranceRefundUpdate {
9
9
  interface Raw {
10
10
  refund_timestamp?: string | null;
11
11
  refund_note?: serializers.NoteUpdate.Raw | null;
12
- payer_identifier: serializers.payers.v3.PayerIdentifier.Raw;
12
+ payer_identifier?: serializers.payers.v3.PayerIdentifier.Raw | null;
13
13
  allocations?: serializers.AllocationAmountUpdate.Raw | null;
14
- invoice?: serializers.InvoiceUpdate.Raw | null;
15
14
  refund_reason?: serializers.RefundReasonUpdate.Raw | null;
16
15
  }
17
16
  }
@@ -31,10 +31,9 @@ const core = __importStar(require("../../../../../../../core"));
31
31
  exports.InsuranceRefundUpdate = core.serialization.object({
32
32
  refundTimestamp: core.serialization.property("refund_timestamp", core.serialization.date().optional()),
33
33
  refundNote: core.serialization.property("refund_note", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).NoteUpdate).optional()),
34
- payerIdentifier: core.serialization.property("payer_identifier", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).payers.v3.PayerIdentifier)),
34
+ payerIdentifier: core.serialization.property("payer_identifier", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).payers.v3.PayerIdentifier).optional()),
35
35
  allocations: core.serialization
36
36
  .lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).AllocationAmountUpdate)
37
37
  .optional(),
38
- invoice: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).InvoiceUpdate).optional(),
39
38
  refundReason: core.serialization.property("refund_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).RefundReasonUpdate).optional()),
40
39
  });
@@ -12,7 +12,9 @@ export declare namespace InsuranceWriteOff {
12
12
  write_off_target: serializers.writeOffs.v1.InsuranceWriteOffTarget.Raw;
13
13
  write_off_timestamp: string;
14
14
  write_off_note?: string | null;
15
- write_off_reason: serializers.writeOffs.v1.WriteOffReason.Raw;
15
+ write_off_reason: serializers.writeOffs.v1.InsuranceWriteOffReason.Raw;
16
+ reverts_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
17
+ reverted_by_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
16
18
  amount_cents: number;
17
19
  }
18
20
  }
@@ -34,6 +34,8 @@ exports.InsuranceWriteOff = core.serialization.object({
34
34
  writeOffTarget: core.serialization.property("write_off_target", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffTarget)),
35
35
  writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
36
36
  writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
37
- writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffReason)),
37
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffReason)),
38
+ revertsWriteOffId: core.serialization.property("reverts_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
39
+ revertedByWriteOffId: core.serialization.property("reverted_by_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
38
40
  amountCents: core.serialization.property("amount_cents", core.serialization.number()),
39
41
  });
@@ -11,7 +11,7 @@ export declare namespace InsuranceWriteOffCreate {
11
11
  write_off_target: serializers.writeOffs.v1.InsuranceWriteOffTarget.Raw;
12
12
  write_off_timestamp: string;
13
13
  write_off_note?: string | null;
14
- write_off_reason: serializers.writeOffs.v1.WriteOffReason.Raw;
14
+ write_off_reason: serializers.writeOffs.v1.InsuranceWriteOffReason.Raw;
15
15
  amount_cents: number;
16
16
  }
17
17
  }
@@ -33,6 +33,6 @@ exports.InsuranceWriteOffCreate = core.serialization.object({
33
33
  writeOffTarget: core.serialization.property("write_off_target", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffTarget)),
34
34
  writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
35
35
  writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
36
- writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffReason)),
36
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffReason)),
37
37
  amountCents: core.serialization.property("amount_cents", core.serialization.number()),
38
38
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const InsuranceWriteOffReason: core.serialization.Schema<serializers.writeOffs.v1.InsuranceWriteOffReason.Raw, CandidApi.writeOffs.v1.InsuranceWriteOffReason>;
8
+ export declare namespace InsuranceWriteOffReason {
9
+ type Raw = "SMALL_BALANCE" | "NO_AUTHORIZATION_REFERRAL" | "TIMELY_FILING" | "STALE_DATE" | "TIMELY_FILING_LATE_ENCOUNTER" | "CREDENTIALING_OR_CONTRACTING" | "NON_COVERED_MAX_BENEFIT" | "NOT_MEDICALLY_NECESSARY" | "BUNDLED_OR_INCLUSIVE" | "UNCOLLECTIBLE_OR_NON_BILLABLE" | "EFFORTS_EXHAUSTED" | "ADMINISTRATIVE_WRITE_OFF" | "CASE_RATE_OR_CAPITATED" | "OTHER" | "UNKNOWN";
10
+ }
@@ -0,0 +1,47 @@
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.InsuranceWriteOffReason = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.InsuranceWriteOffReason = core.serialization.enum_([
32
+ "SMALL_BALANCE",
33
+ "NO_AUTHORIZATION_REFERRAL",
34
+ "TIMELY_FILING",
35
+ "STALE_DATE",
36
+ "TIMELY_FILING_LATE_ENCOUNTER",
37
+ "CREDENTIALING_OR_CONTRACTING",
38
+ "NON_COVERED_MAX_BENEFIT",
39
+ "NOT_MEDICALLY_NECESSARY",
40
+ "BUNDLED_OR_INCLUSIVE",
41
+ "UNCOLLECTIBLE_OR_NON_BILLABLE",
42
+ "EFFORTS_EXHAUSTED",
43
+ "ADMINISTRATIVE_WRITE_OFF",
44
+ "CASE_RATE_OR_CAPITATED",
45
+ "OTHER",
46
+ "UNKNOWN",
47
+ ]);
@@ -10,8 +10,10 @@ export declare namespace PatientWriteOff {
10
10
  write_off_id: serializers.writeOffs.v1.WriteOffId.Raw;
11
11
  write_off_timestamp: string;
12
12
  write_off_note?: string | null;
13
- write_off_reason: serializers.writeOffs.v1.WriteOffReason.Raw;
13
+ write_off_reason: serializers.writeOffs.v1.PatientWriteOffReason.Raw;
14
14
  service_line_id: serializers.ServiceLineId.Raw;
15
+ reverts_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
16
+ reverted_by_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
15
17
  amount_cents: number;
16
18
  }
17
19
  }
@@ -32,7 +32,9 @@ exports.PatientWriteOff = core.serialization.object({
32
32
  writeOffId: core.serialization.property("write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId)),
33
33
  writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
34
34
  writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
35
- writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffReason)),
35
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.PatientWriteOffReason)),
36
36
  serviceLineId: core.serialization.property("service_line_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ServiceLineId)),
37
+ revertsWriteOffId: core.serialization.property("reverts_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
38
+ revertedByWriteOffId: core.serialization.property("reverted_by_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
37
39
  amountCents: core.serialization.property("amount_cents", core.serialization.number()),
38
40
  });
@@ -9,7 +9,7 @@ export declare namespace PatientWriteOffCreate {
9
9
  interface Raw {
10
10
  write_off_timestamp: string;
11
11
  write_off_note?: string | null;
12
- write_off_reason: serializers.writeOffs.v1.WriteOffReason.Raw;
12
+ write_off_reason: serializers.writeOffs.v1.PatientWriteOffReason.Raw;
13
13
  service_line_id: serializers.ServiceLineId.Raw;
14
14
  amount_cents: number;
15
15
  }
@@ -31,7 +31,7 @@ const core = __importStar(require("../../../../../../core"));
31
31
  exports.PatientWriteOffCreate = core.serialization.object({
32
32
  writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
33
33
  writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
34
- writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffReason)),
34
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.PatientWriteOffReason)),
35
35
  serviceLineId: core.serialization.property("service_line_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ServiceLineId)),
36
36
  amountCents: core.serialization.property("amount_cents", core.serialization.number()),
37
37
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const PatientWriteOffReason: core.serialization.Schema<serializers.writeOffs.v1.PatientWriteOffReason.Raw, CandidApi.writeOffs.v1.PatientWriteOffReason>;
8
+ export declare namespace PatientWriteOffReason {
9
+ type Raw = "SMALL_BALANCE" | "CHARITY_OR_FINANCIAL_ASSISTANCE" | "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY" | "OON_COURTESY_ADJUSTMENT" | "PROMPT_PAY_DISCOUNT" | "BAD_DEBT" | "COLLECTION_AGENCY" | "OTHER" | "UNKNOWN";
10
+ }