@rinse-dental/open-dental 0.1.1 → 0.1.4

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 (70) hide show
  1. package/deploy_notes.txt +21 -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 +8 -1
  10. package/dist/api/index.d.ts.map +1 -1
  11. package/dist/api/index.js +17 -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/schedules.d.ts +29 -0
  22. package/dist/api/schedules.d.ts.map +1 -0
  23. package/dist/api/schedules.js +47 -0
  24. package/dist/api/treatplans.d.ts +53 -0
  25. package/dist/api/treatplans.d.ts.map +1 -0
  26. package/dist/api/treatplans.js +77 -0
  27. package/dist/openDental.d.ts +38 -3
  28. package/dist/openDental.d.ts.map +1 -1
  29. package/dist/openDental.js +74 -4
  30. package/dist/types/{appointmentType.d.ts → appointmentTypes.d.ts} +1 -1
  31. package/dist/types/appointmentTypes.d.ts.map +1 -0
  32. package/dist/types/chartModuleTypes.d.ts +21 -0
  33. package/dist/types/chartModuleTypes.d.ts.map +1 -0
  34. package/dist/types/{commlogType.d.ts → commlogTypes.d.ts} +1 -1
  35. package/dist/types/commlogTypes.d.ts.map +1 -0
  36. package/dist/types/commlogTypes.js +2 -0
  37. package/dist/types/patFieldTypes.d.ts +23 -0
  38. package/dist/types/patFieldTypes.d.ts.map +1 -0
  39. package/dist/types/patFieldTypes.js +2 -0
  40. package/dist/types/recallTypes.d.ts +98 -0
  41. package/dist/types/recallTypes.d.ts.map +1 -0
  42. package/dist/types/recallTypes.js +2 -0
  43. package/dist/types/scheduleTypes.d.ts +28 -0
  44. package/dist/types/scheduleTypes.d.ts.map +1 -0
  45. package/dist/types/scheduleTypes.js +2 -0
  46. package/dist/types/treatPlanTypes.d.ts +72 -0
  47. package/dist/types/treatPlanTypes.d.ts.map +1 -0
  48. package/dist/types/treatPlanTypes.js +2 -0
  49. package/package.json +1 -1
  50. package/src/api/appointments.ts +1 -2
  51. package/src/api/chartModules.ts +25 -0
  52. package/src/api/commlogs.ts +1 -1
  53. package/src/api/index.ts +8 -2
  54. package/src/api/patFields.ts +112 -0
  55. package/src/api/patients.ts +50 -1
  56. package/src/api/recalls.ts +148 -0
  57. package/src/api/schedules.ts +65 -0
  58. package/src/api/treatplans.ts +97 -0
  59. package/src/openDental.ts +85 -4
  60. package/src/types/chartModuleTypes.ts +29 -0
  61. package/src/types/patFieldTypes.ts +24 -0
  62. package/src/types/recallTypes.ts +102 -0
  63. package/src/types/scheduleTypes.ts +28 -0
  64. package/src/types/treatPlanTypes.ts +75 -0
  65. package/dist/types/appointmentType.d.ts.map +0 -1
  66. package/dist/types/commlogType.d.ts.map +0 -1
  67. /package/dist/types/{appointmentType.js → appointmentTypes.js} +0 -0
  68. /package/dist/types/{commlogType.js → chartModuleTypes.js} +0 -0
  69. /package/src/types/{appointmentType.ts → appointmentTypes.ts} +0 -0
  70. /package/src/types/{commlogType.ts → commlogTypes.ts} +0 -0
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class Schedules {
4
+ httpClient;
5
+ constructor(httpClient) {
6
+ this.httpClient = httpClient;
7
+ }
8
+ /**
9
+ * Fetch a single Schedule by its ID.
10
+ * @param {number} ScheduleNum - The ID of the patfield.
11
+ * @returns {Promise<Schedule>} - The patient data.
12
+ * @throws {Error} - If `PatNum` is not valid or the API returns an error.
13
+ */
14
+ async getSchedule(ScheduleNum) {
15
+ if (!ScheduleNum || typeof ScheduleNum !== "number") {
16
+ throw new Error("Invalid parameter: PatNum must be a valid number.");
17
+ }
18
+ return await this.httpClient.get(`/schedules/${ScheduleNum}`);
19
+ }
20
+ /**
21
+ * Fetch multiple patients with optional filtering and pagination.
22
+ * @param {Object} params - Filtering and pagination parameters.
23
+ * @param {string} [params.date] - Optional: For a single day. Today's date by default.
24
+ * @param {string} [params.dateStart] - Optional: For a single day. Today's date by default.
25
+ * @param {string} [params.dateEnd] - Optional: For a single day. Today's date by default.
26
+ * @param {'Practice' | 'Provider' | 'Blockout' | 'Employee' | 'WebSchedASAP'} [params.SchedType] - Optional: Either "Practice", "Provider", "Blockout", "Employee", or "WebSchedASAP".
27
+ * @param {number} [params.BlockoutDefNum] - Definition.DefNum where definition.Category=25.
28
+ * @param {number} [params.ProvNum] - FK to provider.ProvNum.
29
+ * @param {number} [params.EmployeeNum] - FK to employee.EmployeeNum.
30
+ * @param {number} [params.Offset] - Pagination offset.
31
+ * @returns {Promise<Schedule[]>} - A list of summarized patient data.
32
+ * @throws {Error} - If the API returns an error.
33
+ */
34
+ async getSchedules({ date, dateStart, dateEnd, SchedType, BlockoutDefNum, ProvNum, EmployeeNum, Offset, } = {}) {
35
+ return await this.httpClient.get("/schedules", {
36
+ date,
37
+ dateStart,
38
+ dateEnd,
39
+ SchedType,
40
+ BlockoutDefNum,
41
+ ProvNum,
42
+ EmployeeNum,
43
+ Offset,
44
+ });
45
+ }
46
+ }
47
+ exports.default = Schedules;
@@ -0,0 +1,53 @@
1
+ import HttpClient from "../utils/httpClient";
2
+ import { TreatmentPlan, GetTreatmentPlanParams, CreateTreatmentPlanParams, UpdateTreatmentPlanParams, SaveTreatmentPlanParams } from "../types/treatPlanTypes";
3
+ export default class TreatmentPlans {
4
+ private httpClient;
5
+ constructor(httpClient: HttpClient);
6
+ /**
7
+ * Get a list of TreatPlans that meet a set of search criteria.
8
+ * @param {Object} params - The parameters for filtering and pagination.
9
+ * @param {string} [params.PatNum] - patient.PatNum.
10
+ * @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.
11
+ * @param {"Saved" | "Active" | "Inactive"} [params.TPStatus] - Either "Saved", "Active", or "Inactive". Default all.
12
+ * @returns {Promise<TreatmentPlan[]>} - An array of recall list objects.
13
+ */
14
+ getTreatmentPlans({ PatNum, SecDateTEdit, TPStatus, }?: GetTreatmentPlanParams): Promise<TreatmentPlan[]>;
15
+ /**
16
+ * Create a new TreatPlan.
17
+ * @param {Object} data - Data for the new appointment.
18
+ * @param {number} data.PatNum - Required. FK to patient.PatNum.
19
+ * @param {string} [data.Heading] - Optional. Defaults to the heading of the supplied Treatment Plan.
20
+ * @param {string} [data.Note] - Optional: An administrative note for staff use.
21
+ * @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".
22
+ * @returns {Promise<TreatmentPlan>} - The created recall object.
23
+ * @throws {Error} - If required fields are missing.
24
+ */
25
+ createTreatmentPlan(data: CreateTreatmentPlanParams): Promise<TreatmentPlan>;
26
+ /**
27
+ * Creates an unsigned Saved TreatPlan from an existing Active or Inactive TreatPlan.
28
+ * @param {Object} data - Data for the new appointment.
29
+ * @param {number} data.TreatPlanNum - Required.
30
+ * @param {string} [data.Heading] - Optional. Defaults to the heading of the supplied Treatment Plan.
31
+ * @param {string} [data.UserNumPresenter=0] - Optional. FK to userod.UserNum. Default 0.
32
+ * @returns {Promise<TreatmentPlan>} - The created recall object.
33
+ * @throws {Error} - If required fields are missing.
34
+ */
35
+ saveTreatmentPlan(data: SaveTreatmentPlanParams): Promise<TreatmentPlan>;
36
+ /**
37
+ * Create a new TreatPlan.
38
+ * @param {Object} data - Data for the new appointment.
39
+ * @param {number} data.TreatPlanNum - Required.
40
+ * @param {string} [data.Heading] - The heading that shows at the top of the treatment plan.
41
+ * @param {string} [data.Note] - Optional: An administrative note for staff use.
42
+ * @param {number} [data.ResponsParty] - FK to patient.PatNum. The patient responsible for approving the treatment.
43
+ * @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".
44
+ * @param {string} [data.SignatureText] - The typed name of the person who signed the patient signature.
45
+ * @param {string} [data.SignaturePracticeText] - The typed name of the person who signed the patient signature.
46
+ * @param {"true" | "false"} [data.isSigned] - The typed name of the person who signed the patient signature.
47
+ * @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.
48
+ * @returns {Promise<TreatmentPlan>} - The created recall object.
49
+ * @throws {Error} - If required fields are missing.
50
+ */
51
+ updateTreatmentPlan(data: UpdateTreatmentPlanParams): Promise<TreatmentPlan>;
52
+ }
53
+ //# sourceMappingURL=treatplans.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"treatplans.d.ts","sourceRoot":"","sources":["../../src/api/treatplans.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,aAAa,EACb,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EAC1B,MAAM,yBAAyB,CAAC;AAGjC,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,OAAO,CAAC,UAAU,CAAa;gBAEjB,UAAU,EAAE,UAAU;IAIlC;;;;;;;OAOG;IACU,iBAAiB,CAAC,EAC3B,MAAM,EACN,YAAY,EACZ,QAAQ,GACX,GAAE,sBAA2B,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAUxD;;;;;;;;;MASE;IACU,mBAAmB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAQzF;;;;;;;;OAQG;IACU,iBAAiB,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,aAAa,CAAC;IAQrF;;;;;;;;;;;;;;OAcG;IACU,mBAAmB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;CAO5F"}
@@ -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,54 @@
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";
9
+ import Schedules from "./api/schedules";
3
10
  declare class OpenDental {
4
11
  private static httpClient;
5
12
  /**
6
13
  * Initialize the OpenDental library with the base URL and auth token.
7
14
  */
8
15
  static initialize(baseURL: string, authToken: string): void;
16
+ /**
17
+ * Create a new instance of the Appointments API.
18
+ */
19
+ static Appointments(): Appointments;
20
+ /**
21
+ * Create a new instance of the ChartModule API endpoint.
22
+ */
23
+ static CommLogs(): CommLogs;
24
+ /**
25
+ * Create a new instance of the ChartModule API endpoint.
26
+ */
27
+ static ChartModules(): ChartModules;
28
+ /**
29
+ * Create a new instance of the Patients API.
30
+ */
31
+ static PatFields(): PatFields;
9
32
  /**
10
33
  * Create a new instance of the Patients API.
11
34
  */
12
35
  static Patients(): Patients;
13
36
  /**
14
- * Create a new instance of the Appointments API.
37
+ * Create a new instance of the ProcedureLogs API endpoint.
15
38
  */
16
- static Appointments(): Appointments;
39
+ static ProcedureLogs(): ProcedureLogs;
40
+ /**
41
+ * Create a new instance of the Patients API.
42
+ */
43
+ static Recalls(): Recalls;
44
+ /**
45
+ * Create a new instance of the TreatmentPlans API.
46
+ */
47
+ static TreatmentPlans(): TreatmentPlans;
48
+ /**
49
+ * Create a new instance of the Schedules API.
50
+ */
51
+ static Schedules(): Schedules;
17
52
  }
18
53
  export { OpenDental };
19
54
  //# 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;AAC9C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAGxC,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;IAO1B;;KAEC;WACa,SAAS;CAQ1B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -5,8 +5,15 @@ 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"));
16
+ const schedules_1 = __importDefault(require("./api/schedules"));
10
17
  class OpenDental {
11
18
  static httpClient;
12
19
  /**
@@ -20,6 +27,42 @@ class OpenDental {
20
27
  baseURL = baseURL + "/api/v1";
21
28
  this.httpClient = new httpClient_1.default(baseURL, authToken);
22
29
  }
30
+ /**
31
+ * Create a new instance of the Appointments API.
32
+ */
33
+ static Appointments() {
34
+ if (!this.httpClient) {
35
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
36
+ }
37
+ return new appointments_1.default(this.httpClient);
38
+ }
39
+ /**
40
+ * Create a new instance of the ChartModule API endpoint.
41
+ */
42
+ static CommLogs() {
43
+ if (!this.httpClient) {
44
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
45
+ }
46
+ return new commlogs_1.default(this.httpClient);
47
+ }
48
+ /**
49
+ * Create a new instance of the ChartModule API endpoint.
50
+ */
51
+ static ChartModules() {
52
+ if (!this.httpClient) {
53
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
54
+ }
55
+ return new chartModules_1.default(this.httpClient);
56
+ }
57
+ /**
58
+ * Create a new instance of the Patients API.
59
+ */
60
+ static PatFields() {
61
+ if (!this.httpClient) {
62
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
63
+ }
64
+ return new patFields_1.default(this.httpClient);
65
+ }
23
66
  /**
24
67
  * Create a new instance of the Patients API.
25
68
  */
@@ -30,13 +73,40 @@ class OpenDental {
30
73
  return new patients_1.default(this.httpClient);
31
74
  }
32
75
  /**
33
- * Create a new instance of the Appointments API.
76
+ * Create a new instance of the ProcedureLogs API endpoint.
34
77
  */
35
- static Appointments() {
78
+ static ProcedureLogs() {
36
79
  if (!this.httpClient) {
37
80
  throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
38
81
  }
39
- return new appointments_1.default(this.httpClient);
82
+ return new procedureLog_1.default(this.httpClient);
83
+ }
84
+ /**
85
+ * Create a new instance of the Patients API.
86
+ */
87
+ static Recalls() {
88
+ if (!this.httpClient) {
89
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
90
+ }
91
+ return new recalls_1.default(this.httpClient);
92
+ }
93
+ /**
94
+ * Create a new instance of the TreatmentPlans API.
95
+ */
96
+ static TreatmentPlans() {
97
+ if (!this.httpClient) {
98
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
99
+ }
100
+ return new treatplans_1.default(this.httpClient);
101
+ }
102
+ /**
103
+ * Create a new instance of the Schedules API.
104
+ */
105
+ static Schedules() {
106
+ if (!this.httpClient) {
107
+ throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
108
+ }
109
+ return new schedules_1.default(this.httpClient);
40
110
  }
41
111
  }
42
112
  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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C,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;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAA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ameters for fetching multiple patients.
3
+ * @see https://www.opendental.com/site/apischedules.html
4
+ */
5
+ export interface Schedule {
6
+ ScheduleNum?: number;
7
+ SchedDate?: string;
8
+ StartTime?: string;
9
+ StopTime?: string;
10
+ SchedType?: "Practice" | "Provider" | "Blockout" | "Employee" | "WebSchedASAP";
11
+ ProvNum?: number;
12
+ BlockoutType?: string;
13
+ blockoutType?: string;
14
+ Note?: string;
15
+ operatories?: string;
16
+ EmployeeNum?: string;
17
+ }
18
+ export interface GetSchedulesParams {
19
+ date?: string;
20
+ dateStart?: string;
21
+ dateEnd?: string;
22
+ SchedType?: "Practice" | "Provider" | "Blockout" | "Employee" | "WebSchedASAP";
23
+ BlockoutDefNum?: string;
24
+ ProvNum?: number;
25
+ EmployeeNum?: number;
26
+ Offset?: number;
27
+ }
28
+ //# sourceMappingURL=scheduleTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduleTypes.d.ts","sourceRoot":"","sources":["../../src/types/scheduleTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,CAAC;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,CAAC;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });