@rinse-dental/open-dental 2.1.4 → 2.2.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/dist/api/chartModules.d.ts +15 -1
- package/dist/api/chartModules.d.ts.map +1 -1
- package/dist/api/chartModules.js +26 -2
- package/dist/api/procTPs.d.ts +55 -0
- package/dist/api/procTPs.d.ts.map +1 -0
- package/dist/api/procTPs.js +82 -0
- package/dist/api/procedureLog.d.ts +63 -32
- package/dist/api/procedureLog.d.ts.map +1 -1
- package/dist/api/procedureLog.js +102 -44
- package/dist/types/chartModuleTypes.d.ts +38 -4
- package/dist/types/chartModuleTypes.d.ts.map +1 -1
- package/dist/types/procTPTypes.d.ts +71 -0
- package/dist/types/procTPTypes.d.ts.map +1 -0
- package/dist/types/procTPTypes.js +3 -0
- package/dist/types/procedurelogTypes.d.ts +62 -12
- package/dist/types/procedurelogTypes.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/chartModules.ts +30 -2
- package/src/api/procTPs.ts +112 -0
- package/src/api/procedureLog.ts +135 -48
- package/src/types/chartModuleTypes.ts +41 -5
- package/src/types/procTPTypes.ts +79 -0
- package/src/types/procedurelogTypes.ts +90 -39
|
@@ -16,21 +16,35 @@ export interface ProcedureLog {
|
|
|
16
16
|
Priority?: number; // Priority code
|
|
17
17
|
priority?: string; // Priority description
|
|
18
18
|
ProcStatus?: 'TP' | 'C' | 'EO' | 'R' | 'D' | 'E'; // Procedure status?: Treatment Planned (TP), Complete (C), etc.
|
|
19
|
-
ProvNum?: number;
|
|
20
|
-
provAbbr?: string;
|
|
19
|
+
ProvNum?: number; //
|
|
20
|
+
provAbbr?: string; //
|
|
21
21
|
Dx?: string; // Diagnosis code
|
|
22
22
|
dxName?: string; // Diagnosis name
|
|
23
23
|
PlannedAptNum?: number; // Planned appointment number
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
PlaceService?: "Office" | "PatientsHome" | "InpatHospital" | "OutpatHospital" | "SkilledNursFac" | "CustodialCareFacility" | "OtherLocation" | "MobileUnit" | "School" | "MilitaryTreatFac" | "FederalHealthCenter" | "PublicHealthClinic" | "RuralHealthClinic" | "EmergencyRoomHospital" | "AmbulatorySurgicalCenter" | "TelehealthOutsideHome" | "TelehealthInHome" | "OutreachSiteOrStreet"; // (Added in version 25.2.21) Either "Office", "PatientsHome", "InpatHospital", "OutpatHospital", "SkilledNursFac", "CustodialCareFacility", "OtherLocation", "MobileUnit", "School", "MilitaryTreatFac", "FederalHealthCenter", "PublicHealthClinic", "RuralHealthClinic", "EmergencyRoomHospital", "AmbulatorySurgicalCenter", "TelehealthOutsideHome", "TelehealthInHome", or "OutreachSiteOrStreet". Public Health feature must be enabled. Defaults to DefaultProcedurePlaceService preference or clinic.DefaultPlaceService.
|
|
25
|
+
Prosthesis?: "" | "I" | "R"; // (Added in version 25.2.21) Either "No" (shows as ""), Initial "I", or Replacement "R". Cannot be set if procedurecode.IsProsth is false. Default is "No".
|
|
26
|
+
DateOriginalProsth?: string // Date in yyyy-MM-dd format
|
|
27
|
+
ClaimNote?: string; //
|
|
28
|
+
DateEntryC?: string; // Date in yyyy-MM-dd format
|
|
26
29
|
ClinicNum?: number; // Clinic number
|
|
27
30
|
CodeNum?: number; // Procedure code number
|
|
28
31
|
procCode?: string; // D code
|
|
29
32
|
descript?: string; // Procedure code description
|
|
30
|
-
ProcTime?: string; // Time taken for the procedure
|
|
31
33
|
UnitQty?: number; // Quantity of units
|
|
34
|
+
BaseUnits?: number; //
|
|
35
|
+
DateTP?: string; // Date in yyyy-MM-dd format
|
|
36
|
+
SiteNum?: number; //
|
|
37
|
+
HideGraphics?: 'true' | 'false'; //
|
|
38
|
+
CanadianTypeCodes?: string; //
|
|
39
|
+
ProcTime?: string; // Time taken for the procedure
|
|
40
|
+
ProcTimeEnd?: string; //
|
|
32
41
|
DateTStamp?: string; // Timestamp of the last update in "yyyy-MM-dd HH:mm:ss" format
|
|
33
|
-
|
|
42
|
+
Prognosis?: number; //
|
|
43
|
+
IsLocked?: 'true' | 'false'; //
|
|
44
|
+
BillingNote?: string; //
|
|
45
|
+
Discount?: number; //
|
|
46
|
+
IsDateProsthEst?: 'true' | 'false'; //
|
|
47
|
+
SecDateEntry?: string; //
|
|
34
48
|
serverDateTime?: string;
|
|
35
49
|
}
|
|
36
50
|
|
|
@@ -41,54 +55,91 @@ export interface ProcedureLog {
|
|
|
41
55
|
export interface GetProcedureLogParams {
|
|
42
56
|
PatNum?: number; //FK to patient.PatNum.
|
|
43
57
|
AptNum?: number; //FK to appointment.aptnum, returns procedures that are attached to an appointment.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
ProcStatus?: 'TP' | 'C' | 'EC' | 'EO' | 'R' | 'D' | 'Cn' | 'TPi'; // (Added in version 25.2.21) Either "TP" (Treatment Plan), "C" (Complete), "EC" (Existing Current Provider), "EO" (Existing Other Provider), "R" (Referred Out), "D" (Deleted), "Cn" (Condition), or "TPi" (Treatment Plan inactive).
|
|
59
|
+
PlannedAptNum?: number; // (Added in version 24.4.5) FK to appointment.AptNum where appointment.AptStatus=Planned.
|
|
60
|
+
ClinicNum?: number; // (Added in version 23.3.13) FK to clinic.ClinicNum.
|
|
61
|
+
CodeNum?: number; // (Added in version 25.2.21) FK to procedurecode.CodeNum.
|
|
62
|
+
DateTStamp?: string; // Gets procedurelogs created on or after the specified date and time. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
47
63
|
Offset?: number; // Pagination offset for results
|
|
48
64
|
}
|
|
49
65
|
|
|
50
66
|
/**
|
|
51
|
-
*
|
|
67
|
+
* Creates a new procedure for a given patient. Attempts to set them will be silently ignored.
|
|
68
|
+
* Furthermore, the following pairs of fields may only have one of the two passed in at once: Priority and priority, Dx and dxName.
|
|
69
|
+
* Not all procedure codes support Surfs, ToothNums, and ToothRanges. Procedure code default notes will not be used.
|
|
52
70
|
* @see https://www.opendental.com/site/apiprocedurelogs.html
|
|
53
71
|
*/
|
|
54
72
|
export interface createProcedureLogParams {
|
|
55
73
|
PatNum: number; // Unique patient identifier
|
|
56
|
-
ProcDate: string; //
|
|
57
|
-
ProcStatus: 'TP' | 'C' | 'EO'; //
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
priority?: string; // Priority description
|
|
66
|
-
ProvNum?: number;
|
|
74
|
+
ProcDate: string; // Required. String in "yyyy-MM-dd" format.
|
|
75
|
+
ProcStatus: 'TP' | 'C' | 'EO' | 'EC' | 'R' | 'Cn'; // Required. Either TreatmentPlanned (TP), Complete (C), or ExisitingOtherProvider (EO). (Added in version 25.1.14) Existing Current Provider (EC), Referred Out (R), or Condition (Cn).
|
|
76
|
+
CodeNum?: number; // (Added in version 25.2.21) This or procCode is Required. FK to procedurecode.CodeNum.
|
|
77
|
+
procCode?: string; // This or CodeNum is Required. This should be a valid D code, example: D0120. CodeNum is set automatically.
|
|
78
|
+
AptNum?: number; // Optional. FK to appointment.PatNum.
|
|
79
|
+
ProcFee?: number; // Optional. If none is given this will default to the procedurecodes default, with consideration of the patient's insurance.
|
|
80
|
+
Priority?: number; // Optional. Definition.DefNum where definition.Category=20. Default is the first definition in that Category. If Priority is used, then priority will be set automatically.
|
|
81
|
+
priority?: string; // Optional. String version of Priority. If priority is used, then Priority will be set automatically.
|
|
82
|
+
ProvNum?: number; // Optional. Defaults to the PriProv of the appointment if given, otherwise it will check the patient's default provider. Failing either of the previous options, it will be set to the dental office's default provider. If ProvNum is used, then provAbbr will be set automatically.
|
|
67
83
|
Dx?: string; // Optional. Definition.DefNum where definition.Category=16. Default is the first definition in that Category. If Dx is used, then dxName will be set automatically.
|
|
68
|
-
dxName?: string; //
|
|
69
|
-
PlannedAptNum?: number; //
|
|
70
|
-
|
|
84
|
+
dxName?: string; // Optional. String version of Dx. If dxName is used, then Dx will be set automatically.
|
|
85
|
+
PlannedAptNum?: number; // Optional. Only set if this procedure is on a planned appointment, otherwise it will be 0.
|
|
86
|
+
PlaceService?: "Office" | "PatientsHome" | "InpatHospital" | "OutpatHospital" | "SkilledNursFac" | "CustodialCareFacility" | "OtherLocation" | "MobileUnit" | "School" | "MilitaryTreatFac" | "FederalHealthCenter" | "PublicHealthClinic" | "RuralHealthClinic" | "EmergencyRoomHospital" | "AmbulatorySurgicalCenter" | "TelehealthOutsideHome" | "TelehealthInHome" | "OutreachSiteOrStreet"; // (Added in version 25.2.21) Optional. Either "Office", "PatientsHome", "InpatHospital", "OutpatHospital", "SkilledNursFac", "CustodialCareFacility", "OtherLocation", "MobileUnit", "School", "MilitaryTreatFac", "FederalHealthCenter", "PublicHealthClinic", "RuralHealthClinic", "EmergencyRoomHospital", "AmbulatorySurgicalCenter", "TelehealthOutsideHome", "TelehealthInHome", or "OutreachSiteOrStreet". Public Health feature must be enabled. Defaults to DefaultProcedurePlaceService preference or clinic.DefaultPlaceService.
|
|
87
|
+
Prosthesis?: "" | "I" | "R"; // (Added in version 25.2.21) Optional. Either "No" (shows as ""), Initial "I", or Replacement "R". Cannot be set if procedurecode.IsProsth is false. Default is "No".
|
|
88
|
+
DateOriginalProsth?: string; // (Added in version 25.2.21) Optional. String in "yyyy-MM-dd" format. Cannot be set if procedurecode.IsProsth is false. Default is "0001-01-01"
|
|
89
|
+
ClaimNote?: string; // (Added in version 25.2.21) Optional. Note that goes out on e-claims. Default empty string.
|
|
90
|
+
ClinicNum?: number; // Optional. Defaults to the patient's clinic.
|
|
91
|
+
DateTP?: string; // (Added in version 25.2.21) Optional. The date the procedure was originally treatment planned. String in "yyyy-MM-dd" format. Defaults to the date the procedure was created.
|
|
92
|
+
SiteNum?: number; // (Added in version 25.2.21) Optional. FK to site.SiteNum. Public Health feature must be enabled. Default 0.
|
|
93
|
+
ProcTime?: string; // (Added in version 25.2.21) Optional. Time of day the procedure started. String in "HH:mm:ss" format. Default "00:00:00".
|
|
94
|
+
ProcTimeEnd?: string; // (Added in version 25.2.21) Optional. Time of day the procedure ended. Medical Insurance feature must be enabled. String in "HH:mm:ss" format. Default "00:00:00".
|
|
95
|
+
Prognosis?: number; // (Added in version 25.2.21) Optional. FK to definition.DefNum where definition.Category=30. Default 0.
|
|
96
|
+
ToothNum?: string; // Required by procCodes with a Surf or Tooth treatment area.
|
|
97
|
+
Surf?: Surf; // Required for the treatment areas of some procCodes. Can be tooth Surfaces (B/F,V,M,O/I,D,L), mouth Quadrants (UL,UR,LR,LL), Sextants (1,2,3,4,5,6), or Arches (U or L).
|
|
98
|
+
ToothRange?: string; // Required by procCodes with a ToothRange treatment area, or for Quadrants and Arches when AreaAlsoToothRange is true. A string of numbers separated by commas and/or hyphen separated ranges.
|
|
99
|
+
BillingNote?: string; // (Added in version 25.2.21) Optional. Note that shows in the Account Module. Default empty string.
|
|
100
|
+
Discount?: number; // (Added in version 25.2.21) Optional. The dollar amount of the discount. Default 0.0.
|
|
101
|
+
IsDateProsthEst?: "true" | "false"; // (Added in version 25.2.21) Optional. Either "true" or "false". Default "false".
|
|
71
102
|
}
|
|
72
103
|
|
|
73
104
|
/**
|
|
74
|
-
*
|
|
105
|
+
* Updates an existing procedure. When changing procCode, the treatment area of the current and passed in procedure codes must match.
|
|
106
|
+
* Attempting to pass in empty strings for ToothNum, Surf, and ToothRange will be silently ignored.
|
|
107
|
+
* The CodeNum, procCode, Discount, ToothNum, Surf, and ToothRange fields cannot be updated on procedures with a ProcStatus of C.
|
|
108
|
+
* If the procedurelog is associated with certain appointments, claims, or orthocases, then some fields cannot be updated.
|
|
109
|
+
* Procedure code default notes will not be used.
|
|
110
|
+
*
|
|
111
|
+
* ProcedureLogs associated with adjustments, appointments, payments, payplancharges, or paysplits are updated exactly as in Open Dental.
|
|
75
112
|
* @see https://www.opendental.com/site/apiprocedurelogs.html
|
|
76
113
|
*/
|
|
77
114
|
export interface updateProcedureLogParams {
|
|
78
|
-
ProcNum: number;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
115
|
+
ProcNum: number; // Required in URL.
|
|
116
|
+
|
|
117
|
+
AptNum?: number; // Optional. FK to appointment.PatNum.
|
|
118
|
+
ProcDate: string; // Optional. String in "yyyy-MM-dd" format.
|
|
119
|
+
ProcFee?: number; // Optional. If none is given this will default to the procedurecodes default, with consideration of the patient's insurance.
|
|
120
|
+
Priority?: number; // Optional. Definition.DefNum where definition.Category=20. Default is the first definition in that Category. If Priority is used, then priority will be set automatically.
|
|
121
|
+
ProcStatus: 'TP' | 'C' | 'EO' | 'EC' | 'R' | 'Cn'; // Required. Either TreatmentPlanned (TP), Complete (C), or ExisitingOtherProvider (EO). (Added in version 25.1.14) Existing Current Provider (EC), Referred Out (R), or Condition (Cn).
|
|
122
|
+
ProvNum?: number; // Optional. Defaults to the PriProv of the appointment if given, otherwise it will check the patient's default provider. Failing either of the previous options, it will be set to the dental office's default provider. If ProvNum is used, then provAbbr will be set automatically.
|
|
85
123
|
Dx?: string; // Optional. Definition.DefNum where definition.Category=16. Default is the first definition in that Category. If Dx is used, then dxName will be set automatically.
|
|
86
|
-
PlannedAptNum?: number; //
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
124
|
+
PlannedAptNum?: number; // Optional. Only set if this procedure is on a planned appointment, otherwise it will be 0.
|
|
125
|
+
PlaceService?: "Office" | "PatientsHome" | "InpatHospital" | "OutpatHospital" | "SkilledNursFac" | "CustodialCareFacility" | "OtherLocation" | "MobileUnit" | "School" | "MilitaryTreatFac" | "FederalHealthCenter" | "PublicHealthClinic" | "RuralHealthClinic" | "EmergencyRoomHospital" | "AmbulatorySurgicalCenter" | "TelehealthOutsideHome" | "TelehealthInHome" | "OutreachSiteOrStreet"; // (Added in version 25.2.21) Optional. Either "Office", "PatientsHome", "InpatHospital", "OutpatHospital", "SkilledNursFac", "CustodialCareFacility", "OtherLocation", "MobileUnit", "School", "MilitaryTreatFac", "FederalHealthCenter", "PublicHealthClinic", "RuralHealthClinic", "EmergencyRoomHospital", "AmbulatorySurgicalCenter", "TelehealthOutsideHome", "TelehealthInHome", or "OutreachSiteOrStreet". Public Health feature must be enabled. Defaults to DefaultProcedurePlaceService preference or clinic.DefaultPlaceService.
|
|
126
|
+
Prosthesis?: "" | "I" | "R"; // (Added in version 25.2.21) Optional. Either "No" (shows as ""), Initial "I", or Replacement "R". Cannot be set if procedurecode.IsProsth is false. Default is "No".
|
|
127
|
+
DateOriginalProsth?: string; // (Added in version 25.2.21) Optional. String in "yyyy-MM-dd" format. Cannot be set if procedurecode.IsProsth is false. Default is "0001-01-01"
|
|
128
|
+
ClaimNote?: string; // (Added in version 25.2.21) Optional. Note that goes out on e-claims. Default empty string.
|
|
129
|
+
ClinicNum?: number; // Optional. Defaults to the patient's clinic.
|
|
130
|
+
CodeNum?: number; // (Added in version 25.2.21) This or procCode is Required. FK to procedurecode.CodeNum.
|
|
131
|
+
procCode?: string; // This or CodeNum is Required. This should be a valid D code, example: D0120. CodeNum is set automatically.
|
|
132
|
+
DateTP?: string; // (Added in version 25.2.21) Optional. The date the procedure was originally treatment planned. String in "yyyy-MM-dd" format. Defaults to the date the procedure was created.
|
|
133
|
+
SiteNum?: number; // (Added in version 25.2.21) Optional. FK to site.SiteNum. Public Health feature must be enabled. Default 0.
|
|
134
|
+
ProcTime?: string; // (Added in version 25.2.21) Optional. Time of day the procedure started. String in "HH:mm:ss" format. Default "00:00:00".
|
|
135
|
+
ProcTimeEnd?: string; // (Added in version 25.2.21) Optional. Time of day the procedure ended. Medical Insurance feature must be enabled. String in "HH:mm:ss" format. Default "00:00:00".
|
|
136
|
+
Prognosis?: number; // (Added in version 25.2.21) Optional. FK to definition.DefNum where definition.Category=30. Default 0.
|
|
137
|
+
ToothNum?: string; // Required by procCodes with a Surf or Tooth treatment area.
|
|
138
|
+
Surf?: Surf; // Required for the treatment areas of some procCodes. Can be tooth Surfaces (B/F,V,M,O/I,D,L), mouth Quadrants (UL,UR,LR,LL), Sextants (1,2,3,4,5,6), or Arches (U or L).
|
|
139
|
+
ToothRange?: string; // Required by procCodes with a ToothRange treatment area, or for Quadrants and Arches when AreaAlsoToothRange is true. A string of numbers separated by commas and/or hyphen separated ranges.
|
|
140
|
+
BillingNote?: string; // (Added in version 25.2.21) Optional. Note that shows in the Account Module. Default empty string.
|
|
141
|
+
Discount?: number; // (Added in version 25.2.21) Optional. The dollar amount of the discount. Default 0.0.
|
|
142
|
+
IsDateProsthEst?: "true" | "false"; // (Added in version 25.2.21) Optional. Either "true" or "false". Default "false".
|
|
92
143
|
}
|
|
93
144
|
|
|
94
145
|
/**
|
|
@@ -123,7 +174,7 @@ export interface postInsuranceHistoryParams {
|
|
|
123
174
|
|
|
124
175
|
/**
|
|
125
176
|
* Surf: Required for the treatment areas of some procCodes. Can be tooth Surfaces (B/F,V,M,O/I,D,L), mouth Quadrants (UL,UR,LR,LL), Sextants (1,2,3,4,5,6), or Arches (U or L).
|
|
126
|
-
* @see https://www.opendental.com/site/
|
|
177
|
+
* @see https://www.opendental.com/site/apiprocedurelogs.html
|
|
127
178
|
*/
|
|
128
179
|
export type Surf =
|
|
129
180
|
"B/F" | "V" | "M" | "O/I" | "D" | "L" |
|