candidhealth 0.26.0 → 0.27.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 (92) 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/customSchemas/resources/v1/client/Client.js +4 -4
  5. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  6. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  7. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  8. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  9. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  10. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  11. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  12. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  13. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  14. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  15. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  16. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  17. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  18. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  19. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  20. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  21. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  22. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +6 -6
  23. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
  24. package/api/resources/serviceFacility/client/Client.js +1 -1
  25. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +8 -18
  26. package/api/resources/serviceLines/resources/v2/client/Client.js +57 -20
  27. package/api/resources/serviceLines/resources/v2/client/delete.d.ts +34 -0
  28. package/api/resources/serviceLines/resources/v2/client/delete.js +69 -0
  29. package/api/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  30. package/api/resources/serviceLines/resources/v2/client/index.js +2 -1
  31. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -9
  32. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -9
  33. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  34. package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +5 -5
  35. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +5 -5
  36. package/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
  37. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  38. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  39. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  40. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  41. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  42. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  43. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  44. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  45. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  46. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  47. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  48. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  49. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  50. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  51. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  52. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  53. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  54. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  55. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  56. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  57. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  58. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  59. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +6 -6
  60. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
  61. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  62. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +8 -18
  63. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +57 -20
  64. package/dist/api/resources/serviceLines/resources/v2/client/delete.d.ts +34 -0
  65. package/dist/api/resources/serviceLines/resources/v2/client/delete.js +69 -0
  66. package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  67. package/dist/api/resources/serviceLines/resources/v2/client/index.js +2 -1
  68. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -9
  69. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -9
  70. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  71. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +5 -5
  72. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +5 -5
  73. package/dist/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
  74. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  75. package/dist/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +20 -0
  76. package/dist/serialization/resources/serviceLines/resources/v2/client/delete.js +67 -0
  77. package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  78. package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +2 -1
  79. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -10
  80. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +0 -10
  81. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -10
  82. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +0 -10
  83. package/package.json +1 -1
  84. package/reference.md +48 -18
  85. package/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +20 -0
  86. package/serialization/resources/serviceLines/resources/v2/client/delete.js +67 -0
  87. package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  88. package/serialization/resources/serviceLines/resources/v2/client/index.js +2 -1
  89. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -10
  90. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +0 -10
  91. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -10
  92. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +0 -10
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __rest = (this && this.__rest) || function (s, e) {
29
+ var t = {};
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
+ t[p] = s[p];
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
37
+ return t;
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.Error = void 0;
41
+ const CandidApi = __importStar(require("../../../../../../api/index"));
42
+ const core = __importStar(require("../../../../../../core"));
43
+ const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
44
+ const UnauthorizedErrorMessage_1 = require("../../../../commons/types/UnauthorizedErrorMessage");
45
+ exports.Error = core.serialization
46
+ .union("errorName", {
47
+ EntityNotFoundError: core.serialization.object({
48
+ content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
49
+ }),
50
+ UnauthorizedError: core.serialization.object({
51
+ content: UnauthorizedErrorMessage_1.UnauthorizedErrorMessage,
52
+ }),
53
+ })
54
+ .transform({
55
+ transform: (value) => {
56
+ switch (value.errorName) {
57
+ case "EntityNotFoundError":
58
+ return CandidApi.serviceLines.v2.delete.Error.entityNotFoundError(value.content);
59
+ case "UnauthorizedError":
60
+ return CandidApi.serviceLines.v2.delete.Error.unauthorizedError(value.content);
61
+ }
62
+ },
63
+ untransform: (_a) => {
64
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
65
+ return value;
66
+ },
67
+ });
@@ -1,2 +1,3 @@
1
1
  export * as create from "./create";
2
2
  export * as update from "./update";
3
+ export * as delete from "./delete";
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.update = exports.create = void 0;
26
+ exports.delete = exports.update = exports.create = void 0;
27
27
  exports.create = __importStar(require("./create"));
28
28
  exports.update = __importStar(require("./update"));
29
+ exports.delete = __importStar(require("./delete"));
@@ -6,7 +6,6 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { ProcedureModifier } from "../../../../commons/types/ProcedureModifier";
8
8
  import { DiagnosisId } from "../../../../diagnoses/types/DiagnosisId";
9
- import { ServiceLineAdjustment } from "./ServiceLineAdjustment";
10
9
  import { ServiceLineDenialReason } from "./ServiceLineDenialReason";
11
10
  import { FacilityTypeCode } from "../../../../commons/types/FacilityTypeCode";
12
11
  import { Decimal } from "../../../../commons/types/Decimal";
@@ -17,21 +16,12 @@ export declare namespace ServiceLineCreateStandalone {
17
16
  interface Raw {
18
17
  modifiers?: ProcedureModifier.Raw[] | null;
19
18
  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
19
  diagnosis_id_zero?: DiagnosisId.Raw | null;
28
20
  diagnosis_id_one?: DiagnosisId.Raw | null;
29
21
  diagnosis_id_two?: DiagnosisId.Raw | null;
30
22
  diagnosis_id_three?: DiagnosisId.Raw | null;
31
- service_line_manual_adjustments?: ServiceLineAdjustment.Raw[] | null;
32
23
  denial_reason?: ServiceLineDenialReason.Raw | null;
33
24
  place_of_service_code?: FacilityTypeCode.Raw | null;
34
- place_of_service_code_as_submitted?: FacilityTypeCode.Raw | null;
35
25
  procedure_code: string;
36
26
  quantity: Decimal.Raw;
37
27
  units: ServiceLineUnits.Raw;
@@ -30,7 +30,6 @@ exports.ServiceLineCreateStandalone = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  const ProcedureModifier_1 = require("../../../../commons/types/ProcedureModifier");
32
32
  const DiagnosisId_1 = require("../../../../diagnoses/types/DiagnosisId");
33
- const ServiceLineAdjustment_1 = require("./ServiceLineAdjustment");
34
33
  const ServiceLineDenialReason_1 = require("./ServiceLineDenialReason");
35
34
  const FacilityTypeCode_1 = require("../../../../commons/types/FacilityTypeCode");
36
35
  const Decimal_1 = require("../../../../commons/types/Decimal");
@@ -39,21 +38,12 @@ const ClaimId_1 = require("../../../../commons/types/ClaimId");
39
38
  exports.ServiceLineCreateStandalone = core.serialization.object({
40
39
  modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
41
40
  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
41
  diagnosisIdZero: core.serialization.property("diagnosis_id_zero", DiagnosisId_1.DiagnosisId.optional()),
50
42
  diagnosisIdOne: core.serialization.property("diagnosis_id_one", DiagnosisId_1.DiagnosisId.optional()),
51
43
  diagnosisIdTwo: core.serialization.property("diagnosis_id_two", DiagnosisId_1.DiagnosisId.optional()),
52
44
  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
45
  denialReason: core.serialization.property("denial_reason", ServiceLineDenialReason_1.ServiceLineDenialReason.optional()),
55
46
  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
47
  procedureCode: core.serialization.property("procedure_code", core.serialization.string()),
58
48
  quantity: Decimal_1.Decimal,
59
49
  units: ServiceLineUnits_1.ServiceLineUnits,
@@ -6,7 +6,6 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  import { ProcedureModifier } from "../../../../commons/types/ProcedureModifier";
8
8
  import { DiagnosisId } from "../../../../diagnoses/types/DiagnosisId";
9
- import { ServiceLineAdjustment } from "./ServiceLineAdjustment";
10
9
  import { ServiceLineDenialReason } from "./ServiceLineDenialReason";
11
10
  import { FacilityTypeCode } from "../../../../commons/types/FacilityTypeCode";
12
11
  import { ServiceLineUnits } from "../../../../commons/types/ServiceLineUnits";
@@ -17,21 +16,12 @@ export declare namespace ServiceLineUpdate {
17
16
  edit_reason?: string | null;
18
17
  modifiers?: ProcedureModifier.Raw[] | null;
19
18
  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
19
  diagnosis_id_zero?: DiagnosisId.Raw | null;
28
20
  diagnosis_id_one?: DiagnosisId.Raw | null;
29
21
  diagnosis_id_two?: DiagnosisId.Raw | null;
30
22
  diagnosis_id_three?: DiagnosisId.Raw | null;
31
- service_line_manual_adjustments?: ServiceLineAdjustment.Raw[] | null;
32
23
  denial_reason?: ServiceLineDenialReason.Raw | null;
33
24
  place_of_service_code?: FacilityTypeCode.Raw | null;
34
- place_of_service_code_as_submitted?: FacilityTypeCode.Raw | null;
35
25
  units?: ServiceLineUnits.Raw | null;
36
26
  procedure_code?: string | null;
37
27
  quantity?: Decimal.Raw | null;
@@ -30,7 +30,6 @@ exports.ServiceLineUpdate = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  const ProcedureModifier_1 = require("../../../../commons/types/ProcedureModifier");
32
32
  const DiagnosisId_1 = require("../../../../diagnoses/types/DiagnosisId");
33
- const ServiceLineAdjustment_1 = require("./ServiceLineAdjustment");
34
33
  const ServiceLineDenialReason_1 = require("./ServiceLineDenialReason");
35
34
  const FacilityTypeCode_1 = require("../../../../commons/types/FacilityTypeCode");
36
35
  const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits");
@@ -39,21 +38,12 @@ exports.ServiceLineUpdate = core.serialization.object({
39
38
  editReason: core.serialization.property("edit_reason", core.serialization.string().optional()),
40
39
  modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
41
40
  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
41
  diagnosisIdZero: core.serialization.property("diagnosis_id_zero", DiagnosisId_1.DiagnosisId.optional()),
50
42
  diagnosisIdOne: core.serialization.property("diagnosis_id_one", DiagnosisId_1.DiagnosisId.optional()),
51
43
  diagnosisIdTwo: core.serialization.property("diagnosis_id_two", DiagnosisId_1.DiagnosisId.optional()),
52
44
  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
45
  denialReason: core.serialization.property("denial_reason", ServiceLineDenialReason_1.ServiceLineDenialReason.optional()),
55
46
  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
47
  units: ServiceLineUnits_1.ServiceLineUnits.optional(),
58
48
  procedureCode: core.serialization.property("procedure_code", core.serialization.string().optional()),
59
49
  quantity: Decimal_1.Decimal.optional(),