@rinse-dental/open-dental 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/api/discountPlanSubs.d.ts +4 -4
  2. package/dist/api/discountPlanSubs.d.ts.map +1 -1
  3. package/dist/api/discountPlanSubs.js +11 -6
  4. package/dist/api/familyModules.d.ts +17 -0
  5. package/dist/api/familyModules.d.ts.map +1 -0
  6. package/dist/api/familyModules.js +24 -0
  7. package/dist/api/insSubs.d.ts +64 -0
  8. package/dist/api/insSubs.d.ts.map +1 -0
  9. package/dist/api/insSubs.js +114 -0
  10. package/dist/api/patFields.js +1 -1
  11. package/dist/api/patPlans.d.ts +48 -0
  12. package/dist/api/patPlans.d.ts.map +1 -0
  13. package/dist/api/patPlans.js +83 -0
  14. package/dist/api/procedureLog.d.ts +54 -39
  15. package/dist/api/procedureLog.d.ts.map +1 -1
  16. package/dist/api/procedureLog.js +76 -39
  17. package/dist/openDental.d.ts +15 -0
  18. package/dist/openDental.d.ts.map +1 -1
  19. package/dist/openDental.js +30 -0
  20. package/dist/types/familyModuleTypes.d.ts +33 -0
  21. package/dist/types/familyModuleTypes.d.ts.map +1 -0
  22. package/dist/types/familyModuleTypes.js +2 -0
  23. package/dist/types/insSubTypes.d.ts +62 -0
  24. package/dist/types/insSubTypes.d.ts.map +1 -0
  25. package/dist/types/insSubTypes.js +2 -0
  26. package/dist/types/patPlanTypes.d.ts +52 -0
  27. package/dist/types/patPlanTypes.d.ts.map +1 -0
  28. package/dist/types/patPlanTypes.js +2 -0
  29. package/dist/types/procedurelogTypes.d.ts +12 -0
  30. package/dist/types/procedurelogTypes.d.ts.map +1 -1
  31. package/package.json +1 -1
  32. package/release.sh +40 -0
  33. package/src/api/discountPlanSubs.ts +17 -6
  34. package/src/api/familyModules.ts +28 -0
  35. package/src/api/insSubs.ts +155 -0
  36. package/src/api/patFields.ts +1 -1
  37. package/src/api/patPlans.ts +113 -0
  38. package/src/api/procedureLog.ts +96 -39
  39. package/src/openDental.ts +34 -0
  40. package/src/types/familyModuleTypes.ts +33 -0
  41. package/src/types/insSubTypes.ts +65 -0
  42. package/src/types/patPlanTypes.ts +55 -0
  43. package/src/types/procedurelogTypes.ts +41 -28
@@ -0,0 +1,55 @@
1
+ /**
2
+ * A PatPlan row in the database indicates coverage aka eligibility.
3
+ * If there is no patplan row, then the patient does not have coverage.
4
+ * So eligibility can be set by adding or removing PatPlan rows.
5
+ * @see https://www.opendental.com/site/apipatplans.html
6
+ */
7
+ export interface PatPlan {
8
+ PatPlanNum?: number; // PK
9
+ PatNum?: number; // FK to patient
10
+ Ordinal?: number; // Default of 1. This is a single digit numeric field (example: 1, 2, 3...). It represents the primary insurance, secondary insurance, etc. 0 is not used. If Ordinal is set to1, and there is already primary insurance, the other insurance will get bumped to Ordinal 2.
11
+ IsPending?: "true" | "false"; //String in "yyyy-MM-dd" format.
12
+ Relationship?: "Self" | "Spouse" | "Child" | "Employee" | "HandicapDep" | "SignifOther" | "InjuredPlantiff" | "LifePartner" | "Dependent"; //Default is Self. Values can be "Self", "Spouse", "Child", "Employee", "HandicapDep", "SignifOther", "InjuredPlantiff", "LifePartner" or "Dependent".
13
+ PatID?: string; // A patient ID which will override the subscriber ID on eclaims. Also used for Canada.
14
+ InsSubNum?: number; // This requires that a valid InsSub is already in place. You can obtain the InsSubNum from FamilyModules GET Insurance, or you can obtain it from an InsSubs POST. If this plan is already linked to this InsSub, then response will be BadRequest.
15
+ OrthoAutoFeeBilledOverride?: string; //
16
+ OrthoAutoNextClaimDate?: string; //
17
+ SecDateTEntry?: string; // String in "yyyy-MM-dd HH:mm:ss" format
18
+ SecDateTEdit?: string; // String in "yyyy-MM-dd HH:mm:ss" format
19
+ }
20
+
21
+ /**
22
+ * Gets a list of PatPlans that meet a set of search criteria.
23
+ * @see https://www.opendental.com/site/apipatplans.html
24
+ */
25
+ export interface GetPatPlansParams {
26
+ PatNum?: number; // Optional. FK to patient.PatNum.
27
+ InsSubNum?: number; // Optional. FK to inssub.InsSubNum
28
+ Offset?: number; // Pagination offset for results
29
+ }
30
+
31
+ /**
32
+ * Parameters for creating an PatPlan. This adds a PatPlan row to the database.
33
+ * @see https://www.opendental.com/site/apipatplans.html
34
+ */
35
+ export interface CreatePatPlanParams {
36
+ PatNum: number; // Required. FK to patient
37
+ InsSubNum: number; // Required. This requires that a valid InsSub is already in place. You can obtain the InsSubNum from FamilyModules GET Insurance, or you can obtain it from an InsSubs POST. If this plan is already linked to this InsSub, then response will be BadRequest.
38
+ Ordinal?: number; // Optional. Default of 1. This is a single digit numeric field (example: 1, 2, 3...). It represents the primary insurance, secondary insurance, etc. 0 is not used. If Ordinal is set to1, and there is already primary insurance, the other insurance will get bumped to Ordinal 2.
39
+ Relationship?: "Self" | "Spouse" | "Child" | "Employee" | "HandicapDep" | "SignifOther" | "InjuredPlantiff" | "LifePartner" | "Dependent"; // Optional. Default is Self. Values can be "Self", "Spouse", "Child", "Employee", "HandicapDep", "SignifOther", "InjuredPlantiff", "LifePartner" or "Dependent".
40
+ PatID?: string; // Optional. A patient ID which will override the subscriber ID on eclaims. Also used for Canada.
41
+ }
42
+
43
+ /**
44
+ * Parameters for updating an PatPlan.
45
+ * This updates an existing PatPlan row in the database. PatNum cannot be updated. Instead, drop the PatPlan and then recreate it.
46
+ * @see https://www.opendental.com/site/apipatplans.html
47
+ */
48
+ export interface UpdatePatPlanParams {
49
+ PatPlanNum: number; //Required. PK
50
+ InsSubNum?: number; // Required. This requires that a valid InsSub is already in place. You can obtain the InsSubNum from FamilyModules GET Insurance, or you can obtain it from an InsSubs POST. If this plan is already linked to this InsSub, then response will be BadRequest.
51
+ Ordinal?: number; // Optional. Default of 1. This is a single digit numeric field (example: 1, 2, 3...). It represents the primary insurance, secondary insurance, etc. 0 is not used. If Ordinal is set to1, and there is already primary insurance, the other insurance will get bumped to Ordinal 2.
52
+ Relationship?: "Self" | "Spouse" | "Child" | "Employee" | "HandicapDep" | "SignifOther" | "InjuredPlantiff" | "LifePartner" | "Dependent"; // Optional. Default is Self. Values can be "Self", "Spouse", "Child", "Employee", "HandicapDep", "SignifOther", "InjuredPlantiff", "LifePartner" or "Dependent".
53
+ PatID?: string; // Optional. A patient ID which will override the subscriber ID on eclaims. Also used for Canada.
54
+ }
55
+
@@ -5,34 +5,47 @@
5
5
  * @see https://www.opendental.com/site/apiprocedurelogs.html
6
6
  */
7
7
  export interface ProcedureLog {
8
- ProcNum?: number; // Unique procedure identifier
9
- PatNum?: number; // Unique patient identifier
10
- AptNum?: number; // Associated appointment number
11
- ProcDate?: string; // Procedure date in "yyyy-MM-dd" format
12
- ProcFee?: number; // Fee for the procedure
13
- Surf?: Surf; // Tooth surface
14
- ToothNum?: string; // Tooth number
15
- ToothRange?: string; // Tooth range
16
- Priority?: number; // Priority code
17
- priority?: string; // Priority description
18
- ProcStatus?: 'TP' | 'C' | 'EO' | 'R' | 'D' | 'E'; // Procedure status?: Treatment Planned (TP), Complete (C), etc.
19
- ProvNum?: number;
20
- provAbbr?: string;
21
- Dx?: string; // Diagnosis code
22
- dxName?: string; // Diagnosis name
23
- PlannedAptNum?: number; // Planned appointment number
24
- Prosthesis?: string; // Type of prosthesis
25
- DateOriginalProsth?: string //Date in yyyy-MM-dd format
26
- ClinicNum?: number; // Clinic number
27
- CodeNum?: number; // Procedure code number
28
- procCode?: string; // D code
29
- descript?: string; // Procedure code description
30
- ProcTime?: string; // Time taken for the procedure
31
- UnitQty?: number; // Quantity of units
32
- DateTStamp?: string; // Timestamp of the last update in "yyyy-MM-dd HH:mm:ss" format
33
- IsDateProsthEst?: 'true' | 'false' ; //
34
- serverDateTime?: string;
35
- }
8
+ ProcNum?: number; // Unique procedure identifier
9
+ PatNum?: number; // Unique patient identifier
10
+ AptNum?: number; // Associated appointment number
11
+ ProcDate?: string; // Procedure date in "yyyy-MM-dd" format
12
+ ProcFee?: number; // Fee for the procedure
13
+ Surf?: Surf; // Tooth surface
14
+ ToothNum?: string; // Tooth number
15
+ ToothRange?: string; // Tooth range
16
+ Priority?: number; // Priority code
17
+ priority?: string; // Priority description
18
+ ProcStatus?: 'TP' | 'C' | 'EO' | 'R' | 'D' | 'E'; // Procedure status?: Treatment Planned (TP), Complete (C), etc.
19
+ ProvNum?: number;
20
+ provAbbr?: string;
21
+ Dx?: string; // Diagnosis code
22
+ dxName?: string; // Diagnosis name
23
+ PlannedAptNum?: number; // Planned appointment number
24
+ Prosthesis?: string; // Type of prosthesis
25
+ DateOriginalProsth?: string //Date in yyyy-MM-dd format
26
+ ClinicNum?: number; // Clinic number
27
+ CodeNum?: number; // Procedure code number
28
+ procCode?: string; // D code
29
+ descript?: string; // Procedure code description
30
+ ProcTime?: string; // Time taken for the procedure
31
+ UnitQty?: number; // Quantity of units
32
+ DateTStamp?: string; // Timestamp of the last update in "yyyy-MM-dd HH:mm:ss" format
33
+ IsDateProsthEst?: 'true' | 'false' ; //
34
+ serverDateTime?: string;
35
+ }
36
+
37
+ /**
38
+ * Parameters for GET Multiple ProcedureLogs.
39
+ * @see https://www.opendental.com/site/apiprocedurelogs.html
40
+ */
41
+ export interface GetProcedureLogParams {
42
+ PatNum?: number; //FK to patient.PatNum.
43
+ AptNum?: number; //FK to appointment.aptnum, returns procedures that are attached to an appointment.
44
+ PlannedAptNum?: number; //FK to appointment.aptnum, returns procedures that are attached to a plannedapt
45
+ ClinicNum?: number; //FK to clinic.
46
+ DateTStamp?: string; //Gets procedurelogs created on or after the specified date and time. String in "yyyy-MM-dd HH:mm:ss" format.
47
+ Offset?: number; // Pagination offset for results
48
+ }
36
49
 
37
50
  /**
38
51
  * Create procedure log parameters.