@rinse-dental/open-dental 3.4.2 → 4.0.2
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/README.md +388 -16
- package/dist/api/accountModules.d.ts +23 -3
- package/dist/api/accountModules.d.ts.map +1 -1
- package/dist/api/accountModules.js +17 -6
- package/dist/api/adjustments.d.ts +5 -2
- package/dist/api/adjustments.d.ts.map +1 -1
- package/dist/api/adjustments.js +11 -5
- package/dist/api/allergies.d.ts +5 -2
- package/dist/api/allergies.d.ts.map +1 -1
- package/dist/api/allergies.js +11 -5
- package/dist/api/allergydefs.d.ts +27 -0
- package/dist/api/allergydefs.d.ts.map +1 -0
- package/dist/api/allergydefs.js +40 -0
- package/dist/api/appointmentTypes.d.ts +12 -2
- package/dist/api/appointmentTypes.d.ts.map +1 -1
- package/dist/api/appointmentTypes.js +12 -2
- package/dist/api/appointments.d.ts +5 -2
- package/dist/api/appointments.d.ts.map +1 -1
- package/dist/api/appointments.js +19 -13
- package/dist/api/apptFieldDefs.d.ts +54 -0
- package/dist/api/apptFieldDefs.d.ts.map +1 -0
- package/dist/api/apptFieldDefs.js +79 -0
- package/dist/api/apptFields.d.ts +60 -0
- package/dist/api/apptFields.d.ts.map +1 -0
- package/dist/api/apptFields.js +102 -0
- package/dist/api/asapComms.d.ts +44 -0
- package/dist/api/asapComms.d.ts.map +1 -0
- package/dist/api/asapComms.js +64 -0
- package/dist/api/autoNoteControls.d.ts +48 -0
- package/dist/api/autoNoteControls.d.ts.map +1 -0
- package/dist/api/autoNoteControls.js +74 -0
- package/dist/api/autoNotes.d.ts +42 -0
- package/dist/api/autoNotes.d.ts.map +1 -0
- package/dist/api/autoNotes.js +70 -0
- package/dist/api/benefits.d.ts +14 -3
- package/dist/api/benefits.d.ts.map +1 -1
- package/dist/api/benefits.js +24 -5
- package/dist/api/carriers.d.ts +68 -0
- package/dist/api/carriers.d.ts.map +1 -0
- package/dist/api/carriers.js +107 -0
- package/dist/api/chartModules.d.ts +1 -1
- package/dist/api/chartModules.d.ts.map +1 -1
- package/dist/api/chartModules.js +4 -4
- package/dist/api/claimPayments.d.ts +93 -0
- package/dist/api/claimPayments.d.ts.map +1 -0
- package/dist/api/claimPayments.js +163 -0
- package/dist/api/claimProcs.d.ts +42 -2
- package/dist/api/claimProcs.d.ts.map +1 -1
- package/dist/api/claimProcs.js +65 -2
- package/dist/api/claimTrackings.d.ts +44 -0
- package/dist/api/claimTrackings.d.ts.map +1 -0
- package/dist/api/claimTrackings.js +70 -0
- package/dist/api/claims.d.ts +33 -0
- package/dist/api/claims.d.ts.map +1 -1
- package/dist/api/claims.js +60 -6
- package/dist/api/clinics.d.ts +47 -0
- package/dist/api/clinics.d.ts.map +1 -0
- package/dist/api/clinics.js +70 -0
- package/dist/api/clockEvents.d.ts +33 -0
- package/dist/api/clockEvents.d.ts.map +1 -0
- package/dist/api/clockEvents.js +42 -0
- package/dist/api/codeGroups.d.ts +64 -0
- package/dist/api/codeGroups.d.ts.map +1 -0
- package/dist/api/codeGroups.js +84 -0
- package/dist/api/commlogs.d.ts +14 -2
- package/dist/api/commlogs.d.ts.map +1 -1
- package/dist/api/commlogs.js +11 -4
- package/dist/api/computers.d.ts +25 -0
- package/dist/api/computers.d.ts.map +1 -0
- package/dist/api/computers.js +29 -0
- package/dist/api/covCats.d.ts +58 -0
- package/dist/api/covCats.d.ts.map +1 -0
- package/dist/api/covCats.js +78 -0
- package/dist/api/covSpans.d.ts +60 -0
- package/dist/api/covSpans.d.ts.map +1 -0
- package/dist/api/covSpans.js +91 -0
- package/dist/api/definitions.d.ts +19 -3
- package/dist/api/definitions.d.ts.map +1 -1
- package/dist/api/definitions.js +26 -2
- package/dist/api/discountPlanSubs.js +3 -3
- package/dist/api/discountPlans.d.ts +4 -1
- package/dist/api/discountPlans.d.ts.map +1 -1
- package/dist/api/discountPlans.js +9 -3
- package/dist/api/diseaseDefs.d.ts +35 -0
- package/dist/api/diseaseDefs.d.ts.map +1 -0
- package/dist/api/diseaseDefs.js +49 -0
- package/dist/api/diseases.d.ts +4 -1
- package/dist/api/diseases.d.ts.map +1 -1
- package/dist/api/diseases.js +6 -3
- package/dist/api/documents.d.ts +137 -0
- package/dist/api/documents.d.ts.map +1 -0
- package/dist/api/documents.js +235 -0
- package/dist/api/eTrans.d.ts +20 -0
- package/dist/api/eTrans.d.ts.map +1 -0
- package/dist/api/eTrans.js +36 -0
- package/dist/api/eTransMessageTexts.d.ts +15 -0
- package/dist/api/eTransMessageTexts.d.ts.map +1 -0
- package/dist/api/eTransMessageTexts.js +22 -0
- package/dist/api/eTranss.d.ts +22 -0
- package/dist/api/eTranss.d.ts.map +1 -0
- package/dist/api/eTranss.js +29 -0
- package/dist/api/ehrPatients.d.ts +29 -0
- package/dist/api/ehrPatients.d.ts.map +1 -0
- package/dist/api/ehrPatients.js +42 -0
- package/dist/api/employees.d.ts +66 -0
- package/dist/api/employees.d.ts.map +1 -0
- package/dist/api/employees.js +86 -0
- package/dist/api/employers.d.ts +53 -0
- package/dist/api/employers.d.ts.map +1 -0
- package/dist/api/employers.js +81 -0
- package/dist/api/eobAttaches.d.ts +56 -0
- package/dist/api/eobAttaches.d.ts.map +1 -0
- package/dist/api/eobAttaches.js +96 -0
- package/dist/api/events.d.ts +26 -0
- package/dist/api/events.d.ts.map +1 -0
- package/dist/api/events.js +26 -0
- package/dist/api/familyModules.d.ts +12 -2
- package/dist/api/familyModules.d.ts.map +1 -1
- package/dist/api/familyModules.js +9 -4
- package/dist/api/feeScheds.d.ts +8 -2
- package/dist/api/feeScheds.d.ts.map +1 -1
- package/dist/api/feeScheds.js +14 -2
- package/dist/api/fees.d.ts +41 -3
- package/dist/api/fees.d.ts.map +1 -1
- package/dist/api/fees.js +58 -2
- package/dist/api/histAppointments.d.ts +29 -0
- package/dist/api/histAppointments.d.ts.map +1 -0
- package/dist/api/histAppointments.js +33 -0
- package/dist/api/index.d.ts +89 -13
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +180 -28
- package/dist/api/insPlans.d.ts +11 -4
- package/dist/api/insPlans.d.ts.map +1 -1
- package/dist/api/insPlans.js +17 -7
- package/dist/api/insSubs.d.ts +13 -5
- package/dist/api/insSubs.d.ts.map +1 -1
- package/dist/api/insSubs.js +19 -8
- package/dist/api/insVerifies.d.ts +9 -6
- package/dist/api/insVerifies.d.ts.map +1 -1
- package/dist/api/insVerifies.js +15 -9
- package/dist/api/labCases.d.ts +22 -7
- package/dist/api/labCases.d.ts.map +1 -1
- package/dist/api/labCases.js +34 -11
- package/dist/api/labTurnarounds.d.ts +52 -0
- package/dist/api/labTurnarounds.d.ts.map +1 -0
- package/dist/api/labTurnarounds.js +78 -0
- package/dist/api/laboratories.d.ts +71 -0
- package/dist/api/laboratories.d.ts.map +1 -0
- package/dist/api/laboratories.js +91 -0
- package/dist/api/medicationPats.d.ts +5 -2
- package/dist/api/medicationPats.d.ts.map +1 -1
- package/dist/api/medicationPats.js +11 -5
- package/dist/api/medications.d.ts +37 -0
- package/dist/api/medications.d.ts.map +1 -0
- package/dist/api/medications.js +46 -0
- package/dist/api/operatories.d.ts +4 -3
- package/dist/api/operatories.d.ts.map +1 -1
- package/dist/api/operatories.js +8 -4
- package/dist/api/patFieldDefs.d.ts +57 -0
- package/dist/api/patFieldDefs.d.ts.map +1 -0
- package/dist/api/patFieldDefs.js +83 -0
- package/dist/api/patFields.d.ts +11 -6
- package/dist/api/patFields.d.ts.map +1 -1
- package/dist/api/patFields.js +23 -14
- package/dist/api/patPlans.d.ts +13 -6
- package/dist/api/patPlans.d.ts.map +1 -1
- package/dist/api/patPlans.js +18 -8
- package/dist/api/patientNotes.d.ts +48 -0
- package/dist/api/patientNotes.d.ts.map +1 -0
- package/dist/api/patientNotes.js +70 -0
- package/dist/api/patientRaces.d.ts +21 -0
- package/dist/api/patientRaces.d.ts.map +1 -0
- package/dist/api/patientRaces.js +28 -0
- package/dist/api/patients.d.ts +6 -3
- package/dist/api/patients.d.ts.map +1 -1
- package/dist/api/patients.js +15 -6
- package/dist/api/payPlanCharges.d.ts +4 -0
- package/dist/api/payPlanCharges.d.ts.map +1 -1
- package/dist/api/payPlanCharges.js +4 -0
- package/dist/api/payPlans.d.ts +10 -1
- package/dist/api/payPlans.d.ts.map +1 -1
- package/dist/api/payPlans.js +17 -18
- package/dist/api/paySplits.d.ts +12 -7
- package/dist/api/paySplits.d.ts.map +1 -1
- package/dist/api/paySplits.js +14 -6
- package/dist/api/payments.d.ts +18 -3
- package/dist/api/payments.d.ts.map +1 -1
- package/dist/api/payments.js +30 -4
- package/dist/api/perioExams.d.ts +67 -0
- package/dist/api/perioExams.d.ts.map +1 -0
- package/dist/api/perioExams.js +104 -0
- package/dist/api/perioMeasures.d.ts +74 -0
- package/dist/api/perioMeasures.d.ts.map +1 -0
- package/dist/api/perioMeasures.js +118 -0
- package/dist/api/pharmacies.d.ts +29 -0
- package/dist/api/pharmacies.d.ts.map +1 -0
- package/dist/api/pharmacies.js +38 -0
- package/dist/api/popups.d.ts +42 -0
- package/dist/api/popups.d.ts.map +1 -0
- package/dist/api/popups.js +71 -0
- package/dist/api/preferences.d.ts +31 -0
- package/dist/api/preferences.d.ts.map +1 -0
- package/dist/api/preferences.js +46 -0
- package/dist/api/procNotes.d.ts +5 -2
- package/dist/api/procNotes.d.ts.map +1 -1
- package/dist/api/procNotes.js +9 -3
- package/dist/api/procTPs.d.ts +6 -3
- package/dist/api/procTPs.d.ts.map +1 -1
- package/dist/api/procTPs.js +10 -4
- package/dist/api/procedureCodes.d.ts +9 -7
- package/dist/api/procedureCodes.d.ts.map +1 -1
- package/dist/api/procedureCodes.js +13 -8
- package/dist/api/procedureLog.d.ts +5 -2
- package/dist/api/procedureLog.d.ts.map +1 -1
- package/dist/api/procedureLog.js +15 -6
- package/dist/api/providers.d.ts +4 -1
- package/dist/api/providers.d.ts.map +1 -1
- package/dist/api/providers.js +10 -4
- package/dist/api/queries.d.ts +24 -1
- package/dist/api/queries.d.ts.map +1 -1
- package/dist/api/queries.js +35 -0
- package/dist/api/quickPasteCats.d.ts +24 -0
- package/dist/api/quickPasteCats.d.ts.map +1 -0
- package/dist/api/quickPasteCats.js +33 -0
- package/dist/api/quickPasteNotes.d.ts +27 -0
- package/dist/api/quickPasteNotes.d.ts.map +1 -0
- package/dist/api/quickPasteNotes.js +36 -0
- package/dist/api/recallTypes.d.ts +31 -0
- package/dist/api/recallTypes.d.ts.map +1 -0
- package/dist/api/recallTypes.js +40 -0
- package/dist/api/recalls.d.ts +20 -4
- package/dist/api/recalls.d.ts.map +1 -1
- package/dist/api/recalls.js +26 -14
- package/dist/api/refAttaches.d.ts +6 -3
- package/dist/api/refAttaches.d.ts.map +1 -1
- package/dist/api/refAttaches.js +11 -5
- package/dist/api/referrals.d.ts +4 -1
- package/dist/api/referrals.d.ts.map +1 -1
- package/dist/api/referrals.js +10 -4
- package/dist/api/reports.d.ts +34 -0
- package/dist/api/reports.d.ts.map +1 -0
- package/dist/api/reports.js +40 -0
- package/dist/api/rxPats.d.ts +27 -0
- package/dist/api/rxPats.d.ts.map +1 -0
- package/dist/api/rxPats.js +41 -0
- package/dist/api/scheduleOps.d.ts +20 -0
- package/dist/api/scheduleOps.d.ts.map +1 -0
- package/dist/api/scheduleOps.js +30 -0
- package/dist/api/schedules.d.ts +23 -2
- package/dist/api/schedules.d.ts.map +1 -1
- package/dist/api/schedules.js +31 -2
- package/dist/api/security.d.ts +25 -0
- package/dist/api/security.d.ts.map +1 -0
- package/dist/api/security.js +29 -0
- package/dist/api/securityLogs.d.ts +5 -2
- package/dist/api/securityLogs.d.ts.map +1 -1
- package/dist/api/securityLogs.js +8 -2
- package/dist/api/sheetDefs.d.ts +27 -0
- package/dist/api/sheetDefs.d.ts.map +1 -0
- package/dist/api/sheetDefs.js +36 -0
- package/dist/api/sheetFields.d.ts +38 -0
- package/dist/api/sheetFields.d.ts.map +1 -0
- package/dist/api/sheetFields.js +53 -0
- package/dist/api/sheets.d.ts +47 -0
- package/dist/api/sheets.d.ts.map +1 -0
- package/dist/api/sheets.js +64 -0
- package/dist/api/signalODs.d.ts +23 -0
- package/dist/api/signalODs.d.ts.map +1 -0
- package/dist/api/signalODs.js +30 -0
- package/dist/api/statements.d.ts +48 -0
- package/dist/api/statements.d.ts.map +1 -0
- package/dist/api/statements.js +72 -0
- package/dist/api/subscriptions.d.ts +67 -0
- package/dist/api/subscriptions.d.ts.map +1 -0
- package/dist/api/subscriptions.js +93 -0
- package/dist/api/substitutionLinks.d.ts +51 -0
- package/dist/api/substitutionLinks.d.ts.map +1 -0
- package/dist/api/substitutionLinks.js +74 -0
- package/dist/api/taskLists.d.ts +20 -0
- package/dist/api/taskLists.d.ts.map +1 -0
- package/dist/api/taskLists.js +24 -0
- package/dist/api/taskNotes.d.ts +50 -0
- package/dist/api/taskNotes.d.ts.map +1 -0
- package/dist/api/taskNotes.js +81 -0
- package/dist/api/tasks.d.ts +69 -0
- package/dist/api/tasks.d.ts.map +1 -0
- package/dist/api/tasks.js +89 -0
- package/dist/api/toothInitials.d.ts +39 -0
- package/dist/api/toothInitials.d.ts.map +1 -0
- package/dist/api/toothInitials.js +64 -0
- package/dist/api/treatplanattaches.d.ts +5 -2
- package/dist/api/treatplanattaches.d.ts.map +1 -1
- package/dist/api/treatplanattaches.js +10 -4
- package/dist/api/treatplans.d.ts +15 -1
- package/dist/api/treatplans.d.ts.map +1 -1
- package/dist/api/treatplans.js +26 -4
- package/dist/api/userGroupAttaches.d.ts +20 -0
- package/dist/api/userGroupAttaches.d.ts.map +1 -0
- package/dist/api/userGroupAttaches.js +30 -0
- package/dist/api/userGroups.d.ts +20 -0
- package/dist/api/userGroups.d.ts.map +1 -0
- package/dist/api/userGroups.js +29 -0
- package/dist/api/userODs.d.ts +49 -0
- package/dist/api/userODs.d.ts.map +1 -0
- package/dist/api/userODs.js +64 -0
- package/dist/openDental.d.ts +624 -115
- package/dist/openDental.d.ts.map +1 -1
- package/dist/openDental.js +800 -291
- package/dist/types/DiscountPlanTypes.d.ts +3 -0
- package/dist/types/DiscountPlanTypes.d.ts.map +1 -1
- package/dist/types/adjustmentTypes.d.ts +3 -0
- package/dist/types/adjustmentTypes.d.ts.map +1 -1
- package/dist/types/allergyDefTypes.d.ts +25 -0
- package/dist/types/allergyDefTypes.d.ts.map +1 -0
- package/dist/types/allergyTypes.d.ts +3 -0
- package/dist/types/allergyTypes.d.ts.map +1 -1
- package/dist/types/{appoinmentTypesType.d.ts → appointmentTypeTypes.d.ts} +1 -1
- package/dist/types/appointmentTypeTypes.d.ts.map +1 -0
- package/dist/types/appointmentTypeTypes.js +2 -0
- package/dist/types/appointmentTypes.d.ts +19 -0
- package/dist/types/appointmentTypes.d.ts.map +1 -1
- package/dist/types/apptFieldDefTypes.d.ts +25 -0
- package/dist/types/apptFieldDefTypes.d.ts.map +1 -0
- package/dist/types/apptFieldDefTypes.js +2 -0
- package/dist/types/apptFieldTypes.d.ts +34 -0
- package/dist/types/apptFieldTypes.d.ts.map +1 -0
- package/dist/types/apptFieldTypes.js +2 -0
- package/dist/types/asapCommTypes.d.ts +63 -0
- package/dist/types/asapCommTypes.d.ts.map +1 -0
- package/dist/types/asapCommTypes.js +2 -0
- package/dist/types/autoNoteControlTypes.d.ts +27 -0
- package/dist/types/autoNoteControlTypes.d.ts.map +1 -0
- package/dist/types/autoNoteControlTypes.js +2 -0
- package/dist/types/autoNoteTypes.d.ts +33 -0
- package/dist/types/autoNoteTypes.d.ts.map +1 -0
- package/dist/types/autoNoteTypes.js +2 -0
- package/dist/types/benefitTypes.d.ts +6 -0
- package/dist/types/benefitTypes.d.ts.map +1 -1
- package/dist/types/carrierTypes.d.ts +45 -0
- package/dist/types/carrierTypes.d.ts.map +1 -0
- package/dist/types/carrierTypes.js +2 -0
- package/dist/types/claimPaymentTypes.d.ts +72 -0
- package/dist/types/claimPaymentTypes.d.ts.map +1 -0
- package/dist/types/claimPaymentTypes.js +2 -0
- package/dist/types/claimProcTypes.d.ts +3 -0
- package/dist/types/claimProcTypes.d.ts.map +1 -1
- package/dist/types/claimTrackingTypes.d.ts +37 -0
- package/dist/types/claimTrackingTypes.d.ts.map +1 -0
- package/dist/types/claimTrackingTypes.js +2 -0
- package/dist/types/claimTypes.d.ts +3 -0
- package/dist/types/claimTypes.d.ts.map +1 -1
- package/dist/types/clinicTypes.d.ts +45 -0
- package/dist/types/clinicTypes.d.ts.map +1 -0
- package/dist/types/clinicTypes.js +2 -0
- package/dist/types/clockEventTypes.d.ts +52 -0
- package/dist/types/clockEventTypes.d.ts.map +1 -0
- package/dist/types/clockEventTypes.js +2 -0
- package/dist/types/codeGroupTypes.d.ts +67 -0
- package/dist/types/codeGroupTypes.d.ts.map +1 -0
- package/dist/types/codeGroupTypes.js +2 -0
- package/dist/types/computerTypes.d.ts +10 -0
- package/dist/types/computerTypes.d.ts.map +1 -0
- package/dist/types/computerTypes.js +2 -0
- package/dist/types/covCatTypes.d.ts +53 -0
- package/dist/types/covCatTypes.d.ts.map +1 -0
- package/dist/types/covCatTypes.js +2 -0
- package/dist/types/covSpanTypes.d.ts +52 -0
- package/dist/types/covSpanTypes.d.ts.map +1 -0
- package/dist/types/covSpanTypes.js +2 -0
- package/dist/types/definitionTypes.d.ts +12 -0
- package/dist/types/definitionTypes.d.ts.map +1 -1
- package/dist/types/discountPlanSubTypes.d.ts +5 -1
- package/dist/types/discountPlanSubTypes.d.ts.map +1 -1
- package/dist/types/diseaseDefTypes.d.ts +33 -0
- package/dist/types/diseaseDefTypes.d.ts.map +1 -0
- package/dist/types/diseaseDefTypes.js +2 -0
- package/dist/types/diseaseTypes.d.ts +3 -0
- package/dist/types/diseaseTypes.d.ts.map +1 -1
- package/dist/types/documentTypes.d.ts +191 -0
- package/dist/types/documentTypes.d.ts.map +1 -0
- package/dist/types/documentTypes.js +2 -0
- package/dist/types/eTransMessageTextTypes.d.ts +9 -0
- package/dist/types/eTransMessageTextTypes.d.ts.map +1 -0
- package/dist/types/eTransMessageTextTypes.js +2 -0
- package/dist/types/eTransTypes.d.ts +15 -0
- package/dist/types/eTransTypes.d.ts.map +1 -0
- package/dist/types/eTransTypes.js +2 -0
- package/dist/types/eTranssTypes.d.ts +46 -0
- package/dist/types/eTranssTypes.d.ts.map +1 -0
- package/dist/types/eTranssTypes.js +2 -0
- package/dist/types/ehrPatientTypes.d.ts +34 -0
- package/dist/types/ehrPatientTypes.d.ts.map +1 -0
- package/dist/types/ehrPatientTypes.js +2 -0
- package/dist/types/employeeTypes.d.ts +88 -0
- package/dist/types/employeeTypes.d.ts.map +1 -0
- package/dist/types/employeeTypes.js +2 -0
- package/dist/types/employerTypes.d.ts +38 -0
- package/dist/types/employerTypes.d.ts.map +1 -0
- package/dist/types/employerTypes.js +2 -0
- package/dist/types/eobAttachTypes.d.ts +62 -0
- package/dist/types/eobAttachTypes.d.ts.map +1 -0
- package/dist/types/eobAttachTypes.js +2 -0
- package/dist/types/eventTypes.d.ts +52 -0
- package/dist/types/eventTypes.d.ts.map +1 -0
- package/dist/types/eventTypes.js +2 -0
- package/dist/types/feeTypes.d.ts +3 -0
- package/dist/types/feeTypes.d.ts.map +1 -1
- package/dist/types/histAppointmentTypes.d.ts +77 -0
- package/dist/types/histAppointmentTypes.d.ts.map +1 -0
- package/dist/types/histAppointmentTypes.js +2 -0
- package/dist/types/insPlanTypes.d.ts +4 -1
- package/dist/types/insPlanTypes.d.ts.map +1 -1
- package/dist/types/insSubTypes.d.ts +4 -1
- package/dist/types/insSubTypes.d.ts.map +1 -1
- package/dist/types/insVerifiesTypes.d.ts +3 -0
- package/dist/types/insVerifiesTypes.d.ts.map +1 -1
- package/dist/types/labCaseTypes.d.ts +4 -0
- package/dist/types/labCaseTypes.d.ts.map +1 -1
- package/dist/types/labTurnaroundTypes.d.ts +55 -0
- package/dist/types/labTurnaroundTypes.d.ts.map +1 -0
- package/dist/types/labTurnaroundTypes.js +2 -0
- package/dist/types/laboratoryTypes.d.ts +80 -0
- package/dist/types/laboratoryTypes.d.ts.map +1 -0
- package/dist/types/laboratoryTypes.js +2 -0
- package/dist/types/medicationPatTypes.d.ts +3 -0
- package/dist/types/medicationPatTypes.d.ts.map +1 -1
- package/dist/types/medicationTypes.d.ts +28 -0
- package/dist/types/medicationTypes.d.ts.map +1 -0
- package/dist/types/medicationTypes.js +2 -0
- package/dist/types/operatoryTypes.d.ts +5 -2
- package/dist/types/operatoryTypes.d.ts.map +1 -1
- package/dist/types/patFieldDefTypes.d.ts +64 -0
- package/dist/types/patFieldDefTypes.d.ts.map +1 -0
- package/dist/types/patFieldDefTypes.js +2 -0
- package/dist/types/patFieldTypes.d.ts +4 -0
- package/dist/types/patFieldTypes.d.ts.map +1 -1
- package/dist/types/patPlanTypes.d.ts +3 -0
- package/dist/types/patPlanTypes.d.ts.map +1 -1
- package/dist/types/patientNoteTypes.d.ts +32 -0
- package/dist/types/patientNoteTypes.d.ts.map +1 -0
- package/dist/types/patientNoteTypes.js +2 -0
- package/dist/types/patientRaceTypes.d.ts +25 -0
- package/dist/types/patientRaceTypes.d.ts.map +1 -0
- package/dist/types/patientRaceTypes.js +2 -0
- package/dist/types/patientTypes.d.ts +7 -1
- package/dist/types/patientTypes.d.ts.map +1 -1
- package/dist/types/payPlanChargeTypes.d.ts +4 -0
- package/dist/types/payPlanChargeTypes.d.ts.map +1 -1
- package/dist/types/paySplitTypes.d.ts +3 -0
- package/dist/types/paySplitTypes.d.ts.map +1 -1
- package/dist/types/paymentTypes.d.ts +11 -0
- package/dist/types/paymentTypes.d.ts.map +1 -1
- package/dist/types/perioExamTypes.d.ts +54 -0
- package/dist/types/perioExamTypes.d.ts.map +1 -0
- package/dist/types/perioExamTypes.js +2 -0
- package/dist/types/perioMeasureTypes.d.ts +80 -0
- package/dist/types/perioMeasureTypes.d.ts.map +1 -0
- package/dist/types/perioMeasureTypes.js +2 -0
- package/dist/types/pharmacyTypes.d.ts +18 -0
- package/dist/types/pharmacyTypes.d.ts.map +1 -0
- package/dist/types/pharmacyTypes.js +2 -0
- package/dist/types/popupTypes.d.ts +55 -0
- package/dist/types/popupTypes.d.ts.map +1 -0
- package/dist/types/popupTypes.js +2 -0
- package/dist/types/preferenceTypes.d.ts +32 -0
- package/dist/types/preferenceTypes.d.ts.map +1 -0
- package/dist/types/preferenceTypes.js +2 -0
- package/dist/types/procNoteTypes.d.ts +3 -0
- package/dist/types/procNoteTypes.d.ts.map +1 -1
- package/dist/types/procTPTypes.d.ts +3 -0
- package/dist/types/procTPTypes.d.ts.map +1 -1
- package/dist/types/procedureCodeTypes.d.ts +3 -0
- package/dist/types/procedureCodeTypes.d.ts.map +1 -1
- package/dist/types/procedurelogTypes.d.ts +7 -0
- package/dist/types/procedurelogTypes.d.ts.map +1 -1
- package/dist/types/providerTypes.d.ts +3 -0
- package/dist/types/providerTypes.d.ts.map +1 -1
- package/dist/types/queryTypes.d.ts +10 -0
- package/dist/types/queryTypes.d.ts.map +1 -1
- package/dist/types/quickPasteCatTypes.d.ts +23 -0
- package/dist/types/quickPasteCatTypes.d.ts.map +1 -0
- package/dist/types/quickPasteCatTypes.js +2 -0
- package/dist/types/quickPasteNoteTypes.d.ts +26 -0
- package/dist/types/quickPasteNoteTypes.d.ts.map +1 -0
- package/dist/types/quickPasteNoteTypes.js +2 -0
- package/dist/types/recallTypeTypes.d.ts +13 -0
- package/dist/types/recallTypeTypes.d.ts.map +1 -0
- package/dist/types/recallTypeTypes.js +2 -0
- package/dist/types/recallTypes.d.ts +6 -3
- package/dist/types/recallTypes.d.ts.map +1 -1
- package/dist/types/refAttachTypes.d.ts +3 -0
- package/dist/types/refAttachTypes.d.ts.map +1 -1
- package/dist/types/referralTypes.d.ts +7 -4
- package/dist/types/referralTypes.d.ts.map +1 -1
- package/dist/types/reportTypes.d.ts +56 -0
- package/dist/types/reportTypes.d.ts.map +1 -0
- package/dist/types/reportTypes.js +2 -0
- package/dist/types/rxPatTypes.d.ts +43 -0
- package/dist/types/rxPatTypes.d.ts.map +1 -0
- package/dist/types/rxPatTypes.js +2 -0
- package/dist/types/scheduleOpTypes.d.ts +22 -0
- package/dist/types/scheduleOpTypes.d.ts.map +1 -0
- package/dist/types/scheduleOpTypes.js +2 -0
- package/dist/types/scheduleTypes.d.ts +17 -0
- package/dist/types/scheduleTypes.d.ts.map +1 -1
- package/dist/types/securityLogTypes.d.ts +3 -0
- package/dist/types/securityLogTypes.d.ts.map +1 -1
- package/dist/types/securityTypes.d.ts +13 -0
- package/dist/types/securityTypes.d.ts.map +1 -0
- package/dist/types/securityTypes.js +2 -0
- package/dist/types/sheetDefTypes.d.ts +22 -0
- package/dist/types/sheetDefTypes.d.ts.map +1 -0
- package/dist/types/sheetDefTypes.js +2 -0
- package/dist/types/sheetFieldTypes.d.ts +48 -0
- package/dist/types/sheetFieldTypes.d.ts.map +1 -0
- package/dist/types/sheetFieldTypes.js +2 -0
- package/dist/types/sheetTypes.d.ts +62 -0
- package/dist/types/sheetTypes.d.ts.map +1 -0
- package/dist/types/sheetTypes.js +2 -0
- package/dist/types/signalODTypes.d.ts +48 -0
- package/dist/types/signalODTypes.d.ts.map +1 -0
- package/dist/types/signalODTypes.js +2 -0
- package/dist/types/statementTypes.d.ts +60 -0
- package/dist/types/statementTypes.d.ts.map +1 -0
- package/dist/types/statementTypes.js +2 -0
- package/dist/types/subscriptionTypes.d.ts +99 -0
- package/dist/types/subscriptionTypes.d.ts.map +1 -0
- package/dist/types/subscriptionTypes.js +2 -0
- package/dist/types/substitutionLinkTypes.d.ts +46 -0
- package/dist/types/substitutionLinkTypes.d.ts.map +1 -0
- package/dist/types/substitutionLinkTypes.js +2 -0
- package/dist/types/taskListTypes.d.ts +67 -0
- package/dist/types/taskListTypes.d.ts.map +1 -0
- package/dist/types/taskListTypes.js +2 -0
- package/dist/types/taskNoteTypes.d.ts +42 -0
- package/dist/types/taskNoteTypes.d.ts.map +1 -0
- package/dist/types/taskNoteTypes.js +2 -0
- package/dist/types/taskTypes.d.ts +153 -0
- package/dist/types/taskTypes.d.ts.map +1 -0
- package/dist/types/taskTypes.js +2 -0
- package/dist/types/toothInitialTypes.d.ts +44 -0
- package/dist/types/toothInitialTypes.d.ts.map +1 -0
- package/dist/types/toothInitialTypes.js +2 -0
- package/dist/types/treatPlanAttachTypes.d.ts +3 -0
- package/dist/types/treatPlanAttachTypes.d.ts.map +1 -1
- package/dist/types/treatPlanTypes.d.ts +4 -0
- package/dist/types/treatPlanTypes.d.ts.map +1 -1
- package/dist/types/userGroupAttachTypes.d.ts +22 -0
- package/dist/types/userGroupAttachTypes.d.ts.map +1 -0
- package/dist/types/userGroupAttachTypes.js +2 -0
- package/dist/types/userGroupTypes.d.ts +21 -0
- package/dist/types/userGroupTypes.d.ts.map +1 -0
- package/dist/types/userGroupTypes.js +2 -0
- package/dist/types/userODTypes.d.ts +97 -0
- package/dist/types/userODTypes.d.ts.map +1 -0
- package/dist/types/userODTypes.js +2 -0
- package/dist/utils/errorHandler.d.ts +5 -0
- package/dist/utils/errorHandler.d.ts.map +1 -1
- package/dist/utils/errorHandler.js +11 -0
- package/dist/utils/httpClient.d.ts +24 -6
- package/dist/utils/httpClient.d.ts.map +1 -1
- package/dist/utils/httpClient.js +28 -24
- package/docs/Open Dental 2026-04-22/api-url-list.md +110 -0
- package/docs/Open Dental 2026-04-22/apiaccountmodules.md +116 -0
- package/docs/Open Dental 2026-04-22/apiadjustments.md +133 -0
- package/docs/Open Dental 2026-04-22/apiallergies.md +132 -0
- package/docs/Open Dental 2026-04-22/apiallergydefs.md +74 -0
- package/docs/Open Dental 2026-04-22/apiappointments.md +510 -0
- package/docs/Open Dental 2026-04-22/apiappointmenttypes.md +86 -0
- package/docs/Open Dental 2026-04-22/apiapptfielddefs.md +130 -0
- package/docs/Open Dental 2026-04-22/apiapptfields.md +147 -0
- package/docs/Open Dental 2026-04-22/apiasapcomms.md +141 -0
- package/docs/Open Dental 2026-04-22/apiautonotecontrols.md +111 -0
- package/docs/Open Dental 2026-04-22/apiautonotes.md +103 -0
- package/docs/Open Dental 2026-04-22/apibenefits.md +515 -0
- package/docs/Open Dental 2026-04-22/apicarriers.md +150 -0
- package/docs/Open Dental 2026-04-22/apichartmodules.md +135 -0
- package/docs/Open Dental 2026-04-22/apiclaimpayments.md +206 -0
- package/docs/Open Dental 2026-04-22/apiclaimprocs.md +256 -0
- package/docs/Open Dental 2026-04-22/apiclaims.md +339 -0
- package/docs/Open Dental 2026-04-22/apiclaimtrackings.md +110 -0
- package/docs/Open Dental 2026-04-22/apiclinics.md +95 -0
- package/docs/Open Dental 2026-04-22/apiclockevents.md +98 -0
- package/docs/Open Dental 2026-04-22/apicodegroups.md +140 -0
- package/docs/Open Dental 2026-04-22/apicommlogs.md +161 -0
- package/docs/Open Dental 2026-04-22/apicomputers.md +39 -0
- package/docs/Open Dental 2026-04-22/apicovcats.md +139 -0
- package/docs/Open Dental 2026-04-22/apicovspans.md +140 -0
- package/docs/Open Dental 2026-04-22/apidefinitions.md +90 -0
- package/docs/Open Dental 2026-04-22/apidiscountplans.md +154 -0
- package/docs/Open Dental 2026-04-22/apidiscountplansubs.md +125 -0
- package/docs/Open Dental 2026-04-22/apidiseasedefs.md +88 -0
- package/docs/Open Dental 2026-04-22/apidiseases.md +168 -0
- package/docs/Open Dental 2026-04-22/apidocuments.md +319 -0
- package/docs/Open Dental 2026-04-22/apiehrpatients.md +87 -0
- package/docs/Open Dental 2026-04-22/apiemployees.md +145 -0
- package/docs/Open Dental 2026-04-22/apiemployers.md +129 -0
- package/docs/Open Dental 2026-04-22/apieobattaches.md +132 -0
- package/docs/Open Dental 2026-04-22/apietrans.md +44 -0
- package/docs/Open Dental 2026-04-22/apietransmessagetexts.md +56 -0
- package/docs/Open Dental 2026-04-22/apietranss.md +79 -0
- package/docs/Open Dental 2026-04-22/apievents.md +96 -0
- package/docs/Open Dental 2026-04-22/apifamilymodules.md +108 -0
- package/docs/Open Dental 2026-04-22/apifees.md +146 -0
- package/docs/Open Dental 2026-04-22/apifeescheds.md +116 -0
- package/docs/Open Dental 2026-04-22/apihistappointments.md +121 -0
- package/docs/Open Dental 2026-04-22/apiimplementation.md +128 -0
- package/docs/Open Dental 2026-04-22/apiinsplans.md +236 -0
- package/docs/Open Dental 2026-04-22/apiinssubs.md +171 -0
- package/docs/Open Dental 2026-04-22/apiinsverifies.md +123 -0
- package/docs/Open Dental 2026-04-22/apilabcases.md +174 -0
- package/docs/Open Dental 2026-04-22/apilaboratories.md +147 -0
- package/docs/Open Dental 2026-04-22/apilabturnarounds.md +128 -0
- package/docs/Open Dental 2026-04-22/apimedicationpats.md +170 -0
- package/docs/Open Dental 2026-04-22/apimedications.md +74 -0
- package/docs/Open Dental 2026-04-22/apioperatories.md +78 -0
- package/docs/Open Dental 2026-04-22/apipatfielddefs.md +139 -0
- package/docs/Open Dental 2026-04-22/apipatfields.md +166 -0
- package/docs/Open Dental 2026-04-22/apipatientnotes.md +102 -0
- package/docs/Open Dental 2026-04-22/apipatientraces.md +51 -0
- package/docs/Open Dental 2026-04-22/apipatients.md +346 -0
- package/docs/Open Dental 2026-04-22/apipatplans.md +147 -0
- package/docs/Open Dental 2026-04-22/apipayments.md +236 -0
- package/docs/Open Dental 2026-04-22/apipayplancharges.md +59 -0
- package/docs/Open Dental 2026-04-22/apipayplans.md +256 -0
- package/docs/Open Dental 2026-04-22/apipaysplits.md +112 -0
- package/docs/Open Dental 2026-04-22/apiperioexams.md +155 -0
- package/docs/Open Dental 2026-04-22/apiperiomeasures.md +162 -0
- package/docs/Open Dental 2026-04-22/apipharmacies.md +78 -0
- package/docs/Open Dental 2026-04-22/apipopups.md +127 -0
- package/docs/Open Dental 2026-04-22/apipreferences.md +47 -0
- package/docs/Open Dental 2026-04-22/apiprocedurecodes.md +260 -0
- package/docs/Open Dental 2026-04-22/apiprocedurelogs.md +477 -0
- package/docs/Open Dental 2026-04-22/apiprocnotes.md +86 -0
- package/docs/Open Dental 2026-04-22/apiproctps.md +141 -0
- package/docs/Open Dental 2026-04-22/apiproviders.md +189 -0
- package/docs/Open Dental 2026-04-22/apiqueries.md +74 -0
- package/docs/Open Dental 2026-04-22/apiquickpastecats.md +130 -0
- package/docs/Open Dental 2026-04-22/apiquickpastenotes.md +75 -0
- package/docs/Open Dental 2026-04-22/apirecalls.md +239 -0
- package/docs/Open Dental 2026-04-22/apirecalltypes.md +65 -0
- package/docs/Open Dental 2026-04-22/apirefattaches.md +179 -0
- package/docs/Open Dental 2026-04-22/apireferrals.md +198 -0
- package/docs/Open Dental 2026-04-22/apireports.md +85 -0
- package/docs/Open Dental 2026-04-22/apirxpats.md +113 -0
- package/docs/Open Dental 2026-04-22/apischeduleops.md +58 -0
- package/docs/Open Dental 2026-04-22/apischedules.md +106 -0
- package/docs/Open Dental 2026-04-22/apisecurity.md +53 -0
- package/docs/Open Dental 2026-04-22/apisecuritylogs.md +59 -0
- package/docs/Open Dental 2026-04-22/apisheetdefs.md +118 -0
- package/docs/Open Dental 2026-04-22/apisheetfields.md +140 -0
- package/docs/Open Dental 2026-04-22/apisheets.md +156 -0
- package/docs/Open Dental 2026-04-22/apisignalods.md +118 -0
- package/docs/Open Dental 2026-04-22/apispecification.md +47 -0
- package/docs/Open Dental 2026-04-22/apistatements.md +160 -0
- package/docs/Open Dental 2026-04-22/apisubscriptions.md +133 -0
- package/docs/Open Dental 2026-04-22/apisubstitutionlinks.md +143 -0
- package/docs/Open Dental 2026-04-22/apitasklists.md +89 -0
- package/docs/Open Dental 2026-04-22/apitasknotes.md +130 -0
- package/docs/Open Dental 2026-04-22/apitasks.md +192 -0
- package/docs/Open Dental 2026-04-22/apitoothinitials.md +119 -0
- package/docs/Open Dental 2026-04-22/apitreatplanattaches.md +111 -0
- package/docs/Open Dental 2026-04-22/apitreatplans.md +201 -0
- package/docs/Open Dental 2026-04-22/apiusergroupattaches.md +57 -0
- package/docs/Open Dental 2026-04-22/apiusergroups.md +56 -0
- package/docs/Open Dental 2026-04-22/apiuserods.md +128 -0
- package/docs/Open Dental 2026-04-22/context/Open Dental _ Benefits Guide.md +294 -0
- package/docs/Open Dental 2026-04-22/context/OpenDental_DB_Documentation_v26-1.xml +20118 -0
- package/docs/Open Dental 2026-04-22/context/sitemap.xml +4617 -0
- package/package.json +8 -7
- package/release.sh +3 -5
- package/tsconfig.test.json +8 -0
- package/__tests__/example.test.ts +0 -6
- package/dist/types/appoinmentTypesType.d.ts.map +0 -1
- package/src/api/accountModules.ts +0 -61
- package/src/api/adjustments.ts +0 -126
- package/src/api/allergies.ts +0 -114
- package/src/api/appointmentTypes.ts +0 -21
- package/src/api/appointments.ts +0 -343
- package/src/api/benefits.ts +0 -155
- package/src/api/chartModules.ts +0 -53
- package/src/api/claimProcs.ts +0 -117
- package/src/api/claims.ts +0 -173
- package/src/api/commlogs.ts +0 -63
- package/src/api/definitions.ts +0 -35
- package/src/api/discountPlanSubs.ts +0 -106
- package/src/api/discountPlans.ts +0 -159
- package/src/api/diseases.ts +0 -130
- package/src/api/familyModules.ts +0 -29
- package/src/api/feeScheds.ts +0 -30
- package/src/api/fees.ts +0 -43
- package/src/api/index.ts +0 -25
- package/src/api/insPlans.ts +0 -158
- package/src/api/insSubs.ts +0 -155
- package/src/api/insVerifies.ts +0 -85
- package/src/api/labCases.ts +0 -183
- package/src/api/medicationPats.ts +0 -120
- package/src/api/operatories.ts +0 -46
- package/src/api/patFields.ts +0 -112
- package/src/api/patPlans.ts +0 -113
- package/src/api/patients.ts +0 -254
- package/src/api/payPlanCharges.ts +0 -49
- package/src/api/payPlans.ts +0 -274
- package/src/api/paySplits.ts +0 -56
- package/src/api/payments.ts +0 -86
- package/src/api/procNotes.ts +0 -67
- package/src/api/procTPs.ts +0 -112
- package/src/api/procedureCodes.ts +0 -45
- package/src/api/procedureLog.ts +0 -377
- package/src/api/providers.ts +0 -175
- package/src/api/queries.ts +0 -43
- package/src/api/recalls.ts +0 -148
- package/src/api/refAttaches.ts +0 -142
- package/src/api/referrals.ts +0 -222
- package/src/api/schedules.ts +0 -64
- package/src/api/securityLogs.ts +0 -32
- package/src/api/treatplanattaches.ts +0 -67
- package/src/api/treatplans.ts +0 -96
- package/src/index.ts +0 -2
- package/src/openDental.ts +0 -506
- package/src/transformerTypes/visitTypes.ts +0 -87
- package/src/transformers/index.ts +0 -4
- package/src/transformers/visit.ts +0 -83
- package/src/types/DiscountPlanTypes.ts +0 -70
- package/src/types/accountModuleTypes.ts +0 -46
- package/src/types/adjustmentTypes.ts +0 -63
- package/src/types/allergyTypes.ts +0 -48
- package/src/types/appoinmentTypesType.ts +0 -16
- package/src/types/appointmentTypes.ts +0 -256
- package/src/types/benefitTypes.ts +0 -70
- package/src/types/chartModuleTypes.ts +0 -65
- package/src/types/claimProcTypes.ts +0 -99
- package/src/types/claimTypes.ts +0 -227
- package/src/types/commlogTypes.ts +0 -28
- package/src/types/definitionTypes.ts +0 -24
- package/src/types/discountPlanSubTypes.ts +0 -45
- package/src/types/diseaseTypes.ts +0 -50
- package/src/types/familyModuleTypes.ts +0 -33
- package/src/types/feeSchedsTypes.ts +0 -38
- package/src/types/feeTypes.ts +0 -49
- package/src/types/insPlanTypes.ts +0 -72
- package/src/types/insSubTypes.ts +0 -65
- package/src/types/insVerifiesTypes.ts +0 -38
- package/src/types/labCaseTypes.ts +0 -71
- package/src/types/medicationPatTypes.ts +0 -50
- package/src/types/operatoryTypes.ts +0 -24
- package/src/types/patFieldTypes.ts +0 -24
- package/src/types/patPlanTypes.ts +0 -55
- package/src/types/patientTypes.ts +0 -236
- package/src/types/payPlanChargeTypes.ts +0 -77
- package/src/types/payPlanTypes.ts +0 -171
- package/src/types/paySplitTypes.ts +0 -44
- package/src/types/paymentTypes.ts +0 -69
- package/src/types/procNoteTypes.ts +0 -38
- package/src/types/procTPTypes.ts +0 -79
- package/src/types/procedureCodeTypes.ts +0 -48
- package/src/types/procedurelogTypes.ts +0 -184
- package/src/types/providerTypes.ts +0 -73
- package/src/types/queryTypes.ts +0 -17
- package/src/types/recallTypes.ts +0 -102
- package/src/types/refAttachTypes.ts +0 -63
- package/src/types/referralTypes.ts +0 -102
- package/src/types/scheduleTypes.ts +0 -32
- package/src/types/securityLogTypes.ts +0 -24
- package/src/types/treatPlanAttachTypes.ts +0 -39
- package/src/types/treatPlanTypes.ts +0 -75
- package/src/utils/errorHandler.ts +0 -0
- package/src/utils/httpClient.ts +0 -111
- package/tsconfig.json +0 -16
- /package/dist/types/{appoinmentTypesType.js → allergyDefTypes.js} +0 -0
package/src/api/appointments.ts
DELETED
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
import HttpClient from "../utils/httpClient";
|
|
2
|
-
import {
|
|
3
|
-
Appointment,
|
|
4
|
-
AppointmentSlot,
|
|
5
|
-
GetAppointmentParams,
|
|
6
|
-
GetASAPParams,
|
|
7
|
-
GetSlotsParams,
|
|
8
|
-
GetSlotsWebSchedParams,
|
|
9
|
-
GetWebSchedAppointmentsParams,
|
|
10
|
-
CreateNewAppointmentParams,
|
|
11
|
-
CreatePlannedAppointmentParams,
|
|
12
|
-
SchedulePlannedAppointmentParams,
|
|
13
|
-
ScheduleWebSchedAppointmentParams,
|
|
14
|
-
UpdateAppointmentParams,
|
|
15
|
-
BreakAppointmentParams,
|
|
16
|
-
ConfirmAppointmentParams,
|
|
17
|
-
} from "../types/appointmentTypes";
|
|
18
|
-
|
|
19
|
-
export default class Appointments {
|
|
20
|
-
private httpClient: HttpClient;
|
|
21
|
-
|
|
22
|
-
constructor(httpClient: HttpClient) {
|
|
23
|
-
this.httpClient = httpClient;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Fetch a single appointment by its ID.
|
|
28
|
-
* @param {number} AptNum - The unique identifier for the appointment.
|
|
29
|
-
* @returns {Promise<Appointment>} - The appointment object.
|
|
30
|
-
* @throws {Error} - If `AptNum` is not provided.
|
|
31
|
-
*/
|
|
32
|
-
public async getAppointment(AptNum: number): Promise<Appointment> {
|
|
33
|
-
if (!AptNum) {
|
|
34
|
-
throw new Error("AptNum is required.");
|
|
35
|
-
}
|
|
36
|
-
return this.httpClient.get<Appointment>(`/appointments/${AptNum}`);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Fetch multiple appointments with optional filtering and pagination.
|
|
41
|
-
* @param {Object} params - The parameters for filtering and pagination.
|
|
42
|
-
* @param {number} [params.PatNum] - Filter by patient number.
|
|
43
|
-
* @param {"Scheduled" | "Complete" | "UnschedList" | "ASAP" | "Broken" | "Planned" | "PtNote" | "PtNoteCompleted"} [params.AptStatus] - Filter by appointment status.
|
|
44
|
-
* @param {number} [params.Op] - Filter by operatory number.
|
|
45
|
-
* @param {string} [params.date] - Search for a specific day in "yyyy-MM-dd" format.
|
|
46
|
-
* @param {string} [params.dateStart] - Start date for date range in "yyyy-MM-dd" format.
|
|
47
|
-
* @param {string} [params.dateEnd] - End date for date range in "yyyy-MM-dd" format.
|
|
48
|
-
* @param {number} [params.ClinicNum] - Filter by clinic number.
|
|
49
|
-
* @param {string} [params.DateTStamp] - Return only appointments updated after this timestamp.
|
|
50
|
-
* @param {string} [params.AppointmentTypeNum] - Returns only appointments matching appointmenttype.AppointmentTypeNum.
|
|
51
|
-
* @param {number} [params.Offset] - Pagination offset for results.
|
|
52
|
-
* @returns {Promise<Appointment[]>} - A list of appointments.
|
|
53
|
-
*/
|
|
54
|
-
public async getAppointments({
|
|
55
|
-
PatNum,
|
|
56
|
-
AptStatus,
|
|
57
|
-
Op,
|
|
58
|
-
date,
|
|
59
|
-
dateStart,
|
|
60
|
-
dateEnd,
|
|
61
|
-
ClinicNum,
|
|
62
|
-
DateTStamp,
|
|
63
|
-
AppointmentTypeNum,
|
|
64
|
-
Offset,
|
|
65
|
-
}: GetAppointmentParams = {}): Promise<Appointment[]> {
|
|
66
|
-
const params = {
|
|
67
|
-
PatNum,
|
|
68
|
-
AptStatus,
|
|
69
|
-
Op,
|
|
70
|
-
date,
|
|
71
|
-
dateStart,
|
|
72
|
-
dateEnd,
|
|
73
|
-
ClinicNum,
|
|
74
|
-
DateTStamp,
|
|
75
|
-
AppointmentTypeNum,
|
|
76
|
-
Offset,
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
return this.httpClient.get<Appointment[]>("/appointments", params);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Fetch ASAP appointments.
|
|
84
|
-
* @param {Object} params - Parameters for fetching ASAP appointments.
|
|
85
|
-
* @param {number} params.ClinicNum - Required: Clinic number. Use 0 for appointments not attached to clinics.
|
|
86
|
-
* @param {number} [params.ProvNum] - Optional: Provider number.
|
|
87
|
-
* @returns {Promise<Appointment[]>} - A list of ASAP appointments.
|
|
88
|
-
* @throws {Error} - If `ClinicNum` is not provided.
|
|
89
|
-
*/
|
|
90
|
-
public async getASAPappointments(params: GetASAPParams): Promise<Appointment[]> {
|
|
91
|
-
if (!params.ClinicNum) {
|
|
92
|
-
throw new Error("ClinicNum is required when Clinics are enabled.");
|
|
93
|
-
}
|
|
94
|
-
return this.httpClient.get<Appointment[]>("/appointments/asap", params);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Fetch available appointment slots.
|
|
99
|
-
* @param {Object} params - Parameters for filtering slots.
|
|
100
|
-
* @param {string} [params.date] - Search for a specific day in "yyyy-MM-dd" format.
|
|
101
|
-
* @param {string} [params.dateStart] - Start date for date range in "yyyy-MM-dd" format.
|
|
102
|
-
* @param {string} [params.dateEnd] - End date for date range in "yyyy-MM-dd" format.
|
|
103
|
-
* @param {number} [params.lengthMinutes] - Ignore slots shorter than this length.
|
|
104
|
-
* @param {number} [params.ProvNum] - Provider number.
|
|
105
|
-
* @param {number} [params.OpNum] - Operatory number.
|
|
106
|
-
* @returns {Promise<AppointmentSlot[]>} - A list of available slots.
|
|
107
|
-
*/
|
|
108
|
-
public async getSlots(params?: GetSlotsParams): Promise<AppointmentSlot[]> {
|
|
109
|
-
return this.httpClient.get<AppointmentSlot[]>("/appointments/Slots", params);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Fetch WebSched appointment slots.
|
|
114
|
-
* @param {Object} params - Parameters for filtering WebSched slots.
|
|
115
|
-
* @param {string} [params.date] - Search for a specific day in "yyyy-MM-dd" format.
|
|
116
|
-
* @param {string} [params.dateStart] - Start date for date range in "yyyy-MM-dd" format.
|
|
117
|
-
* @param {string} [params.dateEnd] - End date for date range in "yyyy-MM-dd" format.
|
|
118
|
-
* @param {number} params.ClinicNum - Required: Clinic number.
|
|
119
|
-
* @param {number} [params.defNumApptType] - Appointment type definition number.
|
|
120
|
-
* @param {"true" | "false"} [params.isNewPatient] - Indicates if the slot is for a new patient.
|
|
121
|
-
* @returns {Promise<AppointmentSlot[]>} - A list of WebSched slots.
|
|
122
|
-
* @throws {Error} - If `ClinicNum` is not provided.
|
|
123
|
-
*/
|
|
124
|
-
public async getSlotsWebSched(params: GetSlotsWebSchedParams): Promise<AppointmentSlot[]> {
|
|
125
|
-
if (!params.ClinicNum) {
|
|
126
|
-
throw new Error("ClinicNum is required when Clinics are enabled.");
|
|
127
|
-
}
|
|
128
|
-
return this.httpClient.get<AppointmentSlot[]>("/appointments/SlotsWebSched", params);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Fetch WebSched appointments.
|
|
133
|
-
* @param {Object} params - Parameters for fetching WebSched appointments.
|
|
134
|
-
* @param {string} [params.date] - Search for a specific day in "yyyy-MM-dd" format.
|
|
135
|
-
* @param {string} [params.dateStart] - Start date for date range in "yyyy-MM-dd" format.
|
|
136
|
-
* @param {string} [params.dateEnd] - End date for date range in "yyyy-MM-dd" format.
|
|
137
|
-
* @param {string} [params.DateTStamp] - Return only appointments updated after this timestamp.
|
|
138
|
-
* @param {number} [params.ClinicNum] - Clinic number.
|
|
139
|
-
* @returns {Promise<Appointment[]>} - A list of WebSched appointments.
|
|
140
|
-
*/
|
|
141
|
-
public async getWebSchedAppointments(
|
|
142
|
-
params?: GetWebSchedAppointmentsParams
|
|
143
|
-
): Promise<Appointment[]> {
|
|
144
|
-
return this.httpClient.get<Appointment[]>("/appointments/WebSched", params);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Create a new appointment.
|
|
149
|
-
* @param {Object} data - Data for the new appointment.
|
|
150
|
-
* @param {number} data.PatNum - Required: Patient number.
|
|
151
|
-
* @param {number} data.Op - Required: Operatory number.
|
|
152
|
-
* @param {string} data.AptDateTime - Required: Appointment start time in "yyyy-MM-dd HH:mm:ss" format.
|
|
153
|
-
* @param {"Scheduled" | "Complete" | "UnschedList" | "PtNote" | "PtNoteCompleted"} [data.AptStatus="Scheduled"] - Optional: Appointment status. Default is "Scheduled".
|
|
154
|
-
* @param {string} [data.Pattern="/XX/"] - Optional: Time pattern in 5-minute increments. Default is "/XX/" (20 minutes).
|
|
155
|
-
* @param {number} [data.Confirmed] - Optional: Confirmation status definition number.
|
|
156
|
-
* @param {string} [data.Note] - Optional: Appointment notes.
|
|
157
|
-
* @param {number} [data.ProvNum] - Optional: Provider number.
|
|
158
|
-
* @param {number} [data.ProvHyg=0] - Optional: Hygienist provider number. Default is 0.
|
|
159
|
-
* @param {number} [data.Assistant] - Optional: FK to employee.EmployeeNum. Default 0.
|
|
160
|
-
* @param {number} [data.ClinicNum] - Optional: Clinic number.
|
|
161
|
-
* @param {"true" | "false"} [data.IsHygiene="false"] - Optional: Indicates if the appointment is for hygiene. Default is "false".
|
|
162
|
-
* @param {"true" | "false"} [data.IsNewPatient="false"] - Optional: Indicates if the patient is new. Default is "false".
|
|
163
|
-
* @param {"Normal" | "ASAP"} [data.Priority="Normal"] - Optional: Appointment priority. Default is "Normal".
|
|
164
|
-
* @param {number} [data.AppointmentTypeNum=0] - Optional: Appointment type number. Default is 0.
|
|
165
|
-
* @param {string} [data.colorOverride] - Optional: Custom color in "R,G,B" format.
|
|
166
|
-
* @param {string} [data.PatternSecondary] - Optional: Secondary time pattern.
|
|
167
|
-
* @param {"true" | "false"} [data.IsMirrored] - Optional: Either "true" or "false". If true, then this appointment will show a duplicate mirrored on the secondary provider's operatory. The mirrored appointments can be set to show/hide using the preference "ShowMirroredAppts". Default "false" if "ShowMirroredAppts" is not set.
|
|
168
|
-
* @returns {Promise<Appointment>} - The created appointment.
|
|
169
|
-
* @throws {Error} - If required fields are missing.
|
|
170
|
-
*/
|
|
171
|
-
public async createNewAppointment(data: CreateNewAppointmentParams): Promise<Appointment> {
|
|
172
|
-
if (!data.PatNum || !data.Op || !data.AptDateTime) {
|
|
173
|
-
throw new Error("PatNum, Op, and AptDateTime are required.");
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
return this.httpClient.post<Appointment>("/appointments", data);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Create a planned appointment.
|
|
182
|
-
* @param {Object} data - Data for the planned appointment.
|
|
183
|
-
* @param {number} data.PatNum - Required: Patient number.
|
|
184
|
-
* @param {number} [data.AppointmentTypeNum] - Optional: Appointment type number.
|
|
185
|
-
* @param {number[]} [data.procNums] - Optional: Array of procedure numbers. At least one of `AppointmentTypeNum` or `procNums` is required.
|
|
186
|
-
* @param {string} [data.Pattern="/XX/"] - Optional: Time pattern in 5-minute increments. Default is "/XX/" (20 minutes).
|
|
187
|
-
* @param {number} [data.Confirmed] - Optional: Confirmation status definition number.
|
|
188
|
-
* @param {string} [data.Note] - Optional: Appointment notes.
|
|
189
|
-
* @param {number} [data.ProvNum] - Optional: Provider number.
|
|
190
|
-
* @param {number} [data.ProvHyg=0] - Optional: Hygienist provider number. Default is 0.
|
|
191
|
-
* @param {number} [data.ClinicNum] - Optional: Clinic number.
|
|
192
|
-
* @param {"true" | "false"} [data.IsHygiene="false"] - Optional: Indicates if the appointment is for hygiene. Default is "false".
|
|
193
|
-
* @param {"true" | "false"} [data.IsNewPatient="false"] - Optional: Indicates if the patient is new. Default is "false".
|
|
194
|
-
* @param {"Normal" | "ASAP"} [data.Priority="Normal"] - Optional: Appointment priority. Default is "Normal".
|
|
195
|
-
* @param {string} [data.PatternSecondary] - Optional: Secondary time pattern.
|
|
196
|
-
* @returns {Promise<Appointment>} - The created planned appointment.
|
|
197
|
-
* @throws {Error} - If required fields are missing.
|
|
198
|
-
*/
|
|
199
|
-
public async createPlannedAppointment(data: CreatePlannedAppointmentParams): Promise<Appointment> {
|
|
200
|
-
if (!data.PatNum || (!data.AppointmentTypeNum && (!data.procNums || data.procNums.length === 0))) {
|
|
201
|
-
throw new Error("PatNum and either AppointmentTypeNum or procNums are required.");
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
return this.httpClient.post<Appointment>("/appointments/Planned", data);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Schedule a planned appointment.
|
|
210
|
-
* @param {Object} data - Data for scheduling the planned appointment.
|
|
211
|
-
* @param {number} data.AptNum - Required: The appointment number with Planned status.
|
|
212
|
-
* @param {string} data.AptDateTime - Required: Start time for the appointment in "yyyy-MM-dd HH:mm:ss" format.
|
|
213
|
-
* @param {number} data.ProvNum - Required: The provider number for the appointment.
|
|
214
|
-
* @param {number} data.Op - Required: The operatory number for the appointment.
|
|
215
|
-
* @param {number} [data.Confirmed] - Optional: Confirmation status definition number.
|
|
216
|
-
* @param {string} [data.Note] - Optional: Notes for the appointment. Will overwrite any existing note.
|
|
217
|
-
* @returns {Promise<Appointment>} - The scheduled appointment.
|
|
218
|
-
* @throws {Error} - If required fields are missing.
|
|
219
|
-
*/
|
|
220
|
-
public async schedulePlannedAppointment(
|
|
221
|
-
data: SchedulePlannedAppointmentParams
|
|
222
|
-
): Promise<Appointment> {
|
|
223
|
-
if (!data.AptNum || !data.AptDateTime || !data.ProvNum || !data.Op) {
|
|
224
|
-
throw new Error("AptNum, AptDateTime, ProvNum, and Op are required.");
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
return this.httpClient.post<Appointment>("/appointments/SchedulePlanned", data);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Schedule a WebSched appointment.
|
|
232
|
-
* @param {Object} data - Data for scheduling the WebSched appointment.
|
|
233
|
-
* @param {number} data.PatNum - Required: Patient number.
|
|
234
|
-
* @param {string} data.DateTimeStart - Required: The start time of the appointment in "yyyy-MM-dd HH:mm:ss" format.
|
|
235
|
-
* @param {string} data.DateTimeEnd - Required: The end time of the appointment in "yyyy-MM-dd HH:mm:ss" format.
|
|
236
|
-
* @param {number} data.ProvNum - Required: Provider number associated with the appointment slot.
|
|
237
|
-
* @param {number} data.OpNum - Required: Operatory number associated with the appointment slot.
|
|
238
|
-
* @param {number} data.defNumApptType - Required: Appointment type definition number.
|
|
239
|
-
* @returns {Promise<Appointment>} - The scheduled WebSched appointment.
|
|
240
|
-
* @throws {Error} - If required fields are missing.
|
|
241
|
-
*/
|
|
242
|
-
public async scheduleWebSchedAppointment(
|
|
243
|
-
data: ScheduleWebSchedAppointmentParams
|
|
244
|
-
): Promise<Appointment> {
|
|
245
|
-
if (
|
|
246
|
-
!data.PatNum ||
|
|
247
|
-
!data.DateTimeStart ||
|
|
248
|
-
!data.DateTimeEnd ||
|
|
249
|
-
!data.ProvNum ||
|
|
250
|
-
!data.OpNum ||
|
|
251
|
-
!data.defNumApptType
|
|
252
|
-
) {
|
|
253
|
-
throw new Error(
|
|
254
|
-
"PatNum, DateTimeStart, DateTimeEnd, ProvNum, OpNum, and defNumApptType are required."
|
|
255
|
-
);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
return this.httpClient.post<Appointment>("/appointments/WebSched", data);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Update an existing appointment.
|
|
263
|
-
* @param {Object} data - Data for updating the appointment.
|
|
264
|
-
* @param {number} data.AptNum - Required: The unique identifier of the appointment to update.
|
|
265
|
-
* @param {"Scheduled" | "Complete" | "UnschedList" | "Broken" | "Planned" | "PtNote" | "PtNoteCompleted"} [data.AptStatus] - Optional: Updated status of the appointment.
|
|
266
|
-
* @param {string} [data.Pattern] - Optional: Updated time pattern in 5-minute increments.
|
|
267
|
-
* @param {number} [data.Confirmed] - Optional: Updated confirmation status definition number.
|
|
268
|
-
* @param {number} [data.Op] - Optional: Updated operatory number.
|
|
269
|
-
* @param {string} [data.Note] - Optional: Updated notes for the appointment. Will overwrite existing notes.
|
|
270
|
-
* @param {number} [data.ProvNum] - Optional: Updated provider number.
|
|
271
|
-
* @param {number} [data.ProvHyg] - Optional: Updated hygienist provider number.
|
|
272
|
-
* @param {number} [data.Assistant] - Optional: FK to employee.EmployeeNum. Default 0.
|
|
273
|
-
* @param {string} [data.AptDateTime] - Optional: Updated appointment start time in "yyyy-MM-dd HH:mm:ss" format.
|
|
274
|
-
* @param {number} [data.ClinicNum] - Optional: Updated clinic number.
|
|
275
|
-
* @param {"true" | "false"} [data.IsHygiene] - Optional: Indicates if the appointment is for hygiene.
|
|
276
|
-
* @param {"true" | "false"} [data.IsNewPatient] - Optional: Indicates if the appointment is for a new patient.
|
|
277
|
-
* @param {"Normal" | "ASAP"} [data.Priority] - Optional: Updated priority of the appointment.
|
|
278
|
-
* @param {number} [data.AppointmentTypeNum] - Optional: Updated appointment type number.
|
|
279
|
-
* @param {number} [data.UnschedStatus] - Optional: Updated unscheduled status definition number.
|
|
280
|
-
* @param {string} [data.colorOverride] - Optional: Updated custom color in "R,G,B" format.
|
|
281
|
-
* @param {string} [data.PatternSecondary] - Optional: Updated secondary time pattern.
|
|
282
|
-
* @param {"true" | "false"} [data.IsMirrored] - Optional: Either "true" or "false". If true, then this appointment will show a duplicate mirrored on the secondary provider's operatory. The mirrored appointments can be set to show/hide using the preference "ShowMirroredAppts". Default "false" if "ShowMirroredAppts" is not set.
|
|
283
|
-
* @returns {Promise<Appointment>} - The updated appointment.
|
|
284
|
-
* @throws {Error} - If `AptNum` is missing.
|
|
285
|
-
*/
|
|
286
|
-
public async updateAppointment(data: UpdateAppointmentParams): Promise<Appointment> {
|
|
287
|
-
if (!data.AptNum) {
|
|
288
|
-
throw new Error("AptNum is required.");
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
return this.httpClient.put<Appointment>(`/appointments/${data.AptNum}`, data);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Break an existing appointment.
|
|
296
|
-
* Only appointments with an AptStatus of "Scheduled" can be broken.
|
|
297
|
-
* @param {Object} data - Data for breaking the appointment.
|
|
298
|
-
* @param {number} data.AptNum - Required: The unique identifier of the appointment to break.
|
|
299
|
-
* @param {"true" | "false"} data.sendToUnscheduledList - Required: Indicates if the appointment should be added to the Unscheduled List.
|
|
300
|
-
* @param {"Missed" | "Cancelled"} [data.breakType] - Optional: Reason for breaking the appointment.
|
|
301
|
-
* @returns {Promise<void>} - Resolves when the appointment is successfully broken.
|
|
302
|
-
* @throws {Error} - If required fields are missing.
|
|
303
|
-
*/
|
|
304
|
-
public async breakAppointment(data: BreakAppointmentParams): Promise<void> {
|
|
305
|
-
if (!data.AptNum || !data.sendToUnscheduledList) {
|
|
306
|
-
throw new Error("AptNum and sendToUnscheduledList are required.");
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
return this.httpClient.put<void>(`/appointments/${data.AptNum}/Break`, data);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Update the note for an existing appointment.
|
|
314
|
-
* @param {number} AptNum - Required: The unique identifier of the appointment to update.
|
|
315
|
-
* @param {string} Note - Required: The new note content for the appointment.
|
|
316
|
-
* @returns {Promise<void>} - Resolves when the note is successfully updated.
|
|
317
|
-
* @throws {Error} - If required fields are missing.
|
|
318
|
-
*/
|
|
319
|
-
public async updateAppointmentNote(AptNum: number, Note: string): Promise<void> {
|
|
320
|
-
if (!AptNum || !Note) {
|
|
321
|
-
throw new Error("AptNum and Note are required.");
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
return this.httpClient.put<void>(`/appointments/${AptNum}/Note`, { Note });
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Confirm an existing appointment.
|
|
329
|
-
* @param {Object} data - Data for confirming the appointment.
|
|
330
|
-
* @param {number} data.AptNum - Required: The unique identifier of the appointment to confirm.
|
|
331
|
-
* @param {string} [data.confirmVal] - Optional: Confirmation value, e.g., "Sent", "Confirmed".
|
|
332
|
-
* @param {number} [data.defNum] - Optional: Confirmation definition number.
|
|
333
|
-
* @returns {Promise<void>} - Resolves when the appointment is successfully confirmed.
|
|
334
|
-
* @throws {Error} - If required fields are missing.
|
|
335
|
-
*/
|
|
336
|
-
public async confirmAppointment(data: ConfirmAppointmentParams): Promise<void> {
|
|
337
|
-
if (!data.AptNum || (!data.confirmVal && !data.defNum)) {
|
|
338
|
-
throw new Error("AptNum and either confirmVal or defNum are required.");
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
return this.httpClient.put<void>(`/appointments/${data.AptNum}/Confirm`, data);
|
|
342
|
-
}
|
|
343
|
-
}
|
package/src/api/benefits.ts
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import HttpClient from "../utils/httpClient";
|
|
2
|
-
import {
|
|
3
|
-
Benefit,
|
|
4
|
-
GetBenefitsParams,
|
|
5
|
-
CreateBenefitParams,
|
|
6
|
-
UpdateBenefitParams,
|
|
7
|
-
} from "../types/benefitTypes";
|
|
8
|
-
|
|
9
|
-
export default class Benefits {
|
|
10
|
-
private httpClient: HttpClient;
|
|
11
|
-
|
|
12
|
-
constructor(httpClient: HttpClient) {
|
|
13
|
-
this.httpClient = httpClient;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Fetch multiple benefits with optional filtering and pagination.
|
|
18
|
-
* @param {Object} params - The parameters for filtering and pagination.
|
|
19
|
-
* @param {number} [params.PlanNum] - FK to InsPlan.PlanNum.
|
|
20
|
-
* @param {number} [params.PatPlanNum] - FK to PatPlan.PatPlanNum.
|
|
21
|
-
* @param {number} [params.Offset] - Pagination offset for results.
|
|
22
|
-
* @returns {Promise<Benefit[]>} - A list of benefits.
|
|
23
|
-
*/
|
|
24
|
-
public async getBenefits({
|
|
25
|
-
PlanNum,
|
|
26
|
-
PatPlanNum,
|
|
27
|
-
Offset,
|
|
28
|
-
}: GetBenefitsParams = {}): Promise<Benefit[]> {
|
|
29
|
-
const params = {
|
|
30
|
-
PlanNum,
|
|
31
|
-
PatPlanNum,
|
|
32
|
-
Offset,
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
return this.httpClient.get<Benefit[]>("/benefits", params);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* This adds a Benefit row to the database.
|
|
40
|
-
* @param {Object} data - The details of the Benefit to create.
|
|
41
|
-
* @param {number} data.PlanNum - This or PatPlanNum is required. FK to InsPlan.PlanNum.
|
|
42
|
-
* @param {number} data.PatPlanNum - This or PlanNum is required. FK to PatPlan.PlanNum.
|
|
43
|
-
* @param {"ActiveCoverage" | "CoInsurance" | "Deductible" | "CoPayment" | "Exclusions" | "Limitations" | "WaitingPeriod"} data.BenefitType - Required. Either "ActiveCoverage", "CoInsurance", "Deductible", "CoPayment", "Exclusions", "Limitations", or "WaitingPeriod".
|
|
44
|
-
* @param {"None" | "Individual" | "Family"} data.CoverageLevel - Required. Either "None", "Individual", or "Family".
|
|
45
|
-
* @param {number} [data.CovCatNum] - Optional. FK to covcat.CovCatNum.
|
|
46
|
-
* @param {number} [data.Percent] - Optional. Only allowed if BenefitType is "CoInsurance". Must be a value between 0 and 100. Default -1 (Indicating empty).
|
|
47
|
-
* @param {number} [data.MonetaryAmt] - Optional. Only used if BenefitType is "CoPayment", "Limitations", or "Deductible". Default -1.0 (Indicating empty).
|
|
48
|
-
* @param {"None" | "ServiceYear" | "CalendarYear" | "Lifetime" | "Years" | "NumberInLast12Months"} [data.TimePeriod] - Optional. Either "None", "ServiceYear", "CalendarYear", "Lifetime", "Years", or "NumberInLast12Months". Default "CalendarYear".
|
|
49
|
-
* @param {"None" | "NumberOfServices" | "AgeLimit" | "Visits" | "Years" | "Months"} [data.QuantityQualifier] - Optional. Either "None", "NumberOfServices", "AgeLimit", "Visits", "Years", or "Months". Default "None". Must be "Months" or "Years" if BenefitType is "WaitingPeriod".
|
|
50
|
-
* @param {number} [data.Quantity] - Optional. Must be a value between 0 and 100. Default 0. Must be a value greater than 0 if QuantityQualifier is "AgeLimit".
|
|
51
|
-
* @param {number} [data.CodeNum] - Optional. FK to procedurecode.CodeNum. Only allowed if CovCatNum is 0. Will be used over procCode if both are specified. Default 0.
|
|
52
|
-
* @param {string} [data.procCode] - Optional. FK to procedurecode.ProcCode. Only allowed if CovCatNum is 0. Default empty string.
|
|
53
|
-
* @param {number} [data.CodeGroupNum] - Optional. (Added in version 23.2.62) FK to codegroup.CodeGroupNum. The group of procedure codes that apply to this Frequency Limitation benefit.
|
|
54
|
-
* @returns {Promise<Benefit>} - The created a benefit.
|
|
55
|
-
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
56
|
-
*/
|
|
57
|
-
public async createBenefit({
|
|
58
|
-
PlanNum,
|
|
59
|
-
PatPlanNum,
|
|
60
|
-
BenefitType,
|
|
61
|
-
CoverageLevel,
|
|
62
|
-
CovCatNum,
|
|
63
|
-
Percent,
|
|
64
|
-
MonetaryAmt,
|
|
65
|
-
TimePeriod,
|
|
66
|
-
QuantityQualifier,
|
|
67
|
-
Quantity,
|
|
68
|
-
CodeNum,
|
|
69
|
-
procCode,
|
|
70
|
-
CodeGroupNum,
|
|
71
|
-
} : CreateBenefitParams): Promise<Benefit> {
|
|
72
|
-
if (!BenefitType || !CoverageLevel) {
|
|
73
|
-
throw new Error("Invalid data: Either PlanNum or PatPlanNum and BenefitType and CoverageLevel are required.");
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return this.httpClient.post<Benefit>("/benefits", {
|
|
77
|
-
PlanNum,
|
|
78
|
-
PatPlanNum,
|
|
79
|
-
BenefitType,
|
|
80
|
-
CoverageLevel,
|
|
81
|
-
CovCatNum,
|
|
82
|
-
Percent,
|
|
83
|
-
MonetaryAmt,
|
|
84
|
-
TimePeriod,
|
|
85
|
-
QuantityQualifier,
|
|
86
|
-
Quantity,
|
|
87
|
-
CodeNum,
|
|
88
|
-
procCode,
|
|
89
|
-
CodeGroupNum,
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Update a Benefit.
|
|
95
|
-
* @param {Object} data - The details of Benefit to update.
|
|
96
|
-
* @param {number} data.BenefitNum - Required. PK
|
|
97
|
-
* @param {number} [data.CovCatNum] - Optional. FK to covcat.CovCatNum.
|
|
98
|
-
* @param {"ActiveCoverage" | "CoInsurance" | "Deductible" | "CoPayment" | "Exclusions" | "Limitations" | "WaitingPeriod"} [data.BenefitType] - Optional. Either "ActiveCoverage", "CoInsurance", "Deductible", "CoPayment", "Exclusions", "Limitations", or "WaitingPeriod".
|
|
99
|
-
* @param {number} [data.Percent] - Optional. Only allowed if BenefitType is "CoInsurance". Must be a value between 0 and 100. Default -1 (Indicating empty).
|
|
100
|
-
* @param {number} [data.MonetaryAmt] - Optional. Only used if BenefitType is "CoPayment", "Limitations", or "Deductible". Default -1.0 (Indicating empty).
|
|
101
|
-
* @param {"None" | "ServiceYear" | "CalendarYear" | "Lifetime" | "Years" | "NumberInLast12Months"} [data.TimePeriod] - Optional. Either "None", "ServiceYear", "CalendarYear", "Lifetime", "Years", or "NumberInLast12Months". Default "CalendarYear".
|
|
102
|
-
* @param {"None" | "NumberOfServices" | "AgeLimit" | "Visits" | "Years" | "Months"} [data.QuantityQualifier] - Optional. Either "None", "NumberOfServices", "AgeLimit", "Visits", "Years", or "Months". Default "None". Must be "Months" or "Years" if BenefitType is "WaitingPeriod".
|
|
103
|
-
* @param {number} [data.Quantity] - Optional. Must be a value between 0 and 100. Default 0. Must be a value greater than 0 if QuantityQualifier is "AgeLimit".
|
|
104
|
-
* @param {number} [data.CodeNum] - Optional. FK to procedurecode.CodeNum. Only allowed if CovCatNum is 0. Will be used over procCode if both are specified.
|
|
105
|
-
* @param {string} [data.procCode] - Optional. FK to procedurecode.ProcCode. Only allowed if CovCatNum is 0.
|
|
106
|
-
* @param {"None" | "Individual" | "Family"} [data.CoverageLevel] - Optional. Either "None", "Individual", or "Family".
|
|
107
|
-
* @returns {Promise<Benefit>} - The updated Benefit.
|
|
108
|
-
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
109
|
-
*/
|
|
110
|
-
public async updateBenefit({
|
|
111
|
-
BenefitNum,
|
|
112
|
-
CovCatNum,
|
|
113
|
-
BenefitType,
|
|
114
|
-
Percent,
|
|
115
|
-
MonetaryAmt,
|
|
116
|
-
TimePeriod,
|
|
117
|
-
QuantityQualifier,
|
|
118
|
-
Quantity,
|
|
119
|
-
CodeNum,
|
|
120
|
-
procCode,
|
|
121
|
-
CoverageLevel,
|
|
122
|
-
} : UpdateBenefitParams): Promise<Benefit> {
|
|
123
|
-
if (!BenefitNum || typeof BenefitNum !== "number") {
|
|
124
|
-
throw new Error("Invalid data: A Valid BenefitNum is required.");
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return this.httpClient.put<Benefit>(`/benefits/${BenefitNum}`, {
|
|
128
|
-
CovCatNum,
|
|
129
|
-
BenefitType,
|
|
130
|
-
Percent,
|
|
131
|
-
MonetaryAmt,
|
|
132
|
-
TimePeriod,
|
|
133
|
-
QuantityQualifier,
|
|
134
|
-
Quantity,
|
|
135
|
-
CodeNum,
|
|
136
|
-
procCode,
|
|
137
|
-
CoverageLevel,
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Delete a Benefit entry.
|
|
143
|
-
* This removes a Benefit row from the database.
|
|
144
|
-
* @param {number} BenefitNum - Required: The unique identifier of the Benefit to delete.
|
|
145
|
-
* @returns {Promise<void>} - Resolves when the Benefit is deleted.
|
|
146
|
-
* @throws {Error} - If `BenefitNum` is not valid or the API returns an error.
|
|
147
|
-
*/
|
|
148
|
-
public async deletePatPlan(BenefitNum: number): Promise<void> {
|
|
149
|
-
if (!BenefitNum || typeof BenefitNum !== "number") {
|
|
150
|
-
throw new Error("Invalid parameter: BenefitNum must be a valid number.");
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
return this.httpClient.delete<void>(`/benefits/${BenefitNum}`);
|
|
154
|
-
}
|
|
155
|
-
}
|
package/src/api/chartModules.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import HttpClient from "../utils/httpClient";
|
|
2
|
-
import {
|
|
3
|
-
ProgNote,
|
|
4
|
-
PatientInfo,
|
|
5
|
-
PlannedAppointment,
|
|
6
|
-
} from "../types/chartModuleTypes"
|
|
7
|
-
|
|
8
|
-
export default class ChartModules {
|
|
9
|
-
private httpClient: HttpClient;
|
|
10
|
-
|
|
11
|
-
constructor(httpClient: HttpClient) {
|
|
12
|
-
this.httpClient = httpClient;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Gets the Progress Notes for a patient, similarly to how it shows in the Chart Module. Use another API method or a query to get specific details about each object.
|
|
17
|
-
* @param {number} PatNum - The unique identifier for the patient.
|
|
18
|
-
* @returns {Promise<ProgNote>} - The ProgNote object.
|
|
19
|
-
* @throws {Error} - If `PatNum` is not provided.
|
|
20
|
-
*/
|
|
21
|
-
public async getProgNotes(PatNum: number): Promise<ProgNote> {
|
|
22
|
-
if (!PatNum || typeof PatNum !== "number") {
|
|
23
|
-
throw new Error("PatNum must be an integer.");
|
|
24
|
-
}
|
|
25
|
-
return this.httpClient.get<ProgNote>(`/chartmodules/${PatNum}/ProgNotes`);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Gets Patient Info for a patient, similarly to how it shows in the Chart Module. Use another API method or a query to get specific details about returned elements.
|
|
30
|
-
* @param {number} PatNum - The unique identifier for the patient.
|
|
31
|
-
* @returns {Promise<PatientInfo>} - The PatientInfo object.
|
|
32
|
-
* @throws {Error} - If `PatNum` is not provided.
|
|
33
|
-
*/
|
|
34
|
-
public async PatientInfo(PatNum: number): Promise<PatientInfo> {
|
|
35
|
-
if (!PatNum || typeof PatNum !== "number") {
|
|
36
|
-
throw new Error("PatNum must be an integer.");
|
|
37
|
-
}
|
|
38
|
-
return this.httpClient.get<PatientInfo>(`/chartmodules/${PatNum}/PatientInfo`);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Gets Planned Appointments for a patient, similarly to how it shows in the Chart Module's Planned Appointments tab.
|
|
43
|
-
* @param {number} PatNum - The unique identifier for the patient.
|
|
44
|
-
* @returns {Promise<PlannedAppointment>} - The planned appts object.
|
|
45
|
-
* @throws {Error} - If `PatNum` is not provided.
|
|
46
|
-
*/
|
|
47
|
-
public async getPlannedAppts(PatNum: number): Promise<PlannedAppointment> {
|
|
48
|
-
if (!PatNum || typeof PatNum !== "number") {
|
|
49
|
-
throw new Error("PatNum must be an integer.");
|
|
50
|
-
}
|
|
51
|
-
return this.httpClient.get<PlannedAppointment>(`/chartmodules/${PatNum}/PlannedAppts`);
|
|
52
|
-
}
|
|
53
|
-
}
|
package/src/api/claimProcs.ts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import HttpClient from "../utils/httpClient";
|
|
2
|
-
import {
|
|
3
|
-
ClaimProc,
|
|
4
|
-
GetClaimProcsParams,
|
|
5
|
-
updateClaimProcParams,
|
|
6
|
-
} from "../types/claimProcTypes";
|
|
7
|
-
|
|
8
|
-
export default class ClaimProcs {
|
|
9
|
-
private httpClient: HttpClient;
|
|
10
|
-
|
|
11
|
-
constructor(httpClient: HttpClient) {
|
|
12
|
-
this.httpClient = httpClient;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Fetch multiple ClaimProcs with optional filtering and pagination.
|
|
17
|
-
* @param {Object} params - The parameters for filtering and pagination.
|
|
18
|
-
* @param {number} [params.ProcNum] - FK to procedurelog.ProcNum.
|
|
19
|
-
* @param {number} [params.ClaimNum] - FK to claim.ClaimNum.
|
|
20
|
-
* @param {number} [params.PatNum] - FK to patient.PatNum.
|
|
21
|
-
* @param {"NotReceived" | "Received" | "Preauth" | "Adjustment" | "Supplemental" | "CapClaim" | "Estimate" | "CapComplete" | "CapEstimate" | "InsHist"} [params.Status] - Either "NotReceived", "Received", "Preauth", "Adjustment", "Supplemental", "CapClaim", "Estimate",
|
|
22
|
-
* @param {number} [params.ClaimPaymentNum] - FK to claimpayment.ClaimPaymentNum.
|
|
23
|
-
* @param {number} [params.Offset] - Pagination offset for results.
|
|
24
|
-
* @returns {Promise<ClaimProc[]>} - A list of ClaimProcs.
|
|
25
|
-
*/
|
|
26
|
-
public async getClaimProcs({
|
|
27
|
-
ProcNum,
|
|
28
|
-
ClaimNum,
|
|
29
|
-
PatNum,
|
|
30
|
-
Status,
|
|
31
|
-
ClaimPaymentNum,
|
|
32
|
-
Offset,
|
|
33
|
-
}: GetClaimProcsParams = {}): Promise<ClaimProc[]> {
|
|
34
|
-
const params = {
|
|
35
|
-
ProcNum,
|
|
36
|
-
ClaimNum,
|
|
37
|
-
PatNum,
|
|
38
|
-
Status,
|
|
39
|
-
ClaimPaymentNum,
|
|
40
|
-
Offset,
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
return this.httpClient.get<ClaimProc[]>("/claimprocs", params);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Updates an existing procedure. When changing procCode, the treatment area of the current and passed in procedure codes must match. Attempting to pass in empty strings for ToothNum, Surf, and ToothRange will be silently ignored. The CodeNum, procCode, Discount, ToothNum, Surf, and ToothRange fields cannot be updated on procedures with a ProcStatus of C. If the procedurelog is associated with certain appointments, claims, or orthocases, then some fields cannot be updated. Procedure code default notes will not be used.
|
|
48
|
-
* ProcedureLogs associated with adjustments, appointments, payments, payplancharges, or paysplits are updated exactly as in Open Dental.
|
|
49
|
-
* @param {Object} data - The updated details of the procedure log.
|
|
50
|
-
* @param {number} data.ClaimProcNum - Primary Key. Required in the URL.
|
|
51
|
-
* @param {number} [data.ProvNum] - ProvNum of a provider. Follows the ProcProvChangesClaimProcWithClaim preference. See Claimproc Provider for more information.,
|
|
52
|
-
* @param {number} [data.FeeBilled] - The amount billed to insurance.
|
|
53
|
-
* @param {number} [data.DedApplied] - Deductible applied to this procedure only. DedApplied will always match the DedEstOverride value when ClaimProc status is NotReceived or Preauth.
|
|
54
|
-
* @param {"NotReceived" | "Received" | "Preauth" | "Supplemental" | "Estimate" } [data.Status] - Either "NotReceived", "Received", "Preauth", "Supplemental", or "Estimate". When set to Received or Supplemental, ClaimProc.DateEntry will be updated to DateTime.Now.
|
|
55
|
-
* @param {number} [data.InsPayAmt] - Amount insurance actually paid. Cannot be updated once the procedure is attached to a check.
|
|
56
|
-
* @param {string} [data.Remarks] - The remarks that insurance sends in the EOB about procedures. Overwrites any existing Remarks.
|
|
57
|
-
* @param {number} [data.ClaimPaymentNum] - ClaimPaymentNum of a partial claimpayment. Attaches this ClaimProc, alongside any other able ClaimProcs on the same Claim, to the specified ClaimPayment. Can supply 0 to detach this ClaimProc, and all other ClaimProcs from the same claim that are on the same ClaimPayment. See Finalize Insurance Payment and Batch Insurance Payment for more information.
|
|
58
|
-
* @param {number} [data.WriteOff] - Amount not covered by insurance which is written off.
|
|
59
|
-
* @param {string} [data.CodeSent] - The procedure code that was sent to insurance. Usually it is the same as the actual procedure code, but may be different if using alternate codes (for example: Medicaid), medical codes, or custom codes with suffixes that get removed before being sent. See also Incorrect Procedures on Claim. Use ProcedureCodes GET to get a list of valid codes.
|
|
60
|
-
* @param {number} [data.PercentOverride] - The percentage that insurance is expected to cover. A number between 0 and 100. Use -1 to indicate no override.
|
|
61
|
-
* @param {"true" | "false"} [data.NoBillIns]
|
|
62
|
-
* @param {number} [data.CopayOverride] - Based on the insurance plan's copay fee schedule, and subtracted from the amount that insurance will pay. Use -1 to indicate no override.
|
|
63
|
-
* @param {number} [data.DedEstOverride] - The amount that the patient must pay each year before insurance kicks in, and always subtracted before Percentage is calculated. Use -1 to indicate no override.
|
|
64
|
-
* @param {number} [data.InsEstTotalOverride] - The estimated amount that insurance will pay. If the claimproc is already attached to a claim, this will not affect the patient balance. Use -1 to indicate no override.
|
|
65
|
-
* @param {number} [data.PaidOtherInsOverride] - Adds up all amounts paid by insurance plans that are lower in order. Use -1 to indicate no override.
|
|
66
|
-
* @param {number} [data.WriteOffEstOverride] - WriteOff amount usually only used for PPOs. Use -1 to indicate no override.
|
|
67
|
-
* @param {number} [data.ClaimPaymentTracking] - Used to document information about the payment of the procedure. Useful to track why payment was rejected. See also Definitions: Claim Payment Tracking. Definition.DefNum where definition.Category=36.
|
|
68
|
-
* @returns {Promise<ClaimProc>} - The updated procedure log.
|
|
69
|
-
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
70
|
-
*/
|
|
71
|
-
public async updateClaimProc(
|
|
72
|
-
{
|
|
73
|
-
ClaimProcNum,
|
|
74
|
-
ProvNum,
|
|
75
|
-
FeeBilled,
|
|
76
|
-
DedApplied,
|
|
77
|
-
Status,
|
|
78
|
-
InsPayAmt,
|
|
79
|
-
Remarks,
|
|
80
|
-
ClaimPaymentNum,
|
|
81
|
-
WriteOff,
|
|
82
|
-
CodeSent,
|
|
83
|
-
PercentOverride,
|
|
84
|
-
NoBillIns,
|
|
85
|
-
CopayOverride,
|
|
86
|
-
DedEstOverride,
|
|
87
|
-
InsEstTotalOverride,
|
|
88
|
-
PaidOtherInsOverride,
|
|
89
|
-
WriteOffEstOverride,
|
|
90
|
-
ClaimPaymentTracking,
|
|
91
|
-
}: updateClaimProcParams
|
|
92
|
-
): Promise<ClaimProc> {
|
|
93
|
-
if (!ClaimProcNum || typeof ClaimProcNum !== "number") {
|
|
94
|
-
throw new Error("Invalid parameter: ClaimProcNum must be a valid number.");
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return this.httpClient.put<ClaimProc>(`/claimprocs/${ClaimProcNum}`, {
|
|
98
|
-
ProvNum,
|
|
99
|
-
FeeBilled,
|
|
100
|
-
DedApplied,
|
|
101
|
-
Status,
|
|
102
|
-
InsPayAmt,
|
|
103
|
-
Remarks,
|
|
104
|
-
ClaimPaymentNum,
|
|
105
|
-
WriteOff,
|
|
106
|
-
CodeSent,
|
|
107
|
-
PercentOverride,
|
|
108
|
-
NoBillIns,
|
|
109
|
-
CopayOverride,
|
|
110
|
-
DedEstOverride,
|
|
111
|
-
InsEstTotalOverride,
|
|
112
|
-
PaidOtherInsOverride,
|
|
113
|
-
WriteOffEstOverride,
|
|
114
|
-
ClaimPaymentTracking,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}
|