@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
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @see https://www.opendental.com/site/apibenefits.html
|
|
3
|
-
*/
|
|
4
|
-
export interface Benefit {
|
|
5
|
-
BenefitNum?: number; // Primary Key
|
|
6
|
-
PlanNum?: number; // FK to InsPlan.PlanNum.
|
|
7
|
-
PatPlanNum?: number; // FK to PatPlan.PlanNum.
|
|
8
|
-
CovCatNum?: number; // FK to covcat.CovCatNum.
|
|
9
|
-
BenefitType?: "ActiveCoverage" | "CoInsurance" | "Deductible" | "CoPayment" | "Exclusions" | "Limitations" | "WaitingPeriod"; // Either "ActiveCoverage", "CoInsurance", "Deductible", "CoPayment", "Exclusions", "Limitations", or "WaitingPeriod".
|
|
10
|
-
Percent?: number; // Only allowed if BenefitType is "CoInsurance". Must be a value between 0 and 100. Default -1 (Indicating empty).
|
|
11
|
-
MonetaryAmt?: number; // Only used if BenefitType is "CoPayment", "Limitations", or "Deductible". Default -1.0 (Indicating empty).
|
|
12
|
-
TimePeriod?: "None" | "ServiceYear" | "CalendarYear" | "Lifetime" | "Years" | "NumberInLast12Months"; // Either "None", "ServiceYear", "CalendarYear", "Lifetime", "Years", or "NumberInLast12Months". Default "CalendarYear".
|
|
13
|
-
QuantityQualifier?: "None" | "NumberOfServices" | "AgeLimit" | "Visits" | "Years" | "Months"; // Either "None", "NumberOfServices", "AgeLimit", "Visits", "Years", or "Months". Default "None". Must be "Months" or "Years" if BenefitType is "WaitingPeriod".
|
|
14
|
-
Quantity?: number; // Must be a value between 0 and 100. Default 0. Must be a value greater than 0 if QuantityQualifier is "AgeLimit".
|
|
15
|
-
CodeNum?: number; // FK to procedurecode.CodeNum. Only allowed if CovCatNum is 0. Will be used over procCode if both are specified. Default 0.
|
|
16
|
-
procCode?: string; // FK to procedurecode.ProcCode. Only allowed if CovCatNum is 0. Default empty string.
|
|
17
|
-
CoverageLevel?: "None" | "Individual" | "Family"; // Either "None", "Individual", or "Family".
|
|
18
|
-
SecDateTEntry?: string; // String in "yyyy-MM-dd HH:mm:ss" format
|
|
19
|
-
SecDateTEdit?: string; // String in "yyyy-MM-dd HH:mm:ss" format
|
|
20
|
-
CodeGroupNum?: number; // (Added in version 23.2.62) FK to codegroup.CodeGroupNum. The group of procedure codes that apply to this Frequency Limitation benefit.
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Gets a list of PatPlans that meet a set of search criteria.
|
|
25
|
-
* @see https://www.opendental.com/site/apibenefits.html
|
|
26
|
-
*/
|
|
27
|
-
export interface GetBenefitsParams {
|
|
28
|
-
PlanNum?: number; // FK to InsPlan.PlanNum.
|
|
29
|
-
PatPlanNum?: number; // FK to PatPlan.PatPlanNum.
|
|
30
|
-
Offset?: number; // Pagination offset for results
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Parameters for creating a new insplan.
|
|
35
|
-
* @see https://www.opendental.com/site/apibenefits.html
|
|
36
|
-
*/
|
|
37
|
-
export interface CreateBenefitParams {
|
|
38
|
-
PlanNum?: number; // This or PatPlanNum is required. FK to InsPlan.PlanNum.
|
|
39
|
-
PatPlanNum?: number; // This or PlanNum is required. FK to PatPlan.PlanNum.
|
|
40
|
-
BenefitType: "ActiveCoverage" | "CoInsurance" | "Deductible" | "CoPayment" | "Exclusions" | "Limitations" | "WaitingPeriod"; // Required. Either "ActiveCoverage", "CoInsurance", "Deductible", "CoPayment", "Exclusions", "Limitations", or "WaitingPeriod".
|
|
41
|
-
CoverageLevel: "None" | "Individual" | "Family"; // Required. Either "None", "Individual", or "Family".
|
|
42
|
-
CovCatNum?: number; // Optional. FK to covcat.CovCatNum.
|
|
43
|
-
Percent?: number; // Optional. Only allowed if BenefitType is "CoInsurance". Must be a value between 0 and 100. Default -1 (Indicating empty).
|
|
44
|
-
MonetaryAmt?: number; // Optional. Only used if BenefitType is "CoPayment", "Limitations", or "Deductible". Default -1.0 (Indicating empty).
|
|
45
|
-
TimePeriod?: "None" | "ServiceYear" | "CalendarYear" | "Lifetime" | "Years" | "NumberInLast12Months"; // Optional. Either "None", "ServiceYear", "CalendarYear", "Lifetime", "Years", or "NumberInLast12Months". Default "CalendarYear".
|
|
46
|
-
QuantityQualifier?: "None" | "NumberOfServices" | "AgeLimit" | "Visits" | "Years" | "Months"; // Optional. Either "None", "NumberOfServices", "AgeLimit", "Visits", "Years", or "Months". Default "None". Must be "Months" or "Years" if BenefitType is "WaitingPeriod".
|
|
47
|
-
Quantity?: number; // Optional. Must be a value between 0 and 100. Default 0. Must be a value greater than 0 if QuantityQualifier is "AgeLimit".
|
|
48
|
-
CodeNum?: number; // Optional. FK to procedurecode.CodeNum. Only allowed if CovCatNum is 0. Will be used over procCode if both are specified. Default 0.
|
|
49
|
-
procCode?: string; // Optional. FK to procedurecode.ProcCode. Only allowed if CovCatNum is 0. Default empty string.
|
|
50
|
-
CodeGroupNum?: number; // Optional. (Added in version 23.2.62) FK to codegroup.CodeGroupNum. The group of procedure codes that apply to this Frequency Limitation benefit.
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Parameters to update an insplan.
|
|
55
|
-
* @see https://www.opendental.com/site/apibenefits.html
|
|
56
|
-
*/
|
|
57
|
-
export interface UpdateBenefitParams {
|
|
58
|
-
BenefitNum: number; // Required in URL. Primary Key.
|
|
59
|
-
CovCatNum?: number; // Optional. FK to covcat.CovCatNum.
|
|
60
|
-
BenefitType?: "ActiveCoverage" | "CoInsurance" | "Deductible" | "CoPayment" | "Exclusions" | "Limitations" | "WaitingPeriod"; // Optional. Either "ActiveCoverage", "CoInsurance", "Deductible", "CoPayment", "Exclusions", "Limitations", or "WaitingPeriod".
|
|
61
|
-
Percent?: number; // Optional. Only allowed if BenefitType is "CoInsurance". Must be a value between 0 and 100. Default -1 (Indicating empty).
|
|
62
|
-
MonetaryAmt?: number; // Optional. Only used if BenefitType is "CoPayment", "Limitations", or "Deductible". Default -1.0 (Indicating empty).
|
|
63
|
-
TimePeriod?: "None" | "ServiceYear" | "CalendarYear" | "Lifetime" | "Years" | "NumberInLast12Months"; // Optional. Either "None", "ServiceYear", "CalendarYear", "Lifetime", "Years", or "NumberInLast12Months". Default "CalendarYear".
|
|
64
|
-
QuantityQualifier?: "None" | "NumberOfServices" | "AgeLimit" | "Visits" | "Years" | "Months"; // Optional. Either "None", "NumberOfServices", "AgeLimit", "Visits", "Years", or "Months". Default "None". Must be "Months" or "Years" if BenefitType is "WaitingPeriod".
|
|
65
|
-
Quantity?: number; // Optional. Must be a value between 0 and 100. Default 0. Must be a value greater than 0 if QuantityQualifier is "AgeLimit".
|
|
66
|
-
CodeNum?: number; // Optional. FK to procedurecode.CodeNum. Only allowed if CovCatNum is 0. Will be used over procCode if both are specified.
|
|
67
|
-
procCode?: string; // Optional. FK to procedurecode.ProcCode. Only allowed if CovCatNum is 0. Default empty string.
|
|
68
|
-
CoverageLevel?: "None" | "Individual" | "Family"; // Optional. Either "None", "Individual", or "Family".
|
|
69
|
-
}
|
|
70
|
-
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 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.
|
|
3
|
-
* @see https://www.opendental.com/site/apichartmodules.html
|
|
4
|
-
*/
|
|
5
|
-
export interface ProgNote {
|
|
6
|
-
ObjectType?: "Appointment" | "Commlog" | "Task" | "Email" | "LabCase" | "Rx" | "Sheet"; // The type of object being displayed?: number; // Appointment, Commlog, Task, Email, LabCase, Rx, or Sheet.
|
|
7
|
-
PrimaryKey?: number; // Primary Key corresponding to the objectType. Example: AptNum=34.
|
|
8
|
-
Date?: string; // Human readable date. Example 05/15/2021
|
|
9
|
-
Time?: string; // Human readable time. Example 1:20p
|
|
10
|
-
DateTime?: string; // Example 2021-12-21 10:00:00
|
|
11
|
-
Th?: string; // ToothNum for a Procedure, otherwise blank.
|
|
12
|
-
Surf?: string; // Tooth surface for the Procedure, otherwise blank.
|
|
13
|
-
Dx?: string; // Description of the Diagnosis.
|
|
14
|
-
Description?: string; // Description of the of the returned object.
|
|
15
|
-
Note?: string; // Additional notes for the returned object.
|
|
16
|
-
Stat?: string; // Status of the Procedure, otherwise blank. Example TP.
|
|
17
|
-
Prov?: string; // Example Doc1.
|
|
18
|
-
ProvNum?: string; // Example: 3
|
|
19
|
-
Amount?: string; // ProcFee for Procedure, otherwise blank. Example 53.50
|
|
20
|
-
ProcCode?: string; // ProcCode for Procedure, otherwise blank. Example D0220
|
|
21
|
-
User?: string; // Name of the user who created the Commlog, Email, or Rx. Otherwise blank.
|
|
22
|
-
Signed?: string; // Will be "Signed" if there is a signature on the Procedure or Sheet. Otherwise blank.
|
|
23
|
-
Length?: string; // Length of the appointment in HH:mm format. Example 0:30.
|
|
24
|
-
Abbr?: string; // Abbreviation of the Procedure, otherwise blank.
|
|
25
|
-
Clinic?: string; // Clinic abbreviation. Example: Metro Office.
|
|
26
|
-
ClinicNum?: string; // Example: 4
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 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.
|
|
31
|
-
* @see https://www.opendental.com/site/apichartmodules.html
|
|
32
|
-
*/
|
|
33
|
-
export interface PatientInfo {
|
|
34
|
-
Field?: string; // One of the following: Age, ABC0, Billing Type, Referred From, Date First Visit, Prov. (Pri, Sec), Pri Ins, Sec Ins, Payor Types, Premedicate, Problems, Med Urgent, Medical Summary, Service Notes, Medications, Allergies, Pat Restrictions
|
|
35
|
-
Content?: string; // The field's value
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Gets Planned Appointments for a patient, similarly to how it shows in the Chart Module's Planned Appointments tab.
|
|
40
|
-
* @see https://www.opendental.com/site/apichartmodules.html
|
|
41
|
-
*/
|
|
42
|
-
export interface PlannedAppointment {
|
|
43
|
-
AptNum?: number; // Unique identifier for the appointment
|
|
44
|
-
ProvNum?: number; // Provider number associated with the appointment
|
|
45
|
-
ItemOrder?: string; // Time pattern in 5-minute increments, e.g., "/XX/" for 20 minutes
|
|
46
|
-
minutes?: string; //The length of the appointment in minutes.
|
|
47
|
-
ProcDescript?: string; // Description of procedures linked to the appointment
|
|
48
|
-
Note?: string; //Appointment Note.
|
|
49
|
-
dateSched?: string; //DateTime of the linked scheduled appointment.
|
|
50
|
-
AptStatus?: AptStatus; // appointment.AptStatus.
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Appointment status options.
|
|
55
|
-
* @see https://www.opendental.com/site/apichartmodules.html
|
|
56
|
-
*/
|
|
57
|
-
export type AptStatus =
|
|
58
|
-
| "Scheduled"
|
|
59
|
-
| "Complete"
|
|
60
|
-
| "UnschedList"
|
|
61
|
-
| "ASAP"
|
|
62
|
-
| "Broken"
|
|
63
|
-
| "Planned"
|
|
64
|
-
| "PtNote"
|
|
65
|
-
| "PtNoteCompleted";
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a ClaimProc in the Open Dental system.
|
|
3
|
-
* @see https://www.opendental.com/site/apiclaimprocs.html
|
|
4
|
-
*/
|
|
5
|
-
export interface ClaimProc {
|
|
6
|
-
ClaimProcNum?: number; // Primary Key.
|
|
7
|
-
ProcNum?: number; // FK to procedurelog.ProcNum.
|
|
8
|
-
ClaimNum?: number; // FK to claim.ClaimNum.
|
|
9
|
-
PatNum?: number; // FK to patient.PatNum.
|
|
10
|
-
ProvNum?: number; // ProvNum of a provider. Follows the ProcProvChangesClaimProcWithClaim preference. See Claimproc Provider for more information.,
|
|
11
|
-
FeeBilled?: number; // The amount billed to insurance.
|
|
12
|
-
InsPayEst?: number; // The estimated amount that insurance will pay.
|
|
13
|
-
DedApplied?: number; // Deductible applied to this procedure only. DedApplied will always match the DedEstOverride value when ClaimProc status is NotReceived or Preauth.
|
|
14
|
-
Status?: "NotReceived" | "Received" | "Preauth" | "Adjustment" | "Supplemental" | "CapClaim" | "Estimate" | "CapComplete" | "CapEstimate" | "InsHist"; // Either "NotReceived", "Received", "Preauth", "Adjustment", "Supplemental", "CapClaim", "Estimate", "CapComplete", "CapEstimate", or "InsHist".
|
|
15
|
-
InsPayAmt?: number; // Amount insurance actually paid. Cannot be updated once the procedure is attached to a check.
|
|
16
|
-
Remarks?: string; // The remarks that insurance sends in the EOB about procedures. Overwrites any existing Remarks.
|
|
17
|
-
ClaimPaymentNum?: number; // 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.
|
|
18
|
-
PlanNum?: number; // FK to insplan.plannum.
|
|
19
|
-
DateCP?: string; // 2021-02-16,
|
|
20
|
-
WriteOff?: number; // Amount not covered by insurance which is written off.
|
|
21
|
-
CodeSent?: string; // 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.
|
|
22
|
-
AllowedOverride?: number; //
|
|
23
|
-
Percentage?: number; // The percentage that insurance is expected to cover.
|
|
24
|
-
PercentOverride?: number; // The percentage that insurance is expected to cover. A number between 0 and 100. Use -1 to indicate no override.
|
|
25
|
-
CopayAmt?: number; // Based on the insurance plan's copay fee schedule, and subtracted from the amount that insurance will pay.
|
|
26
|
-
NoBillIns?: true | false; // false,
|
|
27
|
-
PaidOtherIns?: number; // 0.0,
|
|
28
|
-
BaseEst?: number; // 88.0,
|
|
29
|
-
CopayOverride?: number; // Based on the insurance plan's copay fee schedule, and subtracted from the amount that insurance will pay. Use -1 to indicate no override.
|
|
30
|
-
ProcDate?: string; // String in "yyyy-MM-dd" format.
|
|
31
|
-
DateEntry?: string; // String in "yyyy-MM-dd" format.
|
|
32
|
-
DedEst?: number; // The amount that the patient must pay each year before insurance kicks in, and always subtracted before Percentage is calculated.
|
|
33
|
-
DedEstOverride?: number; // 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.
|
|
34
|
-
InsEstTotal?: number; // 88.0,
|
|
35
|
-
InsEstTotalOverride?: number; // 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.
|
|
36
|
-
PaidOtherInsOverride?: number; // Adds up all amounts paid by insurance plans that are lower in order. Use -1 to indicate no override.
|
|
37
|
-
EstimateNote?: string; //
|
|
38
|
-
WriteOffEst?: number; // WriteOff amount usually only used for PPOs.
|
|
39
|
-
WriteOffEstOverride?: number; // WriteOff amount usually only used for PPOs. Use -1 to indicate no override.
|
|
40
|
-
ClinicNum?: number; // FK to clinics
|
|
41
|
-
InsSubNum?: number; // FK to inssub.inssubnum
|
|
42
|
-
PaymentRow?: number; //
|
|
43
|
-
PayPlanNum?: number; // FK to pay plans
|
|
44
|
-
ClaimPaymentTracking?: number; // 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.
|
|
45
|
-
claimPaymentTracking?: string; // 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.
|
|
46
|
-
SecUserNumEntry?: number; //
|
|
47
|
-
SecDateEntry?: string; // String in "yyyy-MM-dd" format.
|
|
48
|
-
SecDateTEdit?: string; // String in "yyyy-MM-dd HH:mm:ss" format.
|
|
49
|
-
DateSuppReceived?: string; // String in "yyyy-MM-dd" format.
|
|
50
|
-
DateInsFinalized?: string; // String in "yyyy-MM-dd" format.
|
|
51
|
-
IsTransfer?: "true" | "false"; // false,
|
|
52
|
-
ClaimAdjReasonCodes?: string; //
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Gets all ClaimProcs based on provided parameters. If no parameter is given, it will get all ClaimProcs ordered by ClaimProcNum.
|
|
57
|
-
* @see https://www.opendental.com/site/apiclaimprocs.html
|
|
58
|
-
*/
|
|
59
|
-
export interface GetClaimProcsParams {
|
|
60
|
-
ProcNum?: number; // Optional. FK to procedurelog.ProcNum.
|
|
61
|
-
ClaimNum?: number; // Optional. FK to claim.ClaimNum.
|
|
62
|
-
PatNum?: number; // Optional. FK to patient.PatNum.
|
|
63
|
-
Status?: "NotReceived" | "Received" | "Preauth" | "Adjustment" | "Supplemental" | "CapClaim" | "Estimate" | "CapComplete" | "CapEstimate" | "InsHist"; // Either "NotReceived", "Received", "Preauth", "Adjustment", "Supplemental", "CapClaim", "Estimate", "CapComplete", "CapEstimate", or "InsHist".
|
|
64
|
-
ClaimPaymentNum?: number; // Optional. FK to claimpayment.ClaimPaymentNum.
|
|
65
|
-
Offset?: number; // Pagination offset for results
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* ClaimProcs are complex. They are used to link procedures to claims, insurance payments to procedures or claims, and insurance estimates to procedures without a claim.
|
|
70
|
-
* See Claim Procedures ( claimprocs ) and Claim for more details.
|
|
71
|
-
* Updates a ClaimProc exactly as in Open Dental, performing the same calculations for necessary fields.
|
|
72
|
-
* All below fields are optional. However, which fields can be changed depends on the status of the ClaimProc and the Claim (if associated).
|
|
73
|
-
* Editing a received ClaimProc can delete all of the Income Transfers on the claim.
|
|
74
|
-
* Cannot update a ClaimProc that has IsTransfer set to true, or a Status of "Adjustment", "InsHist", "CapClaim", "CapComplete", or "CapEstimate". To update a ClaimProc with a Status of Adjustment, use ClaimProcs PUT InsAdjust.
|
|
75
|
-
* Updating a ClaimProc recalculates the claim totals of the Claim to which it's attached. BlueBook values are not updated. Override field values use -1 to represent none or blank.
|
|
76
|
-
* @see https://www.opendental.com/site/apiclaimprocs.html
|
|
77
|
-
*/
|
|
78
|
-
export interface updateClaimProcParams {
|
|
79
|
-
ClaimProcNum: number; // Primary Key. Required in the URL.
|
|
80
|
-
ProvNum?: number; // ProvNum of a provider. Follows the ProcProvChangesClaimProcWithClaim preference. See Claimproc Provider for more information.,
|
|
81
|
-
FeeBilled?: number; // The amount billed to insurance.
|
|
82
|
-
DedApplied?: number; // Deductible applied to this procedure only. DedApplied will always match the DedEstOverride value when ClaimProc status is NotReceived or Preauth.
|
|
83
|
-
Status?: "NotReceived" | "Received" | "Preauth" | "Adjustment" | "Supplemental" | "CapClaim" | "Estimate" | "CapComplete" | "CapEstimate" | "InsHist"; // Either "NotReceived", "Received", "Preauth", "Adjustment", "Supplemental", "CapClaim", "Estimate", "CapComplete", "CapEstimate", or "InsHist".
|
|
84
|
-
InsPayAmt?: number; // Amount insurance actually paid. Cannot be updated once the procedure is attached to a check.
|
|
85
|
-
Remarks?: string; // The remarks that insurance sends in the EOB about procedures. Overwrites any existing Remarks.
|
|
86
|
-
ClaimPaymentNum?: number; // 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.
|
|
87
|
-
WriteOff?: number; // Amount not covered by insurance which is written off.
|
|
88
|
-
CodeSent?: string; // 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.
|
|
89
|
-
PercentOverride?: number; // The percentage that insurance is expected to cover. A number between 0 and 100. Use -1 to indicate no override.
|
|
90
|
-
NoBillIns?: true | false; // false,
|
|
91
|
-
CopayOverride?: number; // Based on the insurance plan's copay fee schedule, and subtracted from the amount that insurance will pay. Use -1 to indicate no override.
|
|
92
|
-
DedEstOverride?: number; // 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.
|
|
93
|
-
InsEstTotalOverride?: number; // 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.
|
|
94
|
-
PaidOtherInsOverride?: number; // Adds up all amounts paid by insurance plans that are lower in order. Use -1 to indicate no override.
|
|
95
|
-
WriteOffEstOverride?: number; // WriteOff amount usually only used for PPOs. Use -1 to indicate no override.
|
|
96
|
-
ClaimPaymentTracking?: number; // 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.
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
package/src/types/claimTypes.ts
DELETED
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Claim types for Open Dental REST API
|
|
3
|
-
* Spec refs:
|
|
4
|
-
* - https://www.opendental.com/site/apiclaims.html
|
|
5
|
-
* - "Claim Database Schema" (columns and domain values)
|
|
6
|
-
*
|
|
7
|
-
* Notes:
|
|
8
|
-
* - Dates are strings from the API (yyyy-MM-dd or yyyy-MM-dd HH:mm:ss).
|
|
9
|
-
* - Some fields reference Definitions or DB enums; where Open Dental allows
|
|
10
|
-
* broader values, we model them as string unions with known values or `string`.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/** One-letter claim status sent by the API. */
|
|
14
|
-
export type ClaimStatus =
|
|
15
|
-
| "U" // Unsent
|
|
16
|
-
| "H" // Hold until pri received
|
|
17
|
-
| "W" // Waiting in queue
|
|
18
|
-
| "S" // Sent
|
|
19
|
-
| "R" // Received
|
|
20
|
-
| "I"; // Hold for In Process (only available in GET multiple filter)
|
|
21
|
-
|
|
22
|
-
/** Claim type per API (includes PreAuth and Other). */
|
|
23
|
-
export type ClaimType = "P" | "S" | "PreAuth" | "Cap" | "Other";
|
|
24
|
-
|
|
25
|
-
/** Medical type per API. */
|
|
26
|
-
export type MedType = "Dental" | "Medical" | "Institutional";
|
|
27
|
-
|
|
28
|
-
/** AccidentRelated per API. */
|
|
29
|
-
export type AccidentRelated = "No" | "A" | "E" | "O" | "";
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Place of service: API examples include "Office", "OtherLocation".
|
|
33
|
-
* Database schema supports additional values, so keep this open-ended.
|
|
34
|
-
*/
|
|
35
|
-
export type PlaceService = "Office" | "OtherLocation" | string;
|
|
36
|
-
|
|
37
|
-
/** PatRelat per API. */
|
|
38
|
-
export type PatientRelationship =
|
|
39
|
-
| "Self"
|
|
40
|
-
| "Spouse"
|
|
41
|
-
| "Child"
|
|
42
|
-
| "Employee"
|
|
43
|
-
| "HandicapDep"
|
|
44
|
-
| "SignifOther"
|
|
45
|
-
| "InjuredPlaintiff"
|
|
46
|
-
| "LifePartner"
|
|
47
|
-
| "Dependent";
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Represents a Claim returned by the Open Dental API.
|
|
51
|
-
* Mirrors the response payload of GET/POST/PUT endpoints.
|
|
52
|
-
*/
|
|
53
|
-
export interface Claim {
|
|
54
|
-
ClaimNum: number; // PK
|
|
55
|
-
PatNum: number; // FK to patient.PatNum
|
|
56
|
-
DateService: string; // "yyyy-MM-dd" | "0001-01-01"
|
|
57
|
-
DateSent: string; // "yyyy-MM-dd" | "0001-01-01"
|
|
58
|
-
ClaimStatus: Exclude<ClaimStatus, "I">; // "U" | "H" | "W" | "S" | "R"
|
|
59
|
-
DateReceived: string; // "yyyy-MM-dd" | "0001-01-01"
|
|
60
|
-
PlanNum: number; // FK to insplan.PlanNum
|
|
61
|
-
ProvTreat: number; // FK to provider.ProvNum
|
|
62
|
-
ClaimFee: number; // Total fee on claim
|
|
63
|
-
InsPayEst: number; // Estimated insurance payment
|
|
64
|
-
InsPayAmt: number; // Actual insurance payment
|
|
65
|
-
DedApplied: number; // Deductible applied to claim
|
|
66
|
-
IsProsthesis: "N" | "I" | "R"; // No / Initial / Replacement
|
|
67
|
-
PriorDate: string; // "yyyy-MM-dd" | "0001-01-01"
|
|
68
|
-
ReasonUnderPaid: string; // Free text (patient statement note)
|
|
69
|
-
ClaimNote: string; // Note to insurance (claim-level)
|
|
70
|
-
ClaimType: ClaimType; // "P" | "S" | "PreAuth" | "Cap" | "Other"
|
|
71
|
-
ProvBill: number; // FK to provider.ProvNum (billing)
|
|
72
|
-
PlaceService: PlaceService; // Usually "Office"
|
|
73
|
-
AccidentRelated: AccidentRelated; // "", "No", "A", "E", "O"
|
|
74
|
-
AccidentDate: string; // "yyyy-MM-dd" | "0001-01-01"
|
|
75
|
-
AccidentST: string; // 2-char state or ""
|
|
76
|
-
IsOrtho: "true" | "false";
|
|
77
|
-
OrthoRemainM: number; // 0..36
|
|
78
|
-
OrthoDate: string; // "yyyy-MM-dd" | "0001-01-01"
|
|
79
|
-
PatRelat: PatientRelationship; // Relationship for primary plan
|
|
80
|
-
PlanNum2: number; // FK to insplan.PlanNum (other coverage)
|
|
81
|
-
PatRelat2: PatientRelationship; // Relationship for other coverage
|
|
82
|
-
WriteOff: number;
|
|
83
|
-
ClaimForm: string; // FK to claimform.ClaimFormNum as string
|
|
84
|
-
InsSubNum: number; // FK to inssub.InsSubNum (primary/selected)
|
|
85
|
-
InsSubNum2: number; // FK to inssub.InsSubNum (other coverage)
|
|
86
|
-
PriorAuthorizationNumber: string; // Rare; medical claims
|
|
87
|
-
MedType: MedType; // "Dental" | "Medical" | "Institutional"
|
|
88
|
-
CustomTracking: number; // DefNum (Definitions: Claim Custom Tracking)
|
|
89
|
-
customTracking: string; // Human-readable name for CustomTracking
|
|
90
|
-
CorrectionType: string; // Open Dental supports more; keep open
|
|
91
|
-
ClaimIdentifier: string; // Semi-unique per DB (e.g., "PatNum/ClaimNum")
|
|
92
|
-
OrigRefNum: string; // Original reference number if corrected
|
|
93
|
-
OrthoTotalM: number; // 0..36
|
|
94
|
-
ShareOfCost: number; // For specific payor scenarios
|
|
95
|
-
SecDateTEdit: string; // "yyyy-MM-dd HH:mm:ss"
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** GET /claims (multiple) query params. */
|
|
99
|
-
export interface GetClaimsParams {
|
|
100
|
-
/** Optional after 23.3.11 */
|
|
101
|
-
PatNum?: number;
|
|
102
|
-
/**
|
|
103
|
-
* Added 23.3.11
|
|
104
|
-
* "U"=Unsent, "H"=Hold until pri received, "W"=Waiting in queue,
|
|
105
|
-
* "S"=Sent, "R"=Received, "I"=Hold for In Process
|
|
106
|
-
*/
|
|
107
|
-
ClaimStatus?: ClaimStatus;
|
|
108
|
-
/** Added 25.3.41 */
|
|
109
|
-
ClaimType?: ClaimType;
|
|
110
|
-
/** Added 25.3.41 */
|
|
111
|
-
PlanNum?: number;
|
|
112
|
-
/** Added 25.3.41 - Other coverage plan */
|
|
113
|
-
PlanNum2?: number;
|
|
114
|
-
/** Added 25.3.41 - X12 CLM01 semi-unique identifier */
|
|
115
|
-
ClaimIdentifier?: string;
|
|
116
|
-
/**
|
|
117
|
-
* Added 23.3.11 - returns claims on/after this edit timestamp
|
|
118
|
-
* Format: "yyyy-MM-dd HH:mm:ss"
|
|
119
|
-
*/
|
|
120
|
-
SecDateTEdit?: string;
|
|
121
|
-
/** Optional offset (if your client/SDK supports pagination). */
|
|
122
|
-
Offset?: number;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** GET /claims/{ClaimNum} - path parameter only. */
|
|
126
|
-
export interface GetClaimByIdParams {
|
|
127
|
-
ClaimNum: number;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* POST /claims body.
|
|
132
|
-
* - Required: PatNum, procNums[], ClaimType
|
|
133
|
-
* - If ClaimType is "PreAuth" or "Other", InsSubNum and PatRelat are required.
|
|
134
|
-
* - For "P"/"S", plan is implied by patient’s primary/secondary coverage.
|
|
135
|
-
*/
|
|
136
|
-
export interface CreateClaimParamsBase {
|
|
137
|
-
PatNum: number;
|
|
138
|
-
procNums: number[];
|
|
139
|
-
DateService?: string; // "yyyy-MM-dd" (ignored for "PreAuth")
|
|
140
|
-
DateSent?: string; // "yyyy-MM-dd" (default to today)
|
|
141
|
-
ClaimForm?: number; // FK to claimform.ClaimFormNum
|
|
142
|
-
ProvTreat?: number; // FK to provider.ProvNum
|
|
143
|
-
ProvBill?: number; // FK to provider.ProvNum
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/** Primary claim. */
|
|
147
|
-
export interface CreatePrimaryClaimParams extends CreateClaimParamsBase {
|
|
148
|
-
ClaimType: "P";
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/** Secondary claim. */
|
|
152
|
-
export interface CreateSecondaryClaimParams extends CreateClaimParamsBase {
|
|
153
|
-
ClaimType: "S";
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/** Preauthorization claim. */
|
|
157
|
-
export interface CreatePreAuthClaimParams extends CreateClaimParamsBase {
|
|
158
|
-
ClaimType: "PreAuth";
|
|
159
|
-
InsSubNum: number; // required
|
|
160
|
-
PatRelat: PatientRelationship; // required
|
|
161
|
-
InsSubNum2?: number;
|
|
162
|
-
PatRelat2?: PatientRelationship;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/** Other claim (added 25.3.41). */
|
|
166
|
-
export interface CreateOtherClaimParams extends CreateClaimParamsBase {
|
|
167
|
-
ClaimType: "Other";
|
|
168
|
-
InsSubNum: number; // required
|
|
169
|
-
PatRelat: PatientRelationship; // required
|
|
170
|
-
InsSubNum2?: number;
|
|
171
|
-
PatRelat2?: PatientRelationship;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/** Union for POST body. */
|
|
175
|
-
export type CreateClaimParams =
|
|
176
|
-
| CreatePrimaryClaimParams
|
|
177
|
-
| CreateSecondaryClaimParams
|
|
178
|
-
| CreatePreAuthClaimParams
|
|
179
|
-
| CreateOtherClaimParams;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* PUT /claims/{ClaimNum}
|
|
183
|
-
* All fields optional; send only what you intend to change.
|
|
184
|
-
* API recalculates as Open Dental does; some fields constrained by claim state.
|
|
185
|
-
*/
|
|
186
|
-
export interface UpdateClaimParams {
|
|
187
|
-
ClaimNum: number; // in URL
|
|
188
|
-
ClaimStatus?: Exclude<ClaimStatus, "I">; // "U" | "H" | "W" | "S" | "R"
|
|
189
|
-
DateSent?: string; // "yyyy-MM-dd" (added 25.3.41)
|
|
190
|
-
DateReceived?: string; // "yyyy-MM-dd"
|
|
191
|
-
ProvTreat?: number;
|
|
192
|
-
IsProsthesis?: "N" | "I" | "R";
|
|
193
|
-
PriorDate?: string; // "yyyy-MM-dd"
|
|
194
|
-
ClaimNote?: string; // overwrites existing
|
|
195
|
-
ReasonUnderPaid?: string; // overwrites existing
|
|
196
|
-
ProvBill?: number;
|
|
197
|
-
PlaceService?: PlaceService;
|
|
198
|
-
AccidentRelated?: AccidentRelated;
|
|
199
|
-
AccidentDate?: string; // "yyyy-MM-dd"
|
|
200
|
-
AccidentST?: string; // 2 chars
|
|
201
|
-
IsOrtho?: "true" | "false";
|
|
202
|
-
OrthoRemainM?: number; // 1..36
|
|
203
|
-
OrthoDate?: string; // "yyyy-MM-dd"
|
|
204
|
-
PatRelat?: PatientRelationship; // added 24.4.35
|
|
205
|
-
PatRelat2?: PatientRelationship; // added 24.4.35
|
|
206
|
-
ClaimForm?: number | 0; // 0 to clear
|
|
207
|
-
InsSubNum2?: number; // added 24.4.35
|
|
208
|
-
PriorAuthorizationNumber?: string;
|
|
209
|
-
MedType?: MedType; // added 25.3.41
|
|
210
|
-
OrthoTotalM?: number; // 1..36
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/** Minimal helper to detect "zero" dates in responses. */
|
|
214
|
-
export const isZeroDate = (d?: string | null): boolean =>
|
|
215
|
-
!d || d === "0001-01-01";
|
|
216
|
-
|
|
217
|
-
/** Narrow helper for timestamps that can be zeroed by the API. */
|
|
218
|
-
export const isZeroDateTime = (d?: string | null): boolean =>
|
|
219
|
-
!d || d.startsWith("0001-01-01");
|
|
220
|
-
|
|
221
|
-
/** Example runtime guard for ClaimStatus values. */
|
|
222
|
-
export const isClaimStatus = (s: string): s is ClaimStatus =>
|
|
223
|
-
["U", "H", "W", "S", "R", "I"].includes(s);
|
|
224
|
-
|
|
225
|
-
/** Example runtime guard for ClaimType values. */
|
|
226
|
-
export const isClaimType = (t: string): t is ClaimType =>
|
|
227
|
-
["P", "S", "PreAuth", "Cap", "Other"].includes(t);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a communication log in the Open Dental system.
|
|
3
|
-
* @see https://www.opendental.com/site/apicommlogs.html
|
|
4
|
-
*/
|
|
5
|
-
export interface CommLog {
|
|
6
|
-
CommLogNum?: number; // Unique identifier for the communication log
|
|
7
|
-
PatNum?: number; // Unique identifier for the patient
|
|
8
|
-
CommDateTime?: string; // Date and time of the communication in "yyyy-MM-dd HH:mm:ss" format
|
|
9
|
-
Mode_?: "None" | "Email" | "Mail" | "Phone" | "In Person" | "Text" | "Email and Text" | "Phone and Text"; // Mode of communication
|
|
10
|
-
Note?: string; // Detailed note about the communication
|
|
11
|
-
CommType?: number; // Type of communication: definition.DefNum where definition.Category=25
|
|
12
|
-
commType?: string; // Optional: Human-readable description of the communication type
|
|
13
|
-
SentOrReceived?: "Sent" | "Received" | "Neither"; // Optional: Direction of communication
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Parameters for creating a new communication log.
|
|
18
|
-
* @see https://www.opendental.com/site/apicommlogs.html
|
|
19
|
-
*/
|
|
20
|
-
export interface CreateCommLogParams {
|
|
21
|
-
PatNum: number; // Required: Unique identifier for the patient
|
|
22
|
-
CommDateTime: string; // Required: Date and time of the communication in "yyyy-MM-dd HH:mm:ss" format
|
|
23
|
-
Mode_: "None" | "Email" | "Mail" | "Phone" | "In Person" | "Text" | "Email and Text" | "Phone and Text"; // Required: Mode of communication
|
|
24
|
-
Note: string; // Required: Detailed note about the communication
|
|
25
|
-
CommType?: number; // Optional: Type of communication: definition.DefNum where definition.Category=25
|
|
26
|
-
commType?: string; // Optional: Human-readable description of the communication type
|
|
27
|
-
SentOrReceived?: "Sent" | "Received" | "Neither"; // Optional: Direction of communication
|
|
28
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a definition in the Open Dental system.
|
|
3
|
-
* Used in multiple definition-related endpoints.
|
|
4
|
-
* @see https://www.opendental.com/site/apidefinitions.html
|
|
5
|
-
*/
|
|
6
|
-
export interface Definition {
|
|
7
|
-
DefNum?: number; //PK
|
|
8
|
-
ItemName?: string; //
|
|
9
|
-
ItemValue?: string; //
|
|
10
|
-
Category?: number; //
|
|
11
|
-
category?: string; //
|
|
12
|
-
isHidden?: 'true' | 'false'; //
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Parameters for GET Definitions.
|
|
17
|
-
* @see https://www.opendental.com/site/apidefinitions.html
|
|
18
|
-
*/
|
|
19
|
-
export interface GetDefinitionsParams {
|
|
20
|
-
Category?: number; //definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
|
|
21
|
-
includeHidden?: 'true' | 'false'; //optional parameter that defaults to false.
|
|
22
|
-
Offset?: number; // Pagination offset for results
|
|
23
|
-
}
|
|
24
|
-
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a subscription to a discount plan in the Open Dental system.
|
|
3
|
-
* @see https://www.opendental.com/site/apidiscountplansubs.html
|
|
4
|
-
*/
|
|
5
|
-
export interface DiscountPlanSub {
|
|
6
|
-
DiscountSubNum?: number; //PK
|
|
7
|
-
DiscountPlanNum?: number; //FK to discount plan
|
|
8
|
-
PatNum?: number; //FK to patient
|
|
9
|
-
DateEffective?: string; //String in "yyyy-MM-dd" format.
|
|
10
|
-
DateTerm?: string; //String in "yyyy-MM-dd" format.
|
|
11
|
-
SubNote?: string; //
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Parameters for GET discount plan subs.
|
|
16
|
-
* @see https://www.opendental.com/site/apidiscountplansubs.html
|
|
17
|
-
*/
|
|
18
|
-
export interface GetDiscountPlanSubsParams {
|
|
19
|
-
PatNum?: number; // FK to patient.PatNum.
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Parameters for creating a discount plan sub.
|
|
24
|
-
* @see https://www.opendental.com/site/apidiscountplansubs.html
|
|
25
|
-
*/
|
|
26
|
-
export interface CreateDiscountPlanSubParams {
|
|
27
|
-
PatNum: number; //FK to patient
|
|
28
|
-
DiscountPlanNum: number; //FK to discount plan
|
|
29
|
-
DateEffective?: string; //Optional. String in "yyyy-MM-dd" format. The date when the plan will start impacting procedure fees. Default "0001-01-01" to indicate the beginning of the current calendar year.
|
|
30
|
-
DateTerm?: string; //Optional. String in "yyyy-MM-dd" format. The date when the plan will no longer impact procedure fees. Default "0001-01-01" to indicate no end date.
|
|
31
|
-
SubNote?: string; //Optional. Subscriber note.
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Parameters for updating a discount plan sub.
|
|
36
|
-
* @see https://www.opendental.com/site/apidiscountplansubs.html
|
|
37
|
-
*/
|
|
38
|
-
export interface UpdateDiscountPlanSubParams {
|
|
39
|
-
DiscountSubNum: number; //PK
|
|
40
|
-
PatNum: string; //FK to patient
|
|
41
|
-
DateEffective?: string; //Optional. String in "yyyy-MM-dd" format. The date when the plan will start impacting procedure fees. Default "0001-01-01" to indicate the beginning of the current calendar year.
|
|
42
|
-
DateTerm?: string; //Optional. String in "yyyy-MM-dd" format. The date when the plan will no longer impact procedure fees. Default "0001-01-01" to indicate no end date.
|
|
43
|
-
SubNote?: string; //Optional. Subscriber note.
|
|
44
|
-
}
|
|
45
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a Disease (Problem) that is assigned to a patient in the Open Dental system.
|
|
3
|
-
* @see https://www.opendental.com/site/apidiseases.html
|
|
4
|
-
*/
|
|
5
|
-
export interface Disease {
|
|
6
|
-
DiseaseNum?: number; //PK
|
|
7
|
-
PatNum?: number; // FK to patient
|
|
8
|
-
DiseaseDefNum?: number; // FK to DiseaseDef
|
|
9
|
-
diseaseDefName?: string; //
|
|
10
|
-
PatNote?: string; //
|
|
11
|
-
ProbStatus?: 'Active' | 'Resolved' | 'Inactive'; // Either "Active", "Resolved" or "Inactive". Default "Active".
|
|
12
|
-
DateStart?: string; //String in "yyyy-MM-dd" format.
|
|
13
|
-
DateStop?: string; //String in "yyyy-MM-dd" format.
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Parameters for GET diseases attached to one or more patients.
|
|
18
|
-
* @see https://www.opendental.com/site/apidiseases.html
|
|
19
|
-
*/
|
|
20
|
-
export interface GetDiseasesParams {
|
|
21
|
-
PatNum?: number; // FK to patient.PatNum. Optional (Optional after version 24.2.5).
|
|
22
|
-
Offset?: number; // Optional pagination.
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Parameters for attaching a diseaseDef (Problem) to a patient.
|
|
27
|
-
* @see https://www.opendental.com/site/apidiseases.html
|
|
28
|
-
*/
|
|
29
|
-
export interface AddDiseaseParams {
|
|
30
|
-
PatNum: number; // Required. FK to patient
|
|
31
|
-
DiseaseDefNum?: number; // Rarely used. Just use diseaseDefName instead, which handles insertion of DiseaseDef automatically.
|
|
32
|
-
diseaseDefName?: string; // Required unless you choose to use DiseaseDefNum.
|
|
33
|
-
PatNote?: string; // Optional
|
|
34
|
-
ProbStatus?: 'Active' | 'Resolved' | 'Inactive'; // Optional. Either "Active", "Resolved" or "Inactive". Default "Active".
|
|
35
|
-
DateStart?: string; // Optional. String in "yyyy-MM-dd" format. Default "0001-01-01".
|
|
36
|
-
DateStop?: string; // Optional. String in "yyyy-MM-dd" format. Default "0001-01-01".
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Parameters for updating a diseaseDef (Problem) attached to a patient.
|
|
41
|
-
* @see https://www.opendental.com/site/apidiseases.html
|
|
42
|
-
*/
|
|
43
|
-
export interface UpdateDiseaseParams {
|
|
44
|
-
DiseaseNum: number; // Required.
|
|
45
|
-
PatNote?: string; // Optional. Will overwrite existing note.
|
|
46
|
-
ProbStatus?: 'Active' | 'Resolved' | 'Inactive'; // Optional. Either "Active", "Resolved" or "Inactive".
|
|
47
|
-
DateStart?: string; // Optional. String in "yyyy-MM-dd" format.
|
|
48
|
-
DateStop?: string; // Optional. String in "yyyy-MM-dd" format.
|
|
49
|
-
}
|
|
50
|
-
|