@rinse-dental/open-dental 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/deploy_notes.txt +0 -0
  2. package/dist/api/appointments.d.ts +1 -1
  3. package/dist/api/appointments.d.ts.map +1 -1
  4. package/dist/api/chartModules.d.ts +14 -0
  5. package/dist/api/chartModules.d.ts.map +1 -0
  6. package/dist/api/chartModules.js +21 -0
  7. package/dist/api/commlogs.d.ts +1 -1
  8. package/dist/api/commlogs.d.ts.map +1 -1
  9. package/dist/api/index.d.ts +7 -1
  10. package/dist/api/index.d.ts.map +1 -1
  11. package/dist/api/index.js +15 -4
  12. package/dist/api/patFields.d.ts +53 -0
  13. package/dist/api/patFields.d.ts.map +1 -0
  14. package/dist/api/patFields.js +87 -0
  15. package/dist/api/patients.d.ts +20 -1
  16. package/dist/api/patients.d.ts.map +1 -1
  17. package/dist/api/patients.js +34 -0
  18. package/dist/api/recalls.d.ts +84 -0
  19. package/dist/api/recalls.d.ts.map +1 -0
  20. package/dist/api/recalls.js +120 -0
  21. package/dist/api/treatplans.d.ts +53 -0
  22. package/dist/api/treatplans.d.ts.map +1 -0
  23. package/dist/api/treatplans.js +77 -0
  24. package/dist/openDental.d.ts +33 -3
  25. package/dist/openDental.d.ts.map +1 -1
  26. package/dist/openDental.js +64 -4
  27. package/dist/types/{appointmentType.d.ts → appointmentTypes.d.ts} +1 -1
  28. package/dist/types/appointmentTypes.d.ts.map +1 -0
  29. package/dist/types/chartModuleTypes.d.ts +21 -0
  30. package/dist/types/chartModuleTypes.d.ts.map +1 -0
  31. package/dist/types/{commlogType.d.ts → commlogTypes.d.ts} +1 -1
  32. package/dist/types/commlogTypes.d.ts.map +1 -0
  33. package/dist/types/commlogTypes.js +2 -0
  34. package/dist/types/patFieldTypes.d.ts +23 -0
  35. package/dist/types/patFieldTypes.d.ts.map +1 -0
  36. package/dist/types/patFieldTypes.js +2 -0
  37. package/dist/types/recallTypes.d.ts +98 -0
  38. package/dist/types/recallTypes.d.ts.map +1 -0
  39. package/dist/types/recallTypes.js +2 -0
  40. package/dist/types/treatPlanTypes.d.ts +72 -0
  41. package/dist/types/treatPlanTypes.d.ts.map +1 -0
  42. package/dist/types/treatPlanTypes.js +2 -0
  43. package/package.json +1 -1
  44. package/src/api/appointments.ts +1 -2
  45. package/src/api/chartModules.ts +25 -0
  46. package/src/api/commlogs.ts +1 -1
  47. package/src/api/index.ts +7 -2
  48. package/src/api/patFields.ts +112 -0
  49. package/src/api/patients.ts +50 -1
  50. package/src/api/recalls.ts +148 -0
  51. package/src/api/treatplans.ts +97 -0
  52. package/src/openDental.ts +73 -4
  53. package/src/types/chartModuleTypes.ts +29 -0
  54. package/src/types/patFieldTypes.ts +24 -0
  55. package/src/types/recallTypes.ts +102 -0
  56. package/src/types/treatPlanTypes.ts +75 -0
  57. package/dist/types/appointmentType.d.ts.map +0 -1
  58. package/dist/types/commlogType.d.ts.map +0 -1
  59. /package/dist/types/{appointmentType.js → appointmentTypes.js} +0 -0
  60. /package/dist/types/{commlogType.js → chartModuleTypes.js} +0 -0
  61. /package/src/types/{appointmentType.ts → appointmentTypes.ts} +0 -0
  62. /package/src/types/{commlogType.ts → commlogTypes.ts} +0 -0
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class TreatmentPlans {
4
+ httpClient;
5
+ constructor(httpClient) {
6
+ this.httpClient = httpClient;
7
+ }
8
+ /**
9
+ * Get a list of TreatPlans that meet a set of search criteria.
10
+ * @param {Object} params - The parameters for filtering and pagination.
11
+ * @param {string} [params.PatNum] - patient.PatNum.
12
+ * @param {string} [params.SecDateTEdit] - Only include TreatPlans with a SecDateTEdit altered after the specified date and time. String in "yyyy-MM-dd HH:mm:ss" format.
13
+ * @param {"Saved" | "Active" | "Inactive"} [params.TPStatus] - Either "Saved", "Active", or "Inactive". Default all.
14
+ * @returns {Promise<TreatmentPlan[]>} - An array of recall list objects.
15
+ */
16
+ async getTreatmentPlans({ PatNum, SecDateTEdit, TPStatus, } = {}) {
17
+ const params = {
18
+ PatNum,
19
+ SecDateTEdit,
20
+ TPStatus,
21
+ };
22
+ return this.httpClient.get("/treatplans", params);
23
+ }
24
+ /**
25
+ * Create a new TreatPlan.
26
+ * @param {Object} data - Data for the new appointment.
27
+ * @param {number} data.PatNum - Required. FK to patient.PatNum.
28
+ * @param {string} [data.Heading] - Optional. Defaults to the heading of the supplied Treatment Plan.
29
+ * @param {string} [data.Note] - Optional: An administrative note for staff use.
30
+ * @param {"Insurance" | "Discount"} [params.TPType] - Optional. Either "Insurance" or "Discount". If the patient is subscribed to a Discount Plan, this will default to "Discount". Otherwise, defaults to "Insurance".
31
+ * @returns {Promise<TreatmentPlan>} - The created recall object.
32
+ * @throws {Error} - If required fields are missing.
33
+ */
34
+ async createTreatmentPlan(data) {
35
+ if (!data.PatNum) {
36
+ throw new Error("PatNum is required.");
37
+ }
38
+ return this.httpClient.post("/treatplans", data);
39
+ }
40
+ /**
41
+ * Creates an unsigned Saved TreatPlan from an existing Active or Inactive TreatPlan.
42
+ * @param {Object} data - Data for the new appointment.
43
+ * @param {number} data.TreatPlanNum - Required.
44
+ * @param {string} [data.Heading] - Optional. Defaults to the heading of the supplied Treatment Plan.
45
+ * @param {string} [data.UserNumPresenter=0] - Optional. FK to userod.UserNum. Default 0.
46
+ * @returns {Promise<TreatmentPlan>} - The created recall object.
47
+ * @throws {Error} - If required fields are missing.
48
+ */
49
+ async saveTreatmentPlan(data) {
50
+ if (!data.TreatPlanNum) {
51
+ throw new Error("TreatPlanNum is required.");
52
+ }
53
+ return this.httpClient.post("/treatplans/Saved", data);
54
+ }
55
+ /**
56
+ * Create a new TreatPlan.
57
+ * @param {Object} data - Data for the new appointment.
58
+ * @param {number} data.TreatPlanNum - Required.
59
+ * @param {string} [data.Heading] - The heading that shows at the top of the treatment plan.
60
+ * @param {string} [data.Note] - Optional: An administrative note for staff use.
61
+ * @param {number} [data.ResponsParty] - FK to patient.PatNum. The patient responsible for approving the treatment.
62
+ * @param {"Insurance" | "Discount"} [params.TPType] - Optional. Either "Insurance" or "Discount". If the patient is subscribed to a Discount Plan, this will default to "Discount". Otherwise, defaults to "Insurance".
63
+ * @param {string} [data.SignatureText] - The typed name of the person who signed the patient signature.
64
+ * @param {string} [data.SignaturePracticeText] - The typed name of the person who signed the patient signature.
65
+ * @param {"true" | "false"} [data.isSigned] - The typed name of the person who signed the patient signature.
66
+ * @param {"true" | "false"} [data.isSignedPractice] - Either "true" or "false". True updates the treatplan SignaturePractice, digitally signs for the practice, and overwrites existing signature. False clears the exisiting treatplan SignaturePractice.
67
+ * @returns {Promise<TreatmentPlan>} - The created recall object.
68
+ * @throws {Error} - If required fields are missing.
69
+ */
70
+ async updateTreatmentPlan(data) {
71
+ if (!data.TreatPlanNum) {
72
+ throw new Error("TreatPlanNum is required.");
73
+ }
74
+ return this.httpClient.put(`/treatplans/${data.TreatPlanNum}`, data);
75
+ }
76
+ }
77
+ exports.default = TreatmentPlans;
@@ -1,19 +1,49 @@
1
- import Patients from "./api/patients";
2
1
  import Appointments from "./api/appointments";
2
+ import ChartModules from "./api/chartModules";
3
+ import CommLogs from "./api/commlogs";
4
+ import PatFields from "./api/patFields";
5
+ import Patients from "./api/patients";
6
+ import ProcedureLogs from "./api/procedureLog";
7
+ import Recalls from "./api/recalls";
8
+ import TreatmentPlans from "./api/treatplans";
3
9
  declare class OpenDental {
4
10
  private static httpClient;
5
11
  /**
6
12
  * Initialize the OpenDental library with the base URL and auth token.
7
13
  */
8
14
  static initialize(baseURL: string, authToken: string): void;
15
+ /**
16
+ * Create a new instance of the Appointments API.
17
+ */
18
+ static Appointments(): Appointments;
19
+ /**
20
+ * Create a new instance of the ChartModule API endpoint.
21
+ */
22
+ static CommLogs(): CommLogs;
23
+ /**
24
+ * Create a new instance of the ChartModule API endpoint.
25
+ */
26
+ static ChartModules(): ChartModules;
27
+ /**
28
+ * Create a new instance of the Patients API.
29
+ */
30
+ static PatFields(): PatFields;
9
31
  /**
10
32
  * Create a new instance of the Patients API.
11
33
  */
12
34
  static Patients(): Patients;
13
35
  /**
14
- * Create a new instance of the Appointments API.
36
+ * Create a new instance of the ProcedureLogs API endpoint.
15
37
  */
16
- static Appointments(): Appointments;
38
+ static ProcedureLogs(): ProcedureLogs;
39
+ /**
40
+ * Create a new instance of the Patients API.
41
+ */
42
+ static Recalls(): Recalls;
43
+ /**
44
+ * Create a new instance of the Patients API.
45
+ */
46
+ static TreatmentPlans(): TreatmentPlans;
17
47
  }
18
48
  export { OpenDental };
19
49
  //# sourceMappingURL=openDental.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"openDental.d.ts","sourceRoot":"","sources":["../src/openDental.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C,cAAM,UAAU;IACd,OAAO,CAAC,MAAM,CAAC,UAAU,CAAa;IAEtC;;OAEG;WACW,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAWlE;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,YAAY;CAM3B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"openDental.d.ts","sourceRoot":"","sources":["../src/openDental.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,cAAM,UAAU;IACd,OAAO,CAAC,MAAM,CAAC,UAAU,CAAa;IAEtC;;OAEG;WACW,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAWlE;;OAEG;WACa,YAAY;IAQ5B;;OAEG;WACa,QAAQ;IAOxB;;OAEG;WACW,YAAY;IAO1B;;SAEK;WACS,SAAS;IAOvB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,aAAa;IAO3B;;OAEG;WACW,OAAO;IAOrB;;OAEG;WACW,cAAc;CAQ7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -5,8 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.OpenDental = void 0;
7
7
  const httpClient_1 = __importDefault(require("./utils/httpClient"));
8
- const patients_1 = __importDefault(require("./api/patients"));
9
8
  const appointments_1 = __importDefault(require("./api/appointments"));
9
+ const chartModules_1 = __importDefault(require("./api/chartModules"));
10
+ const commlogs_1 = __importDefault(require("./api/commlogs"));
11
+ const patFields_1 = __importDefault(require("./api/patFields"));
12
+ const patients_1 = __importDefault(require("./api/patients"));
13
+ const procedureLog_1 = __importDefault(require("./api/procedureLog"));
14
+ const recalls_1 = __importDefault(require("./api/recalls"));
15
+ const treatplans_1 = __importDefault(require("./api/treatplans"));
10
16
  class OpenDental {
11
17
  static httpClient;
12
18
  /**
@@ -20,6 +26,42 @@ class OpenDental {
20
26
  baseURL = baseURL + "/api/v1";
21
27
  this.httpClient = new httpClient_1.default(baseURL, authToken);
22
28
  }
29
+ /**
30
+ * Create a new instance of the Appointments API.
31
+ */
32
+ static Appointments() {
33
+ if (!this.httpClient) {
34
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
35
+ }
36
+ return new appointments_1.default(this.httpClient);
37
+ }
38
+ /**
39
+ * Create a new instance of the ChartModule API endpoint.
40
+ */
41
+ static CommLogs() {
42
+ if (!this.httpClient) {
43
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
44
+ }
45
+ return new commlogs_1.default(this.httpClient);
46
+ }
47
+ /**
48
+ * Create a new instance of the ChartModule API endpoint.
49
+ */
50
+ static ChartModules() {
51
+ if (!this.httpClient) {
52
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
53
+ }
54
+ return new chartModules_1.default(this.httpClient);
55
+ }
56
+ /**
57
+ * Create a new instance of the Patients API.
58
+ */
59
+ static PatFields() {
60
+ if (!this.httpClient) {
61
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
62
+ }
63
+ return new patFields_1.default(this.httpClient);
64
+ }
23
65
  /**
24
66
  * Create a new instance of the Patients API.
25
67
  */
@@ -30,13 +72,31 @@ class OpenDental {
30
72
  return new patients_1.default(this.httpClient);
31
73
  }
32
74
  /**
33
- * Create a new instance of the Appointments API.
75
+ * Create a new instance of the ProcedureLogs API endpoint.
34
76
  */
35
- static Appointments() {
77
+ static ProcedureLogs() {
36
78
  if (!this.httpClient) {
37
79
  throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
38
80
  }
39
- return new appointments_1.default(this.httpClient);
81
+ return new procedureLog_1.default(this.httpClient);
82
+ }
83
+ /**
84
+ * Create a new instance of the Patients API.
85
+ */
86
+ static Recalls() {
87
+ if (!this.httpClient) {
88
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
89
+ }
90
+ return new recalls_1.default(this.httpClient);
91
+ }
92
+ /**
93
+ * Create a new instance of the Patients API.
94
+ */
95
+ static TreatmentPlans() {
96
+ if (!this.httpClient) {
97
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
98
+ }
99
+ return new treatplans_1.default(this.httpClient);
40
100
  }
41
101
  }
42
102
  exports.OpenDental = OpenDental;
@@ -223,4 +223,4 @@ export type AptStatus = "Scheduled" | "Complete" | "UnschedList" | "ASAP" | "Bro
223
223
  * Appointment priority options.
224
224
  */
225
225
  export type Priority = "Normal" | "ASAP";
226
- //# sourceMappingURL=appointmentType.d.ts.map
226
+ //# sourceMappingURL=appointmentTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointmentTypes.d.ts","sourceRoot":"","sources":["../../src/types/appointmentTypes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE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M,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAC;IACxC,SAAS,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,cAAc,GAAG,QAAQ,CAAC;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,MAAM,SAAS,GACjB,WAAW,GACX,UAAU,GACV,aAAa,GACb,MAAM,GACN,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,iBAAiB,CAAC;AAEtB;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Represents an appointment in the Open Dental system.
3
+ * Used in multiple appointment-related endpoints.
4
+ * @see https://www.opendental.com/site/apiappointments.html
5
+ */
6
+ export interface PlannedAppointment {
7
+ AptNum?: number;
8
+ ProvNum?: number;
9
+ ItemOrder?: string;
10
+ minutes?: string;
11
+ ProcDescript?: string;
12
+ Note?: string;
13
+ dateSched?: string;
14
+ AptStatus?: AptStatus;
15
+ }
16
+ /**
17
+ * Appointment status options.
18
+ * @see https://www.opendental.com/site/apiappointments.html
19
+ */
20
+ export type AptStatus = "Scheduled" | "Complete" | "UnschedList" | "ASAP" | "Broken" | "Planned" | "PtNote" | "PtNoteCompleted";
21
+ //# sourceMappingURL=chartModuleTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chartModuleTypes.d.ts","sourceRoot":"","sources":["../../src/types/chartModuleTypes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,MAAM,SAAS,GACnB,WAAW,GACX,UAAU,GACV,aAAa,GACb,MAAM,GACN,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,iBAAiB,CAAC"}
@@ -25,4 +25,4 @@ export interface CreateCommLogParams {
25
25
  commType?: string;
26
26
  SentOrReceived?: "Sent" | "Received" | "Neither";
27
27
  }
28
- //# sourceMappingURL=commlogType.d.ts.map
28
+ //# sourceMappingURL=commlogTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commlogTypes.d.ts","sourceRoot":"","sources":["../../src/types/commlogTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,OAAO;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;IACzG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;CAClD;AAEH;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;IACxG,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;CACpD"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Parameters for fetching multiple patients.
3
+ * @see https://www.opendental.com/site/apipatfields.html
4
+ */
5
+ export interface PatField {
6
+ PatFieldNum?: number;
7
+ PatNum?: number;
8
+ FieldName?: string;
9
+ FieldValue?: string;
10
+ SecDateTEdit?: string;
11
+ SecDateEntry?: string;
12
+ }
13
+ export interface GetPatFieldsParams {
14
+ PatNum?: number;
15
+ FieldName?: string;
16
+ SecDateTEdit?: string;
17
+ }
18
+ export interface AddUpdatePatFieldParams {
19
+ PatNum: number;
20
+ FieldName: string;
21
+ FieldValue: string;
22
+ }
23
+ //# sourceMappingURL=patFieldTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patFieldTypes.d.ts","sourceRoot":"","sources":["../../src/types/patFieldTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,98 @@
1
+ /**
2
+ * GET Recalls object.
3
+ * @see https://www.opendental.com/site/apirecalls.html
4
+ */
5
+ export interface Recall {
6
+ RecallNum?: number;
7
+ PatNum?: number;
8
+ DateDue?: string;
9
+ DatePrevious?: string;
10
+ RecallInterval?: string;
11
+ RecallStatus?: number;
12
+ recallStatus?: string;
13
+ Note?: string;
14
+ IsDisabled?: "true" | "false";
15
+ DateTStamp?: string;
16
+ RecallTypeNum?: number;
17
+ DisableUntilBalance?: number;
18
+ DisableUntilDate?: string;
19
+ DateScheduled?: string;
20
+ Priority?: "Normal" | "ASAP";
21
+ TimePatternOverride?: string;
22
+ }
23
+ /**
24
+ * GET Recall List params.
25
+ * @see https://www.opendental.com/site/apirecalls.html
26
+ */
27
+ export interface RecallListParams {
28
+ DateStart?: string;
29
+ DateEnd?: number;
30
+ ProvNum?: string;
31
+ ClinicNum?: string;
32
+ RecallType?: string;
33
+ IncludeReminded?: string;
34
+ Offset?: number;
35
+ }
36
+ /**
37
+ * GET Recall List object.
38
+ * @see https://www.opendental.com/site/apirecalls.html
39
+ */
40
+ export interface RecallList {
41
+ DueDate?: string;
42
+ PatNum?: number;
43
+ Patient?: string;
44
+ Age?: string;
45
+ Type?: string;
46
+ Interval?: string;
47
+ NumRemind?: string;
48
+ LastReminder?: string;
49
+ Contact?: string;
50
+ Status?: string;
51
+ ClinicNum?: number;
52
+ Note?: string;
53
+ }
54
+ /**
55
+ * CREATE Recall params. Creates a recall object.
56
+ * @see https://www.opendental.com/site/apirecalls.html
57
+ */
58
+ export interface CreateRecallParams {
59
+ PatNum: number;
60
+ RecallTypeNum: number;
61
+ DateDue?: string;
62
+ RecallInterval?: string;
63
+ RecallStatus?: number;
64
+ Note?: string;
65
+ IsDisabled?: "true" | "false";
66
+ DisableUntilBalance?: number;
67
+ DisableUntilDate?: string;
68
+ Priority?: "Normal" | "ASAP";
69
+ TimePatternOverride?: string;
70
+ }
71
+ /**
72
+ * EDIT Recall params. Updates a recall object.
73
+ * @see https://www.opendental.com/site/apirecalls.html
74
+ */
75
+ export interface UpdateRecallParams {
76
+ RecallNum: number;
77
+ DateDue?: string;
78
+ RecallInterval?: string;
79
+ RecallStatus?: number;
80
+ Note?: string;
81
+ IsDisabled?: "true" | "false";
82
+ DisableUntilBalance?: number;
83
+ DisableUntilDate?: string;
84
+ Priority?: "Normal" | "ASAP";
85
+ TimePatternOverride?: string;
86
+ }
87
+ /**
88
+ * EDIT Recall Status params and object.
89
+ * @see https://www.opendental.com/site/apirecalls.html
90
+ */
91
+ export interface UpdateRecallStatusParams {
92
+ PatNum: number;
93
+ recallType: string;
94
+ RecallStatus?: number;
95
+ commlogMode?: "None" | "Email" | "Mail" | "Phone" | "InPerson" | "Text" | "EmailAndText" | "PhoneAndText";
96
+ commlogNote?: string;
97
+ }
98
+ //# sourceMappingURL=recallTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recallTypes.d.ts","sourceRoot":"","sources":["../../src/types/recallTypes.ts"],"names":[],"mappings":"AAAA;;;KAGK;AACH,MAAM,WAAW,MAAM;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACn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AG,UAAU,GAAG,MAAM,GAAG,cAAc,GAAG,cAAc,CAAC;IAC1G,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,72 @@
1
+ /**
2
+ * GET TreatPlans object.
3
+ * @see https://www.opendental.com/site/apitreatplans.html
4
+ */
5
+ export interface TreatmentPlan {
6
+ TreatPlanNum?: number;
7
+ PatNum?: number;
8
+ DateTP?: string;
9
+ Heading?: string;
10
+ Note?: string;
11
+ SigIsTopaz?: "true" | "false";
12
+ ResponsParty?: number;
13
+ DocNum?: number;
14
+ TPStatus?: string;
15
+ SecUserNumEntry?: number;
16
+ SecDateEntry?: string;
17
+ SecDateTEdit?: string;
18
+ UserNumPresenter?: number;
19
+ TPType?: "Insurance" | "Discount";
20
+ DateTSigned?: string;
21
+ DateTPracticeSigned?: string;
22
+ SignatureText?: string;
23
+ SignaturePracticeText?: string;
24
+ isSigned?: "true" | "false";
25
+ isSignedPractice?: "true" | "false";
26
+ }
27
+ /**
28
+ * Get TreatPlans Params. Returns TreatPlan object
29
+ * @see https://www.opendental.com/site/apitreatplans.html
30
+ */
31
+ export interface GetTreatmentPlanParams {
32
+ PatNum?: number;
33
+ SecDateTEdit?: string;
34
+ TPStatus?: "Saved" | "Active" | "Inactive";
35
+ }
36
+ /**
37
+ * POST TreatPlans Params. Returns TreatPlan object
38
+ * @see https://www.opendental.com/site/apitreatplans.html
39
+ */
40
+ export interface CreateTreatmentPlanParams {
41
+ PatNum: number;
42
+ Heading?: string;
43
+ Note?: string;
44
+ TPType?: "Insurance" | "Discount";
45
+ }
46
+ /**
47
+ * POST Save TreatPlans Params. Returns TreatPlan object.
48
+ * Creates an unsigned Saved TreatPlan from an existing Active or Inactive TreatPlan.
49
+ * @see https://www.opendental.com/site/apitreatplans.html
50
+ */
51
+ export interface SaveTreatmentPlanParams {
52
+ TreatPlanNum: number;
53
+ Heading?: string;
54
+ UserNumPresenter?: number;
55
+ }
56
+ /**
57
+ * PUT TreatPlans object.
58
+ * @see https://www.opendental.com/site/apitreatplans.html
59
+ */
60
+ export interface UpdateTreatmentPlanParams {
61
+ TreatPlanNum: number;
62
+ DateTP?: string;
63
+ Heading?: string;
64
+ Note?: string;
65
+ ResponsParty?: number;
66
+ TPType?: "Insurance" | "Discount";
67
+ SignatureText?: string;
68
+ SignaturePracticeText?: string;
69
+ isSigned?: "true" | "false";
70
+ isSignedPractice?: "true" | "false";
71
+ }
72
+ //# sourceMappingURL=treatPlanTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"treatPlanTypes.d.ts","sourceRoot":"","sources":["../../src/types/treatPlanTypes.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,MAAM,WAAW,aAAa;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;CAC9C;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;CACrC;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;EAGE;AACF,MAAM,WAAW,yBAAyB;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACvC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A TypeScript library for easily accessing Open Dental APIs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,7 +14,7 @@ import {
14
14
  UpdateAppointmentParams,
15
15
  BreakAppointmentParams,
16
16
  ConfirmAppointmentParams,
17
- } from "../types/appointmentType";
17
+ } from "../types/appointmentTypes";
18
18
 
19
19
  export default class Appointments {
20
20
  private httpClient: HttpClient;
@@ -333,5 +333,4 @@ public async getAppointments({
333
333
 
334
334
  return this.httpClient.put<void>(`/appointments/${data.AptNum}/confirm`, data);
335
335
  }
336
-
337
336
  }
@@ -0,0 +1,25 @@
1
+ import HttpClient from "../utils/httpClient";
2
+ import {
3
+ PlannedAppointment,
4
+ } from "../types/chartModuleTypes"
5
+
6
+ export default class ChartModules {
7
+ private httpClient: HttpClient;
8
+
9
+ constructor(httpClient: HttpClient) {
10
+ this.httpClient = httpClient;
11
+ }
12
+
13
+ /**
14
+ * Gets Planned Appointments for a patient, similarly to how it shows in the Chart Module's Planned Appointments tab.
15
+ * @param {number} PatNum - The unique identifier for the patient.
16
+ * @returns {Promise<PlannedAppointment>} - The planned appts object.
17
+ * @throws {Error} - If `PatNum` is not provided.
18
+ */
19
+ public async getPlannedAppts(PatNum: number): Promise<PlannedAppointment> {
20
+ if (!PatNum) {
21
+ throw new Error("PatNum is required.");
22
+ }
23
+ return this.httpClient.get<PlannedAppointment>(`/chartmodules/${PatNum}/PlannedAppts`);
24
+ }
25
+ }
@@ -1,5 +1,5 @@
1
1
  import HttpClient from "../utils/httpClient";
2
- import { CommLog, CreateCommLogParams } from "../types/commlogType";
2
+ import { CommLog, CreateCommLogParams } from "../types/commlogTypes";
3
3
 
4
4
  export default class CommLogs {
5
5
  private httpClient: HttpClient;
package/src/api/index.ts CHANGED
@@ -1,4 +1,9 @@
1
- export { default as Patients } from "./patients";
2
1
  export { default as Appointments } from "./appointments";
3
- //export { default as ProcedureLogs } from "./procedureLogs";
2
+ export { default as ChartModules } from "./chartModules";
3
+ export { default as CommLogs } from "./commlogs";
4
+ export { default as PatFields } from "./patFields";
5
+ export { default as Patients } from "./patients";
6
+ export { default as ProcedureLogs } from "./procedureLog";
7
+ export { default as Recalls } from "./recalls";
8
+ export { default as TreatmentPlans } from "./treatplans";
4
9
  // Add other APIs as needed