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.
- package/Client.d.ts +3 -0
- package/Client.js +13 -8
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/api/resources/commons/types/AppointmentId.d.ts +8 -0
- package/api/resources/commons/types/AppointmentId.js +10 -0
- package/api/resources/commons/types/index.d.ts +1 -0
- package/api/resources/commons/types/index.js +1 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/api/resources/financials/types/AllocationTarget.d.ts +4 -1
- package/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -1
- package/api/resources/financials/types/AppointmentAllocationTarget.d.ts +7 -0
- package/api/resources/financials/types/AppointmentAllocationTarget.js +5 -0
- package/api/resources/financials/types/index.d.ts +1 -0
- package/api/resources/financials/types/index.js +1 -0
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +6 -6
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/client/Client.d.ts +26 -0
- package/api/resources/serviceLines/client/Client.js +17 -0
- package/api/resources/serviceLines/client/index.d.ts +1 -0
- package/api/resources/serviceLines/client/index.js +2 -0
- package/api/resources/serviceLines/index.d.ts +1 -0
- package/api/resources/serviceLines/index.js +1 -0
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +92 -0
- package/api/resources/serviceLines/resources/v2/client/Client.js +238 -0
- package/api/resources/serviceLines/resources/v2/client/create.d.ts +28 -0
- package/api/resources/serviceLines/resources/v2/client/create.js +58 -0
- package/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/api/resources/serviceLines/resources/v2/client/update.d.ts +40 -0
- package/api/resources/serviceLines/resources/v2/client/update.js +80 -0
- package/api/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/index.js +1 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +36 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +37 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/types/index.js +2 -0
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +13 -8
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/commons/types/AppointmentId.d.ts +8 -0
- package/dist/api/resources/commons/types/AppointmentId.js +10 -0
- package/dist/api/resources/commons/types/index.d.ts +1 -0
- package/dist/api/resources/commons/types/index.js +1 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/dist/api/resources/financials/types/AllocationTarget.d.ts +4 -1
- package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -1
- package/dist/api/resources/financials/types/AppointmentAllocationTarget.d.ts +7 -0
- package/dist/api/resources/financials/types/AppointmentAllocationTarget.js +5 -0
- package/dist/api/resources/financials/types/index.d.ts +1 -0
- package/dist/api/resources/financials/types/index.js +1 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/client/Client.d.ts +26 -0
- package/dist/api/resources/serviceLines/client/Client.js +17 -0
- package/dist/api/resources/serviceLines/client/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/client/index.js +2 -0
- package/dist/api/resources/serviceLines/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/index.js +1 -0
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +92 -0
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +238 -0
- package/dist/api/resources/serviceLines/resources/v2/client/create.d.ts +28 -0
- package/dist/api/resources/serviceLines/resources/v2/client/create.js +58 -0
- package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/dist/api/resources/serviceLines/resources/v2/client/update.d.ts +40 -0
- package/dist/api/resources/serviceLines/resources/v2/client/update.js +80 -0
- package/dist/api/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/index.js +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +36 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +37 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.js +2 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +2 -0
- package/dist/serialization/resources/commons/types/AppointmentId.d.ts +10 -0
- package/dist/serialization/resources/commons/types/AppointmentId.js +35 -0
- package/dist/serialization/resources/commons/types/index.d.ts +1 -0
- package/dist/serialization/resources/commons/types/index.js +1 -0
- package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +5 -1
- package/dist/serialization/resources/financials/types/AllocationTarget.js +2 -0
- package/dist/serialization/resources/financials/types/AllocationTargetCreate.d.ts +6 -1
- package/dist/serialization/resources/financials/types/AllocationTargetCreate.js +4 -0
- package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +13 -0
- package/dist/serialization/resources/financials/types/AppointmentAllocationTarget.js +34 -0
- package/dist/serialization/resources/financials/types/index.d.ts +1 -0
- package/dist/serialization/resources/financials/types/index.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/create.d.ts +15 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/create.js +61 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/update.d.ts +25 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/update.js +73 -0
- package/dist/serialization/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/index.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +43 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +64 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +42 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +63 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +2 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +4 -0
- package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +4 -0
- package/package.json +1 -1
- package/reference.md +156 -0
- package/serialization/resources/commons/types/AppointmentId.d.ts +10 -0
- package/serialization/resources/commons/types/AppointmentId.js +35 -0
- package/serialization/resources/commons/types/index.d.ts +1 -0
- package/serialization/resources/commons/types/index.js +1 -0
- package/serialization/resources/financials/types/AllocationTarget.d.ts +5 -1
- package/serialization/resources/financials/types/AllocationTarget.js +2 -0
- package/serialization/resources/financials/types/AllocationTargetCreate.d.ts +6 -1
- package/serialization/resources/financials/types/AllocationTargetCreate.js +4 -0
- package/serialization/resources/financials/types/AppointmentAllocationTarget.d.ts +13 -0
- package/serialization/resources/financials/types/AppointmentAllocationTarget.js +34 -0
- package/serialization/resources/financials/types/index.d.ts +1 -0
- package/serialization/resources/financials/types/index.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/client/create.d.ts +15 -0
- package/serialization/resources/serviceLines/resources/v2/client/create.js +61 -0
- package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/client/index.js +28 -0
- package/serialization/resources/serviceLines/resources/v2/client/update.d.ts +25 -0
- package/serialization/resources/serviceLines/resources/v2/client/update.js +73 -0
- package/serialization/resources/serviceLines/resources/v2/index.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/index.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +43 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +64 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +42 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +63 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +2 -0
- package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +4 -0
- 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
|
+
});
|
package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts
ADDED
|
@@ -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
|
+
}
|
package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js
ADDED
|
@@ -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
|
+
});
|
|
@@ -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()),
|