@rinse-dental/open-dental 2.5.4 → 2.5.5

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 (2) hide show
  1. package/README.md +30 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1 +1,30 @@
1
- #Hello World
1
+
2
+
3
+ # Unofficial Open Dental node sdk.
4
+
5
+ // Init
6
+
7
+ const { OpenDental } = require('@rinse-dental/open-dental');
8
+
9
+ OpenDental.initialize(
10
+ OPEN_DENTAL_BASEURL, // your base url
11
+ OPEN_DENTAL_API_KEY // your open dental provided api key (ODFHIR ...)
12
+ );
13
+
14
+
15
+ //Example
16
+ const patients = OpenDental.Patients();
17
+ const getPatients = getPatients({
18
+ LName: "Smith",
19
+ FName: "John",
20
+ });
21
+
22
+ //return getPatients; //Returns array of patients;
23
+
24
+ const postPatient = patients.createPatient({
25
+ LName: "Smith",
26
+ FName: "John",
27
+ ...additionalData,
28
+ });
29
+
30
+ return postPatient; //Returns patient object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "A TypeScript library for easily accessing Open Dental APIs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",