@rinse-dental/open-dental 1.0.2 → 1.0.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 (42) hide show
  1. package/dist/api/discountPlanSubs.d.ts +5 -5
  2. package/dist/api/discountPlanSubs.d.ts.map +1 -1
  3. package/dist/api/discountPlanSubs.js +20 -9
  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 +10 -0
  18. package/dist/openDental.d.ts.map +1 -1
  19. package/dist/openDental.js +20 -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/src/api/discountPlanSubs.ts +33 -9
  33. package/src/api/familyModules.ts +28 -0
  34. package/src/api/insSubs.ts +155 -0
  35. package/src/api/patFields.ts +1 -1
  36. package/src/api/patPlans.ts +113 -0
  37. package/src/api/procedureLog.ts +96 -39
  38. package/src/openDental.ts +23 -0
  39. package/src/types/familyModuleTypes.ts +33 -0
  40. package/src/types/insSubTypes.ts +65 -0
  41. package/src/types/patPlanTypes.ts +55 -0
  42. package/src/types/procedurelogTypes.ts +41 -28
@@ -4,11 +4,11 @@ export default class DiscountPlanSubs {
4
4
  private httpClient;
5
5
  constructor(httpClient: HttpClient);
6
6
  /**
7
- * Fetch multiple definitinos with optional filtering and pagination.
7
+ * Fetch multiple discountplansubs with optional filtering and pagination.
8
8
  * @param {Object} params - The parameters for filtering and pagination.
9
9
  * @param {number} [params.PatNum] - Filter by patient.
10
10
  * @param {number} [params.Offset] - Pagination offset for results.
11
- * @returns {Promise<DiscountPlanSub[]>} - A list of appointments.
11
+ * @returns {Promise<DiscountPlanSub[]>} - A list of discountplansubs.
12
12
  */
13
13
  getDiscountPlanSubs({ PatNum, Offset, }?: GetDiscountPlanSubsParams): Promise<DiscountPlanSub[]>;
14
14
  /**
@@ -22,7 +22,7 @@ export default class DiscountPlanSubs {
22
22
  * @returns {Promise<DiscountPlanSub>} - The created discount plan sub.
23
23
  * @throws {Error} - If required fields are missing or the API returns an error.
24
24
  */
25
- createDiscountPlanSub(data: CreateDiscountPlanSubParams): Promise<DiscountPlanSub>;
25
+ createDiscountPlanSub({ DiscountPlanNum, PatNum, DateEffective, DateTerm, SubNote, }: CreateDiscountPlanSubParams): Promise<DiscountPlanSub>;
26
26
  /**
27
27
  * Update a discount plan sub.
28
28
  * @param {Object} data - The details of the discount sub to update.
@@ -34,10 +34,10 @@ export default class DiscountPlanSubs {
34
34
  * @returns {Promise<DiscountPlanSub>} - The updated discount plan sub.
35
35
  * @throws {Error} - If required fields are missing or the API returns an error.
36
36
  */
37
- updateDiscountPlanSub(data: UpdateDiscountPlanSubParams): Promise<DiscountPlanSub>;
37
+ updateDiscountPlanSub({ DiscountSubNum, PatNum, DateEffective, DateTerm, SubNote, }: UpdateDiscountPlanSubParams): Promise<DiscountPlanSub>;
38
38
  /**
39
39
  * Delete a discount plan sub entry.
40
- * @param {number} [DiscountSubNum] - Required: The unique identifier of the discount plan sub to delete.
40
+ * @param {number} DiscountSubNum - Required: The unique identifier of the discount plan sub to delete.
41
41
  * @returns {Promise<void>} - Resolves when the discount plan sub is deleted.
42
42
  * @throws {Error} - If `DiscountSubNum` is not valid or the API returns an error.
43
43
  */
@@ -1 +1 @@
1
- {"version":3,"file":"discountPlanSubs.d.ts","sourceRoot":"","sources":["../../src/api/discountPlanSubs.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACnC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;OAMG;IACU,mBAAmB,CAAC,EAC/B,MAAM,EACN,MAAM,GACP,GAAE,yBAA8B,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAS9D;;;;;;;;;;OAUG;IACU,qBAAqB,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAQ/F;;;;;;;;;;OAUG;IACU,qBAAqB,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAQ/F;;;;;OAKG;IACU,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO1E"}
1
+ {"version":3,"file":"discountPlanSubs.d.ts","sourceRoot":"","sources":["../../src/api/discountPlanSubs.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,+BAA+B,CAAC;AAGvC,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACnC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;OAMG;IACU,mBAAmB,CAAC,EAC/B,MAAM,EACN,MAAM,GACP,GAAE,yBAA8B,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAS9D;;;;;;;;;;OAUG;IACU,qBAAqB,CAAC,EACjC,eAAe,EACf,MAAM,EACN,aAAa,EACb,QAAQ,EACR,OAAO,GACR,EAAG,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAc1D;;;;;;;;;;OAUG;IACU,qBAAqB,CAAC,EACjC,cAAc,EACd,MAAM,EACN,aAAa,EACb,QAAQ,EACR,OAAO,GACR,EAAE,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAazD;;;;;OAKG;IACU,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO1E"}
@@ -6,11 +6,11 @@ class DiscountPlanSubs {
6
6
  this.httpClient = httpClient;
7
7
  }
8
8
  /**
9
- * Fetch multiple definitinos with optional filtering and pagination.
9
+ * Fetch multiple discountplansubs with optional filtering and pagination.
10
10
  * @param {Object} params - The parameters for filtering and pagination.
11
11
  * @param {number} [params.PatNum] - Filter by patient.
12
12
  * @param {number} [params.Offset] - Pagination offset for results.
13
- * @returns {Promise<DiscountPlanSub[]>} - A list of appointments.
13
+ * @returns {Promise<DiscountPlanSub[]>} - A list of discountplansubs.
14
14
  */
15
15
  async getDiscountPlanSubs({ PatNum, Offset, } = {}) {
16
16
  const params = {
@@ -30,11 +30,17 @@ class DiscountPlanSubs {
30
30
  * @returns {Promise<DiscountPlanSub>} - The created discount plan sub.
31
31
  * @throws {Error} - If required fields are missing or the API returns an error.
32
32
  */
33
- async createDiscountPlanSub(data) {
34
- if (!data.DiscountPlanNum || !data.PatNum) {
33
+ async createDiscountPlanSub({ DiscountPlanNum, PatNum, DateEffective, DateTerm, SubNote, }) {
34
+ if (!DiscountPlanNum || !PatNum) {
35
35
  throw new Error("Invalid data: DiscountPlanNum and PatNum are required.");
36
36
  }
37
- return this.httpClient.post("/discountplansubs", data);
37
+ return this.httpClient.post("/discountplansubs", {
38
+ DiscountPlanNum,
39
+ PatNum,
40
+ DateEffective,
41
+ DateTerm,
42
+ SubNote,
43
+ });
38
44
  }
39
45
  /**
40
46
  * Update a discount plan sub.
@@ -47,15 +53,20 @@ class DiscountPlanSubs {
47
53
  * @returns {Promise<DiscountPlanSub>} - The updated discount plan sub.
48
54
  * @throws {Error} - If required fields are missing or the API returns an error.
49
55
  */
50
- async updateDiscountPlanSub(data) {
51
- if (!data.DiscountSubNum || !data.PatNum) {
56
+ async updateDiscountPlanSub({ DiscountSubNum, PatNum, DateEffective, DateTerm, SubNote, }) {
57
+ if (!DiscountSubNum || !PatNum) {
52
58
  throw new Error("Invalid data: DiscountSubNum and PatNum are required.");
53
59
  }
54
- return this.httpClient.put(`/discountplansubs/${data.DiscountSubNum}`, data);
60
+ return this.httpClient.put(`/discountplansubs/${DiscountSubNum}`, {
61
+ PatNum,
62
+ DateEffective,
63
+ DateTerm,
64
+ SubNote,
65
+ });
55
66
  }
56
67
  /**
57
68
  * Delete a discount plan sub entry.
58
- * @param {number} [DiscountSubNum] - Required: The unique identifier of the discount plan sub to delete.
69
+ * @param {number} DiscountSubNum - Required: The unique identifier of the discount plan sub to delete.
59
70
  * @returns {Promise<void>} - Resolves when the discount plan sub is deleted.
60
71
  * @throws {Error} - If `DiscountSubNum` is not valid or the API returns an error.
61
72
  */
@@ -0,0 +1,17 @@
1
+ import HttpClient from "../utils/httpClient";
2
+ import { Insurance } from "../types/familyModuleTypes";
3
+ export default class FamilyModules {
4
+ private httpClient;
5
+ constructor(httpClient: HttpClient);
6
+ /**
7
+ * Gets the insurance information for a patient similarly to how it shows in the Family Module.
8
+ * Will typically return between 0 and 2 rows, one row for each insurance for the patient.
9
+ * Use another API method or a query to get additional details in each table.
10
+ * This area of the Family Module UI also shows discount plans, which are obtained through DiscountPlanSubs GET.
11
+ * @param {number} PatNum - FK to patient.PatNum
12
+ * @returns {Promise<Insurance>} - The appointment object.
13
+ * @throws {Error} - If `AptNum` is not provided.
14
+ */
15
+ getInsurance(PatNum: number): Promise<Insurance>;
16
+ }
17
+ //# sourceMappingURL=familyModules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"familyModules.d.ts","sourceRoot":"","sources":["../../src/api/familyModules.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,SAAS,EACV,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;;;OAQG;IACU,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;CAM9D"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class FamilyModules {
4
+ httpClient;
5
+ constructor(httpClient) {
6
+ this.httpClient = httpClient;
7
+ }
8
+ /**
9
+ * Gets the insurance information for a patient similarly to how it shows in the Family Module.
10
+ * Will typically return between 0 and 2 rows, one row for each insurance for the patient.
11
+ * Use another API method or a query to get additional details in each table.
12
+ * This area of the Family Module UI also shows discount plans, which are obtained through DiscountPlanSubs GET.
13
+ * @param {number} PatNum - FK to patient.PatNum
14
+ * @returns {Promise<Insurance>} - The appointment object.
15
+ * @throws {Error} - If `AptNum` is not provided.
16
+ */
17
+ async getInsurance(PatNum) {
18
+ if (!PatNum) {
19
+ throw new Error("PatNum is required.");
20
+ }
21
+ return this.httpClient.get(`/familymodules/${PatNum}/Insurance`);
22
+ }
23
+ }
24
+ exports.default = FamilyModules;
@@ -0,0 +1,64 @@
1
+ import HttpClient from "../utils/httpClient";
2
+ import { InsSub, GetInsSubsParams, CreateInsSubParams, UpdateInsSubParams } from "../types/insSubTypes";
3
+ export default class InsSubs {
4
+ private httpClient;
5
+ constructor(httpClient: HttpClient);
6
+ /**
7
+ * Fetch a single inssub by its ID.
8
+ * @param {number} InsSubNum - The unique identifier for the inssub.
9
+ * @returns {Promise<InsSub>} - The inssub object.
10
+ * @throws {Error} - If `InsSubNum` is not provided.
11
+ */
12
+ getInsSub(InsSubNum: number): Promise<InsSub>;
13
+ /**
14
+ * Fetch multiple inssubs with optional filtering and pagination.
15
+ * @param {Object} params - The parameters for filtering and pagination.
16
+ * @param {number} [params.PlanNum] - The PlanNum of the InsPlan.
17
+ * @param {number} [params.Subscriber] - The PatNum of the patient who is subscribed to this plan.
18
+ * @param {string} [params.SecDateTEdit] - The last date the InsPlan was edited. Returns all InsSubs on or after this date.
19
+ * @param {number} [params.Offset] - Pagination offset for results.
20
+ * @returns {Promise<InsSub[]>} - A list of inssubs.
21
+ */
22
+ getInsSubs({ PlanNum, Subscriber, SecDateTEdit, Offset, }?: GetInsSubsParams): Promise<InsSub[]>;
23
+ /**
24
+ * Create a new inssub.
25
+ * @param {Object} data - The details of InsSub to create.
26
+ * @param {number} data.PlanNum - Required. The PlanNum of the InsPlan.
27
+ * @param {number} data.Subscriber - Required. The PatNum of the patient who is subscribed to this plan.
28
+ * @param {string} data.SubscriberID - Required. Number assigned by insurance company.
29
+ * @param {string} [data.DateEffective] - Optional. The date this InsPlan became effective.
30
+ * @param {string} [data.DateTerm] - Optional. Not usually used. The date this InsPlan was terminated.
31
+ * @param {string} [data.BenefitNotes] - Optional. BenefitNotes are specifically designed to store automated notes. For example, when automatically requesting benefits through Trojan. Benefits are stored here in text form for later reference. Not at plan level because might be specific to subscriber. If blank, it may display a benefitNote for another subscriber to the plan.
32
+ * @param {"true" | "false"} [data.ReleaseInfo] - Optional. This is set to either "true" or "false". Default "true". This authorizes the release of information based on if there is a signature on file.
33
+ * @param {"true" | "false"} [data.AssignBen] - Optional. This is set to either "true" or "false". Default "true". This authorizes the release of information based on if there is a signature on file.
34
+ * @param {string} [data.SubscNote] - Optional. Use to store any other info that affects coverage.
35
+ * @returns {Promise<InsSub>} - The created inssub.
36
+ * @throws {Error} - If required fields are missing or the API returns an error.
37
+ */
38
+ createInsSub({ PlanNum, Subscriber, SubscriberID, DateEffective, DateTerm, BenefitNotes, ReleaseInfo, AssignBen, SubscNote, }: CreateInsSubParams): Promise<InsSub>;
39
+ /**
40
+ * Update an inssub.
41
+ * @param {Object} data - The details of InsSub to update.
42
+ * @param {number} data.InsSubNum - Required in the URL. The PK of the InsSub.
43
+ * @param {number} [data.PlanNum] - Optional. The PlanNum of the InsPlan.
44
+ * @param {number} [data.Subscriber] - Optional. The PatNum of the patient who is subscribed to this plan.
45
+ * @param {string} [data.SubscriberID] - Optional. Number assigned by insurance company.
46
+ * @param {string} [data.DateEffective] - Optional. The date this InsPlan became effective.
47
+ * @param {string} [data.DateTerm] - Optional. Not usually used. The date this InsPlan was terminated.
48
+ * @param {string} [data.BenefitNotes] - Optional. BenefitNotes are specifically designed to store automated notes. For example, when automatically requesting benefits through Trojan. Benefits are stored here in text form for later reference. Not at plan level because might be specific to subscriber. If blank, it may display a benefitNote for another subscriber to the plan.
49
+ * @param {"true" | "false"} [data.ReleaseInfo] - Optional. This is set to either "true" or "false". Default "true". This authorizes the release of information based on if there is a signature on file.
50
+ * @param {"true" | "false"} [data.AssignBen] - Optional. This is set to either "true" or "false". Default "true". This authorizes the release of information based on if there is a signature on file.
51
+ * @param {string} [data.SubscNote] - Optional. Use to store any other info that affects coverage.
52
+ * @returns {Promise<InsSub>} - The updated inssub.
53
+ * @throws {Error} - If required fields are missing or the API returns an error.
54
+ */
55
+ updateInsSub({ InsSubNum, PlanNum, Subscriber, SubscriberID, DateEffective, DateTerm, BenefitNotes, ReleaseInfo, AssignBen, SubscNote, }: UpdateInsSubParams): Promise<InsSub>;
56
+ /**
57
+ * Delete an inssub entry. Will fail if any PatPlans exist. You can obtain the InsSubNum from FamilyModules GET Insurance.
58
+ * @param {number} InsSubNum - Required: The unique identifier of the inssub to delete.
59
+ * @returns {Promise<void>} - Resolves when the discount plan sub is deleted.
60
+ * @throws {Error} - If `InsSubNum` is not valid or the API returns an error.
61
+ */
62
+ deleteInsSub(InsSubNum: number): Promise<void>;
63
+ }
64
+ //# sourceMappingURL=insSubs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insSubs.d.ts","sourceRoot":"","sources":["../../src/api/insSubs.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,OAAO;IAC1B,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;OAKG;IACU,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAO1D;;;;;;;;QAQI;IACS,UAAU,CAAC,EACtB,OAAO,EACP,UAAU,EACV,YAAY,EACZ,MAAM,GACP,GAAE,gBAAqB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAW5C;;;;;;;;;;;;;;OAcG;IACU,YAAY,CAAC,EACxB,OAAO,EACP,UAAU,EACV,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,SAAS,EACT,SAAS,GACV,EAAG,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAkBxC;;;;;;;;;;;;;;;OAeG;IACU,YAAY,CAAC,EACxB,SAAS,EACT,OAAO,EACP,UAAU,EACV,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,SAAS,EACT,SAAS,GACV,EAAG,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAkBxC;;;;;OAKG;IACU,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO5D"}
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class InsSubs {
4
+ httpClient;
5
+ constructor(httpClient) {
6
+ this.httpClient = httpClient;
7
+ }
8
+ /**
9
+ * Fetch a single inssub by its ID.
10
+ * @param {number} InsSubNum - The unique identifier for the inssub.
11
+ * @returns {Promise<InsSub>} - The inssub object.
12
+ * @throws {Error} - If `InsSubNum` is not provided.
13
+ */
14
+ async getInsSub(InsSubNum) {
15
+ if (!InsSubNum) {
16
+ throw new Error("InsSubNum is required.");
17
+ }
18
+ return this.httpClient.get(`/inssubs/${InsSubNum}`);
19
+ }
20
+ /**
21
+ * Fetch multiple inssubs with optional filtering and pagination.
22
+ * @param {Object} params - The parameters for filtering and pagination.
23
+ * @param {number} [params.PlanNum] - The PlanNum of the InsPlan.
24
+ * @param {number} [params.Subscriber] - The PatNum of the patient who is subscribed to this plan.
25
+ * @param {string} [params.SecDateTEdit] - The last date the InsPlan was edited. Returns all InsSubs on or after this date.
26
+ * @param {number} [params.Offset] - Pagination offset for results.
27
+ * @returns {Promise<InsSub[]>} - A list of inssubs.
28
+ */
29
+ async getInsSubs({ PlanNum, Subscriber, SecDateTEdit, Offset, } = {}) {
30
+ const params = {
31
+ PlanNum,
32
+ Subscriber,
33
+ SecDateTEdit,
34
+ Offset,
35
+ };
36
+ return this.httpClient.get("/inssubs", params);
37
+ }
38
+ /**
39
+ * Create a new inssub.
40
+ * @param {Object} data - The details of InsSub to create.
41
+ * @param {number} data.PlanNum - Required. The PlanNum of the InsPlan.
42
+ * @param {number} data.Subscriber - Required. The PatNum of the patient who is subscribed to this plan.
43
+ * @param {string} data.SubscriberID - Required. Number assigned by insurance company.
44
+ * @param {string} [data.DateEffective] - Optional. The date this InsPlan became effective.
45
+ * @param {string} [data.DateTerm] - Optional. Not usually used. The date this InsPlan was terminated.
46
+ * @param {string} [data.BenefitNotes] - Optional. BenefitNotes are specifically designed to store automated notes. For example, when automatically requesting benefits through Trojan. Benefits are stored here in text form for later reference. Not at plan level because might be specific to subscriber. If blank, it may display a benefitNote for another subscriber to the plan.
47
+ * @param {"true" | "false"} [data.ReleaseInfo] - Optional. This is set to either "true" or "false". Default "true". This authorizes the release of information based on if there is a signature on file.
48
+ * @param {"true" | "false"} [data.AssignBen] - Optional. This is set to either "true" or "false". Default "true". This authorizes the release of information based on if there is a signature on file.
49
+ * @param {string} [data.SubscNote] - Optional. Use to store any other info that affects coverage.
50
+ * @returns {Promise<InsSub>} - The created inssub.
51
+ * @throws {Error} - If required fields are missing or the API returns an error.
52
+ */
53
+ async createInsSub({ PlanNum, Subscriber, SubscriberID, DateEffective, DateTerm, BenefitNotes, ReleaseInfo, AssignBen, SubscNote, }) {
54
+ if (!PlanNum || !Subscriber || !SubscriberID) {
55
+ throw new Error("Invalid data: PlanNum, Subscriber, and SubscriberID are required.");
56
+ }
57
+ return this.httpClient.post("/inssubs", {
58
+ PlanNum,
59
+ Subscriber,
60
+ SubscriberID,
61
+ DateEffective,
62
+ DateTerm,
63
+ BenefitNotes,
64
+ ReleaseInfo,
65
+ AssignBen,
66
+ SubscNote,
67
+ });
68
+ }
69
+ /**
70
+ * Update an inssub.
71
+ * @param {Object} data - The details of InsSub to update.
72
+ * @param {number} data.InsSubNum - Required in the URL. The PK of the InsSub.
73
+ * @param {number} [data.PlanNum] - Optional. The PlanNum of the InsPlan.
74
+ * @param {number} [data.Subscriber] - Optional. The PatNum of the patient who is subscribed to this plan.
75
+ * @param {string} [data.SubscriberID] - Optional. Number assigned by insurance company.
76
+ * @param {string} [data.DateEffective] - Optional. The date this InsPlan became effective.
77
+ * @param {string} [data.DateTerm] - Optional. Not usually used. The date this InsPlan was terminated.
78
+ * @param {string} [data.BenefitNotes] - Optional. BenefitNotes are specifically designed to store automated notes. For example, when automatically requesting benefits through Trojan. Benefits are stored here in text form for later reference. Not at plan level because might be specific to subscriber. If blank, it may display a benefitNote for another subscriber to the plan.
79
+ * @param {"true" | "false"} [data.ReleaseInfo] - Optional. This is set to either "true" or "false". Default "true". This authorizes the release of information based on if there is a signature on file.
80
+ * @param {"true" | "false"} [data.AssignBen] - Optional. This is set to either "true" or "false". Default "true". This authorizes the release of information based on if there is a signature on file.
81
+ * @param {string} [data.SubscNote] - Optional. Use to store any other info that affects coverage.
82
+ * @returns {Promise<InsSub>} - The updated inssub.
83
+ * @throws {Error} - If required fields are missing or the API returns an error.
84
+ */
85
+ async updateInsSub({ InsSubNum, PlanNum, Subscriber, SubscriberID, DateEffective, DateTerm, BenefitNotes, ReleaseInfo, AssignBen, SubscNote, }) {
86
+ if (!InsSubNum || typeof InsSubNum !== "number") {
87
+ throw new Error("Invalid data: A Valid InsSubNum is required.");
88
+ }
89
+ return this.httpClient.put(`/inssubs/${InsSubNum}`, {
90
+ PlanNum,
91
+ Subscriber,
92
+ SubscriberID,
93
+ DateEffective,
94
+ DateTerm,
95
+ BenefitNotes,
96
+ ReleaseInfo,
97
+ AssignBen,
98
+ SubscNote,
99
+ });
100
+ }
101
+ /**
102
+ * Delete an inssub entry. Will fail if any PatPlans exist. You can obtain the InsSubNum from FamilyModules GET Insurance.
103
+ * @param {number} InsSubNum - Required: The unique identifier of the inssub to delete.
104
+ * @returns {Promise<void>} - Resolves when the discount plan sub is deleted.
105
+ * @throws {Error} - If `InsSubNum` is not valid or the API returns an error.
106
+ */
107
+ async deleteInsSub(InsSubNum) {
108
+ if (!InsSubNum || typeof InsSubNum !== "number") {
109
+ throw new Error("Invalid parameter: InsSubNum must be a valid number.");
110
+ }
111
+ return this.httpClient.delete(`/inssubs/${InsSubNum}`);
112
+ }
113
+ }
114
+ exports.default = InsSubs;
@@ -79,7 +79,7 @@ class PatFields {
79
79
  */
80
80
  async deletePatField(PatFieldNum) {
81
81
  if (!PatFieldNum || typeof PatFieldNum !== "number") {
82
- throw new Error("Invalid parameter: PatNum must be a valid number.");
82
+ throw new Error("Invalid parameter: PatFieldNum must be a valid number.");
83
83
  }
84
84
  return await this.httpClient.delete(`/patfields/${PatFieldNum}`);
85
85
  }
@@ -0,0 +1,48 @@
1
+ import HttpClient from "../utils/httpClient";
2
+ import { PatPlan, GetPatPlansParams, CreatePatPlanParams, UpdatePatPlanParams } from "../types/patPlanTypes";
3
+ export default class PatPlans {
4
+ private httpClient;
5
+ constructor(httpClient: HttpClient);
6
+ /**
7
+ * Fetch multiple patplans with optional filtering and pagination.
8
+ * @param {Object} params - The parameters for filtering and pagination.
9
+ * @param {number} [params.PatNum] - FK to patient.PatNum.
10
+ * @param {number} [params.InsSubNum] - FK to inssub.InsSubNum
11
+ * @param {number} [params.Offset] - Pagination offset for results.
12
+ * @returns {Promise<PatPlan[]>} - A list of patplans.
13
+ */
14
+ getPatPlans({ PatNum, InsSubNum, Offset, }?: GetPatPlansParams): Promise<PatPlan[]>;
15
+ /**
16
+ * This adds a PatPlan row to the database.
17
+ * @param {Object} data - The details of the patplan to create.
18
+ * @param {number} data.PatNum - Required. FK of patient
19
+ * @param {number} data.InsSubNum - 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.
20
+ * @param {string} [data.Ordinal] - Optional with a 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.
21
+ * @param {"Self" | "Spouse" | "Child" | "Employee" | "HandicapDep" | "SignifOther" | "InjuredPlantiff" | "LifePartner" | "Dependent"} [data.Relationship] - Optional. Default is Self. Values can be "Self", "Spouse", "Child", "Employee", "HandicapDep", "SignifOther", "InjuredPlantiff", "LifePartner" or "Dependent".
22
+ * @param {string} [data.PatID] - Optional. A patient ID which will override the subscriber ID on eclaims. Also used for Canada.
23
+ * @returns {Promise<PatPlan>} - The created patplan.
24
+ * @throws {Error} - If required fields are missing or the API returns an error.
25
+ */
26
+ createPatPlan({ PatNum, InsSubNum, Ordinal, Relationship, PatID, }: CreatePatPlanParams): Promise<PatPlan>;
27
+ /**
28
+ * Update a PatPlan.
29
+ * @param {Object} data - The details of PatPlan to update.
30
+ * @param {number} data.PatPlanNum - Required. PK
31
+ * @param {number} [data.InsSubNum] - Optional. This corresponds to the Change button in the Subscriber Information section of the Insurance Plan window.
32
+ * @param {string} [data.Ordinal] - Optional. 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.
33
+ * @param {"Self" | "Spouse" | "Child" | "Employee" | "HandicapDep" | "SignifOther" | "InjuredPlantiff" | "LifePartner" | "Dependent"} [data.Relationship] - Optional. Default is Self. Values can be "Self", "Spouse", "Child", "Employee", "HandicapDep", "SignifOther", "InjuredPlantiff", "LifePartner" or "Dependent".
34
+ * @param {string} [data.PatID] - Optional. A patient ID which will override the subscriber ID on eclaims. Also used for Canada.
35
+ * @returns {Promise<PatPlan>} - The updated patplan.
36
+ * @throws {Error} - If required fields are missing or the API returns an error.
37
+ */
38
+ updatePatPlan({ PatPlanNum, InsSubNum, Ordinal, Relationship, PatID, }: UpdatePatPlanParams): Promise<PatPlan>;
39
+ /**
40
+ * Delete an PatPlan entry.
41
+ * This is called "Drop" in the Open Dental UI. This removes a PatPlan row from the database, indicating no coverage, but does not affect the InsPlan itself.
42
+ * @param {number} PatPlanNum - Required: The unique identifier of the inssub to delete.
43
+ * @returns {Promise<void>} - Resolves when the discount plan sub is deleted.
44
+ * @throws {Error} - If `PatPlanNum` is not valid or the API returns an error.
45
+ */
46
+ deletePatPlan(PatPlanNum: number): Promise<void>;
47
+ }
48
+ //# sourceMappingURL=patPlans.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patPlans.d.ts","sourceRoot":"","sources":["../../src/api/patPlans.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;;QAOI;IACS,WAAW,CAAC,EACvB,MAAM,EACN,SAAS,EACT,MAAM,GACP,GAAE,iBAAsB,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAU9C;;;;;;;;;;OAUG;IACU,aAAa,CAAC,EACzB,MAAM,EACN,SAAS,EACT,OAAO,EACP,YAAY,EACZ,KAAK,GACN,EAAG,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC;IAc1C;;;;;;;;;;OAUG;IACU,aAAa,CAAC,EACzB,UAAU,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,KAAK,GACN,EAAG,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC;IAa1C;;;;;;OAMG;IACU,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO9D"}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class PatPlans {
4
+ httpClient;
5
+ constructor(httpClient) {
6
+ this.httpClient = httpClient;
7
+ }
8
+ /**
9
+ * Fetch multiple patplans with optional filtering and pagination.
10
+ * @param {Object} params - The parameters for filtering and pagination.
11
+ * @param {number} [params.PatNum] - FK to patient.PatNum.
12
+ * @param {number} [params.InsSubNum] - FK to inssub.InsSubNum
13
+ * @param {number} [params.Offset] - Pagination offset for results.
14
+ * @returns {Promise<PatPlan[]>} - A list of patplans.
15
+ */
16
+ async getPatPlans({ PatNum, InsSubNum, Offset, } = {}) {
17
+ const params = {
18
+ PatNum,
19
+ InsSubNum,
20
+ Offset,
21
+ };
22
+ return this.httpClient.get("/patplans", params);
23
+ }
24
+ /**
25
+ * This adds a PatPlan row to the database.
26
+ * @param {Object} data - The details of the patplan to create.
27
+ * @param {number} data.PatNum - Required. FK of patient
28
+ * @param {number} data.InsSubNum - 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.
29
+ * @param {string} [data.Ordinal] - Optional with a 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.
30
+ * @param {"Self" | "Spouse" | "Child" | "Employee" | "HandicapDep" | "SignifOther" | "InjuredPlantiff" | "LifePartner" | "Dependent"} [data.Relationship] - Optional. Default is Self. Values can be "Self", "Spouse", "Child", "Employee", "HandicapDep", "SignifOther", "InjuredPlantiff", "LifePartner" or "Dependent".
31
+ * @param {string} [data.PatID] - Optional. A patient ID which will override the subscriber ID on eclaims. Also used for Canada.
32
+ * @returns {Promise<PatPlan>} - The created patplan.
33
+ * @throws {Error} - If required fields are missing or the API returns an error.
34
+ */
35
+ async createPatPlan({ PatNum, InsSubNum, Ordinal, Relationship, PatID, }) {
36
+ if (!PatNum || !InsSubNum) {
37
+ throw new Error("Invalid data: PatNum and InsSubNum are required.");
38
+ }
39
+ return this.httpClient.post("/patplans", {
40
+ PatNum,
41
+ InsSubNum,
42
+ Ordinal,
43
+ Relationship,
44
+ PatID,
45
+ });
46
+ }
47
+ /**
48
+ * Update a PatPlan.
49
+ * @param {Object} data - The details of PatPlan to update.
50
+ * @param {number} data.PatPlanNum - Required. PK
51
+ * @param {number} [data.InsSubNum] - Optional. This corresponds to the Change button in the Subscriber Information section of the Insurance Plan window.
52
+ * @param {string} [data.Ordinal] - Optional. 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.
53
+ * @param {"Self" | "Spouse" | "Child" | "Employee" | "HandicapDep" | "SignifOther" | "InjuredPlantiff" | "LifePartner" | "Dependent"} [data.Relationship] - Optional. Default is Self. Values can be "Self", "Spouse", "Child", "Employee", "HandicapDep", "SignifOther", "InjuredPlantiff", "LifePartner" or "Dependent".
54
+ * @param {string} [data.PatID] - Optional. A patient ID which will override the subscriber ID on eclaims. Also used for Canada.
55
+ * @returns {Promise<PatPlan>} - The updated patplan.
56
+ * @throws {Error} - If required fields are missing or the API returns an error.
57
+ */
58
+ async updatePatPlan({ PatPlanNum, InsSubNum, Ordinal, Relationship, PatID, }) {
59
+ if (!PatPlanNum || typeof PatPlanNum !== "number") {
60
+ throw new Error("Invalid data: A Valid PatPlanNum is required.");
61
+ }
62
+ return this.httpClient.put(`/patplans/${PatPlanNum}`, {
63
+ InsSubNum,
64
+ Ordinal,
65
+ Relationship,
66
+ PatID,
67
+ });
68
+ }
69
+ /**
70
+ * Delete an PatPlan entry.
71
+ * This is called "Drop" in the Open Dental UI. This removes a PatPlan row from the database, indicating no coverage, but does not affect the InsPlan itself.
72
+ * @param {number} PatPlanNum - Required: The unique identifier of the inssub to delete.
73
+ * @returns {Promise<void>} - Resolves when the discount plan sub is deleted.
74
+ * @throws {Error} - If `PatPlanNum` is not valid or the API returns an error.
75
+ */
76
+ async deletePatPlan(PatPlanNum) {
77
+ if (!PatPlanNum || typeof PatPlanNum !== "number") {
78
+ throw new Error("Invalid parameter: PatPlanNum must be a valid number.");
79
+ }
80
+ return this.httpClient.delete(`/patplans/${PatPlanNum}`);
81
+ }
82
+ }
83
+ exports.default = PatPlans;
@@ -1,5 +1,5 @@
1
1
  import HttpClient from "../utils/httpClient";
2
- import { ProcedureLog, createProcedureLogParams, updateProcedureLogParams, InsuranceHistory, getInsuranceHistoryParams, postInsuranceHistoryParams } from "../types/procedurelogTypes";
2
+ import { ProcedureLog, GetProcedureLogParams, createProcedureLogParams, updateProcedureLogParams, InsuranceHistory, getInsuranceHistoryParams, postInsuranceHistoryParams } from "../types/procedurelogTypes";
3
3
  export default class ProcedureLogs {
4
4
  private httpClient;
5
5
  constructor(httpClient: HttpClient);
@@ -10,16 +10,29 @@ export default class ProcedureLogs {
10
10
  * @throws {Error} - If `ProcNum` is not valid or the API returns an error.
11
11
  */
12
12
  getProcedureLog(ProcNum: number): Promise<ProcedureLog>;
13
+ /**
14
+ * Fetch multiple procedurelogs with optional filtering and pagination.
15
+ * @param {Object} params - Filtering and pagination parameters.
16
+ * @param {number} [params.PatNum] - Get procedurelogs by PatNum
17
+ * @param {number} [params.AptNum] - Get procedurelogs by AptNum
18
+ * @param {number} [params.PlannedAptNum] - Get procedurelogs by PlannedAptNum
19
+ * @param {number} [params.ClinicNum] - Get procedurelogs by ClinicNum
20
+ * @param {string} [params.DateTStamp] - Get procedurelogs altered after the specified date and time
21
+ * @param {string} [params.Offset] - Pagination
22
+ * @returns {Promise<ProcedureLog[]>} - A list of procedurelogs.
23
+ * @throws {Error} - If the API returns an error.
24
+ */
25
+ getProcedureLogs({ PatNum, AptNum, PlannedAptNum, ClinicNum, DateTStamp, Offset, }?: GetProcedureLogParams): Promise<ProcedureLog[]>;
13
26
  /**
14
27
  * Create a new procedure log entry.
15
- * @param {Object} params - The details of the procedure log to create.
16
- * @param {number} params.PatNum - Required: Patient number.
17
- * @param {string} params.ProcDate - Required: Procedure date in "yyyy-MM-dd" format.
18
- * @param {'TP' | 'C' | 'EO'} params.ProcStatus - Required: Procedure status.
19
- * @param {string} params.procCode - Required: Procedure code (D code).
20
- * @param {number} [params.AptNum] - Optional: Associated appointment number.
21
- * @param {number} [params.ProcFee] - Optional: Fee for the procedure.
22
- * @param {Surf} [Surf] - Optional: Tooth surface or treatment area. Options include:
28
+ * @param {Object} data - The details of the procedure log to create.
29
+ * @param {number} data.PatNum - Required: Patient number.
30
+ * @param {string} data.ProcDate - Required: Procedure date in "yyyy-MM-dd" format.
31
+ * @param {'TP' | 'C' | 'EO'} data.ProcStatus - Required: Procedure status.
32
+ * @param {string} data.procCode - Required: Procedure code (D code).
33
+ * @param {number} [data.AptNum] - Optional: Associated appointment number.
34
+ * @param {number} [data.ProcFee] - Optional: Fee for the procedure.
35
+ * @param {Surf} [data.Surf] - Optional: Tooth surface or treatment area. Options include:
23
36
  * - "B/F" (Buccal/Facial)
24
37
  * - "V" (Vestibular)
25
38
  * - "M" (Mesial)
@@ -38,28 +51,28 @@ export default class ProcedureLogs {
38
51
  * - "6" (Sextant 6)
39
52
  * - "U" (Upper Arch)
40
53
  * - "L" (Lower Arch)
41
- * @param {string} [params.ToothNum] - Optional: Tooth number.
42
- * @param {string} [params.ToothRange] - Optional: Tooth range.
43
- * @param {number} [params.Priority] - Optional: Priority code.
44
- * @param {number} [params.ProvNum] - Optional: Provider number.
45
- * @param {string} [params.Dx] - Optional: Diagnosis code.
46
- * @param {number} [params.PlannedAptNum] - Optional: Planned appointment number.
47
- * @param {number} [params.ClinicNum] - Optional: Clinic number.
54
+ * @param {string} [data.ToothNum] - Optional: Tooth number.
55
+ * @param {string} [data.ToothRange] - Optional: Tooth range.
56
+ * @param {number} [data.Priority] - Optional: Priority code.
57
+ * @param {number} [data.ProvNum] - Optional: Provider number.
58
+ * @param {string} [data.Dx] - Optional: Diagnosis code.
59
+ * @param {number} [data.PlannedAptNum] - Optional: Planned appointment number.
60
+ * @param {number} [data.ClinicNum] - Optional: Clinic number.
48
61
  * @returns {Promise<ProcedureLog>} - The created procedure log.
49
62
  * @throws {Error} - If required fields are missing or the API returns an error.
50
63
  */
51
- createProcedureLog({ PatNum, ProcDate, ProcStatus, procCode, ...optionalData }: createProcedureLogParams): Promise<ProcedureLog>;
64
+ createProcedureLog({ PatNum, ProcDate, ProcStatus, procCode, AptNum, ProcFee, Surf, ToothNum, ToothRange, Priority, priority, ProvNum, Dx, dxName, PlannedAptNum, ClinicNum, }: createProcedureLogParams): Promise<ProcedureLog>;
52
65
  /**
53
66
  * Update an existing procedure log entry.
54
- * @param {number} ProcNum - Required: The unique identifier of the procedure log to update.
55
- * @param {Object} params - The updated details of the procedure log.
56
- * @param {string} [params.ProcDate] - Optional: Updated procedure date in "yyyy-MM-dd" format.
57
- * @param {number} [params.AptNum] - Optional: Updated associated appointment number.
58
- * @param {number} [params.ProcFee] - Optional: Updated fee for the procedure.
59
- * @param {number} [params.Priority] - Optional: Updated priority code.
60
- * @param {'TP' | 'C' | 'EO'} [params.ProcStatus] - Optional: Updated procedure status.
61
- * @param {string} [params.procCode] - Optional: Updated procedure code (D code).
62
- * @param {Surf} [Surf] - Optional: Tooth surface or treatment area. Options include:
67
+ * @param {Object} data - The updated details of the procedure log.
68
+ * @param {number} data.ProcNum - Required: The unique identifier of the procedure log to update.
69
+ * @param {string} [data.ProcDate] - Optional: Updated procedure date in "yyyy-MM-dd" format.
70
+ * @param {number} [data.AptNum] - Optional: Updated associated appointment number.
71
+ * @param {number} [data.ProcFee] - Optional: Updated fee for the procedure.
72
+ * @param {number} [data.Priority] - Optional: Updated priority code.
73
+ * @param {'TP' | 'C' | 'EO'} [data.ProcStatus] - Optional: Updated procedure status.
74
+ * @param {string} [data.procCode] - Optional: Updated procedure code (D code).
75
+ * @param {Surf} [data.Surf] - Optional: Tooth surface or treatment area. Options include:
63
76
  * - "B/F" (Buccal/Facial)
64
77
  * - "V" (Vestibular)
65
78
  * - "M" (Mesial)
@@ -78,16 +91,16 @@ export default class ProcedureLogs {
78
91
  * - "6" (Sextant 6)
79
92
  * - "U" (Upper Arch)
80
93
  * - "L" (Lower Arch)
81
- * @param {string} [params.ToothNum] - Optional: Updated tooth number.
82
- * @param {string} [params.ToothRange] - Optional: Updated tooth range.
83
- * @param {number} [params.ProvNum] - Optional: Updated provider number.
84
- * @param {string} [params.Dx] - Optional: Updated diagnosis code.
85
- * @param {number} [params.PlannedAptNum] - Optional: Updated planned appointment number.
86
- * @param {number} [params.ClinicNum] - Optional: Updated clinic number.
94
+ * @param {string} [data.ToothNum] - Optional: Updated tooth number.
95
+ * @param {string} [data.ToothRange] - Optional: Updated tooth range.
96
+ * @param {number} [data.ProvNum] - Optional: Updated provider number.
97
+ * @param {string} [data.Dx] - Optional: Updated diagnosis code.
98
+ * @param {number} [data.PlannedAptNum] - Optional: Updated planned appointment number.
99
+ * @param {number} [data.ClinicNum] - Optional: Updated clinic number.
87
100
  * @returns {Promise<ProcedureLog>} - The updated procedure log.
88
101
  * @throws {Error} - If required fields are missing or the API returns an error.
89
102
  */
90
- updateProcedureLog(ProcNum: number, { ProcDate, AptNum, ProcFee, Priority, ProcStatus, procCode, Surf, ToothNum, ToothRange, ProvNum, Dx, PlannedAptNum, ClinicNum, }: updateProcedureLogParams): Promise<ProcedureLog>;
103
+ updateProcedureLog({ ProcNum, ProcDate, AptNum, ProcFee, Priority, ProcStatus, procCode, Surf, ToothNum, ToothRange, ProvNum, Dx, PlannedAptNum, ClinicNum, }: updateProcedureLogParams): Promise<ProcedureLog>;
91
104
  /**
92
105
  * Delete a procedure log entry.
93
106
  * @param {number} ProcNum - Required: The unique identifier of the procedure log to delete.
@@ -97,18 +110,20 @@ export default class ProcedureLogs {
97
110
  deleteProcedureLog(ProcNum: number): Promise<void>;
98
111
  /**
99
112
  * Fetch insurance history for a patient.
100
- * @param {number} PatNum - Required: The patient number.
101
- * @param {number} InsSubNum - Required: The insurance subscription number.
113
+ * @param {Object} params - the params to filter
114
+ * @param {number} params.PatNum - Required: The patient number.
115
+ * @param {number} params.InsSubNum - Required: The insurance subscription number.
102
116
  * @returns {Promise<InsuranceHistory[]>} - The insurance history details.
103
117
  * @throws {Error} - If required fields are missing or the API returns an error.
104
118
  */
105
119
  getInsuranceHistory({ PatNum, InsSubNum, }: getInsuranceHistoryParams): Promise<InsuranceHistory[]>;
106
120
  /**
107
121
  * Add an insurance history entry.
108
- * @param {number} PatNum - Required: The patient number.
109
- * @param {number} InsSubNum - Required: The insurance subscription number.
110
- * @param {"InsHistBWCodes" | "InsHistPanoCodes" | "InsHistExamCodes" | "InsHistProphyCodes" | "InsHistPerioURCodes" | "InsHistPerioULCodes" | "InsHistPerioLRCodes" | "InsHistPerioLLCodes" | "InsHistPerioMaintCodes" | "InsHistDebridementCodes"} insHistPrefName - Required: The insurance history category name.
111
- * @param {string} ProcDate - Required: Procedure date in "yyyy-MM-dd" format.
122
+ * @param {Object} data - the insurance history object to create.
123
+ * @param {number} data.PatNum - Required: The patient number.
124
+ * @param {number} data.InsSubNum - Required: The insurance subscription number.
125
+ * @param {"InsHistBWCodes" | "InsHistPanoCodes" | "InsHistExamCodes" | "InsHistProphyCodes" | "InsHistPerioURCodes" | "InsHistPerioULCodes" | "InsHistPerioLRCodes" | "InsHistPerioLLCodes" | "InsHistPerioMaintCodes" | "InsHistDebridementCodes"} data.insHistPrefName - Required: The insurance history category name.
126
+ * @param {string} data.ProcDate - Required: Procedure date in "yyyy-MM-dd" format.
112
127
  * @returns {Promise<InsuranceHistory>} - The created insurance history entry.
113
128
  * @throws {Error} - If required fields are missing or the API returns an error.
114
129
  */