candidhealth 0.39.4 → 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.js +8 -8
- 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.js +9 -9
- 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.js +8 -8
- 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.js +9 -9
- 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 +0 -304
- 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
package/reference.md
CHANGED
|
@@ -3415,310 +3415,6 @@ await client.encounters.v4.createFromPreEncounterPatient({
|
|
|
3415
3415
|
</dl>
|
|
3416
3416
|
</details>
|
|
3417
3417
|
|
|
3418
|
-
<details><summary><code>client.encounters.v4.<a href="/src/api/resources/encounters/resources/v4/client/Client.ts">createFromPreEncounterPatientInternal</a>({ ...params }) -> core.APIResponse<CandidApi.Encounter, CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error></code></summary>
|
|
3419
|
-
<dl>
|
|
3420
|
-
<dd>
|
|
3421
|
-
|
|
3422
|
-
#### 📝 Description
|
|
3423
|
-
|
|
3424
|
-
<dl>
|
|
3425
|
-
<dd>
|
|
3426
|
-
|
|
3427
|
-
<dl>
|
|
3428
|
-
<dd>
|
|
3429
|
-
|
|
3430
|
-
Create an encounter from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
|
|
3431
|
-
patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
|
|
3432
|
-
of the pre-encounter service should use the standard create endpoint.
|
|
3433
|
-
|
|
3434
|
-
The endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects
|
|
3435
|
-
where applicable. In particular, the following fields are populated from the patient and appointment objects:
|
|
3436
|
-
|
|
3437
|
-
- Patient
|
|
3438
|
-
- Referring Provider
|
|
3439
|
-
- Subscriber Primary
|
|
3440
|
-
- Subscriber Secondary
|
|
3441
|
-
- Referral Number
|
|
3442
|
-
- Responsible Party
|
|
3443
|
-
- Guarantor
|
|
3444
|
-
|
|
3445
|
-
Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
|
|
3446
|
-
encounter has not already been submitted or adjudicated.
|
|
3447
|
-
|
|
3448
|
-
</dd>
|
|
3449
|
-
</dl>
|
|
3450
|
-
</dd>
|
|
3451
|
-
</dl>
|
|
3452
|
-
|
|
3453
|
-
#### 🔌 Usage
|
|
3454
|
-
|
|
3455
|
-
<dl>
|
|
3456
|
-
<dd>
|
|
3457
|
-
|
|
3458
|
-
<dl>
|
|
3459
|
-
<dd>
|
|
3460
|
-
|
|
3461
|
-
```typescript
|
|
3462
|
-
await client.encounters.v4.createFromPreEncounterPatientInternal({
|
|
3463
|
-
preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
3464
|
-
preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
|
|
3465
|
-
billingProvider: {
|
|
3466
|
-
address: {
|
|
3467
|
-
address1: "123 Main St",
|
|
3468
|
-
address2: "Apt 1",
|
|
3469
|
-
city: "New York",
|
|
3470
|
-
state: CandidApi.State.Ny,
|
|
3471
|
-
zipCode: "10001",
|
|
3472
|
-
zipPlusFourCode: "1234",
|
|
3473
|
-
},
|
|
3474
|
-
taxId: "string",
|
|
3475
|
-
npi: "string",
|
|
3476
|
-
taxonomyCode: "string",
|
|
3477
|
-
providerCommercialLicenseType: CandidApi.BillingProviderCommercialLicenseType.LicensedClinicalSocialWorker,
|
|
3478
|
-
firstName: "string",
|
|
3479
|
-
lastName: "string",
|
|
3480
|
-
organizationName: "string",
|
|
3481
|
-
},
|
|
3482
|
-
renderingProvider: {
|
|
3483
|
-
npi: "string",
|
|
3484
|
-
taxonomyCode: "string",
|
|
3485
|
-
address: {
|
|
3486
|
-
address1: "123 Main St",
|
|
3487
|
-
address2: "Apt 1",
|
|
3488
|
-
city: "New York",
|
|
3489
|
-
state: CandidApi.State.Ny,
|
|
3490
|
-
zipCode: "10001",
|
|
3491
|
-
zipPlusFourCode: "1234",
|
|
3492
|
-
},
|
|
3493
|
-
firstName: "string",
|
|
3494
|
-
lastName: "string",
|
|
3495
|
-
organizationName: "string",
|
|
3496
|
-
},
|
|
3497
|
-
initialReferringProvider: {
|
|
3498
|
-
npi: "string",
|
|
3499
|
-
taxonomyCode: "string",
|
|
3500
|
-
address: {
|
|
3501
|
-
address1: "123 Main St",
|
|
3502
|
-
address2: "Apt 1",
|
|
3503
|
-
city: "New York",
|
|
3504
|
-
state: CandidApi.State.Ny,
|
|
3505
|
-
zipCode: "10001",
|
|
3506
|
-
zipPlusFourCode: "1234",
|
|
3507
|
-
},
|
|
3508
|
-
qualifier: CandidApi.QualifierCode.Dq,
|
|
3509
|
-
firstName: "string",
|
|
3510
|
-
lastName: "string",
|
|
3511
|
-
organizationName: "string",
|
|
3512
|
-
},
|
|
3513
|
-
supervisingProvider: {
|
|
3514
|
-
npi: "string",
|
|
3515
|
-
taxonomyCode: "string",
|
|
3516
|
-
address: {
|
|
3517
|
-
address1: "123 Main St",
|
|
3518
|
-
address2: "Apt 1",
|
|
3519
|
-
city: "New York",
|
|
3520
|
-
state: CandidApi.State.Ny,
|
|
3521
|
-
zipCode: "10001",
|
|
3522
|
-
zipPlusFourCode: "1234",
|
|
3523
|
-
},
|
|
3524
|
-
firstName: "string",
|
|
3525
|
-
lastName: "string",
|
|
3526
|
-
organizationName: "string",
|
|
3527
|
-
},
|
|
3528
|
-
serviceFacility: {
|
|
3529
|
-
organizationName: "string",
|
|
3530
|
-
npi: "string",
|
|
3531
|
-
address: {
|
|
3532
|
-
address1: "123 Main St",
|
|
3533
|
-
address2: "Apt 1",
|
|
3534
|
-
city: "New York",
|
|
3535
|
-
state: CandidApi.State.Ny,
|
|
3536
|
-
zipCode: "10001",
|
|
3537
|
-
zipPlusFourCode: "1234",
|
|
3538
|
-
},
|
|
3539
|
-
secondaryIdentification: "string",
|
|
3540
|
-
},
|
|
3541
|
-
diagnoses: [
|
|
3542
|
-
{
|
|
3543
|
-
name: "string",
|
|
3544
|
-
codeType: CandidApi.DiagnosisTypeCode.Abf,
|
|
3545
|
-
code: "string",
|
|
3546
|
-
},
|
|
3547
|
-
],
|
|
3548
|
-
clinicalNotes: [
|
|
3549
|
-
{
|
|
3550
|
-
category: CandidApi.NoteCategory.Clinical,
|
|
3551
|
-
notes: [],
|
|
3552
|
-
},
|
|
3553
|
-
],
|
|
3554
|
-
billingNotes: [
|
|
3555
|
-
{
|
|
3556
|
-
text: "string",
|
|
3557
|
-
},
|
|
3558
|
-
],
|
|
3559
|
-
placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
|
|
3560
|
-
patientHistories: [
|
|
3561
|
-
{
|
|
3562
|
-
category: CandidApi.PatientHistoryCategoryEnum.PresentIllness,
|
|
3563
|
-
questions: [
|
|
3564
|
-
{
|
|
3565
|
-
id: CandidApi.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
|
|
3566
|
-
text: "Do you have any allergies?",
|
|
3567
|
-
responses: [
|
|
3568
|
-
{
|
|
3569
|
-
response: "No allergies",
|
|
3570
|
-
followUps: [
|
|
3571
|
-
{
|
|
3572
|
-
id: CandidApi.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
|
|
3573
|
-
text: "Do you have any allergies?",
|
|
3574
|
-
response: "No allergies",
|
|
3575
|
-
},
|
|
3576
|
-
],
|
|
3577
|
-
},
|
|
3578
|
-
],
|
|
3579
|
-
},
|
|
3580
|
-
],
|
|
3581
|
-
},
|
|
3582
|
-
],
|
|
3583
|
-
serviceLines: [
|
|
3584
|
-
{
|
|
3585
|
-
procedureCode: "string",
|
|
3586
|
-
quantity: CandidApi.Decimal("string"),
|
|
3587
|
-
units: CandidApi.ServiceLineUnits.Mj,
|
|
3588
|
-
diagnosisPointers: [],
|
|
3589
|
-
},
|
|
3590
|
-
],
|
|
3591
|
-
externalClaimSubmission: {
|
|
3592
|
-
claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
|
|
3593
|
-
patientControlNumber: "PATIENT_CONTROL_NUMBER",
|
|
3594
|
-
submissionRecords: [
|
|
3595
|
-
{
|
|
3596
|
-
submittedAt: new Date("2023-01-01T13:00:00.000Z"),
|
|
3597
|
-
claimFrequencyCode: CandidApi.ClaimFrequencyTypeCode.Original,
|
|
3598
|
-
payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
|
|
3599
|
-
intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic,
|
|
3600
|
-
},
|
|
3601
|
-
{
|
|
3602
|
-
submittedAt: new Date("2023-01-04T12:00:00.000Z"),
|
|
3603
|
-
claimFrequencyCode: CandidApi.ClaimFrequencyTypeCode.Replacement,
|
|
3604
|
-
payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
|
|
3605
|
-
intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper,
|
|
3606
|
-
},
|
|
3607
|
-
],
|
|
3608
|
-
},
|
|
3609
|
-
tagIds: [CandidApi.TagId("string")],
|
|
3610
|
-
schemaInstances: [
|
|
3611
|
-
{
|
|
3612
|
-
schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
|
|
3613
|
-
content: {
|
|
3614
|
-
provider_category: "internist",
|
|
3615
|
-
is_urgent_care: true,
|
|
3616
|
-
bmi: 24.2,
|
|
3617
|
-
age: 38,
|
|
3618
|
-
},
|
|
3619
|
-
},
|
|
3620
|
-
],
|
|
3621
|
-
externalId: CandidApi.EncounterExternalId("string"),
|
|
3622
|
-
dateOfService: "2023-01-15",
|
|
3623
|
-
endDateOfService: "2023-01-15",
|
|
3624
|
-
patientAuthorizedRelease: true,
|
|
3625
|
-
benefitsAssignedToProvider: true,
|
|
3626
|
-
providerAcceptsAssignment: true,
|
|
3627
|
-
appointmentType: "string",
|
|
3628
|
-
existingMedications: [
|
|
3629
|
-
{
|
|
3630
|
-
name: "Lisinopril",
|
|
3631
|
-
rxCui: CandidApi.RxCui("860975"),
|
|
3632
|
-
dosage: "10mg",
|
|
3633
|
-
dosageForm: "Tablet",
|
|
3634
|
-
frequency: "Once Daily",
|
|
3635
|
-
asNeeded: true,
|
|
3636
|
-
},
|
|
3637
|
-
],
|
|
3638
|
-
vitals: {
|
|
3639
|
-
heightIn: 70,
|
|
3640
|
-
weightLbs: 165,
|
|
3641
|
-
bloodPressureSystolicMmhg: 115,
|
|
3642
|
-
bloodPressureDiastolicMmhg: 85,
|
|
3643
|
-
bodyTemperatureF: 98,
|
|
3644
|
-
hemoglobinGdl: 15.1,
|
|
3645
|
-
hematocritPct: 51.2,
|
|
3646
|
-
},
|
|
3647
|
-
interventions: [
|
|
3648
|
-
{
|
|
3649
|
-
name: "Physical Therapy Session",
|
|
3650
|
-
category: CandidApi.InterventionCategory.Lifestyle,
|
|
3651
|
-
description:
|
|
3652
|
-
"A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
|
|
3653
|
-
medication: {
|
|
3654
|
-
name: "Lisinopril",
|
|
3655
|
-
rxCui: CandidApi.RxCui("860975"),
|
|
3656
|
-
dosage: "10mg",
|
|
3657
|
-
dosageForm: "Tablet",
|
|
3658
|
-
frequency: "Once Daily",
|
|
3659
|
-
asNeeded: true,
|
|
3660
|
-
},
|
|
3661
|
-
labs: [
|
|
3662
|
-
{
|
|
3663
|
-
name: "Genetic Health Labs",
|
|
3664
|
-
code: "GH12345",
|
|
3665
|
-
codeType: CandidApi.LabCodeType.Quest,
|
|
3666
|
-
},
|
|
3667
|
-
],
|
|
3668
|
-
},
|
|
3669
|
-
],
|
|
3670
|
-
payToAddress: {
|
|
3671
|
-
address1: "123 Main St",
|
|
3672
|
-
address2: "Apt 1",
|
|
3673
|
-
city: "New York",
|
|
3674
|
-
state: CandidApi.State.Ny,
|
|
3675
|
-
zipCode: "10001",
|
|
3676
|
-
zipPlusFourCode: "1234",
|
|
3677
|
-
},
|
|
3678
|
-
synchronicity: CandidApi.SynchronicityType.Synchronous,
|
|
3679
|
-
billableStatus: CandidApi.BillableStatusType.Billable,
|
|
3680
|
-
additionalInformation: "string",
|
|
3681
|
-
serviceAuthorizationExceptionCode: CandidApi.ServiceAuthorizationExceptionCode.C1,
|
|
3682
|
-
admissionDate: "2023-01-15",
|
|
3683
|
-
dischargeDate: "2023-01-15",
|
|
3684
|
-
onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
|
|
3685
|
-
lastMenstrualPeriodDate: "2023-01-15",
|
|
3686
|
-
delayReasonCode: CandidApi.DelayReasonCode.C1,
|
|
3687
|
-
});
|
|
3688
|
-
```
|
|
3689
|
-
|
|
3690
|
-
</dd>
|
|
3691
|
-
</dl>
|
|
3692
|
-
</dd>
|
|
3693
|
-
</dl>
|
|
3694
|
-
|
|
3695
|
-
#### ⚙️ Parameters
|
|
3696
|
-
|
|
3697
|
-
<dl>
|
|
3698
|
-
<dd>
|
|
3699
|
-
|
|
3700
|
-
<dl>
|
|
3701
|
-
<dd>
|
|
3702
|
-
|
|
3703
|
-
**request:** `CandidApi.EncounterCreateFromPreEncounter`
|
|
3704
|
-
|
|
3705
|
-
</dd>
|
|
3706
|
-
</dl>
|
|
3707
|
-
|
|
3708
|
-
<dl>
|
|
3709
|
-
<dd>
|
|
3710
|
-
|
|
3711
|
-
**requestOptions:** `V4.RequestOptions`
|
|
3712
|
-
|
|
3713
|
-
</dd>
|
|
3714
|
-
</dl>
|
|
3715
|
-
</dd>
|
|
3716
|
-
</dl>
|
|
3717
|
-
|
|
3718
|
-
</dd>
|
|
3719
|
-
</dl>
|
|
3720
|
-
</details>
|
|
3721
|
-
|
|
3722
3418
|
<details><summary><code>client.encounters.v4.<a href="/src/api/resources/encounters/resources/v4/client/Client.ts">update</a>(encounterId, { ...params }) -> core.APIResponse<CandidApi.Encounter, CandidApi.encounters.v4.update.Error></code></summary>
|
|
3723
3419
|
<dl>
|
|
3724
3420
|
<dd>
|
|
@@ -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
|
-
};
|