candidhealth 1.7.0 → 1.8.1
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/default/client/Client.d.ts +3 -1
- package/api/resources/auth/resources/default/client/Client.js +5 -3
- package/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +9 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/api/resources/chargeCapture/resources/v1/client/Client.js +76 -7
- package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +36 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +42 -5
- package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +20 -0
- package/api/resources/commons/types/Clearinghouse.d.ts +14 -0
- package/api/resources/commons/types/Clearinghouse.js +16 -0
- package/api/resources/commons/types/ProcedureModifier.d.ts +13 -2
- package/api/resources/commons/types/ProcedureModifier.js +11 -0
- package/api/resources/commons/types/index.d.ts +1 -0
- package/api/resources/commons/types/index.js +1 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/credentialing/resources/v2/client/Client.js +10 -10
- 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/encounterAttachments/resources/v1/client/Client.js +3 -3
- package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +1 -1
- package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +1 -1
- package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +1 -1
- package/api/resources/encounters/resources/v4/client/Client.d.ts +108 -9
- package/api/resources/encounters/resources/v4/client/Client.js +279 -15
- package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +70 -0
- package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +145 -0
- package/api/resources/encounters/resources/v4/client/createUniversal.d.ts +94 -0
- package/api/resources/encounters/resources/v4/client/createUniversal.js +189 -0
- package/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
- package/api/resources/encounters/resources/v4/client/index.js +4 -1
- package/api/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
- package/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +70 -0
- package/api/resources/encounters/resources/v4/client/updateUniversal.js +145 -0
- package/api/resources/encounters/resources/v4/types/Encounter.d.ts +15 -29
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +10 -11
- package/api/resources/encounters/resources/v4/types/EncounterCreate.d.ts +27 -0
- package/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +3 -36
- package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +9 -4
- package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +10 -16
- package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +2 -9
- package/api/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +5 -0
- package/api/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +17 -0
- package/api/resources/encounters/resources/v4/types/index.d.ts +7 -4
- package/api/resources/encounters/resources/v4/types/index.js +7 -4
- package/api/resources/encountersUniversal/index.d.ts +1 -0
- package/api/resources/encountersUniversal/index.js +17 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +49 -0
- package/api/resources/{encounters/resources/v4/client/requests/EncounterCreate.d.ts → encountersUniversal/types/UniversalEncounterCreateBase.d.ts} +9 -70
- package/api/resources/encountersUniversal/types/UniversalEncounterCreateBase.js +5 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +47 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +5 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +40 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +5 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +39 -0
- package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +5 -0
- package/api/resources/{encounters/resources/v4/client/requests/EncounterUpdate.d.ts → encountersUniversal/types/UniversalEncounterUpdateBase.d.ts} +9 -18
- package/api/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js +5 -0
- package/api/resources/encountersUniversal/types/index.d.ts +6 -0
- package/api/resources/encountersUniversal/types/index.js +22 -0
- 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.d.ts +12 -0
- package/api/resources/feeSchedules/resources/v3/client/Client.js +55 -11
- package/api/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts +22 -0
- package/api/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.js +57 -0
- package/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
- package/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
- package/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
- package/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +5 -0
- package/api/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
- package/api/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
- package/api/resources/financials/types/PatientTransactionSource.d.ts +2 -1
- package/api/resources/financials/types/PatientTransactionSource.js +1 -0
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +2 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +2 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
- package/api/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
- package/api/resources/healthCareCodeInformation/resources/v1/client/Client.js +2 -2
- package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +11 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +11 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +11 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +12 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +19 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +12 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +12 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +12 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +12 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +11 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +12 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +12 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +11 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +12 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +5 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- 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/individual/types/Patient.d.ts +2 -0
- package/api/resources/individual/types/PatientBase.d.ts +2 -2
- package/api/resources/individual/types/PatientCreate.d.ts +2 -0
- package/api/resources/individual/types/PatientUpdate.d.ts +3 -2
- package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +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 +7 -7
- package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +3 -1
- package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
- 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/patientAr/resources/v1/client/Client.js +2 -2
- 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/client/Client.d.ts +3 -0
- package/api/resources/payers/client/Client.js +5 -0
- package/api/resources/payers/resources/index.d.ts +1 -0
- package/api/resources/payers/resources/index.js +2 -1
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/payers/resources/v4/client/Client.d.ts +45 -0
- package/api/resources/payers/resources/v4/client/Client.js +157 -0
- package/api/resources/payers/resources/v4/client/get.d.ts +22 -0
- package/api/resources/payers/resources/v4/client/get.js +57 -0
- package/api/resources/payers/resources/v4/client/getAll.d.ts +22 -0
- package/api/resources/payers/resources/v4/client/getAll.js +57 -0
- package/api/resources/payers/resources/v4/client/index.d.ts +3 -0
- package/api/resources/payers/resources/v4/client/index.js +42 -0
- package/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.d.ts +16 -0
- package/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.js +5 -0
- package/api/resources/payers/resources/v4/client/requests/index.d.ts +1 -0
- package/api/resources/payers/resources/v4/client/requests/index.js +2 -0
- package/api/resources/payers/resources/v4/index.d.ts +2 -0
- package/api/resources/payers/resources/v4/index.js +18 -0
- package/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
- package/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +5 -0
- package/api/resources/payers/resources/v4/types/Payer.d.ts +14 -0
- package/api/resources/payers/resources/v4/types/Payer.js +5 -0
- package/api/resources/payers/resources/v4/types/PayerIds.d.ts +11 -0
- package/api/resources/payers/resources/v4/types/PayerIds.js +5 -0
- package/api/resources/payers/resources/v4/types/PayerPage.d.ts +7 -0
- package/api/resources/payers/resources/v4/types/PayerPage.js +5 -0
- package/api/resources/payers/resources/v4/types/PayerUuid.d.ts +8 -0
- package/api/resources/payers/resources/v4/types/PayerUuid.js +9 -0
- package/api/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +11 -0
- package/api/resources/payers/resources/v4/types/PrimaryPayerIds.js +5 -0
- package/api/resources/payers/resources/v4/types/SupportState.d.ts +9 -0
- package/api/resources/payers/resources/v4/types/SupportState.js +11 -0
- package/api/resources/payers/resources/v4/types/index.d.ts +7 -0
- package/api/resources/payers/resources/v4/types/index.js +23 -0
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +0 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -12
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
- package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +6 -6
- 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 +10 -12
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +64 -23
- package/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +28 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +68 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +0 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +0 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +7 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +5 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +2 -1
- package/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
- package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -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.d.ts +23 -2
- package/api/resources/serviceLines/resources/v2/client/Client.js +120 -5
- package/api/resources/serviceLines/resources/v2/client/createUniversal.d.ts +28 -0
- package/api/resources/serviceLines/resources/v2/client/createUniversal.js +68 -0
- package/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/api/resources/serviceLines/resources/v2/client/index.js +3 -1
- package/api/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +40 -0
- package/api/resources/serviceLines/resources/v2/client/updateUniversal.js +90 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +7 -4
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -45
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +7 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +47 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +9 -9
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -47
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +7 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +49 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -45
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +45 -0
- package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +11 -0
- package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +13 -0
- package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +12 -0
- package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +5 -0
- package/api/resources/serviceLines/resources/v2/types/index.d.ts +8 -0
- package/api/resources/serviceLines/resources/v2/types/index.js +8 -0
- package/api/resources/superbills/resources/v1/client/Client.js +1 -1
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
- package/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +1 -7
- package/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +12 -0
- package/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +5 -0
- package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +30 -0
- package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +5 -0
- package/api/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/api/resources/x12/resources/v1/types/index.js +2 -0
- package/dist/api/resources/auth/resources/default/client/Client.d.ts +3 -1
- package/dist/api/resources/auth/resources/default/client/Client.js +5 -3
- package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +9 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +76 -7
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +36 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +42 -5
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +20 -0
- package/dist/api/resources/commons/types/Clearinghouse.d.ts +14 -0
- package/dist/api/resources/commons/types/Clearinghouse.js +16 -0
- package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -2
- package/dist/api/resources/commons/types/ProcedureModifier.js +11 -0
- package/dist/api/resources/commons/types/index.d.ts +1 -0
- package/dist/api/resources/commons/types/index.js +1 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/credentialing/resources/v2/client/Client.js +10 -10
- 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/encounterAttachments/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
- package/dist/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +1 -1
- package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +1 -1
- package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +1 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +108 -9
- package/dist/api/resources/encounters/resources/v4/client/Client.js +279 -15
- package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
- package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
- package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +70 -0
- package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +145 -0
- package/dist/api/resources/encounters/resources/v4/client/createUniversal.d.ts +94 -0
- package/dist/api/resources/encounters/resources/v4/client/createUniversal.js +189 -0
- package/dist/api/resources/encounters/resources/v4/client/index.d.ts +3 -0
- package/dist/api/resources/encounters/resources/v4/client/index.js +4 -1
- package/dist/api/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
- package/dist/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +70 -0
- package/dist/api/resources/encounters/resources/v4/client/updateUniversal.js +145 -0
- package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +15 -29
- package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +10 -11
- package/dist/api/resources/encounters/resources/v4/types/EncounterCreate.d.ts +27 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterCreate.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +3 -36
- package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +9 -4
- package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +10 -16
- package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +2 -9
- package/dist/api/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +5 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +17 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterUpdate.js +5 -0
- package/dist/api/resources/encounters/resources/v4/types/index.d.ts +7 -4
- package/dist/api/resources/encounters/resources/v4/types/index.js +7 -4
- package/dist/api/resources/encountersUniversal/index.d.ts +1 -0
- package/dist/api/resources/encountersUniversal/index.js +17 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +49 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.js +5 -0
- package/dist/api/resources/{encounters/resources/v4/client/requests/EncounterCreate.d.ts → encountersUniversal/types/UniversalEncounterCreateBase.d.ts} +9 -70
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateBase.js +5 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +47 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +5 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +40 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +5 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +39 -0
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +5 -0
- package/dist/api/resources/{encounters/resources/v4/client/requests/EncounterUpdate.d.ts → encountersUniversal/types/UniversalEncounterUpdateBase.d.ts} +9 -18
- package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js +5 -0
- package/dist/api/resources/encountersUniversal/types/index.d.ts +6 -0
- package/dist/api/resources/encountersUniversal/types/index.js +22 -0
- 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.d.ts +12 -0
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +55 -11
- package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts +22 -0
- package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.js +57 -0
- package/dist/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
- package/dist/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +5 -0
- package/dist/api/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
- package/dist/api/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
- package/dist/api/resources/financials/types/PatientTransactionSource.d.ts +2 -1
- package/dist/api/resources/financials/types/PatientTransactionSource.js +1 -0
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +2 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +2 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
- package/dist/api/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +11 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +11 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +11 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +12 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +19 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +12 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +12 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +12 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +12 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +11 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +12 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +12 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +11 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +12 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +5 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- 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/individual/types/Patient.d.ts +2 -0
- package/dist/api/resources/individual/types/PatientBase.d.ts +2 -2
- package/dist/api/resources/individual/types/PatientCreate.d.ts +2 -0
- package/dist/api/resources/individual/types/PatientUpdate.d.ts +3 -2
- package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +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 +7 -7
- package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +3 -1
- package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
- 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/patientAr/resources/v1/client/Client.js +2 -2
- 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/client/Client.d.ts +3 -0
- package/dist/api/resources/payers/client/Client.js +5 -0
- package/dist/api/resources/payers/resources/index.d.ts +1 -0
- package/dist/api/resources/payers/resources/index.js +2 -1
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/payers/resources/v4/client/Client.d.ts +45 -0
- package/dist/api/resources/payers/resources/v4/client/Client.js +157 -0
- package/dist/api/resources/payers/resources/v4/client/get.d.ts +22 -0
- package/dist/api/resources/payers/resources/v4/client/get.js +57 -0
- package/dist/api/resources/payers/resources/v4/client/getAll.d.ts +22 -0
- package/dist/api/resources/payers/resources/v4/client/getAll.js +57 -0
- package/dist/api/resources/payers/resources/v4/client/index.d.ts +3 -0
- package/dist/api/resources/payers/resources/v4/client/index.js +42 -0
- package/dist/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.d.ts +16 -0
- package/dist/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.js +5 -0
- package/dist/api/resources/payers/resources/v4/client/requests/index.d.ts +1 -0
- package/dist/api/resources/payers/resources/v4/client/requests/index.js +2 -0
- package/dist/api/resources/payers/resources/v4/index.d.ts +2 -0
- package/dist/api/resources/payers/resources/v4/index.js +18 -0
- package/dist/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
- package/dist/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +5 -0
- package/dist/api/resources/payers/resources/v4/types/Payer.d.ts +14 -0
- package/dist/api/resources/payers/resources/v4/types/Payer.js +5 -0
- package/dist/api/resources/payers/resources/v4/types/PayerIds.d.ts +11 -0
- package/dist/api/resources/payers/resources/v4/types/PayerIds.js +5 -0
- package/dist/api/resources/payers/resources/v4/types/PayerPage.d.ts +7 -0
- package/dist/api/resources/payers/resources/v4/types/PayerPage.js +5 -0
- package/dist/api/resources/payers/resources/v4/types/PayerUuid.d.ts +8 -0
- package/dist/api/resources/payers/resources/v4/types/PayerUuid.js +9 -0
- package/dist/api/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +11 -0
- package/dist/api/resources/payers/resources/v4/types/PrimaryPayerIds.js +5 -0
- package/dist/api/resources/payers/resources/v4/types/SupportState.d.ts +9 -0
- package/dist/api/resources/payers/resources/v4/types/SupportState.js +11 -0
- package/dist/api/resources/payers/resources/v4/types/index.d.ts +7 -0
- package/dist/api/resources/payers/resources/v4/types/index.js +23 -0
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +0 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -12
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +6 -6
- 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 +10 -12
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +64 -23
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +28 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +68 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +0 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +0 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +7 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +5 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +2 -1
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -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.d.ts +23 -2
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +120 -5
- package/dist/api/resources/serviceLines/resources/v2/client/createUniversal.d.ts +28 -0
- package/dist/api/resources/serviceLines/resources/v2/client/createUniversal.js +68 -0
- package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/dist/api/resources/serviceLines/resources/v2/client/index.js +3 -1
- package/dist/api/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +40 -0
- package/dist/api/resources/serviceLines/resources/v2/client/updateUniversal.js +90 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +7 -4
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -45
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +7 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +47 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +9 -9
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -47
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +7 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +49 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -45
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +45 -0
- package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +11 -0
- package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +13 -0
- package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +12 -0
- package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +5 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +8 -0
- package/dist/api/resources/serviceLines/resources/v2/types/index.js +8 -0
- package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
- 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/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +1 -7
- package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +12 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +5 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +30 -0
- package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +5 -0
- package/dist/api/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/x12/resources/v1/types/index.js +2 -0
- package/dist/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +3 -0
- package/dist/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js +3 -0
- package/dist/serialization/resources/commons/types/Clearinghouse.d.ts +10 -0
- package/dist/serialization/resources/commons/types/Clearinghouse.js +50 -0
- package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/dist/serialization/resources/commons/types/ProcedureModifier.js +11 -0
- package/dist/serialization/resources/commons/types/index.d.ts +1 -0
- package/dist/serialization/resources/commons/types/index.js +1 -0
- package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
- package/dist/serialization/resources/encounters/resources/v4/client/create.js +6 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +49 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +112 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +69 -0
- package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.js +136 -0
- package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -1
- package/dist/serialization/resources/encounters/resources/v4/client/index.js +4 -5
- package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +50 -0
- package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.js +113 -0
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +3 -4
- package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -4
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -2
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +2 -2
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreate.d.ts +22 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreate.js +55 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +4 -28
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.js +4 -28
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +2 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -2
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -2
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +11 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.js +41 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +16 -0
- package/dist/serialization/resources/encounters/resources/v4/types/EncounterUpdate.js +49 -0
- package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +7 -4
- package/dist/serialization/resources/encounters/resources/v4/types/index.js +7 -4
- package/dist/serialization/resources/encountersUniversal/index.d.ts +1 -0
- package/dist/serialization/resources/encountersUniversal/index.js +17 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +39 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +72 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +50 -0
- package/{serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js → dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.js} +21 -31
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +37 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +70 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +36 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +69 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +32 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +65 -0
- package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +46 -0
- package/{serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js → dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js} +20 -22
- package/dist/serialization/resources/encountersUniversal/types/index.d.ts +6 -0
- package/dist/serialization/resources/encountersUniversal/types/index.js +22 -0
- package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts +9 -0
- package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.js +41 -0
- package/dist/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
- package/dist/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
- package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
- package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +44 -0
- package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/index.js +3 -1
- package/dist/serialization/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
- package/dist/serialization/resources/feeSchedules/resources/v3/types/ValidationError.js +1 -0
- package/dist/serialization/resources/financials/types/PatientTransactionSource.d.ts +1 -1
- package/dist/serialization/resources/financials/types/PatientTransactionSource.js +10 -1
- package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
- package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.js +1 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +16 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +16 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +16 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +18 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +51 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +37 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +68 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +18 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +51 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +18 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +51 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +18 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +51 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +18 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +51 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +16 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +18 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +51 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +18 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +51 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +16 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +49 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +18 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +51 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/resources/individual/types/Patient.d.ts +1 -0
- package/dist/serialization/resources/individual/types/Patient.js +1 -0
- package/dist/serialization/resources/individual/types/PatientCreate.d.ts +1 -0
- package/dist/serialization/resources/individual/types/PatientCreate.js +1 -0
- package/dist/serialization/resources/individual/types/PatientUpdate.d.ts +1 -0
- package/dist/serialization/resources/individual/types/PatientUpdate.js +1 -0
- package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +1 -0
- package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +1 -0
- package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
- package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
- package/dist/serialization/resources/payers/resources/index.d.ts +1 -0
- package/dist/serialization/resources/payers/resources/index.js +2 -1
- package/dist/serialization/resources/payers/resources/v4/index.d.ts +1 -0
- package/dist/serialization/resources/payers/resources/v4/index.js +17 -0
- package/dist/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
- package/dist/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +51 -0
- package/dist/serialization/resources/payers/resources/v4/types/Payer.d.ts +21 -0
- package/dist/serialization/resources/payers/resources/v4/types/Payer.js +52 -0
- package/dist/serialization/resources/payers/resources/v4/types/PayerIds.d.ts +14 -0
- package/dist/serialization/resources/payers/resources/v4/types/PayerIds.js +45 -0
- package/dist/serialization/resources/payers/resources/v4/types/PayerPage.d.ts +14 -0
- package/dist/serialization/resources/payers/resources/v4/types/PayerPage.js +47 -0
- package/dist/serialization/resources/payers/resources/v4/types/PayerUuid.d.ts +10 -0
- package/dist/serialization/resources/payers/resources/v4/types/PayerUuid.js +45 -0
- package/dist/serialization/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +14 -0
- package/dist/serialization/resources/payers/resources/v4/types/PrimaryPayerIds.js +45 -0
- package/dist/serialization/resources/payers/resources/v4/types/SupportState.d.ts +10 -0
- package/dist/serialization/resources/payers/resources/v4/types/SupportState.js +41 -0
- package/dist/serialization/resources/payers/resources/v4/types/index.d.ts +7 -0
- package/dist/serialization/resources/payers/resources/v4/types/index.js +23 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +15 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +71 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +13 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +44 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/createUniversal.d.ts +15 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/createUniversal.js +71 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +3 -1
- package/dist/serialization/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +25 -0
- package/dist/serialization/resources/serviceLines/resources/v2/client/updateUniversal.js +83 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -23
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +5 -24
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +13 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +46 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +32 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +63 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -27
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -28
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +13 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +46 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +36 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +67 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -24
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -25
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +34 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +65 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +15 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +48 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +19 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +52 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +18 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +51 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +8 -0
- package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +8 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +2 -7
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -8
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +17 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +48 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +18 -0
- package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +52 -0
- package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/x12/resources/v1/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +682 -114
- package/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +3 -0
- package/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js +3 -0
- package/serialization/resources/commons/types/Clearinghouse.d.ts +10 -0
- package/serialization/resources/commons/types/Clearinghouse.js +50 -0
- package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
- package/serialization/resources/commons/types/ProcedureModifier.js +11 -0
- package/serialization/resources/commons/types/index.d.ts +1 -0
- package/serialization/resources/commons/types/index.js +1 -0
- package/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
- package/serialization/resources/encounters/resources/v4/client/create.js +6 -0
- package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +49 -0
- package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +112 -0
- package/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +69 -0
- package/serialization/resources/encounters/resources/v4/client/createUniversal.js +136 -0
- package/serialization/resources/encounters/resources/v4/client/index.d.ts +3 -1
- package/serialization/resources/encounters/resources/v4/client/index.js +4 -5
- package/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +50 -0
- package/serialization/resources/encounters/resources/v4/client/updateUniversal.js +113 -0
- package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +3 -4
- package/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -4
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -2
- package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +2 -2
- package/serialization/resources/encounters/resources/v4/types/EncounterCreate.d.ts +22 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterCreate.js +55 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +4 -28
- package/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.js +4 -28
- package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +2 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +2 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -2
- package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -2
- package/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +11 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.js +41 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +16 -0
- package/serialization/resources/encounters/resources/v4/types/EncounterUpdate.js +49 -0
- package/serialization/resources/encounters/resources/v4/types/index.d.ts +7 -4
- package/serialization/resources/encounters/resources/v4/types/index.js +7 -4
- package/serialization/resources/encountersUniversal/index.d.ts +1 -0
- package/serialization/resources/encountersUniversal/index.js +17 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +39 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +72 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +50 -0
- package/{dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js → serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.js} +21 -31
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +37 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +70 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +36 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +69 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +32 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +65 -0
- package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +46 -0
- package/{dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js → serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js} +20 -22
- package/serialization/resources/encountersUniversal/types/index.d.ts +6 -0
- package/serialization/resources/encountersUniversal/types/index.js +22 -0
- package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts +9 -0
- package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.js +41 -0
- package/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
- package/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
- package/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
- package/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +44 -0
- package/serialization/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
- package/serialization/resources/feeSchedules/resources/v3/client/requests/index.js +3 -1
- package/serialization/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
- package/serialization/resources/feeSchedules/resources/v3/types/ValidationError.js +1 -0
- package/serialization/resources/financials/types/PatientTransactionSource.d.ts +1 -1
- package/serialization/resources/financials/types/PatientTransactionSource.js +10 -1
- package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -0
- package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +1 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +1 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +1 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +1 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
- package/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.js +1 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +16 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +16 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +16 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +18 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +51 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +37 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +68 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +18 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +51 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +18 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +51 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +18 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +51 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +18 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +51 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +16 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +18 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +51 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +18 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +51 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +16 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +49 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +18 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +51 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +14 -0
- package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +14 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +3 -2
- package/serialization/resources/individual/types/Patient.d.ts +1 -0
- package/serialization/resources/individual/types/Patient.js +1 -0
- package/serialization/resources/individual/types/PatientCreate.d.ts +1 -0
- package/serialization/resources/individual/types/PatientCreate.js +1 -0
- package/serialization/resources/individual/types/PatientUpdate.d.ts +1 -0
- package/serialization/resources/individual/types/PatientUpdate.js +1 -0
- package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +1 -0
- package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +1 -0
- package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
- package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
- package/serialization/resources/payers/resources/index.d.ts +1 -0
- package/serialization/resources/payers/resources/index.js +2 -1
- package/serialization/resources/payers/resources/v4/index.d.ts +1 -0
- package/serialization/resources/payers/resources/v4/index.js +17 -0
- package/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
- package/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +51 -0
- package/serialization/resources/payers/resources/v4/types/Payer.d.ts +21 -0
- package/serialization/resources/payers/resources/v4/types/Payer.js +52 -0
- package/serialization/resources/payers/resources/v4/types/PayerIds.d.ts +14 -0
- package/serialization/resources/payers/resources/v4/types/PayerIds.js +45 -0
- package/serialization/resources/payers/resources/v4/types/PayerPage.d.ts +14 -0
- package/serialization/resources/payers/resources/v4/types/PayerPage.js +47 -0
- package/serialization/resources/payers/resources/v4/types/PayerUuid.d.ts +10 -0
- package/serialization/resources/payers/resources/v4/types/PayerUuid.js +45 -0
- package/serialization/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +14 -0
- package/serialization/resources/payers/resources/v4/types/PrimaryPayerIds.js +45 -0
- package/serialization/resources/payers/resources/v4/types/SupportState.d.ts +10 -0
- package/serialization/resources/payers/resources/v4/types/SupportState.js +41 -0
- package/serialization/resources/payers/resources/v4/types/index.d.ts +7 -0
- package/serialization/resources/payers/resources/v4/types/index.js +23 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +15 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +71 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +13 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +44 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +3 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -1
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/client/createUniversal.d.ts +15 -0
- package/serialization/resources/serviceLines/resources/v2/client/createUniversal.js +71 -0
- package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
- package/serialization/resources/serviceLines/resources/v2/client/index.js +3 -1
- package/serialization/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +25 -0
- package/serialization/resources/serviceLines/resources/v2/client/updateUniversal.js +83 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -23
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +5 -24
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +13 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +46 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +32 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +63 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -27
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -28
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +13 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +46 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +36 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +67 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -24
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -25
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +34 -0
- package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +65 -0
- package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +15 -0
- package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +48 -0
- package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +19 -0
- package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +52 -0
- package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +18 -0
- package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +51 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +8 -0
- package/serialization/resources/serviceLines/resources/v2/types/index.js +8 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +2 -7
- package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -8
- package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +17 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +48 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +18 -0
- package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +52 -0
- package/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/x12/resources/v1/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -60
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +0 -48
- package/dist/serialization/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/encounters/resources/v4/client/requests/index.js +0 -7
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -60
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +0 -48
- package/serialization/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
- package/serialization/resources/encounters/resources/v4/client/requests/index.js +0 -7
- /package/api/resources/encounters/resources/v4/{client/requests → types}/EncounterCreate.js +0 -0
- /package/api/resources/encounters/resources/v4/{client/requests/EncounterUpdate.js → types/EncounterRenderingOrAttendingProviderRequiredError.js} +0 -0
- /package/{dist/api/resources/encounters/resources/v4/client/requests → api/resources/encounters/resources/v4/types}/EncounterUpdate.js +0 -0
- /package/{dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.js → api/resources/encountersUniversal/types/UniversalEncounterCreate.js} +0 -0
|
@@ -106,10 +106,6 @@ class V1 {
|
|
|
106
106
|
* postalCode: "postal_code",
|
|
107
107
|
* country: "country"
|
|
108
108
|
* }],
|
|
109
|
-
* primaryTelecom: {
|
|
110
|
-
* value: "value",
|
|
111
|
-
* use: "HOME"
|
|
112
|
-
* },
|
|
113
109
|
* otherTelecoms: [{
|
|
114
110
|
* value: "value",
|
|
115
111
|
* use: "HOME"
|
|
@@ -220,7 +216,7 @@ class V1 {
|
|
|
220
216
|
const _response = yield core.fetcher({
|
|
221
217
|
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, "/patients/v1"),
|
|
222
218
|
method: "POST",
|
|
223
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
219
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
224
220
|
contentType: "application/json",
|
|
225
221
|
queryParameters: _queryParams,
|
|
226
222
|
requestType: "json",
|
|
@@ -310,10 +306,6 @@ class V1 {
|
|
|
310
306
|
* postalCode: "postal_code",
|
|
311
307
|
* country: "country"
|
|
312
308
|
* }],
|
|
313
|
-
* primaryTelecom: {
|
|
314
|
-
* value: "value",
|
|
315
|
-
* use: "HOME"
|
|
316
|
-
* },
|
|
317
309
|
* otherTelecoms: [{
|
|
318
310
|
* value: "value",
|
|
319
311
|
* use: "HOME"
|
|
@@ -425,7 +417,7 @@ class V1 {
|
|
|
425
417
|
const _response = yield core.fetcher({
|
|
426
418
|
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, "/patients/v1/with_mrn"),
|
|
427
419
|
method: "POST",
|
|
428
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
420
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
429
421
|
contentType: "application/json",
|
|
430
422
|
queryParameters: _queryParams,
|
|
431
423
|
requestType: "json",
|
|
@@ -502,7 +494,7 @@ class V1 {
|
|
|
502
494
|
const _response = yield core.fetcher({
|
|
503
495
|
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, "/patients/v1/get_multi"),
|
|
504
496
|
method: "GET",
|
|
505
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
497
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
506
498
|
contentType: "application/json",
|
|
507
499
|
queryParameters: _queryParams,
|
|
508
500
|
requestType: "json",
|
|
@@ -547,7 +539,7 @@ class V1 {
|
|
|
547
539
|
const _response = yield core.fetcher({
|
|
548
540
|
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, "/patients/v1/search_providers"),
|
|
549
541
|
method: "GET",
|
|
550
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
542
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
551
543
|
contentType: "application/json",
|
|
552
544
|
queryParameters: _queryParams,
|
|
553
545
|
requestType: "json",
|
|
@@ -587,7 +579,7 @@ class V1 {
|
|
|
587
579
|
const _response = yield core.fetcher({
|
|
588
580
|
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, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}`),
|
|
589
581
|
method: "GET",
|
|
590
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
582
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
591
583
|
contentType: "application/json",
|
|
592
584
|
requestType: "json",
|
|
593
585
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -625,6 +617,59 @@ class V1 {
|
|
|
625
617
|
};
|
|
626
618
|
});
|
|
627
619
|
}
|
|
620
|
+
/**
|
|
621
|
+
* Gets a patient by mrn.
|
|
622
|
+
*
|
|
623
|
+
* @param {string} mrn
|
|
624
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
625
|
+
*
|
|
626
|
+
* @example
|
|
627
|
+
* await client.preEncounter.patients.v1.getByMrn("mrn")
|
|
628
|
+
*/
|
|
629
|
+
getByMrn(mrn, requestOptions) {
|
|
630
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
631
|
+
var _a, _b, _c;
|
|
632
|
+
const _response = yield core.fetcher({
|
|
633
|
+
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, `/patients/v1/mrn/${encodeURIComponent(mrn)}`),
|
|
634
|
+
method: "GET",
|
|
635
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
636
|
+
contentType: "application/json",
|
|
637
|
+
requestType: "json",
|
|
638
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
639
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
640
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
641
|
+
});
|
|
642
|
+
if (_response.ok) {
|
|
643
|
+
return {
|
|
644
|
+
ok: true,
|
|
645
|
+
body: serializers.preEncounter.patients.v1.Patient.parseOrThrow(_response.body, {
|
|
646
|
+
unrecognizedObjectKeys: "passthrough",
|
|
647
|
+
allowUnrecognizedUnionMembers: true,
|
|
648
|
+
allowUnrecognizedEnumValues: true,
|
|
649
|
+
breadcrumbsPrefix: ["response"],
|
|
650
|
+
}),
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
if (_response.error.reason === "status-code") {
|
|
654
|
+
switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
|
|
655
|
+
case "NotFoundError":
|
|
656
|
+
return {
|
|
657
|
+
ok: false,
|
|
658
|
+
error: serializers.preEncounter.patients.v1.getByMrn.Error.parseOrThrow(_response.error.body, {
|
|
659
|
+
unrecognizedObjectKeys: "passthrough",
|
|
660
|
+
allowUnrecognizedUnionMembers: true,
|
|
661
|
+
allowUnrecognizedEnumValues: true,
|
|
662
|
+
breadcrumbsPrefix: ["response"],
|
|
663
|
+
}),
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
return {
|
|
668
|
+
ok: false,
|
|
669
|
+
error: CandidApi.preEncounter.patients.v1.getByMrn.Error._unknown(_response.error),
|
|
670
|
+
};
|
|
671
|
+
});
|
|
672
|
+
}
|
|
628
673
|
/**
|
|
629
674
|
* Gets a patient along with it's full history. The return list is ordered by version ascending.
|
|
630
675
|
*
|
|
@@ -640,7 +685,7 @@ class V1 {
|
|
|
640
685
|
const _response = yield core.fetcher({
|
|
641
686
|
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, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/history`),
|
|
642
687
|
method: "GET",
|
|
643
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
688
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
644
689
|
contentType: "application/json",
|
|
645
690
|
requestType: "json",
|
|
646
691
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -727,10 +772,6 @@ class V1 {
|
|
|
727
772
|
* postalCode: "postal_code",
|
|
728
773
|
* country: "country"
|
|
729
774
|
* }],
|
|
730
|
-
* primaryTelecom: {
|
|
731
|
-
* value: "value",
|
|
732
|
-
* use: "HOME"
|
|
733
|
-
* },
|
|
734
775
|
* otherTelecoms: [{
|
|
735
776
|
* value: "value",
|
|
736
777
|
* use: "HOME"
|
|
@@ -835,7 +876,7 @@ class V1 {
|
|
|
835
876
|
const _response = yield core.fetcher({
|
|
836
877
|
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, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
837
878
|
method: "PUT",
|
|
838
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
879
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
839
880
|
contentType: "application/json",
|
|
840
881
|
requestType: "json",
|
|
841
882
|
body: serializers.preEncounter.patients.v1.MutablePatient.jsonOrThrow(request, {
|
|
@@ -893,7 +934,7 @@ class V1 {
|
|
|
893
934
|
const _response = yield core.fetcher({
|
|
894
935
|
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, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
895
936
|
method: "DELETE",
|
|
896
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
937
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
897
938
|
contentType: "application/json",
|
|
898
939
|
requestType: "json",
|
|
899
940
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -943,7 +984,7 @@ class V1 {
|
|
|
943
984
|
const _response = yield core.fetcher({
|
|
944
985
|
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, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
|
|
945
986
|
method: "PATCH",
|
|
946
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
987
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
947
988
|
contentType: "application/json",
|
|
948
989
|
requestType: "json",
|
|
949
990
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1000,7 +1041,7 @@ class V1 {
|
|
|
1000
1041
|
const _response = yield core.fetcher({
|
|
1001
1042
|
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, "/patients/v1"),
|
|
1002
1043
|
method: "GET",
|
|
1003
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
1044
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1004
1045
|
contentType: "application/json",
|
|
1005
1046
|
queryParameters: _queryParams,
|
|
1006
1047
|
requestType: "json",
|
|
@@ -1045,7 +1086,7 @@ class V1 {
|
|
|
1045
1086
|
const _response = yield core.fetcher({
|
|
1046
1087
|
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, "/patients/v1/updates/scan"),
|
|
1047
1088
|
method: "GET",
|
|
1048
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
1089
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1049
1090
|
contentType: "application/json",
|
|
1050
1091
|
queryParameters: _queryParams,
|
|
1051
1092
|
requestType: "json",
|
|
@@ -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.preEncounter.patients.v1.getByMrn.Error.NotFoundError | CandidApi.preEncounter.patients.v1.getByMrn.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface NotFoundError extends _Utils {
|
|
9
|
+
errorName: "NotFoundError";
|
|
10
|
+
content: CandidApi.preEncounter.ErrorBase4Xx;
|
|
11
|
+
}
|
|
12
|
+
interface _Unknown extends _Utils {
|
|
13
|
+
errorName: void;
|
|
14
|
+
content: core.Fetcher.Error;
|
|
15
|
+
}
|
|
16
|
+
interface _Utils {
|
|
17
|
+
_visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.getByMrn.Error._Visitor<_Result>) => _Result;
|
|
18
|
+
}
|
|
19
|
+
interface _Visitor<_Result> {
|
|
20
|
+
notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
|
|
21
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Error: {
|
|
25
|
+
readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.getByMrn.Error.NotFoundError;
|
|
26
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.getByMrn.Error._Unknown;
|
|
27
|
+
readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.getByMrn.Error, visitor: CandidApi.preEncounter.patients.v1.getByMrn.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
|
+
notFoundError: (value) => {
|
|
43
|
+
return {
|
|
44
|
+
content: value,
|
|
45
|
+
errorName: "NotFoundError",
|
|
46
|
+
_visit: function (visitor) {
|
|
47
|
+
return CandidApi.preEncounter.patients.v1.getByMrn.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.preEncounter.patients.v1.getByMrn.Error._visit(this, visitor);
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
_visit: (value, visitor) => {
|
|
61
|
+
switch (value.errorName) {
|
|
62
|
+
case "NotFoundError":
|
|
63
|
+
return visitor.notFoundError(value.content);
|
|
64
|
+
default:
|
|
65
|
+
return visitor._other(value);
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
};
|
|
@@ -4,6 +4,7 @@ export * as createWithMrn from "./createWithMrn";
|
|
|
4
4
|
export * as getMulti from "./getMulti";
|
|
5
5
|
export * as searchProviders from "./searchProviders";
|
|
6
6
|
export * as get from "./get";
|
|
7
|
+
export * as getByMrn from "./getByMrn";
|
|
7
8
|
export * as getHistory from "./getHistory";
|
|
8
9
|
export * as update from "./update";
|
|
9
10
|
export * as deactivate from "./deactivate";
|
|
@@ -36,13 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.scan = exports.search = exports.reactivate = exports.deactivate = exports.update = exports.getHistory = exports.get = exports.searchProviders = exports.getMulti = exports.createWithMrn = exports.create = void 0;
|
|
39
|
+
exports.scan = exports.search = exports.reactivate = exports.deactivate = exports.update = exports.getHistory = exports.getByMrn = exports.get = exports.searchProviders = exports.getMulti = exports.createWithMrn = exports.create = void 0;
|
|
40
40
|
__exportStar(require("./requests"), exports);
|
|
41
41
|
exports.create = __importStar(require("./create"));
|
|
42
42
|
exports.createWithMrn = __importStar(require("./createWithMrn"));
|
|
43
43
|
exports.getMulti = __importStar(require("./getMulti"));
|
|
44
44
|
exports.searchProviders = __importStar(require("./searchProviders"));
|
|
45
45
|
exports.get = __importStar(require("./get"));
|
|
46
|
+
exports.getByMrn = __importStar(require("./getByMrn"));
|
|
46
47
|
exports.getHistory = __importStar(require("./getHistory"));
|
|
47
48
|
exports.update = __importStar(require("./update"));
|
|
48
49
|
exports.deactivate = __importStar(require("./deactivate"));
|
package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface MutablePatient {
|
|
|
33
33
|
/** Other addresses for the patient. */
|
|
34
34
|
otherAddresses: CandidApi.preEncounter.Address[];
|
|
35
35
|
/** The primary phone number for the patient. */
|
|
36
|
-
primaryTelecom
|
|
36
|
+
primaryTelecom?: CandidApi.preEncounter.ContactPoint;
|
|
37
37
|
/** Other phone numbers for the patient. */
|
|
38
38
|
otherTelecoms: CandidApi.preEncounter.ContactPoint[];
|
|
39
39
|
email?: string;
|
|
@@ -59,4 +59,6 @@ export interface MutablePatient {
|
|
|
59
59
|
tagIds?: CandidApi.preEncounter.TagId[];
|
|
60
60
|
/** Information about the patient source, if applicable. */
|
|
61
61
|
originationDetail?: CandidApi.preEncounter.patients.v1.OriginationDetail;
|
|
62
|
+
/** Metadata for the patient used for patient inference from encounters. */
|
|
63
|
+
inferredPatientMetadata?: CandidApi.preEncounter.patients.v1.InferredPatientMetadata;
|
|
62
64
|
}
|
package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ReferralType = "DIRECTED" | "ROTATION";
|
|
4
|
+
export type ReferralType = "DIRECTED" | "ROTATION" | "OVERNIGHT";
|
|
5
5
|
export declare const ReferralType: {
|
|
6
6
|
readonly Directed: "DIRECTED";
|
|
7
7
|
readonly Rotation: "ROTATION";
|
|
8
|
+
readonly Overnight: "OVERNIGHT";
|
|
8
9
|
};
|
|
@@ -6,6 +6,7 @@ export * from "./FilingOrder";
|
|
|
6
6
|
export * from "./DoNotInvoiceReason";
|
|
7
7
|
export * from "./MutablePatient";
|
|
8
8
|
export * from "./MutablePatientWithMrn";
|
|
9
|
+
export * from "./InferredPatientMetadata";
|
|
9
10
|
export * from "./Patient";
|
|
10
11
|
export * from "./PatientPage";
|
|
11
12
|
export * from "./AuthorizationUnit";
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./FilingOrder"), exports);
|
|
|
22
22
|
__exportStar(require("./DoNotInvoiceReason"), exports);
|
|
23
23
|
__exportStar(require("./MutablePatient"), exports);
|
|
24
24
|
__exportStar(require("./MutablePatientWithMrn"), exports);
|
|
25
|
+
__exportStar(require("./InferredPatientMetadata"), exports);
|
|
25
26
|
__exportStar(require("./Patient"), exports);
|
|
26
27
|
__exportStar(require("./PatientPage"), exports);
|
|
27
28
|
__exportStar(require("./AuthorizationUnit"), exports);
|
|
@@ -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": "1.
|
|
76
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "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,
|
|
@@ -120,7 +120,7 @@ class V1 {
|
|
|
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).preEncounter, "/tags/v1"),
|
|
122
122
|
method: "GET",
|
|
123
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
123
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "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
|
queryParameters: _queryParams,
|
|
126
126
|
requestType: "json",
|
|
@@ -162,7 +162,7 @@ class V1 {
|
|
|
162
162
|
const _response = yield core.fetcher({
|
|
163
163
|
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"),
|
|
164
164
|
method: "POST",
|
|
165
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
165
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
166
166
|
contentType: "application/json",
|
|
167
167
|
requestType: "json",
|
|
168
168
|
body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -206,7 +206,7 @@ class V1 {
|
|
|
206
206
|
const _response = yield core.fetcher({
|
|
207
207
|
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)}`),
|
|
208
208
|
method: "PUT",
|
|
209
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
209
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
210
210
|
contentType: "application/json",
|
|
211
211
|
requestType: "json",
|
|
212
212
|
body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -247,7 +247,7 @@ class V1 {
|
|
|
247
247
|
const _response = yield core.fetcher({
|
|
248
248
|
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)}`),
|
|
249
249
|
method: "DELETE",
|
|
250
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
250
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
251
251
|
contentType: "application/json",
|
|
252
252
|
requestType: "json",
|
|
253
253
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -72,7 +72,7 @@ class ServiceFacility {
|
|
|
72
72
|
const _response = yield core.fetcher({
|
|
73
73
|
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))}`),
|
|
74
74
|
method: "PATCH",
|
|
75
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
|
75
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
76
76
|
contentType: "application/json",
|
|
77
77
|
requestType: "json",
|
|
78
78
|
body: serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -31,13 +31,34 @@ export declare class V2 {
|
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* await client.serviceLines.v2.create({
|
|
34
|
-
* procedureCode: "procedure_code",
|
|
35
34
|
* quantity: CandidApi.Decimal("quantity"),
|
|
36
35
|
* units: "MJ",
|
|
37
|
-
* claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
36
|
+
* claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
|
|
37
|
+
* procedureCode: "procedure_code"
|
|
38
38
|
* })
|
|
39
39
|
*/
|
|
40
40
|
create(request: CandidApi.serviceLines.v2.ServiceLineCreateStandalone, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.serviceLines.v2.ServiceLine, CandidApi.serviceLines.v2.create.Error>>;
|
|
41
|
+
/**
|
|
42
|
+
* @param {CandidApi.serviceLines.v2.UniversalServiceLineCreateStandalone} request
|
|
43
|
+
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* await client.serviceLines.v2.createUniversal({
|
|
47
|
+
* quantity: CandidApi.Decimal("quantity"),
|
|
48
|
+
* units: "MJ",
|
|
49
|
+
* claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
|
50
|
+
* })
|
|
51
|
+
*/
|
|
52
|
+
createUniversal(request: CandidApi.serviceLines.v2.UniversalServiceLineCreateStandalone, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.serviceLines.v2.ServiceLine, CandidApi.serviceLines.v2.createUniversal.Error>>;
|
|
53
|
+
/**
|
|
54
|
+
* @param {CandidApi.ServiceLineId} serviceLineId
|
|
55
|
+
* @param {CandidApi.serviceLines.v2.UniversalServiceLineUpdate} request
|
|
56
|
+
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* await client.serviceLines.v2.updateUniversal(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {})
|
|
60
|
+
*/
|
|
61
|
+
updateUniversal(serviceLineId: CandidApi.ServiceLineId, request: CandidApi.serviceLines.v2.UniversalServiceLineUpdate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.serviceLines.v2.ServiceLine, CandidApi.serviceLines.v2.updateUniversal.Error>>;
|
|
41
62
|
/**
|
|
42
63
|
* @param {CandidApi.ServiceLineId} serviceLineId
|
|
43
64
|
* @param {CandidApi.serviceLines.v2.ServiceLineUpdate} request
|