candidhealth 0.39.3 → 0.39.5
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/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/diagnoses/client/Client.js +3 -3
- 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 +0 -223
- package/api/resources/encounters/resources/v4/client/Client.js +5 -288
- package/api/resources/encounters/resources/v4/client/index.d.ts +0 -1
- package/api/resources/encounters/resources/v4/client/index.js +1 -2
- 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/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.js +1 -1
- 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.d.ts +2 -12
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -20
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +15 -3
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +24 -12
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +5 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +5 -1
- package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/credentialing/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.js +3 -3
- 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 +0 -223
- package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -288
- package/dist/api/resources/encounters/resources/v4/client/index.d.ts +0 -1
- package/dist/api/resources/encounters/resources/v4/client/index.js +1 -2
- 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/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.js +1 -1
- 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.d.ts +2 -12
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -20
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +15 -3
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +24 -12
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +5 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +5 -1
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
- 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/encounters/resources/v4/client/index.d.ts +0 -1
- package/dist/serialization/resources/encounters/resources/v4/client/index.js +1 -2
- package/package.json +1 -1
- package/reference.md +4340 -2020
- package/serialization/resources/encounters/resources/v4/client/index.d.ts +0 -1
- package/serialization/resources/encounters/resources/v4/client/index.js +1 -2
- package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -58
- package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -113
- package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -58
- package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -113
- package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -39
- package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -90
- package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -39
- package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -90
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * as create from "./create";
|
|
2
2
|
export * as createFromPreEncounterPatient from "./createFromPreEncounterPatient";
|
|
3
|
-
export * as createFromPreEncounterPatientInternal from "./createFromPreEncounterPatientInternal";
|
|
4
3
|
export * as update from "./update";
|
|
5
4
|
export * from "./requests";
|
|
@@ -26,9 +26,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.update = exports.
|
|
29
|
+
exports.update = exports.createFromPreEncounterPatient = exports.create = void 0;
|
|
30
30
|
exports.create = __importStar(require("./create"));
|
|
31
31
|
exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
|
|
32
|
-
exports.createFromPreEncounterPatientInternal = __importStar(require("./createFromPreEncounterPatientInternal"));
|
|
33
32
|
exports.update = __importStar(require("./update"));
|
|
34
33
|
__exportStar(require("./requests"), exports);
|
package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as CandidApi from "../../../../../index";
|
|
5
|
-
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterPatientControlNumberUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EntityNotFoundError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationsError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.SchemaInstanceValidationHttpFailure | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Unknown;
|
|
7
|
-
export declare namespace Error {
|
|
8
|
-
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
9
|
-
errorName: "EncounterExternalIdUniquenessError";
|
|
10
|
-
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
11
|
-
}
|
|
12
|
-
interface EncounterPatientControlNumberUniquenessError extends _Utils {
|
|
13
|
-
errorName: "EncounterPatientControlNumberUniquenessError";
|
|
14
|
-
content: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType;
|
|
15
|
-
}
|
|
16
|
-
interface EntityNotFoundError extends _Utils {
|
|
17
|
-
errorName: "EntityNotFoundError";
|
|
18
|
-
content: CandidApi.EntityNotFoundErrorMessage;
|
|
19
|
-
}
|
|
20
|
-
interface HttpRequestValidationsError extends _Utils {
|
|
21
|
-
errorName: "HttpRequestValidationsError";
|
|
22
|
-
content: CandidApi.RequestValidationError[];
|
|
23
|
-
}
|
|
24
|
-
interface SchemaInstanceValidationHttpFailure extends _Utils {
|
|
25
|
-
errorName: "SchemaInstanceValidationHttpFailure";
|
|
26
|
-
content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
|
|
27
|
-
}
|
|
28
|
-
interface HttpRequestValidationError extends _Utils {
|
|
29
|
-
errorName: "HttpRequestValidationError";
|
|
30
|
-
content: CandidApi.RequestValidationError;
|
|
31
|
-
}
|
|
32
|
-
interface _Unknown extends _Utils {
|
|
33
|
-
errorName: void;
|
|
34
|
-
content: core.Fetcher.Error;
|
|
35
|
-
}
|
|
36
|
-
interface _Utils {
|
|
37
|
-
_visit: <_Result>(visitor: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Visitor<_Result>) => _Result;
|
|
38
|
-
}
|
|
39
|
-
interface _Visitor<_Result> {
|
|
40
|
-
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
41
|
-
encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => _Result;
|
|
42
|
-
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
43
|
-
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
44
|
-
schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
|
|
45
|
-
httpRequestValidationError: (value: CandidApi.RequestValidationError) => _Result;
|
|
46
|
-
_other: (value: core.Fetcher.Error) => _Result;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export declare const Error: {
|
|
50
|
-
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterExternalIdUniquenessError;
|
|
51
|
-
readonly encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterPatientControlNumberUniquenessError;
|
|
52
|
-
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EntityNotFoundError;
|
|
53
|
-
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationsError;
|
|
54
|
-
readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.SchemaInstanceValidationHttpFailure;
|
|
55
|
-
readonly httpRequestValidationError: (value: CandidApi.RequestValidationError) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationError;
|
|
56
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Unknown;
|
|
57
|
-
readonly _visit: <_Result>(value: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error, visitor: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Visitor<_Result>) => _Result;
|
|
58
|
-
};
|
package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
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.Error = void 0;
|
|
30
|
-
const CandidApi = __importStar(require("../../../../../index"));
|
|
31
|
-
exports.Error = {
|
|
32
|
-
encounterExternalIdUniquenessError: (value) => {
|
|
33
|
-
return {
|
|
34
|
-
content: value,
|
|
35
|
-
errorName: "EncounterExternalIdUniquenessError",
|
|
36
|
-
_visit: function (visitor) {
|
|
37
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
encounterPatientControlNumberUniquenessError: (value) => {
|
|
42
|
-
return {
|
|
43
|
-
content: value,
|
|
44
|
-
errorName: "EncounterPatientControlNumberUniquenessError",
|
|
45
|
-
_visit: function (visitor) {
|
|
46
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
entityNotFoundError: (value) => {
|
|
51
|
-
return {
|
|
52
|
-
content: value,
|
|
53
|
-
errorName: "EntityNotFoundError",
|
|
54
|
-
_visit: function (visitor) {
|
|
55
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
httpRequestValidationsError: (value) => {
|
|
60
|
-
return {
|
|
61
|
-
content: value,
|
|
62
|
-
errorName: "HttpRequestValidationsError",
|
|
63
|
-
_visit: function (visitor) {
|
|
64
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
schemaInstanceValidationHttpFailure: (value) => {
|
|
69
|
-
return {
|
|
70
|
-
content: value,
|
|
71
|
-
errorName: "SchemaInstanceValidationHttpFailure",
|
|
72
|
-
_visit: function (visitor) {
|
|
73
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
httpRequestValidationError: (value) => {
|
|
78
|
-
return {
|
|
79
|
-
content: value,
|
|
80
|
-
errorName: "HttpRequestValidationError",
|
|
81
|
-
_visit: function (visitor) {
|
|
82
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
},
|
|
86
|
-
_unknown: (fetcherError) => {
|
|
87
|
-
return {
|
|
88
|
-
errorName: undefined,
|
|
89
|
-
content: fetcherError,
|
|
90
|
-
_visit: function (visitor) {
|
|
91
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
},
|
|
95
|
-
_visit: (value, visitor) => {
|
|
96
|
-
switch (value.errorName) {
|
|
97
|
-
case "EncounterExternalIdUniquenessError":
|
|
98
|
-
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
99
|
-
case "EncounterPatientControlNumberUniquenessError":
|
|
100
|
-
return visitor.encounterPatientControlNumberUniquenessError(value.content);
|
|
101
|
-
case "EntityNotFoundError":
|
|
102
|
-
return visitor.entityNotFoundError(value.content);
|
|
103
|
-
case "HttpRequestValidationsError":
|
|
104
|
-
return visitor.httpRequestValidationsError(value.content);
|
|
105
|
-
case "SchemaInstanceValidationHttpFailure":
|
|
106
|
-
return visitor.schemaInstanceValidationHttpFailure(value.content);
|
|
107
|
-
case "HttpRequestValidationError":
|
|
108
|
-
return visitor.httpRequestValidationError(value.content);
|
|
109
|
-
default:
|
|
110
|
-
return visitor._other(value);
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
};
|
package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as CandidApi from "../../../../../index";
|
|
5
|
-
import * as core from "../../../../../../core";
|
|
6
|
-
export declare type Error = CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterPatientControlNumberUniquenessError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EntityNotFoundError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationsError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.SchemaInstanceValidationHttpFailure | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationError | CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Unknown;
|
|
7
|
-
export declare namespace Error {
|
|
8
|
-
interface EncounterExternalIdUniquenessError extends _Utils {
|
|
9
|
-
errorName: "EncounterExternalIdUniquenessError";
|
|
10
|
-
content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
|
|
11
|
-
}
|
|
12
|
-
interface EncounterPatientControlNumberUniquenessError extends _Utils {
|
|
13
|
-
errorName: "EncounterPatientControlNumberUniquenessError";
|
|
14
|
-
content: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType;
|
|
15
|
-
}
|
|
16
|
-
interface EntityNotFoundError extends _Utils {
|
|
17
|
-
errorName: "EntityNotFoundError";
|
|
18
|
-
content: CandidApi.EntityNotFoundErrorMessage;
|
|
19
|
-
}
|
|
20
|
-
interface HttpRequestValidationsError extends _Utils {
|
|
21
|
-
errorName: "HttpRequestValidationsError";
|
|
22
|
-
content: CandidApi.RequestValidationError[];
|
|
23
|
-
}
|
|
24
|
-
interface SchemaInstanceValidationHttpFailure extends _Utils {
|
|
25
|
-
errorName: "SchemaInstanceValidationHttpFailure";
|
|
26
|
-
content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
|
|
27
|
-
}
|
|
28
|
-
interface HttpRequestValidationError extends _Utils {
|
|
29
|
-
errorName: "HttpRequestValidationError";
|
|
30
|
-
content: CandidApi.RequestValidationError;
|
|
31
|
-
}
|
|
32
|
-
interface _Unknown extends _Utils {
|
|
33
|
-
errorName: void;
|
|
34
|
-
content: core.Fetcher.Error;
|
|
35
|
-
}
|
|
36
|
-
interface _Utils {
|
|
37
|
-
_visit: <_Result>(visitor: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Visitor<_Result>) => _Result;
|
|
38
|
-
}
|
|
39
|
-
interface _Visitor<_Result> {
|
|
40
|
-
encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
|
|
41
|
-
encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => _Result;
|
|
42
|
-
entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
|
|
43
|
-
httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
|
|
44
|
-
schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
|
|
45
|
-
httpRequestValidationError: (value: CandidApi.RequestValidationError) => _Result;
|
|
46
|
-
_other: (value: core.Fetcher.Error) => _Result;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export declare const Error: {
|
|
50
|
-
readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterExternalIdUniquenessError;
|
|
51
|
-
readonly encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EncounterPatientControlNumberUniquenessError;
|
|
52
|
-
readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.EntityNotFoundError;
|
|
53
|
-
readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationsError;
|
|
54
|
-
readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.SchemaInstanceValidationHttpFailure;
|
|
55
|
-
readonly httpRequestValidationError: (value: CandidApi.RequestValidationError) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.HttpRequestValidationError;
|
|
56
|
-
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Unknown;
|
|
57
|
-
readonly _visit: <_Result>(value: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error, visitor: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._Visitor<_Result>) => _Result;
|
|
58
|
-
};
|
package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
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.Error = void 0;
|
|
30
|
-
const CandidApi = __importStar(require("../../../../../index"));
|
|
31
|
-
exports.Error = {
|
|
32
|
-
encounterExternalIdUniquenessError: (value) => {
|
|
33
|
-
return {
|
|
34
|
-
content: value,
|
|
35
|
-
errorName: "EncounterExternalIdUniquenessError",
|
|
36
|
-
_visit: function (visitor) {
|
|
37
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
encounterPatientControlNumberUniquenessError: (value) => {
|
|
42
|
-
return {
|
|
43
|
-
content: value,
|
|
44
|
-
errorName: "EncounterPatientControlNumberUniquenessError",
|
|
45
|
-
_visit: function (visitor) {
|
|
46
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
entityNotFoundError: (value) => {
|
|
51
|
-
return {
|
|
52
|
-
content: value,
|
|
53
|
-
errorName: "EntityNotFoundError",
|
|
54
|
-
_visit: function (visitor) {
|
|
55
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
httpRequestValidationsError: (value) => {
|
|
60
|
-
return {
|
|
61
|
-
content: value,
|
|
62
|
-
errorName: "HttpRequestValidationsError",
|
|
63
|
-
_visit: function (visitor) {
|
|
64
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
schemaInstanceValidationHttpFailure: (value) => {
|
|
69
|
-
return {
|
|
70
|
-
content: value,
|
|
71
|
-
errorName: "SchemaInstanceValidationHttpFailure",
|
|
72
|
-
_visit: function (visitor) {
|
|
73
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
httpRequestValidationError: (value) => {
|
|
78
|
-
return {
|
|
79
|
-
content: value,
|
|
80
|
-
errorName: "HttpRequestValidationError",
|
|
81
|
-
_visit: function (visitor) {
|
|
82
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
},
|
|
86
|
-
_unknown: (fetcherError) => {
|
|
87
|
-
return {
|
|
88
|
-
errorName: undefined,
|
|
89
|
-
content: fetcherError,
|
|
90
|
-
_visit: function (visitor) {
|
|
91
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._visit(this, visitor);
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
},
|
|
95
|
-
_visit: (value, visitor) => {
|
|
96
|
-
switch (value.errorName) {
|
|
97
|
-
case "EncounterExternalIdUniquenessError":
|
|
98
|
-
return visitor.encounterExternalIdUniquenessError(value.content);
|
|
99
|
-
case "EncounterPatientControlNumberUniquenessError":
|
|
100
|
-
return visitor.encounterPatientControlNumberUniquenessError(value.content);
|
|
101
|
-
case "EntityNotFoundError":
|
|
102
|
-
return visitor.entityNotFoundError(value.content);
|
|
103
|
-
case "HttpRequestValidationsError":
|
|
104
|
-
return visitor.httpRequestValidationsError(value.content);
|
|
105
|
-
case "SchemaInstanceValidationHttpFailure":
|
|
106
|
-
return visitor.schemaInstanceValidationHttpFailure(value.content);
|
|
107
|
-
case "HttpRequestValidationError":
|
|
108
|
-
return visitor.httpRequestValidationError(value.content);
|
|
109
|
-
default:
|
|
110
|
-
return visitor._other(value);
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
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 { EncounterExternalIdUniquenessErrorType } from "../types/EncounterExternalIdUniquenessErrorType";
|
|
8
|
-
import { EncounterPatientControlNumberUniquenessErrorType } from "../types/EncounterPatientControlNumberUniquenessErrorType";
|
|
9
|
-
import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
|
|
10
|
-
import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
|
|
11
|
-
import { SchemaInstanceValidationFailure } from "../types/SchemaInstanceValidationFailure";
|
|
12
|
-
export declare const Error: core.serialization.Schema<serializers.encounters.v4.createFromPreEncounterPatientInternal.Error.Raw, CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error>;
|
|
13
|
-
export declare namespace Error {
|
|
14
|
-
type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure | Error.HttpRequestValidationError;
|
|
15
|
-
interface EncounterExternalIdUniquenessError {
|
|
16
|
-
errorName: "EncounterExternalIdUniquenessError";
|
|
17
|
-
content: EncounterExternalIdUniquenessErrorType.Raw;
|
|
18
|
-
}
|
|
19
|
-
interface EncounterPatientControlNumberUniquenessError {
|
|
20
|
-
errorName: "EncounterPatientControlNumberUniquenessError";
|
|
21
|
-
content: EncounterPatientControlNumberUniquenessErrorType.Raw;
|
|
22
|
-
}
|
|
23
|
-
interface EntityNotFoundError {
|
|
24
|
-
errorName: "EntityNotFoundError";
|
|
25
|
-
content: EntityNotFoundErrorMessage.Raw;
|
|
26
|
-
}
|
|
27
|
-
interface HttpRequestValidationsError {
|
|
28
|
-
errorName: "HttpRequestValidationsError";
|
|
29
|
-
content: RequestValidationError.Raw[];
|
|
30
|
-
}
|
|
31
|
-
interface SchemaInstanceValidationHttpFailure {
|
|
32
|
-
errorName: "SchemaInstanceValidationHttpFailure";
|
|
33
|
-
content: SchemaInstanceValidationFailure.Raw;
|
|
34
|
-
}
|
|
35
|
-
interface HttpRequestValidationError {
|
|
36
|
-
errorName: "HttpRequestValidationError";
|
|
37
|
-
content: RequestValidationError.Raw;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
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 EncounterExternalIdUniquenessErrorType_1 = require("../types/EncounterExternalIdUniquenessErrorType");
|
|
44
|
-
const EncounterPatientControlNumberUniquenessErrorType_1 = require("../types/EncounterPatientControlNumberUniquenessErrorType");
|
|
45
|
-
const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
|
|
46
|
-
const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
|
|
47
|
-
const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
|
|
48
|
-
exports.Error = core.serialization
|
|
49
|
-
.union("errorName", {
|
|
50
|
-
EncounterExternalIdUniquenessError: core.serialization.object({
|
|
51
|
-
content: EncounterExternalIdUniquenessErrorType_1.EncounterExternalIdUniquenessErrorType,
|
|
52
|
-
}),
|
|
53
|
-
EncounterPatientControlNumberUniquenessError: core.serialization.object({
|
|
54
|
-
content: EncounterPatientControlNumberUniquenessErrorType_1.EncounterPatientControlNumberUniquenessErrorType,
|
|
55
|
-
}),
|
|
56
|
-
EntityNotFoundError: core.serialization.object({
|
|
57
|
-
content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
|
|
58
|
-
}),
|
|
59
|
-
HttpRequestValidationsError: core.serialization.object({
|
|
60
|
-
content: core.serialization.list(RequestValidationError_1.RequestValidationError),
|
|
61
|
-
}),
|
|
62
|
-
SchemaInstanceValidationHttpFailure: core.serialization.object({
|
|
63
|
-
content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
|
|
64
|
-
}),
|
|
65
|
-
HttpRequestValidationError: core.serialization.object({
|
|
66
|
-
content: RequestValidationError_1.RequestValidationError,
|
|
67
|
-
}),
|
|
68
|
-
})
|
|
69
|
-
.transform({
|
|
70
|
-
transform: (value) => {
|
|
71
|
-
switch (value.errorName) {
|
|
72
|
-
case "EncounterExternalIdUniquenessError":
|
|
73
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.encounterExternalIdUniquenessError(value.content);
|
|
74
|
-
case "EncounterPatientControlNumberUniquenessError":
|
|
75
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.encounterPatientControlNumberUniquenessError(value.content);
|
|
76
|
-
case "EntityNotFoundError":
|
|
77
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.entityNotFoundError(value.content);
|
|
78
|
-
case "HttpRequestValidationsError":
|
|
79
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.httpRequestValidationsError(value.content);
|
|
80
|
-
case "SchemaInstanceValidationHttpFailure":
|
|
81
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.schemaInstanceValidationHttpFailure(value.content);
|
|
82
|
-
case "HttpRequestValidationError":
|
|
83
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.httpRequestValidationError(value.content);
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
untransform: (_a) => {
|
|
87
|
-
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
88
|
-
return value;
|
|
89
|
-
},
|
|
90
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
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 { EncounterExternalIdUniquenessErrorType } from "../types/EncounterExternalIdUniquenessErrorType";
|
|
8
|
-
import { EncounterPatientControlNumberUniquenessErrorType } from "../types/EncounterPatientControlNumberUniquenessErrorType";
|
|
9
|
-
import { EntityNotFoundErrorMessage } from "../../../../commons/types/EntityNotFoundErrorMessage";
|
|
10
|
-
import { RequestValidationError } from "../../../../commons/types/RequestValidationError";
|
|
11
|
-
import { SchemaInstanceValidationFailure } from "../types/SchemaInstanceValidationFailure";
|
|
12
|
-
export declare const Error: core.serialization.Schema<serializers.encounters.v4.createFromPreEncounterPatientInternal.Error.Raw, CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error>;
|
|
13
|
-
export declare namespace Error {
|
|
14
|
-
type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterPatientControlNumberUniquenessError | Error.EntityNotFoundError | Error.HttpRequestValidationsError | Error.SchemaInstanceValidationHttpFailure | Error.HttpRequestValidationError;
|
|
15
|
-
interface EncounterExternalIdUniquenessError {
|
|
16
|
-
errorName: "EncounterExternalIdUniquenessError";
|
|
17
|
-
content: EncounterExternalIdUniquenessErrorType.Raw;
|
|
18
|
-
}
|
|
19
|
-
interface EncounterPatientControlNumberUniquenessError {
|
|
20
|
-
errorName: "EncounterPatientControlNumberUniquenessError";
|
|
21
|
-
content: EncounterPatientControlNumberUniquenessErrorType.Raw;
|
|
22
|
-
}
|
|
23
|
-
interface EntityNotFoundError {
|
|
24
|
-
errorName: "EntityNotFoundError";
|
|
25
|
-
content: EntityNotFoundErrorMessage.Raw;
|
|
26
|
-
}
|
|
27
|
-
interface HttpRequestValidationsError {
|
|
28
|
-
errorName: "HttpRequestValidationsError";
|
|
29
|
-
content: RequestValidationError.Raw[];
|
|
30
|
-
}
|
|
31
|
-
interface SchemaInstanceValidationHttpFailure {
|
|
32
|
-
errorName: "SchemaInstanceValidationHttpFailure";
|
|
33
|
-
content: SchemaInstanceValidationFailure.Raw;
|
|
34
|
-
}
|
|
35
|
-
interface HttpRequestValidationError {
|
|
36
|
-
errorName: "HttpRequestValidationError";
|
|
37
|
-
content: RequestValidationError.Raw;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
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 EncounterExternalIdUniquenessErrorType_1 = require("../types/EncounterExternalIdUniquenessErrorType");
|
|
44
|
-
const EncounterPatientControlNumberUniquenessErrorType_1 = require("../types/EncounterPatientControlNumberUniquenessErrorType");
|
|
45
|
-
const EntityNotFoundErrorMessage_1 = require("../../../../commons/types/EntityNotFoundErrorMessage");
|
|
46
|
-
const RequestValidationError_1 = require("../../../../commons/types/RequestValidationError");
|
|
47
|
-
const SchemaInstanceValidationFailure_1 = require("../types/SchemaInstanceValidationFailure");
|
|
48
|
-
exports.Error = core.serialization
|
|
49
|
-
.union("errorName", {
|
|
50
|
-
EncounterExternalIdUniquenessError: core.serialization.object({
|
|
51
|
-
content: EncounterExternalIdUniquenessErrorType_1.EncounterExternalIdUniquenessErrorType,
|
|
52
|
-
}),
|
|
53
|
-
EncounterPatientControlNumberUniquenessError: core.serialization.object({
|
|
54
|
-
content: EncounterPatientControlNumberUniquenessErrorType_1.EncounterPatientControlNumberUniquenessErrorType,
|
|
55
|
-
}),
|
|
56
|
-
EntityNotFoundError: core.serialization.object({
|
|
57
|
-
content: EntityNotFoundErrorMessage_1.EntityNotFoundErrorMessage,
|
|
58
|
-
}),
|
|
59
|
-
HttpRequestValidationsError: core.serialization.object({
|
|
60
|
-
content: core.serialization.list(RequestValidationError_1.RequestValidationError),
|
|
61
|
-
}),
|
|
62
|
-
SchemaInstanceValidationHttpFailure: core.serialization.object({
|
|
63
|
-
content: SchemaInstanceValidationFailure_1.SchemaInstanceValidationFailure,
|
|
64
|
-
}),
|
|
65
|
-
HttpRequestValidationError: core.serialization.object({
|
|
66
|
-
content: RequestValidationError_1.RequestValidationError,
|
|
67
|
-
}),
|
|
68
|
-
})
|
|
69
|
-
.transform({
|
|
70
|
-
transform: (value) => {
|
|
71
|
-
switch (value.errorName) {
|
|
72
|
-
case "EncounterExternalIdUniquenessError":
|
|
73
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.encounterExternalIdUniquenessError(value.content);
|
|
74
|
-
case "EncounterPatientControlNumberUniquenessError":
|
|
75
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.encounterPatientControlNumberUniquenessError(value.content);
|
|
76
|
-
case "EntityNotFoundError":
|
|
77
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.entityNotFoundError(value.content);
|
|
78
|
-
case "HttpRequestValidationsError":
|
|
79
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.httpRequestValidationsError(value.content);
|
|
80
|
-
case "SchemaInstanceValidationHttpFailure":
|
|
81
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.schemaInstanceValidationHttpFailure(value.content);
|
|
82
|
-
case "HttpRequestValidationError":
|
|
83
|
-
return CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error.httpRequestValidationError(value.content);
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
untransform: (_a) => {
|
|
87
|
-
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
88
|
-
return value;
|
|
89
|
-
},
|
|
90
|
-
});
|