@rinse-dental/open-dental 1.7.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +0 -3
- package/dist/api/appointments.d.ts +2 -1
- package/dist/api/appointments.d.ts.map +1 -1
- package/dist/api/appointments.js +11 -9
- package/dist/api/discountPlanSubs.d.ts +1 -1
- package/dist/api/discountPlanSubs.d.ts.map +1 -1
- package/dist/api/discountPlanSubs.js +1 -1
- package/dist/api/discountPlans.d.ts +62 -0
- package/dist/api/discountPlans.d.ts.map +1 -0
- package/dist/api/discountPlans.js +113 -0
- package/dist/api/fees.d.ts +18 -0
- package/dist/api/fees.d.ts.map +1 -0
- package/dist/api/fees.js +29 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +7 -1
- package/dist/api/treatplanattaches.d.ts +34 -0
- package/dist/api/treatplanattaches.d.ts.map +1 -0
- package/dist/api/treatplanattaches.js +52 -0
- package/dist/openDental.d.ts +15 -0
- package/dist/openDental.d.ts.map +1 -1
- package/dist/openDental.js +30 -0
- package/dist/types/DiscountPlanTypes.d.ts +67 -0
- package/dist/types/DiscountPlanTypes.d.ts.map +1 -0
- package/dist/types/DiscountPlanTypes.js +2 -0
- package/dist/types/appointmentTypes.d.ts +1 -0
- package/dist/types/appointmentTypes.d.ts.map +1 -1
- package/dist/types/feeTypes.d.ts +46 -0
- package/dist/types/feeTypes.d.ts.map +1 -0
- package/dist/types/feeTypes.js +2 -0
- package/dist/types/treatPlanAttachTypes.d.ts +37 -0
- package/dist/types/treatPlanAttachTypes.d.ts.map +1 -0
- package/dist/types/treatPlanAttachTypes.js +2 -0
- package/package.json +3 -3
- package/release.sh +4 -2
- package/src/api/appointments.ts +11 -8
- package/src/api/discountPlanSubs.ts +1 -2
- package/src/api/discountPlans.ts +159 -0
- package/src/api/fees.ts +43 -0
- package/src/api/index.ts +3 -0
- package/src/api/treatplanattaches.ts +67 -0
- package/src/openDental.ts +33 -0
- package/src/types/DiscountPlanTypes.ts +70 -0
- package/src/types/appointmentTypes.ts +1 -0
- package/src/types/feeTypes.ts +49 -0
- package/src/types/treatPlanAttachTypes.ts +39 -0
package/.vscode/settings.json
CHANGED
|
@@ -21,10 +21,11 @@ export default class Appointments {
|
|
|
21
21
|
* @param {string} [params.dateEnd] - End date for date range in "yyyy-MM-dd" format.
|
|
22
22
|
* @param {number} [params.ClinicNum] - Filter by clinic number.
|
|
23
23
|
* @param {string} [params.DateTStamp] - Return only appointments updated after this timestamp.
|
|
24
|
+
* @param {string} [params.AppointmentTypeNum] - Returns only appointments matching appointmenttype.AppointmentTypeNum.
|
|
24
25
|
* @param {number} [params.Offset] - Pagination offset for results.
|
|
25
26
|
* @returns {Promise<Appointment[]>} - A list of appointments.
|
|
26
27
|
*/
|
|
27
|
-
getAppointments({ PatNum, AptStatus, Op, date, dateStart, dateEnd, ClinicNum, DateTStamp, Offset, }?: GetAppointmentParams): Promise<Appointment[]>;
|
|
28
|
+
getAppointments({ PatNum, AptStatus, Op, date, dateStart, dateEnd, ClinicNum, DateTStamp, AppointmentTypeNum, Offset, }?: GetAppointmentParams): Promise<Appointment[]>;
|
|
28
29
|
/**
|
|
29
30
|
* Fetch ASAP appointments.
|
|
30
31
|
* @param {Object} params - Parameters for fetching ASAP appointments.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointments.d.ts","sourceRoot":"","sources":["../../src/api/appointments.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,6BAA6B,EAC7B,0BAA0B,EAC1B,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,EACjC,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,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,uBAAuB,CAClC,MAAM,CAAC,EAAE,6BAA6B,GACrC,OAAO,CAAC,WAAW,EAAE,CAAC;IAIzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACY,oBAAoB,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,WAAW,CAAC;IAS3F;;;;;;;;;;;;;;;;;;OAkBG;IACU,wBAAwB,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,WAAW,CAAC;IASjG;;;;;;;;;;;OAWG;IACU,0BAA0B,CACrC,IAAI,EAAE,gCAAgC,GACrC,OAAO,CAAC,WAAW,CAAC;IAQvB;;;;;;;;;;;OAWG;IACU,2BAA2B,CACtC,IAAI,EAAE,iCAAiC,GACtC,OAAO,CAAC,WAAW,CAAC;IAiBvB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACU,iBAAiB,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,WAAW,CAAC;IAQnF;;;;;;;;;OASG;IACU,gBAAgB,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ1E;;;;;;OAMG;IACU,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/E;;;;;;;;OAQG;IACU,kBAAkB,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;CAO/E"}
|
package/dist/api/appointments.js
CHANGED
|
@@ -28,10 +28,11 @@ class Appointments {
|
|
|
28
28
|
* @param {string} [params.dateEnd] - End date for date range in "yyyy-MM-dd" format.
|
|
29
29
|
* @param {number} [params.ClinicNum] - Filter by clinic number.
|
|
30
30
|
* @param {string} [params.DateTStamp] - Return only appointments updated after this timestamp.
|
|
31
|
+
* @param {string} [params.AppointmentTypeNum] - Returns only appointments matching appointmenttype.AppointmentTypeNum.
|
|
31
32
|
* @param {number} [params.Offset] - Pagination offset for results.
|
|
32
33
|
* @returns {Promise<Appointment[]>} - A list of appointments.
|
|
33
34
|
*/
|
|
34
|
-
async getAppointments({ PatNum, AptStatus, Op, date, dateStart, dateEnd, ClinicNum, DateTStamp, Offset, } = {}) {
|
|
35
|
+
async getAppointments({ PatNum, AptStatus, Op, date, dateStart, dateEnd, ClinicNum, DateTStamp, AppointmentTypeNum, Offset, } = {}) {
|
|
35
36
|
const params = {
|
|
36
37
|
PatNum,
|
|
37
38
|
AptStatus,
|
|
@@ -41,6 +42,7 @@ class Appointments {
|
|
|
41
42
|
dateEnd,
|
|
42
43
|
ClinicNum,
|
|
43
44
|
DateTStamp,
|
|
45
|
+
AppointmentTypeNum,
|
|
44
46
|
Offset,
|
|
45
47
|
};
|
|
46
48
|
return this.httpClient.get("/appointments", params);
|
|
@@ -71,7 +73,7 @@ class Appointments {
|
|
|
71
73
|
* @returns {Promise<AppointmentSlot[]>} - A list of available slots.
|
|
72
74
|
*/
|
|
73
75
|
async getSlots(params) {
|
|
74
|
-
return this.httpClient.get("/appointments/
|
|
76
|
+
return this.httpClient.get("/appointments/Slots", params);
|
|
75
77
|
}
|
|
76
78
|
/**
|
|
77
79
|
* Fetch WebSched appointment slots.
|
|
@@ -89,7 +91,7 @@ class Appointments {
|
|
|
89
91
|
if (!params.ClinicNum) {
|
|
90
92
|
throw new Error("ClinicNum is required when Clinics are enabled.");
|
|
91
93
|
}
|
|
92
|
-
return this.httpClient.get("/appointments/
|
|
94
|
+
return this.httpClient.get("/appointments/SlotsWebSched", params);
|
|
93
95
|
}
|
|
94
96
|
/**
|
|
95
97
|
* Fetch WebSched appointments.
|
|
@@ -102,7 +104,7 @@ class Appointments {
|
|
|
102
104
|
* @returns {Promise<Appointment[]>} - A list of WebSched appointments.
|
|
103
105
|
*/
|
|
104
106
|
async getWebSchedAppointments(params) {
|
|
105
|
-
return this.httpClient.get("/appointments/
|
|
107
|
+
return this.httpClient.get("/appointments/WebSched", params);
|
|
106
108
|
}
|
|
107
109
|
/**
|
|
108
110
|
* Create a new appointment.
|
|
@@ -155,7 +157,7 @@ class Appointments {
|
|
|
155
157
|
if (!data.PatNum || (!data.AppointmentTypeNum && (!data.procNums || data.procNums.length === 0))) {
|
|
156
158
|
throw new Error("PatNum and either AppointmentTypeNum or procNums are required.");
|
|
157
159
|
}
|
|
158
|
-
return this.httpClient.post("/appointments/
|
|
160
|
+
return this.httpClient.post("/appointments/Planned", data);
|
|
159
161
|
}
|
|
160
162
|
/**
|
|
161
163
|
* Schedule a planned appointment.
|
|
@@ -173,7 +175,7 @@ class Appointments {
|
|
|
173
175
|
if (!data.AptNum || !data.AptDateTime || !data.ProvNum || !data.Op) {
|
|
174
176
|
throw new Error("AptNum, AptDateTime, ProvNum, and Op are required.");
|
|
175
177
|
}
|
|
176
|
-
return this.httpClient.post("/appointments/
|
|
178
|
+
return this.httpClient.post("/appointments/SchedulePlanned", data);
|
|
177
179
|
}
|
|
178
180
|
/**
|
|
179
181
|
* Schedule a WebSched appointment.
|
|
@@ -196,7 +198,7 @@ class Appointments {
|
|
|
196
198
|
!data.defNumApptType) {
|
|
197
199
|
throw new Error("PatNum, DateTimeStart, DateTimeEnd, ProvNum, OpNum, and defNumApptType are required.");
|
|
198
200
|
}
|
|
199
|
-
return this.httpClient.post("/appointments/
|
|
201
|
+
return this.httpClient.post("/appointments/WebSched", data);
|
|
200
202
|
}
|
|
201
203
|
/**
|
|
202
204
|
* Update an existing appointment.
|
|
@@ -241,7 +243,7 @@ class Appointments {
|
|
|
241
243
|
if (!data.AptNum || !data.sendToUnscheduledList) {
|
|
242
244
|
throw new Error("AptNum and sendToUnscheduledList are required.");
|
|
243
245
|
}
|
|
244
|
-
return this.httpClient.put(`/appointments/${data.AptNum}/
|
|
246
|
+
return this.httpClient.put(`/appointments/${data.AptNum}/Break`, data);
|
|
245
247
|
}
|
|
246
248
|
/**
|
|
247
249
|
* Update the note for an existing appointment.
|
|
@@ -254,7 +256,7 @@ class Appointments {
|
|
|
254
256
|
if (!AptNum || !Note) {
|
|
255
257
|
throw new Error("AptNum and Note are required.");
|
|
256
258
|
}
|
|
257
|
-
return this.httpClient.put(`/appointments/${AptNum}/
|
|
259
|
+
return this.httpClient.put(`/appointments/${AptNum}/Note`, { Note });
|
|
258
260
|
}
|
|
259
261
|
/**
|
|
260
262
|
* Confirm an existing appointment.
|
|
@@ -4,7 +4,7 @@ export default class DiscountPlanSubs {
|
|
|
4
4
|
private httpClient;
|
|
5
5
|
constructor(httpClient: HttpClient);
|
|
6
6
|
/**
|
|
7
|
-
* Fetch
|
|
7
|
+
* Fetch patient's 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
|
* @returns {Promise<DiscountPlanSub>} - A list of discountplansubs.
|
|
@@ -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;
|
|
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;;;;;OAKG;IACU,kBAAkB,CAAC,EAC9B,MAAM,GACP,GAAE,yBAA8B,GAAG,OAAO,CAAC,eAAe,CAAC;IAQ5D;;;;;;;;;;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,7 +6,7 @@ class DiscountPlanSubs {
|
|
|
6
6
|
this.httpClient = httpClient;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Fetch
|
|
9
|
+
* Fetch patient's 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
|
* @returns {Promise<DiscountPlanSub>} - A list of discountplansubs.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import HttpClient from "../utils/httpClient";
|
|
2
|
+
import { DiscountPlan, GetDiscountPlansParams, CreateDiscountPlanParams, UpdateDiscountPlanParams } from "../types/DiscountPlanTypes";
|
|
3
|
+
export default class DiscountPlans {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Fetch a single discountplan by its ID.
|
|
8
|
+
* @param {number} DiscountPlanNum - The ID of the DiscountPlanNum.
|
|
9
|
+
* @returns {Promise<DiscountPlan>} - The DiscountPlan data.
|
|
10
|
+
* @throws {Error} - If `DiscountPlan` is not valid or the API returns an error.
|
|
11
|
+
*/
|
|
12
|
+
getDiscountPlan(DiscountPlanNum: number): Promise<DiscountPlan>;
|
|
13
|
+
/**
|
|
14
|
+
* Fetch multiple discountplans with optional filtering and pagination.
|
|
15
|
+
* @param {Object} params - The parameters for filtering and pagination.
|
|
16
|
+
* @param {number} [params.Offset] - Optional. Pagination.
|
|
17
|
+
* @returns {Promise<DiscountPlan>} - A list of discountplansubs.
|
|
18
|
+
*/
|
|
19
|
+
getDiscountPlans({ Offset, }?: GetDiscountPlansParams): Promise<DiscountPlan>;
|
|
20
|
+
/**
|
|
21
|
+
* Create a new discount plan.
|
|
22
|
+
* @param {Object} data - The details of discount plan to create.
|
|
23
|
+
* @param {string} data.Description - Required. Description of this Discount Plan.
|
|
24
|
+
* @param {number} data.FeeSchedNum - Required. FK to feesched.FeeSchedNum.
|
|
25
|
+
* @param {number} data.DefNum - Required. definition.DefNum where definition.Category=1 and definition.ItemValue=dp.
|
|
26
|
+
* @param {"true" | "false"} [data.IsHidden] - Optional. Hides a Discount Plan. Default "false".
|
|
27
|
+
* @param {string} [data.PlanNote] - Optional. Note on a Discount Plan.
|
|
28
|
+
* @param {number} [data.ExamFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Exam category. Default -1.
|
|
29
|
+
* @param {number} [data.XrayFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's X-Ray category. Default -1.
|
|
30
|
+
* @param {number} [data.ProphyFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Prophy category. Default -1.
|
|
31
|
+
* @param {number} [data.FluorideFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Fluoride category. Default -1.
|
|
32
|
+
* @param {number} [data.PerioFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Perio category. Default -1.
|
|
33
|
+
* @param {number} [data.LimitedExamFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Limited Exam category. Default -1.
|
|
34
|
+
* @param {number} [data.PAFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Periapical X-Ray category. Default -1.
|
|
35
|
+
* @param {number} [data.AnnualMax] - Optional. Annual discount maximum for frequency limitations. Default -1, indicates no annual max limitation.
|
|
36
|
+
* @returns {Promise<DiscountPlan>} - The new discount plan.
|
|
37
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
38
|
+
*/
|
|
39
|
+
createDiscountPlan({ Description, FeeSchedNum, DefNum, IsHidden, PlanNote, ExamFreqLimit, XrayFreqLimit, ProphyFreqLimit, FluorideFreqLimit, PerioFreqLimit, LimitedExamFreqLimit, PAFreqLimit, AnnualMax, }: CreateDiscountPlanParams): Promise<DiscountPlan>;
|
|
40
|
+
/**
|
|
41
|
+
* Update a discount plan sub.
|
|
42
|
+
* @param {Object} data - The details of discount plan to update.
|
|
43
|
+
* @param {string} data.DiscountPlanNum - Required. Primary key of the Discount Plan.
|
|
44
|
+
* @param {string} [data.Description] - Optional. Description of this Discount Plan.
|
|
45
|
+
* @param {number} [data.FeeSchedNum] - Optional. FK to feesched.FeeSchedNum.
|
|
46
|
+
* @param {number} [data.DefNum] - Optional. definition.DefNum where definition.Category=1 and definition.ItemValue=dp.
|
|
47
|
+
* @param {"true" | "false"} [data.IsHidden] - Optional. Hides a Discount Plan. Default "false".
|
|
48
|
+
* @param {string} [data.PlanNote] - Optional. Note on a Discount Plan.
|
|
49
|
+
* @param {number} [data.ExamFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Exam category. Default -1.
|
|
50
|
+
* @param {number} [data.XrayFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's X-Ray category. Default -1.
|
|
51
|
+
* @param {number} [data.ProphyFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Prophy category. Default -1.
|
|
52
|
+
* @param {number} [data.FluorideFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Fluoride category. Default -1.
|
|
53
|
+
* @param {number} [data.PerioFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Perio category. Default -1.
|
|
54
|
+
* @param {number} [data.LimitedExamFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Limited Exam category. Default -1.
|
|
55
|
+
* @param {number} [data.PAFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Periapical X-Ray category. Default -1.
|
|
56
|
+
* @param {number} [data.AnnualMax] - Optional. Annual discount maximum for frequency limitations. Default -1, indicates no annual max limitation.
|
|
57
|
+
* @returns {Promise<DiscountPlan>} - The new discount plan.
|
|
58
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
59
|
+
*/
|
|
60
|
+
updateDiscountPlan({ DiscountPlanNum, Description, FeeSchedNum, DefNum, IsHidden, PlanNote, ExamFreqLimit, XrayFreqLimit, ProphyFreqLimit, FluorideFreqLimit, PerioFreqLimit, LimitedExamFreqLimit, PAFreqLimit, AnnualMax, }: UpdateDiscountPlanParams): Promise<DiscountPlan>;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=discountPlans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discountPlans.d.ts","sourceRoot":"","sources":["../../src/api/discountPlans.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;OAKG;IACU,eAAe,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAQ5E;;;;;OAKG;IACU,gBAAgB,CAAC,EAC5B,MAAM,GACP,GAAE,sBAA2B,GAAG,OAAO,CAAC,YAAY,CAAC;IAQtD;;;;;;;;;;;;;;;;;;OAkBG;IACU,kBAAkB,CAAC,EAC9B,WAAW,EACX,WAAW,EACX,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,SAAS,GACV,EAAG,wBAAwB,GAAG,OAAO,CAAC,YAAY,CAAC;IAuBpD;;;;;;;;;;;;;;;;;;;OAmBG;IACU,kBAAkB,CAAC,EAC9B,eAAe,EACf,WAAW,EACX,WAAW,EACX,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,SAAS,GACV,EAAG,wBAAwB,GAAG,OAAO,CAAC,YAAY,CAAC;CAsBrD"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class DiscountPlans {
|
|
4
|
+
httpClient;
|
|
5
|
+
constructor(httpClient) {
|
|
6
|
+
this.httpClient = httpClient;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Fetch a single discountplan by its ID.
|
|
10
|
+
* @param {number} DiscountPlanNum - The ID of the DiscountPlanNum.
|
|
11
|
+
* @returns {Promise<DiscountPlan>} - The DiscountPlan data.
|
|
12
|
+
* @throws {Error} - If `DiscountPlan` is not valid or the API returns an error.
|
|
13
|
+
*/
|
|
14
|
+
async getDiscountPlan(DiscountPlanNum) {
|
|
15
|
+
if (!DiscountPlanNum || typeof DiscountPlanNum !== "number") {
|
|
16
|
+
throw new Error("Invalid parameter: DiscountPlanNum must be a valid number.");
|
|
17
|
+
}
|
|
18
|
+
return await this.httpClient.get(`/discountplans/${DiscountPlanNum}`);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Fetch multiple discountplans with optional filtering and pagination.
|
|
22
|
+
* @param {Object} params - The parameters for filtering and pagination.
|
|
23
|
+
* @param {number} [params.Offset] - Optional. Pagination.
|
|
24
|
+
* @returns {Promise<DiscountPlan>} - A list of discountplansubs.
|
|
25
|
+
*/
|
|
26
|
+
async getDiscountPlans({ Offset, } = {}) {
|
|
27
|
+
const params = {
|
|
28
|
+
Offset,
|
|
29
|
+
};
|
|
30
|
+
return this.httpClient.get("/discountplans", params);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Create a new discount plan.
|
|
34
|
+
* @param {Object} data - The details of discount plan to create.
|
|
35
|
+
* @param {string} data.Description - Required. Description of this Discount Plan.
|
|
36
|
+
* @param {number} data.FeeSchedNum - Required. FK to feesched.FeeSchedNum.
|
|
37
|
+
* @param {number} data.DefNum - Required. definition.DefNum where definition.Category=1 and definition.ItemValue=dp.
|
|
38
|
+
* @param {"true" | "false"} [data.IsHidden] - Optional. Hides a Discount Plan. Default "false".
|
|
39
|
+
* @param {string} [data.PlanNote] - Optional. Note on a Discount Plan.
|
|
40
|
+
* @param {number} [data.ExamFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Exam category. Default -1.
|
|
41
|
+
* @param {number} [data.XrayFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's X-Ray category. Default -1.
|
|
42
|
+
* @param {number} [data.ProphyFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Prophy category. Default -1.
|
|
43
|
+
* @param {number} [data.FluorideFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Fluoride category. Default -1.
|
|
44
|
+
* @param {number} [data.PerioFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Perio category. Default -1.
|
|
45
|
+
* @param {number} [data.LimitedExamFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Limited Exam category. Default -1.
|
|
46
|
+
* @param {number} [data.PAFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Periapical X-Ray category. Default -1.
|
|
47
|
+
* @param {number} [data.AnnualMax] - Optional. Annual discount maximum for frequency limitations. Default -1, indicates no annual max limitation.
|
|
48
|
+
* @returns {Promise<DiscountPlan>} - The new discount plan.
|
|
49
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
50
|
+
*/
|
|
51
|
+
async createDiscountPlan({ Description, FeeSchedNum, DefNum, IsHidden, PlanNote, ExamFreqLimit, XrayFreqLimit, ProphyFreqLimit, FluorideFreqLimit, PerioFreqLimit, LimitedExamFreqLimit, PAFreqLimit, AnnualMax, }) {
|
|
52
|
+
if (!Description || !FeeSchedNum || !DefNum) {
|
|
53
|
+
throw new Error("Invalid data: Description, FeeSchedNum and DefNum are required.");
|
|
54
|
+
}
|
|
55
|
+
return this.httpClient.post("/discountplans", {
|
|
56
|
+
Description,
|
|
57
|
+
FeeSchedNum,
|
|
58
|
+
DefNum,
|
|
59
|
+
IsHidden,
|
|
60
|
+
PlanNote,
|
|
61
|
+
ExamFreqLimit,
|
|
62
|
+
XrayFreqLimit,
|
|
63
|
+
ProphyFreqLimit,
|
|
64
|
+
FluorideFreqLimit,
|
|
65
|
+
PerioFreqLimit,
|
|
66
|
+
LimitedExamFreqLimit,
|
|
67
|
+
PAFreqLimit,
|
|
68
|
+
AnnualMax,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Update a discount plan sub.
|
|
73
|
+
* @param {Object} data - The details of discount plan to update.
|
|
74
|
+
* @param {string} data.DiscountPlanNum - Required. Primary key of the Discount Plan.
|
|
75
|
+
* @param {string} [data.Description] - Optional. Description of this Discount Plan.
|
|
76
|
+
* @param {number} [data.FeeSchedNum] - Optional. FK to feesched.FeeSchedNum.
|
|
77
|
+
* @param {number} [data.DefNum] - Optional. definition.DefNum where definition.Category=1 and definition.ItemValue=dp.
|
|
78
|
+
* @param {"true" | "false"} [data.IsHidden] - Optional. Hides a Discount Plan. Default "false".
|
|
79
|
+
* @param {string} [data.PlanNote] - Optional. Note on a Discount Plan.
|
|
80
|
+
* @param {number} [data.ExamFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Exam category. Default -1.
|
|
81
|
+
* @param {number} [data.XrayFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's X-Ray category. Default -1.
|
|
82
|
+
* @param {number} [data.ProphyFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Prophy category. Default -1.
|
|
83
|
+
* @param {number} [data.FluorideFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Fluoride category. Default -1.
|
|
84
|
+
* @param {number} [data.PerioFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Perio category. Default -1.
|
|
85
|
+
* @param {number} [data.LimitedExamFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Limited Exam category. Default -1.
|
|
86
|
+
* @param {number} [data.PAFreqLimit] - Optional: Number of procedures allowed for a Discount Plan's Periapical X-Ray category. Default -1.
|
|
87
|
+
* @param {number} [data.AnnualMax] - Optional. Annual discount maximum for frequency limitations. Default -1, indicates no annual max limitation.
|
|
88
|
+
* @returns {Promise<DiscountPlan>} - The new discount plan.
|
|
89
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
90
|
+
*/
|
|
91
|
+
async updateDiscountPlan({ DiscountPlanNum, Description, FeeSchedNum, DefNum, IsHidden, PlanNote, ExamFreqLimit, XrayFreqLimit, ProphyFreqLimit, FluorideFreqLimit, PerioFreqLimit, LimitedExamFreqLimit, PAFreqLimit, AnnualMax, }) {
|
|
92
|
+
if (!DiscountPlanNum) {
|
|
93
|
+
throw new Error("Invalid data: DiscountPlanNum is required.");
|
|
94
|
+
}
|
|
95
|
+
return this.httpClient.put(`/discountplans/${DiscountPlanNum}`, {
|
|
96
|
+
DiscountPlanNum,
|
|
97
|
+
Description,
|
|
98
|
+
FeeSchedNum,
|
|
99
|
+
DefNum,
|
|
100
|
+
IsHidden,
|
|
101
|
+
PlanNote,
|
|
102
|
+
ExamFreqLimit,
|
|
103
|
+
XrayFreqLimit,
|
|
104
|
+
ProphyFreqLimit,
|
|
105
|
+
FluorideFreqLimit,
|
|
106
|
+
PerioFreqLimit,
|
|
107
|
+
LimitedExamFreqLimit,
|
|
108
|
+
PAFreqLimit,
|
|
109
|
+
AnnualMax,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.default = DiscountPlans;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import HttpClient from "../utils/httpClient";
|
|
2
|
+
import { Fee, GetFeesParams } from "../types/feeTypes";
|
|
3
|
+
export default class Fees {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Fetch multiple fees with optional filtering and pagination.
|
|
8
|
+
* @param {Object} params - The parameters for filtering and pagination.
|
|
9
|
+
* @param {number} [params.FeeSched] - Optional. Get all Fees for a FeeSched.
|
|
10
|
+
* @param {number} [params.CodeNum] - Optional. Get all Fees for a single CodeNum.
|
|
11
|
+
* @param {number} [params.ClinicNum] - Optional. Get all Fees attached to a specific ClinicNum.
|
|
12
|
+
* @param {number} [params.ProvNum] - Optional. Get all Fees attached to a specific ProvNum.
|
|
13
|
+
* @param {number} [params.Offset] - Optional. Pagination offset for results.
|
|
14
|
+
* @returns {Promise<Fee[]>} - A list of fees.
|
|
15
|
+
*/
|
|
16
|
+
getPaySplits({ FeeSched, CodeNum, ClinicNum, ProvNum, Offset, }?: GetFeesParams): Promise<Fee[]>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=fees.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fees.d.ts","sourceRoot":"","sources":["../../src/api/fees.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,GAAG,EACH,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,OAAO,OAAO,IAAI;IACvB,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIpC;;;;;;;;;OASG;IACU,YAAY,CAAC,EACtB,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,GACP,GAAE,aAAkB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;CAWvC"}
|
package/dist/api/fees.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Fees {
|
|
4
|
+
httpClient;
|
|
5
|
+
constructor(httpClient) {
|
|
6
|
+
this.httpClient = httpClient;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Fetch multiple fees with optional filtering and pagination.
|
|
10
|
+
* @param {Object} params - The parameters for filtering and pagination.
|
|
11
|
+
* @param {number} [params.FeeSched] - Optional. Get all Fees for a FeeSched.
|
|
12
|
+
* @param {number} [params.CodeNum] - Optional. Get all Fees for a single CodeNum.
|
|
13
|
+
* @param {number} [params.ClinicNum] - Optional. Get all Fees attached to a specific ClinicNum.
|
|
14
|
+
* @param {number} [params.ProvNum] - Optional. Get all Fees attached to a specific ProvNum.
|
|
15
|
+
* @param {number} [params.Offset] - Optional. Pagination offset for results.
|
|
16
|
+
* @returns {Promise<Fee[]>} - A list of fees.
|
|
17
|
+
*/
|
|
18
|
+
async getPaySplits({ FeeSched, CodeNum, ClinicNum, ProvNum, Offset, } = {}) {
|
|
19
|
+
const params = {
|
|
20
|
+
FeeSched,
|
|
21
|
+
CodeNum,
|
|
22
|
+
ClinicNum,
|
|
23
|
+
ProvNum,
|
|
24
|
+
Offset,
|
|
25
|
+
};
|
|
26
|
+
return this.httpClient.get("/fees", params);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.default = Fees;
|
package/dist/api/index.d.ts
CHANGED
|
@@ -6,10 +6,13 @@ export { default as Patients } from "./patients";
|
|
|
6
6
|
export { default as ProcedureLogs } from "./procedureLog";
|
|
7
7
|
export { default as Recalls } from "./recalls";
|
|
8
8
|
export { default as TreatmentPlans } from "./treatplans";
|
|
9
|
+
export { default as TreatmentPlanAttaches } from "./treatplanattaches";
|
|
9
10
|
export { default as Schedules } from "./schedules";
|
|
10
11
|
export { default as Providers } from "./providers";
|
|
11
12
|
export { default as Operatories } from "./operatories";
|
|
12
13
|
export { default as Payments } from "./payments";
|
|
13
14
|
export { default as Definitions } from "./definitions";
|
|
14
15
|
export { default as DiscountPlanSubs } from "./discountPlanSubs";
|
|
16
|
+
export { default as DiscountPlans } from "./discountPlans";
|
|
17
|
+
export { default as Fees } from "./fees";
|
|
15
18
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/api/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DiscountPlanSubs = exports.Definitions = exports.Payments = exports.Operatories = exports.Providers = exports.Schedules = exports.TreatmentPlans = exports.Recalls = exports.ProcedureLogs = exports.Patients = exports.PatFields = exports.CommLogs = exports.ChartModules = exports.Appointments = void 0;
|
|
6
|
+
exports.Fees = exports.DiscountPlans = exports.DiscountPlanSubs = exports.Definitions = exports.Payments = exports.Operatories = exports.Providers = exports.Schedules = exports.TreatmentPlanAttaches = exports.TreatmentPlans = exports.Recalls = exports.ProcedureLogs = exports.Patients = exports.PatFields = exports.CommLogs = exports.ChartModules = exports.Appointments = void 0;
|
|
7
7
|
var appointments_1 = require("./appointments");
|
|
8
8
|
Object.defineProperty(exports, "Appointments", { enumerable: true, get: function () { return __importDefault(appointments_1).default; } });
|
|
9
9
|
var chartModules_1 = require("./chartModules");
|
|
@@ -20,6 +20,8 @@ var recalls_1 = require("./recalls");
|
|
|
20
20
|
Object.defineProperty(exports, "Recalls", { enumerable: true, get: function () { return __importDefault(recalls_1).default; } });
|
|
21
21
|
var treatplans_1 = require("./treatplans");
|
|
22
22
|
Object.defineProperty(exports, "TreatmentPlans", { enumerable: true, get: function () { return __importDefault(treatplans_1).default; } });
|
|
23
|
+
var treatplanattaches_1 = require("./treatplanattaches");
|
|
24
|
+
Object.defineProperty(exports, "TreatmentPlanAttaches", { enumerable: true, get: function () { return __importDefault(treatplanattaches_1).default; } });
|
|
23
25
|
var schedules_1 = require("./schedules");
|
|
24
26
|
Object.defineProperty(exports, "Schedules", { enumerable: true, get: function () { return __importDefault(schedules_1).default; } });
|
|
25
27
|
var providers_1 = require("./providers");
|
|
@@ -32,4 +34,8 @@ var definitions_1 = require("./definitions");
|
|
|
32
34
|
Object.defineProperty(exports, "Definitions", { enumerable: true, get: function () { return __importDefault(definitions_1).default; } });
|
|
33
35
|
var discountPlanSubs_1 = require("./discountPlanSubs");
|
|
34
36
|
Object.defineProperty(exports, "DiscountPlanSubs", { enumerable: true, get: function () { return __importDefault(discountPlanSubs_1).default; } });
|
|
37
|
+
var discountPlans_1 = require("./discountPlans");
|
|
38
|
+
Object.defineProperty(exports, "DiscountPlans", { enumerable: true, get: function () { return __importDefault(discountPlans_1).default; } });
|
|
39
|
+
var fees_1 = require("./fees");
|
|
40
|
+
Object.defineProperty(exports, "Fees", { enumerable: true, get: function () { return __importDefault(fees_1).default; } });
|
|
35
41
|
// Add other APIs as needed
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import HttpClient from "../utils/httpClient";
|
|
2
|
+
import { TreatPlanAttach, GetTreatPlanAttachesParams, CreateTreatPlanAttachesParams, UpdateTreatPlanAttachesParams } from "../types/treatPlanAttachTypes";
|
|
3
|
+
export default class TreatPlanAttaches {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Get a list of TreatPlanAttaches that meet a set of search criteria.
|
|
8
|
+
* @param {Object} params - The parameters for filtering and pagination.
|
|
9
|
+
* @param {string} params.TreatPlanNum - treatplan.TreatPlanNum
|
|
10
|
+
* @param {number} [params.Offset] - Pagination offset. Default 0
|
|
11
|
+
* @returns {Promise<TreatPlanAttach[]>} - An array of TreatPlanAttach objects.
|
|
12
|
+
*/
|
|
13
|
+
getTreatPlanAttaches({ TreatPlanNum, Offset, }?: GetTreatPlanAttachesParams): Promise<TreatPlanAttach[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Create a new TreatPlanAttaches.
|
|
16
|
+
* @param {Object} data - Data for the new TreatPlanAttaches object.
|
|
17
|
+
* @param {number} data.TreatPlanNum - Required. FK to treatplan.TreatPlanNum.
|
|
18
|
+
* @param {number} data.ProcNum - Required. FK to procedurelog.ProcNum.
|
|
19
|
+
* @param {string} [data.Priority] - Optional. definition.DefNum where definition.Category=20. Default 0.
|
|
20
|
+
* @returns {Promise<TreatPlanAttach>} - The created TreatPlanAttaches object.
|
|
21
|
+
* @throws {Error} - If required fields are missing.
|
|
22
|
+
*/
|
|
23
|
+
createTreatmentPlan(data: CreateTreatPlanAttachesParams): Promise<TreatPlanAttach>;
|
|
24
|
+
/**
|
|
25
|
+
* Update a TreatPlanAttaches.
|
|
26
|
+
* @param {Object} data - Data for the treatplan.
|
|
27
|
+
* @param {number} data.TreatPlanAttachNum - Required in URL, Primary key.
|
|
28
|
+
* @param {string} data.Priority - Required. definition.DefNum where definition.Category=20.
|
|
29
|
+
* @returns {Promise<TreatPlanAttach>} - The updated TreatPlanAttaches object.
|
|
30
|
+
* @throws {Error} - If required fields are missing.
|
|
31
|
+
*/
|
|
32
|
+
updateTreatmentPlan(data: UpdateTreatPlanAttachesParams): Promise<TreatPlanAttach>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=treatplanattaches.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"treatplanattaches.d.ts","sourceRoot":"","sources":["../../src/api/treatplanattaches.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,eAAe,EACf,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAChC,MAAM,+BAA+B,CAAC;AAEvC,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,OAAO,CAAC,UAAU,CAAa;gBAEjB,UAAU,EAAE,UAAU;IAIlC;;;;;;OAMG;IACU,oBAAoB,CAAC,EAC9B,YAAY,EACZ,MAAM,GACT,GAAE,0BAA+B,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAS9D;;;;;;;;MAQE;IACU,mBAAmB,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,eAAe,CAAC;IAQ/F;;;;;;;OAOG;IACU,mBAAmB,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,eAAe,CAAC;CAOlG"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class TreatPlanAttaches {
|
|
4
|
+
httpClient;
|
|
5
|
+
constructor(httpClient) {
|
|
6
|
+
this.httpClient = httpClient;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Get a list of TreatPlanAttaches that meet a set of search criteria.
|
|
10
|
+
* @param {Object} params - The parameters for filtering and pagination.
|
|
11
|
+
* @param {string} params.TreatPlanNum - treatplan.TreatPlanNum
|
|
12
|
+
* @param {number} [params.Offset] - Pagination offset. Default 0
|
|
13
|
+
* @returns {Promise<TreatPlanAttach[]>} - An array of TreatPlanAttach objects.
|
|
14
|
+
*/
|
|
15
|
+
async getTreatPlanAttaches({ TreatPlanNum, Offset, } = {}) {
|
|
16
|
+
const params = {
|
|
17
|
+
TreatPlanNum,
|
|
18
|
+
Offset,
|
|
19
|
+
};
|
|
20
|
+
return this.httpClient.get("/treatplanattaches", params);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create a new TreatPlanAttaches.
|
|
24
|
+
* @param {Object} data - Data for the new TreatPlanAttaches object.
|
|
25
|
+
* @param {number} data.TreatPlanNum - Required. FK to treatplan.TreatPlanNum.
|
|
26
|
+
* @param {number} data.ProcNum - Required. FK to procedurelog.ProcNum.
|
|
27
|
+
* @param {string} [data.Priority] - Optional. definition.DefNum where definition.Category=20. Default 0.
|
|
28
|
+
* @returns {Promise<TreatPlanAttach>} - The created TreatPlanAttaches object.
|
|
29
|
+
* @throws {Error} - If required fields are missing.
|
|
30
|
+
*/
|
|
31
|
+
async createTreatmentPlan(data) {
|
|
32
|
+
if (!data.TreatPlanNum || !data.ProcNum) {
|
|
33
|
+
throw new Error("TreatPlanNum and ProcNum are required.");
|
|
34
|
+
}
|
|
35
|
+
return this.httpClient.post("/treatplanattaches", data);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Update a TreatPlanAttaches.
|
|
39
|
+
* @param {Object} data - Data for the treatplan.
|
|
40
|
+
* @param {number} data.TreatPlanAttachNum - Required in URL, Primary key.
|
|
41
|
+
* @param {string} data.Priority - Required. definition.DefNum where definition.Category=20.
|
|
42
|
+
* @returns {Promise<TreatPlanAttach>} - The updated TreatPlanAttaches object.
|
|
43
|
+
* @throws {Error} - If required fields are missing.
|
|
44
|
+
*/
|
|
45
|
+
async updateTreatmentPlan(data) {
|
|
46
|
+
if (!data.TreatPlanAttachNum || !data.Priority) {
|
|
47
|
+
throw new Error("TreatPlanAttachNum and Priority are required.");
|
|
48
|
+
}
|
|
49
|
+
return this.httpClient.put(`/treatplanattaches/${data.TreatPlanAttachNum}`, data);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.default = TreatPlanAttaches;
|
package/dist/openDental.d.ts
CHANGED
|
@@ -6,12 +6,14 @@ import Patients from "./api/patients";
|
|
|
6
6
|
import ProcedureLogs from "./api/procedureLog";
|
|
7
7
|
import Recalls from "./api/recalls";
|
|
8
8
|
import TreatmentPlans from "./api/treatplans";
|
|
9
|
+
import TreatmentPlanAttaches from "./api/treatplanattaches";
|
|
9
10
|
import Schedules from "./api/schedules";
|
|
10
11
|
import Providers from "./api/providers";
|
|
11
12
|
import Operatories from "./api/operatories";
|
|
12
13
|
import Payments from "./api/payments";
|
|
13
14
|
import PaySplits from "./api/paySplits";
|
|
14
15
|
import Definitions from "./api/definitions";
|
|
16
|
+
import DiscountPlans from "./api/discountPlans";
|
|
15
17
|
import DiscountPlanSubs from "./api/discountPlanSubs";
|
|
16
18
|
import FamilyModules from "./api/familyModules";
|
|
17
19
|
import InsSubs from "./api/insSubs";
|
|
@@ -24,6 +26,7 @@ import Benefits from "./api/benefits";
|
|
|
24
26
|
import ClaimProcs from "./api/claimProcs";
|
|
25
27
|
import Adjustments from "./api/adjustments";
|
|
26
28
|
import ProcedureCodes from "./api/procedureCodes";
|
|
29
|
+
import Fees from "./api/fees";
|
|
27
30
|
declare class OpenDental {
|
|
28
31
|
private static httpClient;
|
|
29
32
|
/**
|
|
@@ -62,6 +65,10 @@ declare class OpenDental {
|
|
|
62
65
|
* Create a new instance of the TreatmentPlans API.
|
|
63
66
|
*/
|
|
64
67
|
static TreatmentPlans(): TreatmentPlans;
|
|
68
|
+
/**
|
|
69
|
+
* Create a new instance of the TreatmentPlanAttaches API.
|
|
70
|
+
*/
|
|
71
|
+
static TreatmentPlanAttaches(): TreatmentPlanAttaches;
|
|
65
72
|
/**
|
|
66
73
|
* Create a new instance of the Schedules API.
|
|
67
74
|
*/
|
|
@@ -82,6 +89,10 @@ declare class OpenDental {
|
|
|
82
89
|
* Create a new instance of the Definitions API.
|
|
83
90
|
*/
|
|
84
91
|
static Definitions(): Definitions;
|
|
92
|
+
/**
|
|
93
|
+
* Create a new instance of the DiscountPlans API.
|
|
94
|
+
*/
|
|
95
|
+
static DiscountPlans(): DiscountPlans;
|
|
85
96
|
/**
|
|
86
97
|
* Create a new instance of the DiscountPlanSubs API.
|
|
87
98
|
*/
|
|
@@ -134,6 +145,10 @@ declare class OpenDental {
|
|
|
134
145
|
* Create a new instance of the PaySplits API.
|
|
135
146
|
*/
|
|
136
147
|
static PaySplits(): PaySplits;
|
|
148
|
+
/**
|
|
149
|
+
* Create a new instance of the Fees API.
|
|
150
|
+
*/
|
|
151
|
+
static Fees(): Fees;
|
|
137
152
|
}
|
|
138
153
|
export { OpenDental };
|
|
139
154
|
//# sourceMappingURL=openDental.d.ts.map
|
package/dist/openDental.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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;AACxC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AA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