@rinse-dental/open-dental 2.1.0 → 2.1.2
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/dist/api/allergies.js +5 -6
- package/dist/api/medicationPats.d.ts.map +1 -1
- package/dist/api/medicationPats.js +6 -6
- package/dist/openDental.d.ts +6 -3
- package/dist/openDental.d.ts.map +1 -1
- package/dist/openDental.js +6 -3
- package/package.json +1 -1
- package/src/api/allergies.ts +6 -6
- package/src/api/medicationPats.ts +9 -6
- package/src/openDental.ts +23 -23
package/dist/api/allergies.js
CHANGED
|
@@ -16,12 +16,11 @@ class Allergies {
|
|
|
16
16
|
if (!PatNum || typeof PatNum !== "number") {
|
|
17
17
|
throw new Error("PatNum is required to fetch allergies.");
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
});
|
|
19
|
+
const params = {
|
|
20
|
+
PatNum,
|
|
21
|
+
Offset,
|
|
22
|
+
};
|
|
23
|
+
return this.httpClient.get("/allergies", params);
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
26
|
* Add an allergy to a patient.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medicationPats.d.ts","sourceRoot":"","sources":["../../src/api/medicationPats.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,6BAA6B,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;OAMG;IACU,iBAAiB,CAAC,EAC7B,MAAM,EACN,MAAM,GACP,EAAE,uBAAuB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"medicationPats.d.ts","sourceRoot":"","sources":["../../src/api/medicationPats.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,6BAA6B,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;;OAMG;IACU,iBAAiB,CAAC,EAC7B,MAAM,EACN,MAAM,GACP,EAAE,uBAAuB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAgBrD;;;;;;;;;;;;OAYG;IACU,gBAAgB,CAAC,EAC5B,MAAM,EACN,OAAO,EACP,aAAa,EACb,OAAO,EACP,SAAS,EACT,QAAQ,EACR,OAAO,GACR,EAAG,sBAAsB,GAAG,OAAO,CAAC,aAAa,CAAC;IAgBnD;;;;;;;;;OASG;IACU,mBAAmB,CAAC,EAC/B,gBAAgB,EAChB,OAAO,EACP,SAAS,EACT,QAAQ,EACR,OAAO,GACR,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAcrD;;;;;OAKG;IACU,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO1E"}
|
|
@@ -13,15 +13,15 @@ class MedicationPats {
|
|
|
13
13
|
* @returns {Promise<MedicationPat>} - A list of a patient's medications.
|
|
14
14
|
*/
|
|
15
15
|
async getMedicationPats({ PatNum, Offset, }) {
|
|
16
|
+
console.log(PatNum);
|
|
16
17
|
if (!PatNum || typeof PatNum !== "number") {
|
|
17
18
|
throw new Error("PatNum is required to fetch medicationpats.");
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
});
|
|
20
|
+
const params = {
|
|
21
|
+
PatNum,
|
|
22
|
+
Offset,
|
|
23
|
+
};
|
|
24
|
+
return this.httpClient.get("/medicationpats", params);
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Add a medication to a patient.
|
package/dist/openDental.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ import ClaimProcs from "./api/claimProcs";
|
|
|
27
27
|
import Adjustments from "./api/adjustments";
|
|
28
28
|
import ProcedureCodes from "./api/procedureCodes";
|
|
29
29
|
import Fees from "./api/fees";
|
|
30
|
+
import Diseases from "./api/diseases";
|
|
31
|
+
import Allergies from "./api/allergies";
|
|
32
|
+
import MedicationPats from "./api/medicationPats";
|
|
30
33
|
declare class OpenDental {
|
|
31
34
|
private static httpClient;
|
|
32
35
|
/**
|
|
@@ -152,15 +155,15 @@ declare class OpenDental {
|
|
|
152
155
|
/**
|
|
153
156
|
* Create a new instance of the Diseases API.
|
|
154
157
|
*/
|
|
155
|
-
static Diseases():
|
|
158
|
+
static Diseases(): Diseases;
|
|
156
159
|
/**
|
|
157
160
|
* Create a new instance of the Allergies API.
|
|
158
161
|
*/
|
|
159
|
-
static Allergies():
|
|
162
|
+
static Allergies(): Allergies;
|
|
160
163
|
/**
|
|
161
164
|
* Create a new instance of the MedicationPats API.
|
|
162
165
|
*/
|
|
163
|
-
static MedicationPats():
|
|
166
|
+
static MedicationPats(): MedicationPats;
|
|
164
167
|
}
|
|
165
168
|
export { OpenDental };
|
|
166
169
|
//# 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,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;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,aAAa;IAO3B;;OAEG;WACW,OAAO;IAOrB;;OAEG;WACW,cAAc;IAO5B;;OAEG;WACW,qBAAqB;IAOnC;;OAEG;WACW,SAAS;IAOvB;;OAEG;WACW,SAAS;IAOvB;;OAEG;WACW,WAAW;IAOzB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,WAAW;IAOzB;;OAEG;WACW,aAAa;IAO3B;;OAEG;WACW,gBAAgB;IAO9B;;OAEG;WACW,aAAa;IAO3B;;OAEG;WACW,OAAO;IAOrB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,SAAS;IAOvB;;OAEG;WACW,WAAW;IAOzB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,UAAU;IAOxB;;OAEG;WACW,WAAW;IAOzB;;OAEG;WACW,cAAc;IAO5B;;OAEG;WACW,SAAS;IAOvB;;OAEG;WACW,IAAI;IAOlB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,SAAS;IAOvB;;OAEG;WACW,cAAc;CAO7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/openDental.js
CHANGED
|
@@ -34,6 +34,9 @@ const claimProcs_1 = __importDefault(require("./api/claimProcs"));
|
|
|
34
34
|
const adjustments_1 = __importDefault(require("./api/adjustments"));
|
|
35
35
|
const procedureCodes_1 = __importDefault(require("./api/procedureCodes"));
|
|
36
36
|
const fees_1 = __importDefault(require("./api/fees"));
|
|
37
|
+
const diseases_1 = __importDefault(require("./api/diseases"));
|
|
38
|
+
const allergies_1 = __importDefault(require("./api/allergies"));
|
|
39
|
+
const medicationPats_1 = __importDefault(require("./api/medicationPats"));
|
|
37
40
|
class OpenDental {
|
|
38
41
|
static httpClient;
|
|
39
42
|
/**
|
|
@@ -315,7 +318,7 @@ class OpenDental {
|
|
|
315
318
|
if (!this.httpClient) {
|
|
316
319
|
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
317
320
|
}
|
|
318
|
-
return new
|
|
321
|
+
return new diseases_1.default(this.httpClient);
|
|
319
322
|
}
|
|
320
323
|
/**
|
|
321
324
|
* Create a new instance of the Allergies API.
|
|
@@ -324,7 +327,7 @@ class OpenDental {
|
|
|
324
327
|
if (!this.httpClient) {
|
|
325
328
|
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
326
329
|
}
|
|
327
|
-
return new
|
|
330
|
+
return new allergies_1.default(this.httpClient);
|
|
328
331
|
}
|
|
329
332
|
/**
|
|
330
333
|
* Create a new instance of the MedicationPats API.
|
|
@@ -333,7 +336,7 @@ class OpenDental {
|
|
|
333
336
|
if (!this.httpClient) {
|
|
334
337
|
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
335
338
|
}
|
|
336
|
-
return new
|
|
339
|
+
return new medicationPats_1.default(this.httpClient);
|
|
337
340
|
}
|
|
338
341
|
}
|
|
339
342
|
exports.OpenDental = OpenDental;
|
package/package.json
CHANGED
package/src/api/allergies.ts
CHANGED
|
@@ -27,13 +27,13 @@ export default class Allergies {
|
|
|
27
27
|
if (!PatNum || typeof PatNum !== "number") {
|
|
28
28
|
throw new Error("PatNum is required to fetch allergies.");
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
const params = {
|
|
32
|
+
PatNum,
|
|
33
|
+
Offset,
|
|
34
|
+
};
|
|
30
35
|
|
|
31
|
-
return this.httpClient.get<Allergy[]>("/allergies",
|
|
32
|
-
params: {
|
|
33
|
-
PatNum,
|
|
34
|
-
Offset,
|
|
35
|
-
},
|
|
36
|
-
});
|
|
36
|
+
return this.httpClient.get<Allergy[]>("/allergies", params);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -24,16 +24,19 @@ export default class MedicationPats {
|
|
|
24
24
|
PatNum,
|
|
25
25
|
Offset,
|
|
26
26
|
}: GetMedicationPatsParams): Promise<MedicationPat[]> {
|
|
27
|
+
|
|
28
|
+
console.log(PatNum);
|
|
29
|
+
|
|
27
30
|
if (!PatNum || typeof PatNum !== "number") {
|
|
28
31
|
throw new Error("PatNum is required to fetch medicationpats.");
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
const params = {
|
|
35
|
+
PatNum,
|
|
36
|
+
Offset,
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return this.httpClient.get<MedicationPat[]>("/medicationpats", params);
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
/**
|
package/src/openDental.ts
CHANGED
|
@@ -143,42 +143,42 @@ class OpenDental {
|
|
|
143
143
|
/**
|
|
144
144
|
* Create a new instance of the Schedules API.
|
|
145
145
|
*/
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
return new Schedules(this.httpClient);
|
|
146
|
+
public static Schedules() {
|
|
147
|
+
if (!this.httpClient) {
|
|
148
|
+
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
151
149
|
}
|
|
150
|
+
return new Schedules(this.httpClient);
|
|
151
|
+
}
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* Create a new instance of the Providers API.
|
|
155
155
|
*/
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
return new Providers(this.httpClient);
|
|
156
|
+
public static Providers() {
|
|
157
|
+
if (!this.httpClient) {
|
|
158
|
+
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
161
159
|
}
|
|
160
|
+
return new Providers(this.httpClient);
|
|
161
|
+
}
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* Create a new instance of the Operatories API.
|
|
165
165
|
*/
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
return new Operatories(this.httpClient);
|
|
166
|
+
public static Operatories() {
|
|
167
|
+
if (!this.httpClient) {
|
|
168
|
+
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
171
169
|
}
|
|
170
|
+
return new Operatories(this.httpClient);
|
|
171
|
+
}
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* Create a new instance of the Payments API.
|
|
175
175
|
*/
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
return new Payments(this.httpClient);
|
|
176
|
+
public static Payments() {
|
|
177
|
+
if (!this.httpClient) {
|
|
178
|
+
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
181
179
|
}
|
|
180
|
+
return new Payments(this.httpClient);
|
|
181
|
+
}
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* Create a new instance of the Definitions API.
|
|
@@ -347,7 +347,7 @@ class OpenDental {
|
|
|
347
347
|
if (!this.httpClient) {
|
|
348
348
|
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
349
349
|
}
|
|
350
|
-
return new
|
|
350
|
+
return new Diseases(this.httpClient);
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
/**
|
|
@@ -357,7 +357,7 @@ class OpenDental {
|
|
|
357
357
|
if (!this.httpClient) {
|
|
358
358
|
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
359
359
|
}
|
|
360
|
-
return new
|
|
360
|
+
return new Allergies(this.httpClient);
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
/**
|
|
@@ -367,7 +367,7 @@ class OpenDental {
|
|
|
367
367
|
if (!this.httpClient) {
|
|
368
368
|
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
369
369
|
}
|
|
370
|
-
return new
|
|
370
|
+
return new MedicationPats(this.httpClient);
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
}
|