candidhealth 0.41.1 → 0.41.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +15 -10
- 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 +6 -6
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +5 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +5 -1
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
- 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.js +5 -5
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +3 -2
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
- 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/payerPlanGroups/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 +7 -7
- package/api/resources/preEncounter/resources/common/types/Gender.d.ts +3 -1
- package/api/resources/preEncounter/resources/common/types/Gender.js +2 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +16 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +52 -9
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.d.ts +22 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.js +57 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +10 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
- package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- 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 +3 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +14 -11
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
- 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/superbills/client/Client.d.ts +30 -0
- package/api/resources/superbills/client/Client.js +17 -0
- package/api/resources/superbills/client/index.d.ts +1 -0
- package/api/resources/superbills/client/index.js +2 -0
- package/api/resources/superbills/index.d.ts +2 -0
- package/api/resources/superbills/index.js +18 -0
- package/api/resources/superbills/resources/index.d.ts +1 -0
- package/api/resources/superbills/resources/index.js +37 -0
- package/api/resources/superbills/resources/v1/client/Client.d.ts +49 -0
- package/api/resources/superbills/resources/v1/client/Client.js +137 -0
- package/api/resources/superbills/resources/v1/client/createSuperbill.d.ts +28 -0
- package/api/resources/superbills/resources/v1/client/createSuperbill.js +68 -0
- package/api/resources/superbills/resources/v1/client/index.d.ts +2 -0
- package/api/resources/superbills/resources/v1/client/index.js +41 -0
- package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +33 -0
- package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +5 -0
- package/api/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/superbills/resources/v1/client/requests/index.js +2 -0
- package/api/resources/superbills/resources/v1/index.d.ts +2 -0
- package/api/resources/superbills/resources/v1/index.js +18 -0
- package/api/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
- package/api/resources/superbills/resources/v1/types/Superbill.js +5 -0
- package/api/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +8 -0
- package/api/resources/superbills/resources/v1/types/SuperbillResponse.js +5 -0
- package/api/resources/superbills/resources/v1/types/index.d.ts +2 -0
- package/api/resources/superbills/resources/v1/types/index.js +18 -0
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +15 -10
- 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 +6 -6
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +5 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +5 -1
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +4 -2
- 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.js +5 -5
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
- 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/payerPlanGroups/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 +7 -7
- package/dist/api/resources/preEncounter/resources/common/types/Gender.d.ts +3 -1
- package/dist/api/resources/preEncounter/resources/common/types/Gender.js +2 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +16 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +52 -9
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.d.ts +22 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/batchUpdatePpg.js +57 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +10 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
- 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 +3 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +14 -11
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
- 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/superbills/client/Client.d.ts +30 -0
- package/dist/api/resources/superbills/client/Client.js +17 -0
- package/dist/api/resources/superbills/client/index.d.ts +1 -0
- package/dist/api/resources/superbills/client/index.js +2 -0
- package/dist/api/resources/superbills/index.d.ts +2 -0
- package/dist/api/resources/superbills/index.js +18 -0
- package/dist/api/resources/superbills/resources/index.d.ts +1 -0
- package/dist/api/resources/superbills/resources/index.js +37 -0
- package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +49 -0
- package/dist/api/resources/superbills/resources/v1/client/Client.js +137 -0
- package/dist/api/resources/superbills/resources/v1/client/createSuperbill.d.ts +28 -0
- package/dist/api/resources/superbills/resources/v1/client/createSuperbill.js +68 -0
- package/dist/api/resources/superbills/resources/v1/client/index.d.ts +2 -0
- package/dist/api/resources/superbills/resources/v1/client/index.js +41 -0
- package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +33 -0
- package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +5 -0
- package/dist/api/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/superbills/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/superbills/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/superbills/resources/v1/index.js +18 -0
- package/dist/api/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
- package/dist/api/resources/superbills/resources/v1/types/Superbill.js +5 -0
- package/dist/api/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +8 -0
- package/dist/api/resources/superbills/resources/v1/types/SuperbillResponse.js +5 -0
- package/dist/api/resources/superbills/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/superbills/resources/v1/types/index.js +18 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +9 -1
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +1 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +1 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/common/types/Gender.js +11 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +18 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +49 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +1 -0
- package/dist/serialization/resources/superbills/index.d.ts +1 -0
- package/dist/serialization/resources/superbills/index.js +17 -0
- package/dist/serialization/resources/superbills/resources/index.d.ts +1 -0
- package/dist/serialization/resources/superbills/resources/index.js +37 -0
- package/dist/serialization/resources/superbills/resources/v1/client/createSuperbill.d.ts +15 -0
- package/dist/serialization/resources/superbills/resources/v1/client/createSuperbill.js +71 -0
- package/dist/serialization/resources/superbills/resources/v1/client/index.d.ts +2 -0
- package/dist/serialization/resources/superbills/resources/v1/client/index.js +41 -0
- package/dist/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +17 -0
- package/dist/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +48 -0
- package/dist/serialization/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/superbills/resources/v1/client/requests/index.js +5 -0
- package/dist/serialization/resources/superbills/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/superbills/resources/v1/index.js +18 -0
- package/dist/serialization/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
- package/dist/serialization/resources/superbills/resources/v1/types/Superbill.js +49 -0
- package/dist/serialization/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +13 -0
- package/dist/serialization/resources/superbills/resources/v1/types/SuperbillResponse.js +44 -0
- package/dist/serialization/resources/superbills/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/superbills/resources/v1/types/index.js +18 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +144 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +1 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +9 -1
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +1 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +1 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +3 -2
- package/serialization/resources/preEncounter/resources/common/types/Gender.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/common/types/Gender.js +11 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.d.ts +18 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PayerPlanGroupFields.js +49 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +1 -0
- package/serialization/resources/superbills/index.d.ts +1 -0
- package/serialization/resources/superbills/index.js +17 -0
- package/serialization/resources/superbills/resources/index.d.ts +1 -0
- package/serialization/resources/superbills/resources/index.js +37 -0
- package/serialization/resources/superbills/resources/v1/client/createSuperbill.d.ts +15 -0
- package/serialization/resources/superbills/resources/v1/client/createSuperbill.js +71 -0
- package/serialization/resources/superbills/resources/v1/client/index.d.ts +2 -0
- package/serialization/resources/superbills/resources/v1/client/index.js +41 -0
- package/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +17 -0
- package/serialization/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.js +48 -0
- package/serialization/resources/superbills/resources/v1/client/requests/index.d.ts +1 -0
- package/serialization/resources/superbills/resources/v1/client/requests/index.js +5 -0
- package/serialization/resources/superbills/resources/v1/index.d.ts +2 -0
- package/serialization/resources/superbills/resources/v1/index.js +18 -0
- package/serialization/resources/superbills/resources/v1/types/Superbill.d.ts +18 -0
- package/serialization/resources/superbills/resources/v1/types/Superbill.js +49 -0
- package/serialization/resources/superbills/resources/v1/types/SuperbillResponse.d.ts +13 -0
- package/serialization/resources/superbills/resources/v1/types/SuperbillResponse.js +44 -0
- package/serialization/resources/superbills/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/superbills/resources/v1/types/index.js +18 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -30,6 +30,7 @@ import * as CandidApi from "../../../../../../../../index";
|
|
|
30
30
|
* socialSecurityNumber: "string",
|
|
31
31
|
* biologicalSex: "FEMALE",
|
|
32
32
|
* sexualOrientation: "HETEROSEXUAL",
|
|
33
|
+
* pronouns: ["string"],
|
|
33
34
|
* race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
|
|
34
35
|
* ethnicity: "HISPANIC_OR_LATINO",
|
|
35
36
|
* disabilityStatus: "DISABLED",
|
|
@@ -31,6 +31,7 @@ import * as CandidApi from "../../../../../../../../index";
|
|
|
31
31
|
* socialSecurityNumber: "string",
|
|
32
32
|
* biologicalSex: "FEMALE",
|
|
33
33
|
* sexualOrientation: "HETEROSEXUAL",
|
|
34
|
+
* pronouns: ["string"],
|
|
34
35
|
* race: "AMERICAN_INDIAN_OR_ALASKA_NATIVE",
|
|
35
36
|
* ethnicity: "HISPANIC_OR_LATINO",
|
|
36
37
|
* disabilityStatus: "DISABLED",
|
package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export interface MutablePatient {
|
|
|
18
18
|
biologicalSex: CandidApi.preEncounter.Sex;
|
|
19
19
|
/** The sexual orientation of the patient. */
|
|
20
20
|
sexualOrientation?: CandidApi.preEncounter.SexualOrientation;
|
|
21
|
+
/** The pronouns of the patient. */
|
|
22
|
+
pronouns?: string[];
|
|
21
23
|
race?: CandidApi.preEncounter.Race;
|
|
22
24
|
ethnicity?: CandidApi.preEncounter.Ethnicity;
|
|
23
25
|
disabilityStatus?: CandidApi.preEncounter.DisabilityStatus;
|
|
@@ -73,7 +73,7 @@ class V1 {
|
|
|
73
73
|
const _response = yield core.fetcher({
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}`),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.
|
|
76
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
requestType: "json",
|
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -123,7 +123,7 @@ class V1 {
|
|
|
123
123
|
const _response = yield core.fetcher({
|
|
124
124
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/tags/v1"),
|
|
125
125
|
method: "GET",
|
|
126
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.
|
|
126
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
127
127
|
contentType: "application/json",
|
|
128
128
|
queryParameters: _queryParams,
|
|
129
129
|
requestType: "json",
|
|
@@ -165,7 +165,7 @@ class V1 {
|
|
|
165
165
|
const _response = yield core.fetcher({
|
|
166
166
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/tags/v1"),
|
|
167
167
|
method: "POST",
|
|
168
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.
|
|
168
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
169
169
|
contentType: "application/json",
|
|
170
170
|
requestType: "json",
|
|
171
171
|
body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -209,7 +209,7 @@ class V1 {
|
|
|
209
209
|
const _response = yield core.fetcher({
|
|
210
210
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
211
211
|
method: "PUT",
|
|
212
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.
|
|
212
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
213
213
|
contentType: "application/json",
|
|
214
214
|
requestType: "json",
|
|
215
215
|
body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -250,7 +250,7 @@ class V1 {
|
|
|
250
250
|
const _response = yield core.fetcher({
|
|
251
251
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
252
252
|
method: "DELETE",
|
|
253
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.
|
|
253
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
254
254
|
contentType: "application/json",
|
|
255
255
|
requestType: "json",
|
|
256
256
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -82,7 +82,7 @@ class ServiceFacility {
|
|
|
82
82
|
const _response = yield core.fetcher({
|
|
83
83
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/service_facility/v2/${encodeURIComponent(serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId))}`),
|
|
84
84
|
method: "PATCH",
|
|
85
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.
|
|
85
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
body: serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -120,7 +120,7 @@ class V2 {
|
|
|
120
120
|
const _response = yield core.fetcher({
|
|
121
121
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/service-lines/v2"),
|
|
122
122
|
method: "POST",
|
|
123
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.
|
|
123
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
124
124
|
contentType: "application/json",
|
|
125
125
|
requestType: "json",
|
|
126
126
|
body: serializers.serviceLines.v2.ServiceLineCreateStandalone.jsonOrThrow(request, {
|
|
@@ -209,7 +209,7 @@ class V2 {
|
|
|
209
209
|
const _response = yield core.fetcher({
|
|
210
210
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
|
|
211
211
|
method: "PATCH",
|
|
212
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.
|
|
212
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
213
213
|
contentType: "application/json",
|
|
214
214
|
requestType: "json",
|
|
215
215
|
body: serializers.serviceLines.v2.ServiceLineUpdate.jsonOrThrow(request, {
|
|
@@ -265,7 +265,7 @@ class V2 {
|
|
|
265
265
|
const _response = yield core.fetcher({
|
|
266
266
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
|
|
267
267
|
method: "DELETE",
|
|
268
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.
|
|
268
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
269
269
|
contentType: "application/json",
|
|
270
270
|
requestType: "json",
|
|
271
271
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import { V1 } from "../resources/v1/client/Client";
|
|
7
|
+
export declare namespace Superbills {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
}
|
|
14
|
+
interface RequestOptions {
|
|
15
|
+
/** The maximum time to wait for a response in seconds. */
|
|
16
|
+
timeoutInSeconds?: number;
|
|
17
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
18
|
+
maxRetries?: number;
|
|
19
|
+
/** A hook to abort the request. */
|
|
20
|
+
abortSignal?: AbortSignal;
|
|
21
|
+
/** Additional headers to include in the request. */
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare class Superbills {
|
|
26
|
+
protected readonly _options: Superbills.Options;
|
|
27
|
+
protected _v1: V1 | undefined;
|
|
28
|
+
constructor(_options?: Superbills.Options);
|
|
29
|
+
get v1(): V1;
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Superbills = void 0;
|
|
7
|
+
const Client_1 = require("../resources/v1/client/Client");
|
|
8
|
+
class Superbills {
|
|
9
|
+
constructor(_options = {}) {
|
|
10
|
+
this._options = _options;
|
|
11
|
+
}
|
|
12
|
+
get v1() {
|
|
13
|
+
var _a;
|
|
14
|
+
return ((_a = this._v1) !== null && _a !== void 0 ? _a : (this._v1 = new Client_1.V1(this._options)));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.Superbills = Superbills;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from "./v1";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.v1 = void 0;
|
|
37
|
+
exports.v1 = __importStar(require("./v1"));
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as CandidApi from "../../../../../index";
|
|
7
|
+
export declare namespace V1 {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
}
|
|
14
|
+
interface RequestOptions {
|
|
15
|
+
/** The maximum time to wait for a response in seconds. */
|
|
16
|
+
timeoutInSeconds?: number;
|
|
17
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
18
|
+
maxRetries?: number;
|
|
19
|
+
/** A hook to abort the request. */
|
|
20
|
+
abortSignal?: AbortSignal;
|
|
21
|
+
/** Additional headers to include in the request. */
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare class V1 {
|
|
26
|
+
protected readonly _options: V1.Options;
|
|
27
|
+
constructor(_options?: V1.Options);
|
|
28
|
+
/**
|
|
29
|
+
* @param {CandidApi.superbills.v1.CreateSuperbillRequest} request
|
|
30
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.superbills.v1.createSuperbill({
|
|
34
|
+
* patientExternalId: CandidApi.PatientExternalId("string"),
|
|
35
|
+
* dateRangeMin: "2023-01-15",
|
|
36
|
+
* dateRangeMax: "2023-01-15",
|
|
37
|
+
* payToAddress: {
|
|
38
|
+
* address1: "123 Main St",
|
|
39
|
+
* address2: "Apt 1",
|
|
40
|
+
* city: "New York",
|
|
41
|
+
* state: "NY",
|
|
42
|
+
* zipCode: "10001",
|
|
43
|
+
* zipPlusFourCode: "1234"
|
|
44
|
+
* }
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
createSuperbill(request: CandidApi.superbills.v1.CreateSuperbillRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.superbills.v1.SuperbillResponse, CandidApi.superbills.v1.createSuperbill.Error>>;
|
|
48
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.V1 = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../../../core"));
|
|
54
|
+
const CandidApi = __importStar(require("../../../../../index"));
|
|
55
|
+
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
56
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
57
|
+
class V1 {
|
|
58
|
+
constructor(_options = {}) {
|
|
59
|
+
this._options = _options;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @param {CandidApi.superbills.v1.CreateSuperbillRequest} request
|
|
63
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* await client.superbills.v1.createSuperbill({
|
|
67
|
+
* patientExternalId: CandidApi.PatientExternalId("string"),
|
|
68
|
+
* dateRangeMin: "2023-01-15",
|
|
69
|
+
* dateRangeMax: "2023-01-15",
|
|
70
|
+
* payToAddress: {
|
|
71
|
+
* address1: "123 Main St",
|
|
72
|
+
* address2: "Apt 1",
|
|
73
|
+
* city: "New York",
|
|
74
|
+
* state: "NY",
|
|
75
|
+
* zipCode: "10001",
|
|
76
|
+
* zipPlusFourCode: "1234"
|
|
77
|
+
* }
|
|
78
|
+
* })
|
|
79
|
+
*/
|
|
80
|
+
createSuperbill(request, requestOptions) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
var _a, _b, _c;
|
|
83
|
+
const _response = yield core.fetcher({
|
|
84
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/superbill/v1"),
|
|
85
|
+
method: "POST",
|
|
86
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.3", "User-Agent": "candidhealth/0.41.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
|
+
contentType: "application/json",
|
|
88
|
+
requestType: "json",
|
|
89
|
+
body: serializers.superbills.v1.CreateSuperbillRequest.jsonOrThrow(request, {
|
|
90
|
+
unrecognizedObjectKeys: "strip",
|
|
91
|
+
}),
|
|
92
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
93
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
94
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
|
+
});
|
|
96
|
+
if (_response.ok) {
|
|
97
|
+
return {
|
|
98
|
+
ok: true,
|
|
99
|
+
body: serializers.superbills.v1.SuperbillResponse.parseOrThrow(_response.body, {
|
|
100
|
+
unrecognizedObjectKeys: "passthrough",
|
|
101
|
+
allowUnrecognizedUnionMembers: true,
|
|
102
|
+
allowUnrecognizedEnumValues: true,
|
|
103
|
+
breadcrumbsPrefix: ["response"],
|
|
104
|
+
}),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
if (_response.error.reason === "status-code") {
|
|
108
|
+
switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
|
|
109
|
+
case "UnprocessableEntityError":
|
|
110
|
+
return {
|
|
111
|
+
ok: false,
|
|
112
|
+
error: serializers.superbills.v1.createSuperbill.Error.parseOrThrow(_response.error.body, {
|
|
113
|
+
unrecognizedObjectKeys: "passthrough",
|
|
114
|
+
allowUnrecognizedUnionMembers: true,
|
|
115
|
+
allowUnrecognizedEnumValues: true,
|
|
116
|
+
breadcrumbsPrefix: ["response"],
|
|
117
|
+
}),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
ok: false,
|
|
123
|
+
error: CandidApi.superbills.v1.createSuperbill.Error._unknown(_response.error),
|
|
124
|
+
};
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
_getAuthorizationHeader() {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
130
|
+
if (bearer != null) {
|
|
131
|
+
return `Bearer ${bearer}`;
|
|
132
|
+
}
|
|
133
|
+
return undefined;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
exports.V1 = V1;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 type Error = CandidApi.superbills.v1.createSuperbill.Error.UnprocessableEntityError | CandidApi.superbills.v1.createSuperbill.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface UnprocessableEntityError extends _Utils {
|
|
9
|
+
errorName: "UnprocessableEntityError";
|
|
10
|
+
content: CandidApi.UnprocessableEntityErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface _Unknown extends _Utils {
|
|
13
|
+
errorName: void;
|
|
14
|
+
content: core.Fetcher.Error;
|
|
15
|
+
}
|
|
16
|
+
interface _Utils {
|
|
17
|
+
_visit: <_Result>(visitor: CandidApi.superbills.v1.createSuperbill.Error._Visitor<_Result>) => _Result;
|
|
18
|
+
}
|
|
19
|
+
interface _Visitor<_Result> {
|
|
20
|
+
unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
|
|
21
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Error: {
|
|
25
|
+
readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.superbills.v1.createSuperbill.Error.UnprocessableEntityError;
|
|
26
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.superbills.v1.createSuperbill.Error._Unknown;
|
|
27
|
+
readonly _visit: <_Result>(value: CandidApi.superbills.v1.createSuperbill.Error, visitor: CandidApi.superbills.v1.createSuperbill.Error._Visitor<_Result>) => _Result;
|
|
28
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Error = void 0;
|
|
40
|
+
const CandidApi = __importStar(require("../../../../../index"));
|
|
41
|
+
exports.Error = {
|
|
42
|
+
unprocessableEntityError: (value) => {
|
|
43
|
+
return {
|
|
44
|
+
content: value,
|
|
45
|
+
errorName: "UnprocessableEntityError",
|
|
46
|
+
_visit: function (visitor) {
|
|
47
|
+
return CandidApi.superbills.v1.createSuperbill.Error._visit(this, visitor);
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
_unknown: (fetcherError) => {
|
|
52
|
+
return {
|
|
53
|
+
errorName: undefined,
|
|
54
|
+
content: fetcherError,
|
|
55
|
+
_visit: function (visitor) {
|
|
56
|
+
return CandidApi.superbills.v1.createSuperbill.Error._visit(this, visitor);
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
_visit: (value, visitor) => {
|
|
61
|
+
switch (value.errorName) {
|
|
62
|
+
case "UnprocessableEntityError":
|
|
63
|
+
return visitor.unprocessableEntityError(value.content);
|
|
64
|
+
default:
|
|
65
|
+
return visitor._other(value);
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.createSuperbill = void 0;
|
|
40
|
+
__exportStar(require("./requests"), exports);
|
|
41
|
+
exports.createSuperbill = __importStar(require("./createSuperbill"));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* patientExternalId: CandidApi.PatientExternalId("string"),
|
|
9
|
+
* dateRangeMin: "2023-01-15",
|
|
10
|
+
* dateRangeMax: "2023-01-15",
|
|
11
|
+
* payToAddress: {
|
|
12
|
+
* address1: "123 Main St",
|
|
13
|
+
* address2: "Apt 1",
|
|
14
|
+
* city: "New York",
|
|
15
|
+
* state: "NY",
|
|
16
|
+
* zipCode: "10001",
|
|
17
|
+
* zipPlusFourCode: "1234"
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateSuperbillRequest {
|
|
22
|
+
/** Empty string not allowed */
|
|
23
|
+
patientExternalId: CandidApi.PatientExternalId;
|
|
24
|
+
/** Minimum (inclusive) date selected for the superbill */
|
|
25
|
+
dateRangeMin: string;
|
|
26
|
+
/** Maximum (inclusive) date selected for the superbill */
|
|
27
|
+
dateRangeMax: string;
|
|
28
|
+
/**
|
|
29
|
+
* Address that will be displayed on the superbill as the 'Pay to' Address. If not provided this value will be set from available encounter data.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
payToAddress?: CandidApi.StreetAddressShortZip;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type CreateSuperbillRequest } from "./CreateSuperbillRequest";
|