candidhealth 0.34.5 → 0.34.6
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 +7 -2
- 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/claims/types/Claim.d.ts +4 -4
- 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/diagnoses/client/Client.d.ts +65 -0
- package/api/resources/diagnoses/client/Client.js +237 -0
- package/api/resources/diagnoses/client/create.d.ts +22 -0
- package/api/resources/diagnoses/client/create.js +47 -0
- package/api/resources/diagnoses/client/delete.d.ts +28 -0
- package/api/resources/diagnoses/client/delete.js +58 -0
- package/api/resources/diagnoses/client/index.d.ts +4 -0
- package/api/resources/diagnoses/client/index.js +33 -0
- package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +33 -0
- package/api/resources/diagnoses/client/requests/DiagnosisUpdate.js +5 -0
- package/api/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/api/resources/diagnoses/client/requests/index.js +2 -0
- package/api/resources/diagnoses/client/update.d.ts +28 -0
- package/api/resources/diagnoses/client/update.js +58 -0
- package/api/resources/diagnoses/index.d.ts +1 -0
- package/api/resources/diagnoses/index.js +1 -0
- package/api/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +8 -0
- package/api/resources/diagnoses/types/DiagnosisNotFoundError.js +5 -0
- package/api/resources/diagnoses/types/index.d.ts +1 -0
- package/api/resources/diagnoses/types/index.js +1 -0
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/api/resources/encounters/resources/v4/client/Client.d.ts +12 -10
- package/api/resources/encounters/resources/v4/client/Client.js +17 -15
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -5
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -5
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +4 -4
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +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/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- 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/medicationDispense/resources/v1/client/Client.d.ts +2 -1
- package/api/resources/medicationDispense/resources/v1/client/Client.js +3 -2
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- 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/appointments/resources/v1/client/Client.js +6 -6
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +8 -8
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +6 -5
- package/api/resources/serviceLines/resources/v2/client/Client.js +9 -8
- package/api/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -6
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -2
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -2
- package/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +3 -10
- package/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +8 -0
- package/api/resources/serviceLines/resources/v2/types/TestResultType.js +10 -0
- package/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/api/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +7 -2
- 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/claims/types/Claim.d.ts +4 -4
- 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/diagnoses/client/Client.d.ts +65 -0
- package/dist/api/resources/diagnoses/client/Client.js +237 -0
- package/dist/api/resources/diagnoses/client/create.d.ts +22 -0
- package/dist/api/resources/diagnoses/client/create.js +47 -0
- package/dist/api/resources/diagnoses/client/delete.d.ts +28 -0
- package/dist/api/resources/diagnoses/client/delete.js +58 -0
- package/dist/api/resources/diagnoses/client/index.d.ts +4 -0
- package/dist/api/resources/diagnoses/client/index.js +33 -0
- package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +33 -0
- package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.js +5 -0
- package/dist/api/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/dist/api/resources/diagnoses/client/requests/index.js +2 -0
- package/dist/api/resources/diagnoses/client/update.d.ts +28 -0
- package/dist/api/resources/diagnoses/client/update.js +58 -0
- package/dist/api/resources/diagnoses/index.d.ts +1 -0
- package/dist/api/resources/diagnoses/index.js +1 -0
- package/dist/api/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +8 -0
- package/dist/api/resources/diagnoses/types/DiagnosisNotFoundError.js +5 -0
- package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
- package/dist/api/resources/diagnoses/types/index.js +1 -0
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +12 -10
- package/dist/api/resources/encounters/resources/v4/client/Client.js +17 -15
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +6 -5
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -5
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +4 -4
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +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/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- 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/medicationDispense/resources/v1/client/Client.d.ts +2 -1
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +3 -2
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- 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/appointments/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +8 -8
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +6 -5
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +9 -8
- package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +6 -6
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -2
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +6 -2
- package/dist/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +3 -10
- package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.d.ts +8 -0
- package/dist/api/resources/serviceLines/resources/v2/types/TestResultType.js +10 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.js +1 -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/serialization/resources/diagnoses/client/delete.d.ts +15 -0
- package/dist/serialization/resources/diagnoses/client/delete.js +61 -0
- package/dist/serialization/resources/diagnoses/client/index.d.ts +3 -0
- package/dist/serialization/resources/diagnoses/client/index.js +32 -0
- package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +15 -0
- package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +36 -0
- package/dist/serialization/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/diagnoses/client/requests/index.js +5 -0
- package/dist/serialization/resources/diagnoses/client/update.d.ts +15 -0
- package/dist/serialization/resources/diagnoses/client/update.js +61 -0
- package/dist/serialization/resources/diagnoses/index.d.ts +1 -0
- package/dist/serialization/resources/diagnoses/index.js +1 -0
- package/dist/serialization/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +14 -0
- package/dist/serialization/resources/diagnoses/types/DiagnosisNotFoundError.js +35 -0
- package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
- package/dist/serialization/resources/diagnoses/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -1
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +4 -8
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.js +4 -12
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +10 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +31 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +15 -5260
- package/serialization/resources/diagnoses/client/delete.d.ts +15 -0
- package/serialization/resources/diagnoses/client/delete.js +61 -0
- package/serialization/resources/diagnoses/client/index.d.ts +3 -0
- package/serialization/resources/diagnoses/client/index.js +32 -0
- package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +15 -0
- package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +36 -0
- package/serialization/resources/diagnoses/client/requests/index.d.ts +1 -0
- package/serialization/resources/diagnoses/client/requests/index.js +5 -0
- package/serialization/resources/diagnoses/client/update.d.ts +15 -0
- package/serialization/resources/diagnoses/client/update.js +61 -0
- package/serialization/resources/diagnoses/index.d.ts +1 -0
- package/serialization/resources/diagnoses/index.js +1 -0
- package/serialization/resources/diagnoses/types/DiagnosisNotFoundError.d.ts +14 -0
- package/serialization/resources/diagnoses/types/DiagnosisNotFoundError.js +35 -0
- package/serialization/resources/diagnoses/types/index.d.ts +1 -0
- package/serialization/resources/diagnoses/types/index.js +1 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/DrugIdentification.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +1 -1
- package/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +4 -8
- package/serialization/resources/serviceLines/resources/v2/types/TestResult.js +4 -12
- package/serialization/resources/serviceLines/resources/v2/types/TestResultType.d.ts +10 -0
- package/serialization/resources/serviceLines/resources/v2/types/TestResultType.js +31 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
|
@@ -0,0 +1,15 @@
|
|
|
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 { DiagnosisNotFoundError } from "../types/DiagnosisNotFoundError";
|
|
8
|
+
export declare const Error: core.serialization.Schema<serializers.diagnoses.delete.Error.Raw, CandidApi.diagnoses.delete.Error>;
|
|
9
|
+
export declare namespace Error {
|
|
10
|
+
type Raw = Error.DiagnosisNotFoundHttpError;
|
|
11
|
+
interface DiagnosisNotFoundHttpError {
|
|
12
|
+
errorName: "DiagnosisNotFoundHTTPError";
|
|
13
|
+
content: DiagnosisNotFoundError.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 DiagnosisNotFoundError_1 = require("../types/DiagnosisNotFoundError");
|
|
44
|
+
exports.Error = core.serialization
|
|
45
|
+
.union("errorName", {
|
|
46
|
+
DiagnosisNotFoundHTTPError: core.serialization.object({
|
|
47
|
+
content: DiagnosisNotFoundError_1.DiagnosisNotFoundError,
|
|
48
|
+
}),
|
|
49
|
+
})
|
|
50
|
+
.transform({
|
|
51
|
+
transform: (value) => {
|
|
52
|
+
switch (value.errorName) {
|
|
53
|
+
case "DiagnosisNotFoundHTTPError":
|
|
54
|
+
return CandidApi.diagnoses.delete.Error.diagnosisNotFoundHttpError(value.content);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
untransform: (_a) => {
|
|
58
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
59
|
+
return value;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.delete = exports.update = void 0;
|
|
30
|
+
exports.update = __importStar(require("./update"));
|
|
31
|
+
exports.delete = __importStar(require("./delete"));
|
|
32
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { DiagnosisTypeCode } from "../../types/DiagnosisTypeCode";
|
|
8
|
+
export declare const DiagnosisUpdate: core.serialization.Schema<serializers.DiagnosisUpdate.Raw, CandidApi.DiagnosisUpdate>;
|
|
9
|
+
export declare namespace DiagnosisUpdate {
|
|
10
|
+
interface Raw {
|
|
11
|
+
name?: string | null;
|
|
12
|
+
code_type?: DiagnosisTypeCode.Raw | null;
|
|
13
|
+
code?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.DiagnosisUpdate = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
const DiagnosisTypeCode_1 = require("../../types/DiagnosisTypeCode");
|
|
32
|
+
exports.DiagnosisUpdate = core.serialization.object({
|
|
33
|
+
name: core.serialization.string().optional(),
|
|
34
|
+
codeType: core.serialization.property("code_type", DiagnosisTypeCode_1.DiagnosisTypeCode.optional()),
|
|
35
|
+
code: core.serialization.string().optional(),
|
|
36
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DiagnosisUpdate } from "./DiagnosisUpdate";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiagnosisUpdate = void 0;
|
|
4
|
+
var DiagnosisUpdate_1 = require("./DiagnosisUpdate");
|
|
5
|
+
Object.defineProperty(exports, "DiagnosisUpdate", { enumerable: true, get: function () { return DiagnosisUpdate_1.DiagnosisUpdate; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { DiagnosisNotFoundError } from "../types/DiagnosisNotFoundError";
|
|
8
|
+
export declare const Error: core.serialization.Schema<serializers.diagnoses.update.Error.Raw, CandidApi.diagnoses.update.Error>;
|
|
9
|
+
export declare namespace Error {
|
|
10
|
+
type Raw = Error.DiagnosisNotFoundHttpError;
|
|
11
|
+
interface DiagnosisNotFoundHttpError {
|
|
12
|
+
errorName: "DiagnosisNotFoundHTTPError";
|
|
13
|
+
content: DiagnosisNotFoundError.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 DiagnosisNotFoundError_1 = require("../types/DiagnosisNotFoundError");
|
|
44
|
+
exports.Error = core.serialization
|
|
45
|
+
.union("errorName", {
|
|
46
|
+
DiagnosisNotFoundHTTPError: core.serialization.object({
|
|
47
|
+
content: DiagnosisNotFoundError_1.DiagnosisNotFoundError,
|
|
48
|
+
}),
|
|
49
|
+
})
|
|
50
|
+
.transform({
|
|
51
|
+
transform: (value) => {
|
|
52
|
+
switch (value.errorName) {
|
|
53
|
+
case "DiagnosisNotFoundHTTPError":
|
|
54
|
+
return CandidApi.diagnoses.update.Error.diagnosisNotFoundHttpError(value.content);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
untransform: (_a) => {
|
|
58
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
59
|
+
return value;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { DiagnosisId } from "./DiagnosisId";
|
|
8
|
+
export declare const DiagnosisNotFoundError: core.serialization.ObjectSchema<serializers.DiagnosisNotFoundError.Raw, CandidApi.DiagnosisNotFoundError>;
|
|
9
|
+
export declare namespace DiagnosisNotFoundError {
|
|
10
|
+
interface Raw {
|
|
11
|
+
diagnosis_id?: DiagnosisId.Raw | null;
|
|
12
|
+
message: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.DiagnosisNotFoundError = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const DiagnosisId_1 = require("./DiagnosisId");
|
|
32
|
+
exports.DiagnosisNotFoundError = core.serialization.object({
|
|
33
|
+
diagnosisId: core.serialization.property("diagnosis_id", DiagnosisId_1.DiagnosisId.optional()),
|
|
34
|
+
message: core.serialization.string(),
|
|
35
|
+
});
|
|
@@ -19,3 +19,4 @@ __exportStar(require("./DiagnosisCreate"), exports);
|
|
|
19
19
|
__exportStar(require("./StandaloneDiagnosisCreate"), exports);
|
|
20
20
|
__exportStar(require("./DiagnosisTypeCode"), exports);
|
|
21
21
|
__exportStar(require("./Diagnosis"), exports);
|
|
22
|
+
__exportStar(require("./DiagnosisNotFoundError"), exports);
|
|
@@ -85,3 +85,4 @@ __exportStar(require("./serviceFacility/types"), exports);
|
|
|
85
85
|
exports.tags = __importStar(require("./tags"));
|
|
86
86
|
__exportStar(require("./tags/types"), exports);
|
|
87
87
|
exports.eligibility = __importStar(require("./eligibility"));
|
|
88
|
+
__exportStar(require("./diagnoses/client/requests"), exports);
|
|
@@ -38,4 +38,5 @@ exports.DrugIdentification = core.serialization.object({
|
|
|
38
38
|
linkSequenceNumber: core.serialization.property("link_sequence_number", core.serialization.string().optional()),
|
|
39
39
|
pharmacyPrescriptionNumber: core.serialization.property("pharmacy_prescription_number", core.serialization.string().optional()),
|
|
40
40
|
conversionFormula: core.serialization.property("conversion_formula", core.serialization.string().optional()),
|
|
41
|
+
drugDescription: core.serialization.property("drug_description", core.serialization.string().optional()),
|
|
41
42
|
});
|
|
@@ -77,5 +77,5 @@ exports.ServiceLine = core.serialization.object({
|
|
|
77
77
|
description: core.serialization.string().optional(),
|
|
78
78
|
dateOfService: core.serialization.property("date_of_service", core.serialization.string()),
|
|
79
79
|
endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
|
|
80
|
-
|
|
80
|
+
testResults: core.serialization.property("test_results", core.serialization.list(TestResult_1.TestResult).optional()),
|
|
81
81
|
});
|
|
@@ -26,6 +26,6 @@ export declare namespace ServiceLineCreate {
|
|
|
26
26
|
date_of_service?: string | null;
|
|
27
27
|
end_date_of_service?: string | null;
|
|
28
28
|
ordering_provider?: OrderingProvider.Raw | null;
|
|
29
|
-
|
|
29
|
+
test_results?: TestResult.Raw[] | null;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -48,5 +48,5 @@ exports.ServiceLineCreate = core.serialization.object({
|
|
|
48
48
|
dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
|
|
49
49
|
endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
|
|
50
50
|
orderingProvider: core.serialization.property("ordering_provider", OrderingProvider_1.OrderingProvider.optional()),
|
|
51
|
-
|
|
51
|
+
testResults: core.serialization.property("test_results", core.serialization.list(TestResult_1.TestResult).optional()),
|
|
52
52
|
});
|
|
@@ -53,5 +53,5 @@ exports.ServiceLineUpdate = core.serialization.object({
|
|
|
53
53
|
description: core.serialization.string().optional(),
|
|
54
54
|
dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
|
|
55
55
|
endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
|
|
56
|
-
|
|
56
|
+
testResults: core.serialization.property("test_results", core.serialization.list(TestResult_1.TestResult).optional()),
|
|
57
57
|
});
|
|
@@ -4,15 +4,11 @@
|
|
|
4
4
|
import * as serializers from "../../../../../index";
|
|
5
5
|
import * as CandidApi from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
|
-
|
|
7
|
+
import { TestResultType } from "./TestResultType";
|
|
8
|
+
export declare const TestResult: core.serialization.ObjectSchema<serializers.serviceLines.v2.TestResult.Raw, CandidApi.serviceLines.v2.TestResult>;
|
|
8
9
|
export declare namespace TestResult {
|
|
9
|
-
|
|
10
|
-
interface Hematocrit {
|
|
11
|
-
type: "hematocrit";
|
|
12
|
-
value: number;
|
|
13
|
-
}
|
|
14
|
-
interface Hemoglobin {
|
|
15
|
-
type: "hemoglobin";
|
|
10
|
+
interface Raw {
|
|
16
11
|
value: number;
|
|
12
|
+
result_type: TestResultType.Raw;
|
|
17
13
|
}
|
|
18
14
|
}
|
|
@@ -28,16 +28,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.TestResult = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../../core"));
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}),
|
|
36
|
-
hemoglobin: core.serialization.object({
|
|
37
|
-
value: core.serialization.number(),
|
|
38
|
-
}),
|
|
39
|
-
})
|
|
40
|
-
.transform({
|
|
41
|
-
transform: (value) => value,
|
|
42
|
-
untransform: (value) => value,
|
|
31
|
+
const TestResultType_1 = require("./TestResultType");
|
|
32
|
+
exports.TestResult = core.serialization.object({
|
|
33
|
+
value: core.serialization.number(),
|
|
34
|
+
resultType: core.serialization.property("result_type", TestResultType_1.TestResultType),
|
|
43
35
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export declare const TestResultType: core.serialization.Schema<serializers.serviceLines.v2.TestResultType.Raw, CandidApi.serviceLines.v2.TestResultType>;
|
|
8
|
+
export declare namespace TestResultType {
|
|
9
|
+
type Raw = "HEMATOCRIT" | "HEMOGLOBIN";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.TestResultType = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
exports.TestResultType = core.serialization.enum_(["HEMATOCRIT", "HEMOGLOBIN"]);
|
|
@@ -7,6 +7,7 @@ export * from "./ServiceLineAdjustment";
|
|
|
7
7
|
export * from "./ServiceLineDenialReason";
|
|
8
8
|
export * from "./DenialReasonContent";
|
|
9
9
|
export * from "./DrugIdentification";
|
|
10
|
+
export * from "./TestResultType";
|
|
10
11
|
export * from "./TestResult";
|
|
11
12
|
export * from "./ServiceIdQualifier";
|
|
12
13
|
export * from "./MeasurementUnitCode";
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./ServiceLineAdjustment"), exports);
|
|
|
23
23
|
__exportStar(require("./ServiceLineDenialReason"), exports);
|
|
24
24
|
__exportStar(require("./DenialReasonContent"), exports);
|
|
25
25
|
__exportStar(require("./DrugIdentification"), exports);
|
|
26
|
+
__exportStar(require("./TestResultType"), exports);
|
|
26
27
|
__exportStar(require("./TestResult"), exports);
|
|
27
28
|
__exportStar(require("./ServiceIdQualifier"), exports);
|
|
28
29
|
__exportStar(require("./MeasurementUnitCode"), exports);
|