candidhealth 0.34.2 → 0.34.4
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 +1 -1
- package/api/resources/claims/types/Claim.d.ts +5 -1
- 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/encounterProviders/resources/v2/client/Client.js +12 -12
- package/api/resources/encounters/resources/v4/client/Client.d.ts +9 -1
- package/api/resources/encounters/resources/v4/client/Client.js +14 -6
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +4 -0
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -2
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +5 -1
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +5 -1
- 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.d.ts +12 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +58 -5
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +6 -1
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.d.ts +12 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.js +5 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.js +2 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/scan.d.ts +22 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/scan.js +47 -0
- 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 +5 -1
- package/api/resources/serviceLines/resources/v2/client/Client.js +8 -4
- package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +7 -1
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +15 -0
- package/api/resources/serviceLines/resources/v2/types/TestResult.js +5 -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/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 +5 -1
- 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/encounterProviders/resources/v2/client/Client.js +12 -12
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +9 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +14 -6
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +4 -0
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -2
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +5 -1
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +5 -1
- 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.d.ts +12 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +58 -5
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +6 -1
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.d.ts +12 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.js +5 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/scan.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/scan.js +47 -0
- 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 +5 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +8 -4
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +7 -1
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/types/TestResult.d.ts +15 -0
- package/dist/api/resources/serviceLines/resources/v2/types/TestResult.js +5 -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/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +1 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.js +2 -1
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/scan.d.ts +11 -0
- package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/scan.js +32 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +18 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/TestResult.js +43 -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 +78 -1
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +1 -1
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.js +1 -1
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.js +2 -1
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/scan.d.ts +11 -0
- package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/scan.js +32 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLine.js +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +2 -0
- package/serialization/resources/serviceLines/resources/v2/types/TestResult.d.ts +18 -0
- package/serialization/resources/serviceLines/resources/v2/types/TestResult.js +43 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +1 -0
|
@@ -7,5 +7,6 @@ export * from "./ServiceLineAdjustment";
|
|
|
7
7
|
export * from "./ServiceLineDenialReason";
|
|
8
8
|
export * from "./DenialReasonContent";
|
|
9
9
|
export * from "./DrugIdentification";
|
|
10
|
+
export * from "./TestResult";
|
|
10
11
|
export * from "./ServiceIdQualifier";
|
|
11
12
|
export * from "./MeasurementUnitCode";
|
|
@@ -23,5 +23,6 @@ __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("./TestResult"), exports);
|
|
26
27
|
__exportStar(require("./ServiceIdQualifier"), exports);
|
|
27
28
|
__exportStar(require("./MeasurementUnitCode"), exports);
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2152,6 +2152,10 @@ await client.encounters.v4.create({
|
|
|
2152
2152
|
lastName: "string",
|
|
2153
2153
|
organizationName: "string",
|
|
2154
2154
|
},
|
|
2155
|
+
testResult: {
|
|
2156
|
+
type: "hematocrit",
|
|
2157
|
+
value: 1.1,
|
|
2158
|
+
},
|
|
2155
2159
|
},
|
|
2156
2160
|
],
|
|
2157
2161
|
guarantor: {
|
|
@@ -2354,7 +2358,7 @@ encounter has not already been submitted or adjudicated.
|
|
|
2354
2358
|
```typescript
|
|
2355
2359
|
await client.encounters.v4.createFromPreEncounterPatient({
|
|
2356
2360
|
preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
2357
|
-
|
|
2361
|
+
preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
2358
2362
|
billingProvider: {
|
|
2359
2363
|
address: {
|
|
2360
2364
|
address1: "123 Main St",
|
|
@@ -2514,6 +2518,10 @@ await client.encounters.v4.createFromPreEncounterPatient({
|
|
|
2514
2518
|
lastName: "string",
|
|
2515
2519
|
organizationName: "string",
|
|
2516
2520
|
},
|
|
2521
|
+
testResult: {
|
|
2522
|
+
type: "hematocrit",
|
|
2523
|
+
value: 1.1,
|
|
2524
|
+
},
|
|
2517
2525
|
},
|
|
2518
2526
|
],
|
|
2519
2527
|
externalClaimSubmission: {
|
|
@@ -8228,6 +8236,10 @@ await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-
|
|
|
8228
8236
|
description: "string",
|
|
8229
8237
|
dateOfService: "2023-01-15",
|
|
8230
8238
|
endDateOfService: "2023-01-15",
|
|
8239
|
+
testResult: {
|
|
8240
|
+
type: "hematocrit",
|
|
8241
|
+
value: 1.1,
|
|
8242
|
+
},
|
|
8231
8243
|
});
|
|
8232
8244
|
```
|
|
8233
8245
|
|
|
@@ -9262,6 +9274,71 @@ await client.preEncounter.appointments.v1.update(CandidApi.AppointmentId("string
|
|
|
9262
9274
|
</dl>
|
|
9263
9275
|
</details>
|
|
9264
9276
|
|
|
9277
|
+
<details><summary><code>client.preEncounter.appointments.v1.<a href="/src/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.ts">scan</a>({ ...params }) -> core.APIResponse<CandidApi.Appointment[], CandidApi.preEncounter.appointments.v1.scan.Error></code></summary>
|
|
9278
|
+
<dl>
|
|
9279
|
+
<dd>
|
|
9280
|
+
|
|
9281
|
+
#### 📝 Description
|
|
9282
|
+
|
|
9283
|
+
<dl>
|
|
9284
|
+
<dd>
|
|
9285
|
+
|
|
9286
|
+
<dl>
|
|
9287
|
+
<dd>
|
|
9288
|
+
|
|
9289
|
+
Scans up to 100 appointment updates. The since query parameter is inclusive, and the result list is ordered by updatedAt ascending.
|
|
9290
|
+
|
|
9291
|
+
</dd>
|
|
9292
|
+
</dl>
|
|
9293
|
+
</dd>
|
|
9294
|
+
</dl>
|
|
9295
|
+
|
|
9296
|
+
#### 🔌 Usage
|
|
9297
|
+
|
|
9298
|
+
<dl>
|
|
9299
|
+
<dd>
|
|
9300
|
+
|
|
9301
|
+
<dl>
|
|
9302
|
+
<dd>
|
|
9303
|
+
|
|
9304
|
+
```typescript
|
|
9305
|
+
await client.preEncounter.appointments.v1.scan({
|
|
9306
|
+
since: new Date("2024-01-15T09:30:00.000Z"),
|
|
9307
|
+
});
|
|
9308
|
+
```
|
|
9309
|
+
|
|
9310
|
+
</dd>
|
|
9311
|
+
</dl>
|
|
9312
|
+
</dd>
|
|
9313
|
+
</dl>
|
|
9314
|
+
|
|
9315
|
+
#### ⚙️ Parameters
|
|
9316
|
+
|
|
9317
|
+
<dl>
|
|
9318
|
+
<dd>
|
|
9319
|
+
|
|
9320
|
+
<dl>
|
|
9321
|
+
<dd>
|
|
9322
|
+
|
|
9323
|
+
**request:** `CandidApi.preEncounter.appointments.v1.AppointmentScanRequest`
|
|
9324
|
+
|
|
9325
|
+
</dd>
|
|
9326
|
+
</dl>
|
|
9327
|
+
|
|
9328
|
+
<dl>
|
|
9329
|
+
<dd>
|
|
9330
|
+
|
|
9331
|
+
**requestOptions:** `V1.RequestOptions`
|
|
9332
|
+
|
|
9333
|
+
</dd>
|
|
9334
|
+
</dl>
|
|
9335
|
+
</dd>
|
|
9336
|
+
</dl>
|
|
9337
|
+
|
|
9338
|
+
</dd>
|
|
9339
|
+
</dl>
|
|
9340
|
+
</details>
|
|
9341
|
+
|
|
9265
9342
|
<details><summary><code>client.preEncounter.appointments.v1.<a href="/src/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.ts">deactivate</a>(id, version) -> core.APIResponse<void, CandidApi.preEncounter.appointments.v1.deactivate.Error></code></summary>
|
|
9266
9343
|
<dl>
|
|
9267
9344
|
<dd>
|
|
@@ -25,7 +25,7 @@ export declare const EncounterCreateFromPreEncounter: core.serialization.Schema<
|
|
|
25
25
|
export declare namespace EncounterCreateFromPreEncounter {
|
|
26
26
|
interface Raw extends EncounterBase.Raw {
|
|
27
27
|
pre_encounter_patient_id: PreEncounterPatientId.Raw;
|
|
28
|
-
|
|
28
|
+
pre_encounter_appointment_ids: PreEncounterAppointmentId.Raw[];
|
|
29
29
|
billing_provider: BillingProvider.Raw;
|
|
30
30
|
rendering_provider: RenderingProvider.Raw;
|
|
31
31
|
initial_referring_provider?: InitialReferringProvider.Raw | null;
|
|
@@ -48,7 +48,7 @@ const EncounterBase_1 = require("../../types/EncounterBase");
|
|
|
48
48
|
exports.EncounterCreateFromPreEncounter = core.serialization
|
|
49
49
|
.object({
|
|
50
50
|
preEncounterPatientId: core.serialization.property("pre_encounter_patient_id", PreEncounterPatientId_1.PreEncounterPatientId),
|
|
51
|
-
|
|
51
|
+
preEncounterAppointmentIds: core.serialization.property("pre_encounter_appointment_ids", core.serialization.list(PreEncounterAppointmentId_1.PreEncounterAppointmentId)),
|
|
52
52
|
billingProvider: core.serialization.property("billing_provider", BillingProvider_1.BillingProvider),
|
|
53
53
|
renderingProvider: core.serialization.property("rendering_provider", RenderingProvider_1.RenderingProvider),
|
|
54
54
|
initialReferringProvider: core.serialization.property("initial_referring_provider", InitialReferringProvider_1.InitialReferringProvider.optional()),
|
package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/index.js
CHANGED
|
@@ -23,9 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.deactivate = exports.update = exports.getHistory = exports.get = exports.create = void 0;
|
|
26
|
+
exports.deactivate = exports.scan = exports.update = exports.getHistory = exports.get = exports.create = void 0;
|
|
27
27
|
exports.create = __importStar(require("./create"));
|
|
28
28
|
exports.get = __importStar(require("./get"));
|
|
29
29
|
exports.getHistory = __importStar(require("./getHistory"));
|
|
30
30
|
exports.update = __importStar(require("./update"));
|
|
31
|
+
exports.scan = __importStar(require("./scan"));
|
|
31
32
|
exports.deactivate = __importStar(require("./deactivate"));
|
package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/scan.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
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 { Appointment } from "../types/Appointment";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.preEncounter.appointments.v1.scan.Response.Raw, CandidApi.preEncounter.appointments.v1.Appointment[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Appointment.Raw[];
|
|
11
|
+
}
|
package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/scan.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
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.Response = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../../../core"));
|
|
31
|
+
const Appointment_1 = require("../types/Appointment");
|
|
32
|
+
exports.Response = core.serialization.list(Appointment_1.Appointment);
|
|
@@ -19,6 +19,7 @@ import { Decimal } from "../../../../commons/types/Decimal";
|
|
|
19
19
|
import { ServiceLineUnits } from "../../../../commons/types/ServiceLineUnits";
|
|
20
20
|
import { ClaimId } from "../../../../commons/types/ClaimId";
|
|
21
21
|
import { DateRangeOptionalEnd } from "../../../../commons/types/DateRangeOptionalEnd";
|
|
22
|
+
import { TestResult } from "./TestResult";
|
|
22
23
|
export declare const ServiceLine: core.serialization.ObjectSchema<serializers.serviceLines.v2.ServiceLine.Raw, CandidApi.serviceLines.v2.ServiceLine>;
|
|
23
24
|
export declare namespace ServiceLine {
|
|
24
25
|
interface Raw {
|
|
@@ -54,5 +55,6 @@ export declare namespace ServiceLine {
|
|
|
54
55
|
description?: string | null;
|
|
55
56
|
date_of_service: string;
|
|
56
57
|
end_date_of_service?: string | null;
|
|
58
|
+
test_result?: TestResult.Raw | null;
|
|
57
59
|
}
|
|
58
60
|
}
|
|
@@ -43,6 +43,7 @@ const Decimal_1 = require("../../../../commons/types/Decimal");
|
|
|
43
43
|
const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits");
|
|
44
44
|
const ClaimId_1 = require("../../../../commons/types/ClaimId");
|
|
45
45
|
const DateRangeOptionalEnd_1 = require("../../../../commons/types/DateRangeOptionalEnd");
|
|
46
|
+
const TestResult_1 = require("./TestResult");
|
|
46
47
|
exports.ServiceLine = core.serialization.object({
|
|
47
48
|
modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
|
|
48
49
|
chargeAmountCents: core.serialization.property("charge_amount_cents", core.serialization.number().optional()),
|
|
@@ -76,4 +77,5 @@ exports.ServiceLine = core.serialization.object({
|
|
|
76
77
|
description: core.serialization.string().optional(),
|
|
77
78
|
dateOfService: core.serialization.property("date_of_service", core.serialization.string()),
|
|
78
79
|
endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
|
|
80
|
+
testResult: core.serialization.property("test_result", TestResult_1.TestResult.optional()),
|
|
79
81
|
});
|
|
@@ -10,6 +10,7 @@ import { ServiceLineUnits } from "../../../../commons/types/ServiceLineUnits";
|
|
|
10
10
|
import { DrugIdentification } from "./DrugIdentification";
|
|
11
11
|
import { FacilityTypeCode } from "../../../../commons/types/FacilityTypeCode";
|
|
12
12
|
import { OrderingProvider } from "../../../../encounterProviders/resources/v2/types/OrderingProvider";
|
|
13
|
+
import { TestResult } from "./TestResult";
|
|
13
14
|
export declare const ServiceLineCreate: core.serialization.ObjectSchema<serializers.serviceLines.v2.ServiceLineCreate.Raw, CandidApi.serviceLines.v2.ServiceLineCreate>;
|
|
14
15
|
export declare namespace ServiceLineCreate {
|
|
15
16
|
interface Raw {
|
|
@@ -25,5 +26,6 @@ export declare namespace ServiceLineCreate {
|
|
|
25
26
|
date_of_service?: string | null;
|
|
26
27
|
end_date_of_service?: string | null;
|
|
27
28
|
ordering_provider?: OrderingProvider.Raw | null;
|
|
29
|
+
test_result?: TestResult.Raw | null;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
@@ -34,6 +34,7 @@ const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits")
|
|
|
34
34
|
const DrugIdentification_1 = require("./DrugIdentification");
|
|
35
35
|
const FacilityTypeCode_1 = require("../../../../commons/types/FacilityTypeCode");
|
|
36
36
|
const OrderingProvider_1 = require("../../../../encounterProviders/resources/v2/types/OrderingProvider");
|
|
37
|
+
const TestResult_1 = require("./TestResult");
|
|
37
38
|
exports.ServiceLineCreate = core.serialization.object({
|
|
38
39
|
modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
|
|
39
40
|
procedureCode: core.serialization.property("procedure_code", core.serialization.string()),
|
|
@@ -47,4 +48,5 @@ exports.ServiceLineCreate = core.serialization.object({
|
|
|
47
48
|
dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
|
|
48
49
|
endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
|
|
49
50
|
orderingProvider: core.serialization.property("ordering_provider", OrderingProvider_1.OrderingProvider.optional()),
|
|
51
|
+
testResult: core.serialization.property("test_result", TestResult_1.TestResult.optional()),
|
|
50
52
|
});
|
|
@@ -11,6 +11,7 @@ import { ServiceLineDenialReason } from "./ServiceLineDenialReason";
|
|
|
11
11
|
import { FacilityTypeCode } from "../../../../commons/types/FacilityTypeCode";
|
|
12
12
|
import { ServiceLineUnits } from "../../../../commons/types/ServiceLineUnits";
|
|
13
13
|
import { Decimal } from "../../../../commons/types/Decimal";
|
|
14
|
+
import { TestResult } from "./TestResult";
|
|
14
15
|
export declare const ServiceLineUpdate: core.serialization.ObjectSchema<serializers.serviceLines.v2.ServiceLineUpdate.Raw, CandidApi.serviceLines.v2.ServiceLineUpdate>;
|
|
15
16
|
export declare namespace ServiceLineUpdate {
|
|
16
17
|
interface Raw {
|
|
@@ -30,5 +31,6 @@ export declare namespace ServiceLineUpdate {
|
|
|
30
31
|
description?: string | null;
|
|
31
32
|
date_of_service?: string | null;
|
|
32
33
|
end_date_of_service?: string | null;
|
|
34
|
+
test_result?: TestResult.Raw | null;
|
|
33
35
|
}
|
|
34
36
|
}
|
|
@@ -35,6 +35,7 @@ const ServiceLineDenialReason_1 = require("./ServiceLineDenialReason");
|
|
|
35
35
|
const FacilityTypeCode_1 = require("../../../../commons/types/FacilityTypeCode");
|
|
36
36
|
const ServiceLineUnits_1 = require("../../../../commons/types/ServiceLineUnits");
|
|
37
37
|
const Decimal_1 = require("../../../../commons/types/Decimal");
|
|
38
|
+
const TestResult_1 = require("./TestResult");
|
|
38
39
|
exports.ServiceLineUpdate = core.serialization.object({
|
|
39
40
|
editReason: core.serialization.property("edit_reason", core.serialization.string().optional()),
|
|
40
41
|
modifiers: core.serialization.list(ProcedureModifier_1.ProcedureModifier).optional(),
|
|
@@ -52,4 +53,5 @@ exports.ServiceLineUpdate = core.serialization.object({
|
|
|
52
53
|
description: core.serialization.string().optional(),
|
|
53
54
|
dateOfService: core.serialization.property("date_of_service", core.serialization.string().optional()),
|
|
54
55
|
endDateOfService: core.serialization.property("end_date_of_service", core.serialization.string().optional()),
|
|
56
|
+
testResult: core.serialization.property("test_result", TestResult_1.TestResult.optional()),
|
|
55
57
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
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 TestResult: core.serialization.Schema<serializers.serviceLines.v2.TestResult.Raw, CandidApi.serviceLines.v2.TestResult>;
|
|
8
|
+
export declare namespace TestResult {
|
|
9
|
+
type Raw = TestResult.Hematocrit | TestResult.Hemoglobin;
|
|
10
|
+
interface Hematocrit {
|
|
11
|
+
type: "hematocrit";
|
|
12
|
+
value: number;
|
|
13
|
+
}
|
|
14
|
+
interface Hemoglobin {
|
|
15
|
+
type: "hemoglobin";
|
|
16
|
+
value: number;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.TestResult = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../../core"));
|
|
31
|
+
exports.TestResult = core.serialization
|
|
32
|
+
.union("type", {
|
|
33
|
+
hematocrit: core.serialization.object({
|
|
34
|
+
value: core.serialization.number(),
|
|
35
|
+
}),
|
|
36
|
+
hemoglobin: core.serialization.object({
|
|
37
|
+
value: core.serialization.number(),
|
|
38
|
+
}),
|
|
39
|
+
})
|
|
40
|
+
.transform({
|
|
41
|
+
transform: (value) => value,
|
|
42
|
+
untransform: (value) => value,
|
|
43
|
+
});
|
|
@@ -7,5 +7,6 @@ export * from "./ServiceLineAdjustment";
|
|
|
7
7
|
export * from "./ServiceLineDenialReason";
|
|
8
8
|
export * from "./DenialReasonContent";
|
|
9
9
|
export * from "./DrugIdentification";
|
|
10
|
+
export * from "./TestResult";
|
|
10
11
|
export * from "./ServiceIdQualifier";
|
|
11
12
|
export * from "./MeasurementUnitCode";
|
|
@@ -23,5 +23,6 @@ __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("./TestResult"), exports);
|
|
26
27
|
__exportStar(require("./ServiceIdQualifier"), exports);
|
|
27
28
|
__exportStar(require("./MeasurementUnitCode"), exports);
|