@rinse-dental/open-dental 2.0.1 → 2.1.1
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.d.ts +46 -0
- package/dist/api/allergies.d.ts.map +1 -0
- package/dist/api/allergies.js +85 -0
- package/dist/api/diseases.d.ts +55 -0
- package/dist/api/diseases.d.ts.map +1 -0
- package/dist/api/diseases.js +97 -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/medicationPats.d.ts +47 -0
- package/dist/api/medicationPats.d.ts.map +1 -0
- package/dist/api/medicationPats.js +88 -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/allergyTypes.d.ts +45 -0
- package/dist/types/allergyTypes.d.ts.map +1 -0
- package/dist/types/allergyTypes.js +2 -0
- package/dist/types/diseaseTypes.d.ts +47 -0
- package/dist/types/diseaseTypes.d.ts.map +1 -0
- package/dist/types/diseaseTypes.js +2 -0
- package/dist/types/medicationPatTypes.d.ts +47 -0
- package/dist/types/medicationPatTypes.d.ts.map +1 -0
- package/dist/types/medicationPatTypes.js +2 -0
- package/package.json +1 -1
- package/release.sh +1 -1
- package/src/api/allergies.ts +114 -0
- package/src/api/diseases.ts +130 -0
- package/src/api/index.ts +3 -0
- package/src/api/medicationPats.ts +119 -0
- package/src/openDental.ts +53 -20
- package/src/types/allergyTypes.ts +48 -0
- package/src/types/diseaseTypes.ts +50 -0
- package/src/types/medicationPatTypes.ts +50 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a Disease (Problem) that is assigned to a patient in the Open Dental system.
|
|
3
|
+
* @see https://www.opendental.com/site/apidiseases.html
|
|
4
|
+
*/
|
|
5
|
+
export interface Disease {
|
|
6
|
+
DiseaseNum?: number; //PK
|
|
7
|
+
PatNum?: number; // FK to patient
|
|
8
|
+
DiseaseDefNum?: number; // FK to DiseaseDef
|
|
9
|
+
diseaseDefName?: string; //
|
|
10
|
+
PatNote?: string; //
|
|
11
|
+
ProbStatus?: 'Active' | 'Resolved' | 'Inactive'; // Either "Active", "Resolved" or "Inactive". Default "Active".
|
|
12
|
+
DateStart?: string; //String in "yyyy-MM-dd" format.
|
|
13
|
+
DateStop?: string; //String in "yyyy-MM-dd" format.
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Parameters for GET diseases attached to one or more patients.
|
|
18
|
+
* @see https://www.opendental.com/site/apidiseases.html
|
|
19
|
+
*/
|
|
20
|
+
export interface GetDiseasesParams {
|
|
21
|
+
PatNum?: number; // FK to patient.PatNum. Optional (Optional after version 24.2.5).
|
|
22
|
+
Offset?: number; // Optional pagination.
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Parameters for attaching a diseaseDef (Problem) to a patient.
|
|
27
|
+
* @see https://www.opendental.com/site/apidiseases.html
|
|
28
|
+
*/
|
|
29
|
+
export interface AddDiseaseParams {
|
|
30
|
+
PatNum: number; // Required. FK to patient
|
|
31
|
+
DiseaseDefNum?: number; // Rarely used. Just use diseaseDefName instead, which handles insertion of DiseaseDef automatically.
|
|
32
|
+
diseaseDefName?: string; // Required unless you choose to use DiseaseDefNum.
|
|
33
|
+
PatNote?: string; // Optional
|
|
34
|
+
ProbStatus?: 'Active' | 'Resolved' | 'Inactive'; // Optional. Either "Active", "Resolved" or "Inactive". Default "Active".
|
|
35
|
+
DateStart?: string; // Optional. String in "yyyy-MM-dd" format. Default "0001-01-01".
|
|
36
|
+
DateStop?: string; // Optional. String in "yyyy-MM-dd" format. Default "0001-01-01".
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Parameters for updating a diseaseDef (Problem) attached to a patient.
|
|
41
|
+
* @see https://www.opendental.com/site/apidiseases.html
|
|
42
|
+
*/
|
|
43
|
+
export interface UpdateDiseaseParams {
|
|
44
|
+
DiseaseNum: number; // Required.
|
|
45
|
+
PatNote?: string; // Optional. Will overwrite existing note.
|
|
46
|
+
ProbStatus?: 'Active' | 'Resolved' | 'Inactive'; // Optional. Either "Active", "Resolved" or "Inactive".
|
|
47
|
+
DateStart?: string; // Optional. String in "yyyy-MM-dd" format.
|
|
48
|
+
DateStop?: string; // Optional. String in "yyyy-MM-dd" format.
|
|
49
|
+
}
|
|
50
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an Medication that is assigned to a patient in the Open Dental system.
|
|
3
|
+
* @see https://www.opendental.com/site/apimedicationpats.html
|
|
4
|
+
*/
|
|
5
|
+
export interface MedicationPat {
|
|
6
|
+
MedicationPatNum?: number; //PK
|
|
7
|
+
PatNum?: number; // FK to patient
|
|
8
|
+
medName?: string; //
|
|
9
|
+
MedicationNum?: number; // FK to Medication
|
|
10
|
+
PatNote?: string; //
|
|
11
|
+
DateStart?: string; // String in "yyyy-MM-dd" format. Default "0001-01-01".
|
|
12
|
+
DateStop?: string; // String in "yyyy-MM-dd" format. Default "0001-01-01".
|
|
13
|
+
ProvNum?: number; // FK to Provider
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Parameters for GET medications attached to a patient.
|
|
18
|
+
* @see https://www.opendental.com/site/apimedicationpats.html
|
|
19
|
+
*/
|
|
20
|
+
export interface GetMedicationPatsParams {
|
|
21
|
+
PatNum: number; // Required. FK to patient.PatNum. Gets all medications for a specified patient.
|
|
22
|
+
Offset?: number; // Optional. Pagination.
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Parameters for attaching a medication to a patient.
|
|
27
|
+
* @see https://www.opendental.com/site/apimedicationpats.html
|
|
28
|
+
*/
|
|
29
|
+
export interface AddMedicationPatParams {
|
|
30
|
+
PatNum: number; // FK to patient
|
|
31
|
+
medName?: string; // Required if MedicationNum is not used. Tries to match to an existing medication. If a new medication must be created, it will be assumed to be generic rather than brand. For more control, use medication POST.
|
|
32
|
+
MedicationNum?: number; // Rarely used. Just use medName instead, which handles insertion of a Medication automatically. If MedicationNum is used, then medName is not required.
|
|
33
|
+
PatNote?: string; // Optional. String for notes specific to this patient's medication.
|
|
34
|
+
DateStart?: string; // Optional. String in "yyyy-MM-dd" format. Default "0001-01-01".
|
|
35
|
+
DateStop?: string; // Optional. String in "yyyy-MM-dd" format. Default "0001-01-01".
|
|
36
|
+
ProvNum?: number; // Optional. Default is 0.
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Parameters for updating a medication attached to a patient.
|
|
41
|
+
* @see https://www.opendental.com/site/apimedicationpats.html
|
|
42
|
+
*/
|
|
43
|
+
export interface UpdateMedicationPatParams {
|
|
44
|
+
MedicationPatNum: number; // Required.
|
|
45
|
+
PatNote?: string; // Optional. String for notes specific to this patient's medication.
|
|
46
|
+
DateStart?: string; // Optional. String in "yyyy-MM-dd" format.
|
|
47
|
+
DateStop?: string; // Optional. String in "yyyy-MM-dd" format.
|
|
48
|
+
ProvNum?: number; // Optional.
|
|
49
|
+
}
|
|
50
|
+
|