@rinse-dental/open-dental 1.0.0 → 1.0.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/deploy_notes.txt CHANGED
@@ -10,6 +10,8 @@ git tag //confirm tag
10
10
  git push origin vX.Y.Z
11
11
  gh release create vX.Y.Z --title "Release vX.Y.Z" --notes ""
12
12
 
13
+ gh release create v1.0.0 --title "Release v1.0.0" --notes "first major release"
14
+
13
15
  if the tag doesn't exist locally:
14
16
  git tag vX.Y.Z
15
17
  git push origin vX.Y.Z
@@ -269,7 +269,7 @@ class Appointments {
269
269
  if (!data.AptNum || (!data.confirmVal && !data.defNum)) {
270
270
  throw new Error("AptNum and either confirmVal or defNum are required.");
271
271
  }
272
- return this.httpClient.put(`/appointments/${data.AptNum}/confirm`, data);
272
+ return this.httpClient.put(`/appointments/${data.AptNum}/Confirm`, data);
273
273
  }
274
274
  }
275
275
  exports.default = Appointments;
@@ -4,12 +4,12 @@ export default class Definitions {
4
4
  private httpClient;
5
5
  constructor(httpClient: HttpClient);
6
6
  /**
7
- * Fetch multiple definitinos with optional filtering and pagination.
7
+ * Fetch multiple definitions with optional filtering and pagination.
8
8
  * @param {Object} params - The parameters for filtering and pagination.
9
9
  * @param {number} [params.Category] - Filter by category.
10
10
  * @param {"true" | "false"} [data.includeHidden="false"] - Optional parameter that defaults to false.
11
11
  * @param {number} [params.Offset] - Pagination offset for results.
12
- * @returns {Promise<Definition[]>} - A list of appointments.
12
+ * @returns {Promise<Definition[]>} - A list of definitions.
13
13
  */
14
14
  getDefinitions({ Category, includeHidden, Offset, }?: GetDefinitionsParams): Promise<Definition[]>;
15
15
  }
@@ -6,12 +6,12 @@ class Definitions {
6
6
  this.httpClient = httpClient;
7
7
  }
8
8
  /**
9
- * Fetch multiple definitinos with optional filtering and pagination.
9
+ * Fetch multiple definitions with optional filtering and pagination.
10
10
  * @param {Object} params - The parameters for filtering and pagination.
11
11
  * @param {number} [params.Category] - Filter by category.
12
12
  * @param {"true" | "false"} [data.includeHidden="false"] - Optional parameter that defaults to false.
13
13
  * @param {number} [params.Offset] - Pagination offset for results.
14
- * @returns {Promise<Definition[]>} - A list of appointments.
14
+ * @returns {Promise<Definition[]>} - A list of definitions.
15
15
  */
16
16
  async getDefinitions({ Category, includeHidden, Offset, } = {}) {
17
17
  const params = {
@@ -13,31 +13,31 @@ export default class DiscountPlanSubs {
13
13
  getDiscountPlanSubs({ PatNum, Offset, }?: GetDiscountPlanSubsParams): Promise<DiscountPlanSub[]>;
14
14
  /**
15
15
  * Create a new discount plan sub.
16
- * @param {Object} data - The details of the procedure log to create.
16
+ * @param {Object} data - The details of discount plan sub to create.
17
17
  * @param {number} data.DiscountPlanNum - Required: FK to discount plan.
18
18
  * @param {number} data.PatNum - Required: Patient number.
19
- * @param {number} data.DateEffective - Optional: Patient number.
20
- * @param {number} data.DateTerm - Optional: Patient number.
21
- * @param {number} data.SubNote - Optional: Patient number.
19
+ * @param {number} [data.DateEffective] - Optional: Patient number.
20
+ * @param {number} [data.DateTerm] - Optional: Patient number.
21
+ * @param {number} [data.SubNote] - Optional: Patient number.
22
22
  * @returns {Promise<DiscountPlanSub>} - The created discount plan sub.
23
23
  * @throws {Error} - If required fields are missing or the API returns an error.
24
24
  */
25
25
  createDiscountPlanSub(data: CreateDiscountPlanSubParams): Promise<DiscountPlanSub>;
26
26
  /**
27
- * Create a new procedure log entry.
28
- * @param {Object} data - The details of the procedure log to create.
27
+ * Update a discount plan sub.
28
+ * @param {Object} data - The details of the discount sub to update.
29
29
  * @param {number} data.DiscountSubNum - Required: PK
30
30
  * @param {number} data.PatNum - Required: Patient number.
31
- * @param {number} data.DateEffective - Optional: Patient number.
32
- * @param {number} data.DateTerm - Optional: Patient number.
33
- * @param {number} data.SubNote - Optional: Patient number.
34
- * @returns {Promise<DiscountPlanSub>} - The created procedure log.
31
+ * @param {number} [data.DateEffective] - Optional: Patient number.
32
+ * @param {number} [data.DateTerm] - Optional: Patient number.
33
+ * @param {number} [data.SubNote] - Optional: Patient number.
34
+ * @returns {Promise<DiscountPlanSub>} - The updated discount plan sub.
35
35
  * @throws {Error} - If required fields are missing or the API returns an error.
36
36
  */
37
37
  updateDiscountPlanSub(data: UpdateDiscountPlanSubParams): Promise<DiscountPlanSub>;
38
38
  /**
39
39
  * Delete a discount plan sub entry.
40
- * @param {number} DiscountSubNum - Required: The unique identifier of the discount plan sub to delete.
40
+ * @param {number} [DiscountSubNum] - Required: The unique identifier of the discount plan sub to delete.
41
41
  * @returns {Promise<void>} - Resolves when the discount plan sub is deleted.
42
42
  * @throws {Error} - If `DiscountSubNum` is not valid or the API returns an error.
43
43
  */
@@ -21,12 +21,12 @@ class DiscountPlanSubs {
21
21
  }
22
22
  /**
23
23
  * Create a new discount plan sub.
24
- * @param {Object} data - The details of the procedure log to create.
24
+ * @param {Object} data - The details of discount plan sub to create.
25
25
  * @param {number} data.DiscountPlanNum - Required: FK to discount plan.
26
26
  * @param {number} data.PatNum - Required: Patient number.
27
- * @param {number} data.DateEffective - Optional: Patient number.
28
- * @param {number} data.DateTerm - Optional: Patient number.
29
- * @param {number} data.SubNote - Optional: Patient number.
27
+ * @param {number} [data.DateEffective] - Optional: Patient number.
28
+ * @param {number} [data.DateTerm] - Optional: Patient number.
29
+ * @param {number} [data.SubNote] - Optional: Patient number.
30
30
  * @returns {Promise<DiscountPlanSub>} - The created discount plan sub.
31
31
  * @throws {Error} - If required fields are missing or the API returns an error.
32
32
  */
@@ -37,14 +37,14 @@ class DiscountPlanSubs {
37
37
  return this.httpClient.post("/discountplansubs", data);
38
38
  }
39
39
  /**
40
- * Create a new procedure log entry.
41
- * @param {Object} data - The details of the procedure log to create.
40
+ * Update a discount plan sub.
41
+ * @param {Object} data - The details of the discount sub to update.
42
42
  * @param {number} data.DiscountSubNum - Required: PK
43
43
  * @param {number} data.PatNum - Required: Patient number.
44
- * @param {number} data.DateEffective - Optional: Patient number.
45
- * @param {number} data.DateTerm - Optional: Patient number.
46
- * @param {number} data.SubNote - Optional: Patient number.
47
- * @returns {Promise<DiscountPlanSub>} - The created procedure log.
44
+ * @param {number} [data.DateEffective] - Optional: Patient number.
45
+ * @param {number} [data.DateTerm] - Optional: Patient number.
46
+ * @param {number} [data.SubNote] - Optional: Patient number.
47
+ * @returns {Promise<DiscountPlanSub>} - The updated discount plan sub.
48
48
  * @throws {Error} - If required fields are missing or the API returns an error.
49
49
  */
50
50
  async updateDiscountPlanSub(data) {
@@ -55,7 +55,7 @@ class DiscountPlanSubs {
55
55
  }
56
56
  /**
57
57
  * Delete a discount plan sub entry.
58
- * @param {number} DiscountSubNum - Required: The unique identifier of the discount plan sub to delete.
58
+ * @param {number} [DiscountSubNum] - Required: The unique identifier of the discount plan sub to delete.
59
59
  * @returns {Promise<void>} - Resolves when the discount plan sub is deleted.
60
60
  * @throws {Error} - If `DiscountSubNum` is not valid or the API returns an error.
61
61
  */
@@ -5,9 +5,9 @@ export default class Operatories {
5
5
  constructor(httpClient: HttpClient);
6
6
  /**
7
7
  * Fetch a single operatory by its ID.
8
- * @param {number} OperatoryNum - The ID of the patfield.
9
- * @returns {Promise<Operatory>} - The patient data.
10
- * @throws {Error} - If `PatNum` is not valid or the API returns an error.
8
+ * @param {number} OperatoryNum - The ID of the operatory.
9
+ * @returns {Promise<Operatory>} - The operatory data.
10
+ * @throws {Error} - If `OperatoryNum` is not valid or the API returns an error.
11
11
  */
12
12
  getOperatory(OperatoryNum: number): Promise<Operatory>;
13
13
  /**
@@ -15,7 +15,7 @@ export default class Operatories {
15
15
  * @param {Object} params - Filtering and pagination parameters.
16
16
  * @param {string} [params.ClinicNum] - Filter by clinicnum
17
17
  * @param {string} [params.Offset] - Filter by clinicnum
18
- * @returns {Promise<Operatory[]>} - A list of summarized patient data.
18
+ * @returns {Promise<Operatory[]>} - A list of operatories.
19
19
  * @throws {Error} - If the API returns an error.
20
20
  */
21
21
  getOperatories({ ClinicNum, Offset, }?: GetOperatoriesParams): Promise<Operatory[]>;
@@ -7,9 +7,9 @@ class Operatories {
7
7
  }
8
8
  /**
9
9
  * Fetch a single operatory by its ID.
10
- * @param {number} OperatoryNum - The ID of the patfield.
11
- * @returns {Promise<Operatory>} - The patient data.
12
- * @throws {Error} - If `PatNum` is not valid or the API returns an error.
10
+ * @param {number} OperatoryNum - The ID of the operatory.
11
+ * @returns {Promise<Operatory>} - The operatory data.
12
+ * @throws {Error} - If `OperatoryNum` is not valid or the API returns an error.
13
13
  */
14
14
  async getOperatory(OperatoryNum) {
15
15
  if (!OperatoryNum || typeof OperatoryNum !== "number") {
@@ -22,7 +22,7 @@ class Operatories {
22
22
  * @param {Object} params - Filtering and pagination parameters.
23
23
  * @param {string} [params.ClinicNum] - Filter by clinicnum
24
24
  * @param {string} [params.Offset] - Filter by clinicnum
25
- * @returns {Promise<Operatory[]>} - A list of summarized patient data.
25
+ * @returns {Promise<Operatory[]>} - A list of operatories.
26
26
  * @throws {Error} - If the API returns an error.
27
27
  */
28
28
  async getOperatories({ ClinicNum, Offset, } = {}) {
@@ -6,17 +6,17 @@ export default class PatFields {
6
6
  /**
7
7
  * Fetch a single patfield by its ID.
8
8
  * @param {number} PatFieldNum - The ID of the patfield.
9
- * @returns {Promise<PatField>} - The patient data.
9
+ * @returns {Promise<PatField>} - The patfield data.
10
10
  * @throws {Error} - If `PatNum` is not valid or the API returns an error.
11
11
  */
12
12
  getPatField(PatFieldNum: number): Promise<PatField>;
13
13
  /**
14
- * Fetch multiple patients with optional filtering and pagination.
14
+ * Fetch multiple patfields with optional filtering and pagination.
15
15
  * @param {Object} params - Filtering and pagination parameters.
16
16
  * @param {string} [params.PatNum] - Filter by last name (case-insensitive, partial match).
17
17
  * @param {string} [params.FieldName] - Filter by last name (case-insensitive, partial match).
18
18
  * @param {string} [params.SecDateTEdit] - Filter by last name (case-insensitive, partial match).
19
- * @returns {Promise<PatField[]>} - A list of summarized patient data.
19
+ * @returns {Promise<PatField[]>} - A list of patfields.
20
20
  * @throws {Error} - If the API returns an error.
21
21
  */
22
22
  getPatFields({ PatNum, FieldName, SecDateTEdit, }?: GetPatFieldsParams): Promise<PatField[]>;
@@ -8,7 +8,7 @@ class PatFields {
8
8
  /**
9
9
  * Fetch a single patfield by its ID.
10
10
  * @param {number} PatFieldNum - The ID of the patfield.
11
- * @returns {Promise<PatField>} - The patient data.
11
+ * @returns {Promise<PatField>} - The patfield data.
12
12
  * @throws {Error} - If `PatNum` is not valid or the API returns an error.
13
13
  */
14
14
  async getPatField(PatFieldNum) {
@@ -18,12 +18,12 @@ class PatFields {
18
18
  return await this.httpClient.get(`/patfields/${PatFieldNum}`);
19
19
  }
20
20
  /**
21
- * Fetch multiple patients with optional filtering and pagination.
21
+ * Fetch multiple patfields with optional filtering and pagination.
22
22
  * @param {Object} params - Filtering and pagination parameters.
23
23
  * @param {string} [params.PatNum] - Filter by last name (case-insensitive, partial match).
24
24
  * @param {string} [params.FieldName] - Filter by last name (case-insensitive, partial match).
25
25
  * @param {string} [params.SecDateTEdit] - Filter by last name (case-insensitive, partial match).
26
- * @returns {Promise<PatField[]>} - A list of summarized patient data.
26
+ * @returns {Promise<PatField[]>} - A list of patfields.
27
27
  * @throws {Error} - If the API returns an error.
28
28
  */
29
29
  async getPatFields({ PatNum, FieldName, SecDateTEdit, } = {}) {
@@ -15,10 +15,10 @@ export default class Payments {
15
15
  getPayments({ PayType, PatNum, DateEntry, Offset, }?: GetPaymentsParams): Promise<Payment[]>;
16
16
  /**
17
17
  * Create a payment.
18
- * @param {Object} data - Data for the new appointment.
18
+ * @param {Object} data - Data for the new payment.
19
19
  * @param {string} data.PayAmt - Required: String amount of payment as 0.00 (float.toString())
20
20
  * @param {number} data.PatNum - Required: FK to Patient
21
- * @param {string} data.PayType - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
21
+ * @param {string} [data.PayType] - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
22
22
  * @param {string} [data.PayDate] - Optional. String in "yyyy-MM-dd" format. Defaults to today's date. Follows the office's preference to allow future-dated payments.
23
23
  * @param {string} [data.CheckNum] - Optional.
24
24
  * @param {string} [data.PayNote] - Optional.
@@ -34,9 +34,9 @@ export default class Payments {
34
34
  createPayment(data: CreatePaymentParams): Promise<Payment>;
35
35
  /**
36
36
  * Update a payment.
37
- * @param {Object} data - Data for the new appointment.
37
+ * @param {Object} data - Data for the new payment.
38
38
  * @param {string} data.PayNum - Required: PK of Payment to update.
39
- * @param {string} data.PayType - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
39
+ * @param {string} [data.PayType] - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
40
40
  * @param {string} [data.CheckNum] - Optional.
41
41
  * @param {string} [data.PayNote] - Optional.
42
42
  * @param {string} [data.BankBranch] - Optional.
@@ -25,10 +25,10 @@ class Payments {
25
25
  }
26
26
  /**
27
27
  * Create a payment.
28
- * @param {Object} data - Data for the new appointment.
28
+ * @param {Object} data - Data for the new payment.
29
29
  * @param {string} data.PayAmt - Required: String amount of payment as 0.00 (float.toString())
30
30
  * @param {number} data.PatNum - Required: FK to Patient
31
- * @param {string} data.PayType - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
31
+ * @param {string} [data.PayType] - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
32
32
  * @param {string} [data.PayDate] - Optional. String in "yyyy-MM-dd" format. Defaults to today's date. Follows the office's preference to allow future-dated payments.
33
33
  * @param {string} [data.CheckNum] - Optional.
34
34
  * @param {string} [data.PayNote] - Optional.
@@ -49,9 +49,9 @@ class Payments {
49
49
  }
50
50
  /**
51
51
  * Update a payment.
52
- * @param {Object} data - Data for the new appointment.
52
+ * @param {Object} data - Data for the new payment.
53
53
  * @param {string} data.PayNum - Required: PK of Payment to update.
54
- * @param {string} data.PayType - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
54
+ * @param {string} [data.PayType] - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
55
55
  * @param {string} [data.CheckNum] - Optional.
56
56
  * @param {string} [data.PayNote] - Optional.
57
57
  * @param {string} [data.BankBranch] - Optional.
@@ -16,56 +16,56 @@ export default class Providers {
16
16
  * @param {number} [params.ClinicNum] - Get providers by ClinicNum
17
17
  * @param {string} [params.DateTStamp] - Get providers altered after the specified date and time
18
18
  * @param {string} [params.Offset] - Pagination
19
- * @returns {Promise<Provider[]>} - A list of summarized patient data.
19
+ * @returns {Promise<Provider[]>} - A list of providers.
20
20
  * @throws {Error} - If the API returns an error.
21
21
  */
22
22
  getProviders({ ClinicNum, DateTStamp, Offset, }?: GetProviderParams): Promise<Provider[]>;
23
23
  /**
24
24
  * Creates a provider. Cannot create PatFields associated with hidden PatFieldDefs.
25
- * @param {Object} data - The data for the new patfield.
25
+ * @param {Object} data - The data for the new provider.
26
26
  * @param {string} data.Abbr - Required.
27
- * @param {string} data.LName - Optional.
28
- * @param {string} data.FName - Optional.
29
- * @param {string} data.MI - Optional.
30
- * @param {string} data.Suffix - Optional.
31
- * @param {number} data.FeeSched - Optional.
32
- * @param {number} data.Specialty - Optional.
33
- * @param {string} data.SSN - Optional.
34
- * @param {'true' | 'false'} data.IsSecondary - Optional.
35
- * @param {'true' | 'false'} data.IsHidden - Optional.
36
- * @param {'true' | 'false'} data.UsingTIN - Optional.
37
- * @param {'true' | 'false'} data.SigOnFile - Optional.
38
- * @param {'true' | 'false'} data.IsNotPerson - Optional.
39
- * @param {'true' | 'false'} data.IsHiddenReport - Optional.
40
- * @param {string} data.Birthdate - Optional.
41
- * @param {string} data.SchedNote - Optional.
42
- * @param {string} data.PreferredName - Optional.
43
- * @returns {Promise<Provider>} - The created PatField.
27
+ * @param {string} [data.LName] - Optional.
28
+ * @param {string} [data.FName] - Optional.
29
+ * @param {string} [data.MI] - Optional.
30
+ * @param {string} [data.Suffix] - Optional.
31
+ * @param {number} [data.FeeSched] - Optional.
32
+ * @param {number} [data.Specialty] - Optional.
33
+ * @param {string} [data.SSN] - Optional.
34
+ * @param {'true' | 'false'} [data.IsSecondary] - Optional.
35
+ * @param {'true' | 'false'} [data.IsHidden] - Optional.
36
+ * @param {'true' | 'false'} [data.UsingTIN] - Optional.
37
+ * @param {'true' | 'false'} [data.SigOnFile] - Optional.
38
+ * @param {'true' | 'false'} [data.IsNotPerson] - Optional.
39
+ * @param {'true' | 'false'} [data.IsHiddenReport] - Optional.
40
+ * @param {string} [data.Birthdate] - Optional.
41
+ * @param {string} [data.SchedNote] - Optional.
42
+ * @param {string} [data.PreferredName] - Optional.
43
+ * @returns {Promise<Provider>} - The created provider.
44
44
  * @throws {Error} - If the data is invalid or the API returns an error.
45
45
  */
46
46
  createProvider({ Abbr, LName, FName, MI, Suffix, FeeSched, Specialty, SSN, IsSecondary, IsHidden, UsingTIN, SigOnFile, IsNotPerson, IsHiddenReport, Birthdate, SchedNote, PreferredName, }: createProviderParams): Promise<Provider>;
47
47
  /**
48
48
  * Update a provider.
49
49
  * @param {number} ProvNum - The ID of the provider.
50
- * @param {Object} data - The data for the new patfield.
51
- * @param {string} data.Abbr - Optional but must not be blank.
52
- * @param {string} data.LName - Optional.
53
- * @param {string} data.FName - Optional.
54
- * @param {string} data.MI - Optional.
55
- * @param {string} data.Suffix - Optional.
56
- * @param {number} data.FeeSched - Optional.
57
- * @param {number} data.Specialty - Optional.
58
- * @param {string} data.SSN - Optional.
59
- * @param {'true' | 'false'} data.IsSecondary - Optional.
60
- * @param {'true' | 'false'} data.IsHidden - Optional.
61
- * @param {'true' | 'false'} data.UsingTIN - Optional.
62
- * @param {'true' | 'false'} data.SigOnFile - Optional.
63
- * @param {'true' | 'false'} data.IsNotPerson - Optional.
64
- * @param {'true' | 'false'} data.IsHiddenReport - Optional.
65
- * @param {string} data.Birthdate - Optional.
66
- * @param {string} data.SchedNote - Optional.
67
- * @param {string} data.PreferredName - Optional.
68
- * @returns {Promise<Provider>} - The created PatField.
50
+ * @param {Object} data - The data for a provider.
51
+ * @param {string} [data.Abbr] - Optional but must not be blank.
52
+ * @param {string} [data.LName] - Optional.
53
+ * @param {string} [data.FName] - Optional.
54
+ * @param {string} [data.MI] - Optional.
55
+ * @param {string} [data.Suffix] - Optional.
56
+ * @param {number} [data.FeeSched] - Optional.
57
+ * @param {number} [data.Specialty] - Optional.
58
+ * @param {string} [data.SSN] - Optional.
59
+ * @param {'true' | 'false'} [data.IsSecondary] - Optional.
60
+ * @param {'true' | 'false'} [data.IsHidden] - Optional.
61
+ * @param {'true' | 'false'} [data.UsingTIN] - Optional.
62
+ * @param {'true' | 'false'} [data.SigOnFile] - Optional.
63
+ * @param {'true' | 'false'} [data.IsNotPerson] - Optional.
64
+ * @param {'true' | 'false'} [data.IsHiddenReport] - Optional.
65
+ * @param {string} [data.Birthdate] - Optional.
66
+ * @param {string} [data.SchedNote] - Optional.
67
+ * @param {string} [data.PreferredName] - Optional.
68
+ * @returns {Promise<Provider>} - The updated Provider.
69
69
  * @throws {Error} - If the data is invalid or the API returns an error.
70
70
  */
71
71
  updateProvider({ ProvNum, Abbr, LName, FName, MI, Suffix, Specialty, SSN, NationalProvID, StateLicense, UsingTIN, SigOnFile, PreferredName, }: updateProviderParams): Promise<Provider>;
@@ -23,7 +23,7 @@ class Providers {
23
23
  * @param {number} [params.ClinicNum] - Get providers by ClinicNum
24
24
  * @param {string} [params.DateTStamp] - Get providers altered after the specified date and time
25
25
  * @param {string} [params.Offset] - Pagination
26
- * @returns {Promise<Provider[]>} - A list of summarized patient data.
26
+ * @returns {Promise<Provider[]>} - A list of providers.
27
27
  * @throws {Error} - If the API returns an error.
28
28
  */
29
29
  async getProviders({ ClinicNum, DateTStamp, Offset, } = {}) {
@@ -35,25 +35,25 @@ class Providers {
35
35
  }
36
36
  /**
37
37
  * Creates a provider. Cannot create PatFields associated with hidden PatFieldDefs.
38
- * @param {Object} data - The data for the new patfield.
38
+ * @param {Object} data - The data for the new provider.
39
39
  * @param {string} data.Abbr - Required.
40
- * @param {string} data.LName - Optional.
41
- * @param {string} data.FName - Optional.
42
- * @param {string} data.MI - Optional.
43
- * @param {string} data.Suffix - Optional.
44
- * @param {number} data.FeeSched - Optional.
45
- * @param {number} data.Specialty - Optional.
46
- * @param {string} data.SSN - Optional.
47
- * @param {'true' | 'false'} data.IsSecondary - Optional.
48
- * @param {'true' | 'false'} data.IsHidden - Optional.
49
- * @param {'true' | 'false'} data.UsingTIN - Optional.
50
- * @param {'true' | 'false'} data.SigOnFile - Optional.
51
- * @param {'true' | 'false'} data.IsNotPerson - Optional.
52
- * @param {'true' | 'false'} data.IsHiddenReport - Optional.
53
- * @param {string} data.Birthdate - Optional.
54
- * @param {string} data.SchedNote - Optional.
55
- * @param {string} data.PreferredName - Optional.
56
- * @returns {Promise<Provider>} - The created PatField.
40
+ * @param {string} [data.LName] - Optional.
41
+ * @param {string} [data.FName] - Optional.
42
+ * @param {string} [data.MI] - Optional.
43
+ * @param {string} [data.Suffix] - Optional.
44
+ * @param {number} [data.FeeSched] - Optional.
45
+ * @param {number} [data.Specialty] - Optional.
46
+ * @param {string} [data.SSN] - Optional.
47
+ * @param {'true' | 'false'} [data.IsSecondary] - Optional.
48
+ * @param {'true' | 'false'} [data.IsHidden] - Optional.
49
+ * @param {'true' | 'false'} [data.UsingTIN] - Optional.
50
+ * @param {'true' | 'false'} [data.SigOnFile] - Optional.
51
+ * @param {'true' | 'false'} [data.IsNotPerson] - Optional.
52
+ * @param {'true' | 'false'} [data.IsHiddenReport] - Optional.
53
+ * @param {string} [data.Birthdate] - Optional.
54
+ * @param {string} [data.SchedNote] - Optional.
55
+ * @param {string} [data.PreferredName] - Optional.
56
+ * @returns {Promise<Provider>} - The created provider.
57
57
  * @throws {Error} - If the data is invalid or the API returns an error.
58
58
  */
59
59
  async createProvider({ Abbr, LName, FName, MI, Suffix, FeeSched, Specialty, SSN, IsSecondary, IsHidden, UsingTIN, SigOnFile, IsNotPerson, IsHiddenReport, Birthdate, SchedNote, PreferredName, }) {
@@ -83,25 +83,25 @@ class Providers {
83
83
  /**
84
84
  * Update a provider.
85
85
  * @param {number} ProvNum - The ID of the provider.
86
- * @param {Object} data - The data for the new patfield.
87
- * @param {string} data.Abbr - Optional but must not be blank.
88
- * @param {string} data.LName - Optional.
89
- * @param {string} data.FName - Optional.
90
- * @param {string} data.MI - Optional.
91
- * @param {string} data.Suffix - Optional.
92
- * @param {number} data.FeeSched - Optional.
93
- * @param {number} data.Specialty - Optional.
94
- * @param {string} data.SSN - Optional.
95
- * @param {'true' | 'false'} data.IsSecondary - Optional.
96
- * @param {'true' | 'false'} data.IsHidden - Optional.
97
- * @param {'true' | 'false'} data.UsingTIN - Optional.
98
- * @param {'true' | 'false'} data.SigOnFile - Optional.
99
- * @param {'true' | 'false'} data.IsNotPerson - Optional.
100
- * @param {'true' | 'false'} data.IsHiddenReport - Optional.
101
- * @param {string} data.Birthdate - Optional.
102
- * @param {string} data.SchedNote - Optional.
103
- * @param {string} data.PreferredName - Optional.
104
- * @returns {Promise<Provider>} - The created PatField.
86
+ * @param {Object} data - The data for a provider.
87
+ * @param {string} [data.Abbr] - Optional but must not be blank.
88
+ * @param {string} [data.LName] - Optional.
89
+ * @param {string} [data.FName] - Optional.
90
+ * @param {string} [data.MI] - Optional.
91
+ * @param {string} [data.Suffix] - Optional.
92
+ * @param {number} [data.FeeSched] - Optional.
93
+ * @param {number} [data.Specialty] - Optional.
94
+ * @param {string} [data.SSN] - Optional.
95
+ * @param {'true' | 'false'} [data.IsSecondary] - Optional.
96
+ * @param {'true' | 'false'} [data.IsHidden] - Optional.
97
+ * @param {'true' | 'false'} [data.UsingTIN] - Optional.
98
+ * @param {'true' | 'false'} [data.SigOnFile] - Optional.
99
+ * @param {'true' | 'false'} [data.IsNotPerson] - Optional.
100
+ * @param {'true' | 'false'} [data.IsHiddenReport] - Optional.
101
+ * @param {string} [data.Birthdate] - Optional.
102
+ * @param {string} [data.SchedNote] - Optional.
103
+ * @param {string} [data.PreferredName] - Optional.
104
+ * @returns {Promise<Provider>} - The updated Provider.
105
105
  * @throws {Error} - If the data is invalid or the API returns an error.
106
106
  */
107
107
  async updateProvider({ ProvNum, Abbr, LName, FName, MI, Suffix, Specialty, SSN, NationalProvID, StateLicense, UsingTIN, SigOnFile, PreferredName, }) {
@@ -5,13 +5,13 @@ export default class Schedules {
5
5
  constructor(httpClient: HttpClient);
6
6
  /**
7
7
  * Fetch a single Schedule by its ID.
8
- * @param {number} ScheduleNum - The ID of the patfield.
9
- * @returns {Promise<Schedule>} - The patient data.
8
+ * @param {number} ScheduleNum - The ID of a schedule.
9
+ * @returns {Promise<Schedule>} - The schedule data.
10
10
  * @throws {Error} - If `PatNum` is not valid or the API returns an error.
11
11
  */
12
12
  getSchedule(ScheduleNum: number): Promise<Schedule>;
13
13
  /**
14
- * Fetch multiple patients with optional filtering and pagination.
14
+ * Fetch multiple schedules with optional filtering and pagination.
15
15
  * @param {Object} params - Filtering and pagination parameters.
16
16
  * @param {string} [params.date] - Optional: For a single day. Today's date by default.
17
17
  * @param {string} [params.dateStart] - Optional: For a single day. Today's date by default.
@@ -21,7 +21,7 @@ export default class Schedules {
21
21
  * @param {number} [params.ProvNum] - FK to provider.ProvNum.
22
22
  * @param {number} [params.EmployeeNum] - FK to employee.EmployeeNum.
23
23
  * @param {number} [params.Offset] - Pagination offset.
24
- * @returns {Promise<Schedule[]>} - A list of summarized patient data.
24
+ * @returns {Promise<Schedule[]>} - A list of schedules.
25
25
  * @throws {Error} - If the API returns an error.
26
26
  */
27
27
  getSchedules({ date, dateStart, dateEnd, SchedType, BlockoutDefNum, ProvNum, EmployeeNum, Offset, }?: GetSchedulesParams): Promise<Schedule[]>;
@@ -7,8 +7,8 @@ class Schedules {
7
7
  }
8
8
  /**
9
9
  * Fetch a single Schedule by its ID.
10
- * @param {number} ScheduleNum - The ID of the patfield.
11
- * @returns {Promise<Schedule>} - The patient data.
10
+ * @param {number} ScheduleNum - The ID of a schedule.
11
+ * @returns {Promise<Schedule>} - The schedule data.
12
12
  * @throws {Error} - If `PatNum` is not valid or the API returns an error.
13
13
  */
14
14
  async getSchedule(ScheduleNum) {
@@ -18,7 +18,7 @@ class Schedules {
18
18
  return await this.httpClient.get(`/schedules/${ScheduleNum}`);
19
19
  }
20
20
  /**
21
- * Fetch multiple patients with optional filtering and pagination.
21
+ * Fetch multiple schedules with optional filtering and pagination.
22
22
  * @param {Object} params - Filtering and pagination parameters.
23
23
  * @param {string} [params.date] - Optional: For a single day. Today's date by default.
24
24
  * @param {string} [params.dateStart] - Optional: For a single day. Today's date by default.
@@ -28,7 +28,7 @@ class Schedules {
28
28
  * @param {number} [params.ProvNum] - FK to provider.ProvNum.
29
29
  * @param {number} [params.EmployeeNum] - FK to employee.EmployeeNum.
30
30
  * @param {number} [params.Offset] - Pagination offset.
31
- * @returns {Promise<Schedule[]>} - A list of summarized patient data.
31
+ * @returns {Promise<Schedule[]>} - A list of schedules.
32
32
  * @throws {Error} - If the API returns an error.
33
33
  */
34
34
  async getSchedules({ date, dateStart, dateEnd, SchedType, BlockoutDefNum, ProvNum, EmployeeNum, Offset, } = {}) {
@@ -9,35 +9,35 @@ export default class TreatmentPlans {
9
9
  * @param {string} [params.PatNum] - patient.PatNum.
10
10
  * @param {string} [params.SecDateTEdit] - Only include TreatPlans with a SecDateTEdit altered after the specified date and time. String in "yyyy-MM-dd HH:mm:ss" format.
11
11
  * @param {"Saved" | "Active" | "Inactive"} [params.TPStatus] - Either "Saved", "Active", or "Inactive". Default all.
12
- * @returns {Promise<TreatmentPlan[]>} - An array of recall list objects.
12
+ * @returns {Promise<TreatmentPlan[]>} - An array of treatplan objects.
13
13
  */
14
14
  getTreatmentPlans({ PatNum, SecDateTEdit, TPStatus, }?: GetTreatmentPlanParams): Promise<TreatmentPlan[]>;
15
15
  /**
16
16
  * Create a new TreatPlan.
17
- * @param {Object} data - Data for the new appointment.
17
+ * @param {Object} data - Data for the new treatment plan.
18
18
  * @param {number} data.PatNum - Required. FK to patient.PatNum.
19
19
  * @param {string} [data.Heading] - Optional. Defaults to the heading of the supplied Treatment Plan.
20
20
  * @param {string} [data.Note] - Optional: An administrative note for staff use.
21
21
  * @param {"Insurance" | "Discount"} [params.TPType] - Optional. Either "Insurance" or "Discount". If the patient is subscribed to a Discount Plan, this will default to "Discount". Otherwise, defaults to "Insurance".
22
- * @returns {Promise<TreatmentPlan>} - The created recall object.
22
+ * @returns {Promise<TreatmentPlan>} - The created treatment plan object.
23
23
  * @throws {Error} - If required fields are missing.
24
24
  */
25
25
  createTreatmentPlan(data: CreateTreatmentPlanParams): Promise<TreatmentPlan>;
26
26
  /**
27
27
  * Creates an unsigned Saved TreatPlan from an existing Active or Inactive TreatPlan.
28
- * @param {Object} data - Data for the new appointment.
28
+ * @param {Object} data - Data for saved treatment plan.
29
29
  * @param {number} data.TreatPlanNum - Required.
30
30
  * @param {string} [data.Heading] - Optional. Defaults to the heading of the supplied Treatment Plan.
31
31
  * @param {string} [data.UserNumPresenter=0] - Optional. FK to userod.UserNum. Default 0.
32
- * @returns {Promise<TreatmentPlan>} - The created recall object.
32
+ * @returns {Promise<TreatmentPlan>} - The saved treatment plan object.
33
33
  * @throws {Error} - If required fields are missing.
34
34
  */
35
35
  saveTreatmentPlan(data: SaveTreatmentPlanParams): Promise<TreatmentPlan>;
36
36
  /**
37
- * Create a new TreatPlan.
38
- * @param {Object} data - Data for the new appointment.
37
+ * Update a TreatPlan.
38
+ * @param {Object} data - Data for the treatplan.
39
39
  * @param {number} data.TreatPlanNum - Required.
40
- * @param {string} [data.Heading] - The heading that shows at the top of the treatment plan.
40
+ * @param {string} [data.Heading] - Optional. The heading that shows at the top of the treatment plan.
41
41
  * @param {string} [data.Note] - Optional: An administrative note for staff use.
42
42
  * @param {number} [data.ResponsParty] - FK to patient.PatNum. The patient responsible for approving the treatment.
43
43
  * @param {"Insurance" | "Discount"} [params.TPType] - Optional. Either "Insurance" or "Discount". If the patient is subscribed to a Discount Plan, this will default to "Discount". Otherwise, defaults to "Insurance".
@@ -45,7 +45,7 @@ export default class TreatmentPlans {
45
45
  * @param {string} [data.SignaturePracticeText] - The typed name of the person who signed the patient signature.
46
46
  * @param {"true" | "false"} [data.isSigned] - The typed name of the person who signed the patient signature.
47
47
  * @param {"true" | "false"} [data.isSignedPractice] - Either "true" or "false". True updates the treatplan SignaturePractice, digitally signs for the practice, and overwrites existing signature. False clears the exisiting treatplan SignaturePractice.
48
- * @returns {Promise<TreatmentPlan>} - The created recall object.
48
+ * @returns {Promise<TreatmentPlan>} - The updated treatplan object.
49
49
  * @throws {Error} - If required fields are missing.
50
50
  */
51
51
  updateTreatmentPlan(data: UpdateTreatmentPlanParams): Promise<TreatmentPlan>;
@@ -1 +1 @@
1
- {"version":3,"file":"treatplans.d.ts","sourceRoot":"","sources":["../../src/api/treatplans.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,aAAa,EACb,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EAC1B,MAAM,yBAAyB,CAAC;AAGjC,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,OAAO,CAAC,UAAU,CAAa;gBAEjB,UAAU,EAAE,UAAU;IAIlC;;;;;;;OAOG;IACU,iBAAiB,CAAC,EAC3B,MAAM,EACN,YAAY,EACZ,QAAQ,GACX,GAAE,sBAA2B,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAUxD;;;;;;;;;MASE;IACU,mBAAmB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAQzF;;;;;;;;OAQG;IACU,iBAAiB,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,aAAa,CAAC;IAQrF;;;;;;;;;;;;;;OAcG;IACU,mBAAmB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;CAO5F"}
1
+ {"version":3,"file":"treatplans.d.ts","sourceRoot":"","sources":["../../src/api/treatplans.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,aAAa,EACb,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,OAAO,CAAC,UAAU,CAAa;gBAEjB,UAAU,EAAE,UAAU;IAIlC;;;;;;;OAOG;IACU,iBAAiB,CAAC,EAC3B,MAAM,EACN,YAAY,EACZ,QAAQ,GACX,GAAE,sBAA2B,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAUxD;;;;;;;;;MASE;IACU,mBAAmB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAQzF;;;;;;;;OAQG;IACU,iBAAiB,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,aAAa,CAAC;IAQrF;;;;;;;;;;;;;;OAcG;IACU,mBAAmB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;CAO5F"}
@@ -11,7 +11,7 @@ class TreatmentPlans {
11
11
  * @param {string} [params.PatNum] - patient.PatNum.
12
12
  * @param {string} [params.SecDateTEdit] - Only include TreatPlans with a SecDateTEdit altered after the specified date and time. String in "yyyy-MM-dd HH:mm:ss" format.
13
13
  * @param {"Saved" | "Active" | "Inactive"} [params.TPStatus] - Either "Saved", "Active", or "Inactive". Default all.
14
- * @returns {Promise<TreatmentPlan[]>} - An array of recall list objects.
14
+ * @returns {Promise<TreatmentPlan[]>} - An array of treatplan objects.
15
15
  */
16
16
  async getTreatmentPlans({ PatNum, SecDateTEdit, TPStatus, } = {}) {
17
17
  const params = {
@@ -23,12 +23,12 @@ class TreatmentPlans {
23
23
  }
24
24
  /**
25
25
  * Create a new TreatPlan.
26
- * @param {Object} data - Data for the new appointment.
26
+ * @param {Object} data - Data for the new treatment plan.
27
27
  * @param {number} data.PatNum - Required. FK to patient.PatNum.
28
28
  * @param {string} [data.Heading] - Optional. Defaults to the heading of the supplied Treatment Plan.
29
29
  * @param {string} [data.Note] - Optional: An administrative note for staff use.
30
30
  * @param {"Insurance" | "Discount"} [params.TPType] - Optional. Either "Insurance" or "Discount". If the patient is subscribed to a Discount Plan, this will default to "Discount". Otherwise, defaults to "Insurance".
31
- * @returns {Promise<TreatmentPlan>} - The created recall object.
31
+ * @returns {Promise<TreatmentPlan>} - The created treatment plan object.
32
32
  * @throws {Error} - If required fields are missing.
33
33
  */
34
34
  async createTreatmentPlan(data) {
@@ -39,11 +39,11 @@ class TreatmentPlans {
39
39
  }
40
40
  /**
41
41
  * Creates an unsigned Saved TreatPlan from an existing Active or Inactive TreatPlan.
42
- * @param {Object} data - Data for the new appointment.
42
+ * @param {Object} data - Data for saved treatment plan.
43
43
  * @param {number} data.TreatPlanNum - Required.
44
44
  * @param {string} [data.Heading] - Optional. Defaults to the heading of the supplied Treatment Plan.
45
45
  * @param {string} [data.UserNumPresenter=0] - Optional. FK to userod.UserNum. Default 0.
46
- * @returns {Promise<TreatmentPlan>} - The created recall object.
46
+ * @returns {Promise<TreatmentPlan>} - The saved treatment plan object.
47
47
  * @throws {Error} - If required fields are missing.
48
48
  */
49
49
  async saveTreatmentPlan(data) {
@@ -53,10 +53,10 @@ class TreatmentPlans {
53
53
  return this.httpClient.post("/treatplans/Saved", data);
54
54
  }
55
55
  /**
56
- * Create a new TreatPlan.
57
- * @param {Object} data - Data for the new appointment.
56
+ * Update a TreatPlan.
57
+ * @param {Object} data - Data for the treatplan.
58
58
  * @param {number} data.TreatPlanNum - Required.
59
- * @param {string} [data.Heading] - The heading that shows at the top of the treatment plan.
59
+ * @param {string} [data.Heading] - Optional. The heading that shows at the top of the treatment plan.
60
60
  * @param {string} [data.Note] - Optional: An administrative note for staff use.
61
61
  * @param {number} [data.ResponsParty] - FK to patient.PatNum. The patient responsible for approving the treatment.
62
62
  * @param {"Insurance" | "Discount"} [params.TPType] - Optional. Either "Insurance" or "Discount". If the patient is subscribed to a Discount Plan, this will default to "Discount". Otherwise, defaults to "Insurance".
@@ -64,7 +64,7 @@ class TreatmentPlans {
64
64
  * @param {string} [data.SignaturePracticeText] - The typed name of the person who signed the patient signature.
65
65
  * @param {"true" | "false"} [data.isSigned] - The typed name of the person who signed the patient signature.
66
66
  * @param {"true" | "false"} [data.isSignedPractice] - Either "true" or "false". True updates the treatplan SignaturePractice, digitally signs for the practice, and overwrites existing signature. False clears the exisiting treatplan SignaturePractice.
67
- * @returns {Promise<TreatmentPlan>} - The created recall object.
67
+ * @returns {Promise<TreatmentPlan>} - The updated treatplan object.
68
68
  * @throws {Error} - If required fields are missing.
69
69
  */
70
70
  async updateTreatmentPlan(data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rinse-dental/open-dental",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
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",
@@ -331,6 +331,6 @@ public async getAppointments({
331
331
  throw new Error("AptNum and either confirmVal or defNum are required.");
332
332
  }
333
333
 
334
- return this.httpClient.put<void>(`/appointments/${data.AptNum}/confirm`, data);
334
+ return this.httpClient.put<void>(`/appointments/${data.AptNum}/Confirm`, data);
335
335
  }
336
336
  }
@@ -12,12 +12,12 @@ export default class Definitions {
12
12
  }
13
13
 
14
14
  /**
15
- * Fetch multiple definitinos with optional filtering and pagination.
15
+ * Fetch multiple definitions with optional filtering and pagination.
16
16
  * @param {Object} params - The parameters for filtering and pagination.
17
17
  * @param {number} [params.Category] - Filter by category.
18
18
  * @param {"true" | "false"} [data.includeHidden="false"] - Optional parameter that defaults to false.
19
19
  * @param {number} [params.Offset] - Pagination offset for results.
20
- * @returns {Promise<Definition[]>} - A list of appointments.
20
+ * @returns {Promise<Definition[]>} - A list of definitions.
21
21
  */
22
22
  public async getDefinitions({
23
23
  Category,
@@ -34,12 +34,12 @@ export default class DiscountPlanSubs {
34
34
 
35
35
  /**
36
36
  * Create a new discount plan sub.
37
- * @param {Object} data - The details of the procedure log to create.
37
+ * @param {Object} data - The details of discount plan sub to create.
38
38
  * @param {number} data.DiscountPlanNum - Required: FK to discount plan.
39
39
  * @param {number} data.PatNum - Required: Patient number.
40
- * @param {number} data.DateEffective - Optional: Patient number.
41
- * @param {number} data.DateTerm - Optional: Patient number.
42
- * @param {number} data.SubNote - Optional: Patient number.
40
+ * @param {number} [data.DateEffective] - Optional: Patient number.
41
+ * @param {number} [data.DateTerm] - Optional: Patient number.
42
+ * @param {number} [data.SubNote] - Optional: Patient number.
43
43
  * @returns {Promise<DiscountPlanSub>} - The created discount plan sub.
44
44
  * @throws {Error} - If required fields are missing or the API returns an error.
45
45
  */
@@ -52,14 +52,14 @@ export default class DiscountPlanSubs {
52
52
  }
53
53
 
54
54
  /**
55
- * Create a new procedure log entry.
56
- * @param {Object} data - The details of the procedure log to create.
55
+ * Update a discount plan sub.
56
+ * @param {Object} data - The details of the discount sub to update.
57
57
  * @param {number} data.DiscountSubNum - Required: PK
58
58
  * @param {number} data.PatNum - Required: Patient number.
59
- * @param {number} data.DateEffective - Optional: Patient number.
60
- * @param {number} data.DateTerm - Optional: Patient number.
61
- * @param {number} data.SubNote - Optional: Patient number.
62
- * @returns {Promise<DiscountPlanSub>} - The created procedure log.
59
+ * @param {number} [data.DateEffective] - Optional: Patient number.
60
+ * @param {number} [data.DateTerm] - Optional: Patient number.
61
+ * @param {number} [data.SubNote] - Optional: Patient number.
62
+ * @returns {Promise<DiscountPlanSub>} - The updated discount plan sub.
63
63
  * @throws {Error} - If required fields are missing or the API returns an error.
64
64
  */
65
65
  public async updateDiscountPlanSub(data: UpdateDiscountPlanSubParams): Promise<DiscountPlanSub> {
@@ -72,7 +72,7 @@ export default class DiscountPlanSubs {
72
72
 
73
73
  /**
74
74
  * Delete a discount plan sub entry.
75
- * @param {number} DiscountSubNum - Required: The unique identifier of the discount plan sub to delete.
75
+ * @param {number} [DiscountSubNum] - Required: The unique identifier of the discount plan sub to delete.
76
76
  * @returns {Promise<void>} - Resolves when the discount plan sub is deleted.
77
77
  * @throws {Error} - If `DiscountSubNum` is not valid or the API returns an error.
78
78
  */
@@ -13,9 +13,9 @@ export default class Operatories {
13
13
 
14
14
  /**
15
15
  * Fetch a single operatory by its ID.
16
- * @param {number} OperatoryNum - The ID of the patfield.
17
- * @returns {Promise<Operatory>} - The patient data.
18
- * @throws {Error} - If `PatNum` is not valid or the API returns an error.
16
+ * @param {number} OperatoryNum - The ID of the operatory.
17
+ * @returns {Promise<Operatory>} - The operatory data.
18
+ * @throws {Error} - If `OperatoryNum` is not valid or the API returns an error.
19
19
  */
20
20
  public async getOperatory(OperatoryNum: number): Promise<Operatory> {
21
21
  if (!OperatoryNum || typeof OperatoryNum !== "number") {
@@ -30,7 +30,7 @@ export default class Operatories {
30
30
  * @param {Object} params - Filtering and pagination parameters.
31
31
  * @param {string} [params.ClinicNum] - Filter by clinicnum
32
32
  * @param {string} [params.Offset] - Filter by clinicnum
33
- * @returns {Promise<Operatory[]>} - A list of summarized patient data.
33
+ * @returns {Promise<Operatory[]>} - A list of operatories.
34
34
  * @throws {Error} - If the API returns an error.
35
35
  */
36
36
  public async getOperatories({
@@ -15,7 +15,7 @@ export default class PatFields {
15
15
  /**
16
16
  * Fetch a single patfield by its ID.
17
17
  * @param {number} PatFieldNum - The ID of the patfield.
18
- * @returns {Promise<PatField>} - The patient data.
18
+ * @returns {Promise<PatField>} - The patfield data.
19
19
  * @throws {Error} - If `PatNum` is not valid or the API returns an error.
20
20
  */
21
21
  public async getPatField(PatFieldNum: number): Promise<PatField> {
@@ -27,12 +27,12 @@ export default class PatFields {
27
27
  }
28
28
 
29
29
  /**
30
- * Fetch multiple patients with optional filtering and pagination.
30
+ * Fetch multiple patfields with optional filtering and pagination.
31
31
  * @param {Object} params - Filtering and pagination parameters.
32
32
  * @param {string} [params.PatNum] - Filter by last name (case-insensitive, partial match).
33
33
  * @param {string} [params.FieldName] - Filter by last name (case-insensitive, partial match).
34
34
  * @param {string} [params.SecDateTEdit] - Filter by last name (case-insensitive, partial match).
35
- * @returns {Promise<PatField[]>} - A list of summarized patient data.
35
+ * @returns {Promise<PatField[]>} - A list of patfields.
36
36
  * @throws {Error} - If the API returns an error.
37
37
  */
38
38
  public async getPatFields({
@@ -40,10 +40,10 @@ public async getPayments({
40
40
 
41
41
  /**
42
42
  * Create a payment.
43
- * @param {Object} data - Data for the new appointment.
43
+ * @param {Object} data - Data for the new payment.
44
44
  * @param {string} data.PayAmt - Required: String amount of payment as 0.00 (float.toString())
45
45
  * @param {number} data.PatNum - Required: FK to Patient
46
- * @param {string} data.PayType - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
46
+ * @param {string} [data.PayType] - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
47
47
  * @param {string} [data.PayDate] - Optional. String in "yyyy-MM-dd" format. Defaults to today's date. Follows the office's preference to allow future-dated payments.
48
48
  * @param {string} [data.CheckNum] - Optional.
49
49
  * @param {string} [data.PayNote] - Optional.
@@ -66,9 +66,9 @@ public async getPayments({
66
66
 
67
67
  /**
68
68
  * Update a payment.
69
- * @param {Object} data - Data for the new appointment.
69
+ * @param {Object} data - Data for the new payment.
70
70
  * @param {string} data.PayNum - Required: PK of Payment to update.
71
- * @param {string} data.PayType - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
71
+ * @param {string} [data.PayType] - Optional: definition.DefNum where definition.Category=10. Defaults to the ApiPaymentType preference.
72
72
  * @param {string} [data.CheckNum] - Optional.
73
73
  * @param {string} [data.PayNote] - Optional.
74
74
  * @param {string} [data.BankBranch] - Optional.
@@ -33,7 +33,7 @@ export default class Providers {
33
33
  * @param {number} [params.ClinicNum] - Get providers by ClinicNum
34
34
  * @param {string} [params.DateTStamp] - Get providers altered after the specified date and time
35
35
  * @param {string} [params.Offset] - Pagination
36
- * @returns {Promise<Provider[]>} - A list of summarized patient data.
36
+ * @returns {Promise<Provider[]>} - A list of providers.
37
37
  * @throws {Error} - If the API returns an error.
38
38
  */
39
39
  public async getProviders({
@@ -51,25 +51,25 @@ export default class Providers {
51
51
 
52
52
  /**
53
53
  * Creates a provider. Cannot create PatFields associated with hidden PatFieldDefs.
54
- * @param {Object} data - The data for the new patfield.
54
+ * @param {Object} data - The data for the new provider.
55
55
  * @param {string} data.Abbr - Required.
56
- * @param {string} data.LName - Optional.
57
- * @param {string} data.FName - Optional.
58
- * @param {string} data.MI - Optional.
59
- * @param {string} data.Suffix - Optional.
60
- * @param {number} data.FeeSched - Optional.
61
- * @param {number} data.Specialty - Optional.
62
- * @param {string} data.SSN - Optional.
63
- * @param {'true' | 'false'} data.IsSecondary - Optional.
64
- * @param {'true' | 'false'} data.IsHidden - Optional.
65
- * @param {'true' | 'false'} data.UsingTIN - Optional.
66
- * @param {'true' | 'false'} data.SigOnFile - Optional.
67
- * @param {'true' | 'false'} data.IsNotPerson - Optional.
68
- * @param {'true' | 'false'} data.IsHiddenReport - Optional.
69
- * @param {string} data.Birthdate - Optional.
70
- * @param {string} data.SchedNote - Optional.
71
- * @param {string} data.PreferredName - Optional.
72
- * @returns {Promise<Provider>} - The created PatField.
56
+ * @param {string} [data.LName] - Optional.
57
+ * @param {string} [data.FName] - Optional.
58
+ * @param {string} [data.MI] - Optional.
59
+ * @param {string} [data.Suffix] - Optional.
60
+ * @param {number} [data.FeeSched] - Optional.
61
+ * @param {number} [data.Specialty] - Optional.
62
+ * @param {string} [data.SSN] - Optional.
63
+ * @param {'true' | 'false'} [data.IsSecondary] - Optional.
64
+ * @param {'true' | 'false'} [data.IsHidden] - Optional.
65
+ * @param {'true' | 'false'} [data.UsingTIN] - Optional.
66
+ * @param {'true' | 'false'} [data.SigOnFile] - Optional.
67
+ * @param {'true' | 'false'} [data.IsNotPerson] - Optional.
68
+ * @param {'true' | 'false'} [data.IsHiddenReport] - Optional.
69
+ * @param {string} [data.Birthdate] - Optional.
70
+ * @param {string} [data.SchedNote] - Optional.
71
+ * @param {string} [data.PreferredName] - Optional.
72
+ * @returns {Promise<Provider>} - The created provider.
73
73
  * @throws {Error} - If the data is invalid or the API returns an error.
74
74
  */
75
75
  public async createProvider({
@@ -118,25 +118,25 @@ export default class Providers {
118
118
  /**
119
119
  * Update a provider.
120
120
  * @param {number} ProvNum - The ID of the provider.
121
- * @param {Object} data - The data for the new patfield.
122
- * @param {string} data.Abbr - Optional but must not be blank.
123
- * @param {string} data.LName - Optional.
124
- * @param {string} data.FName - Optional.
125
- * @param {string} data.MI - Optional.
126
- * @param {string} data.Suffix - Optional.
127
- * @param {number} data.FeeSched - Optional.
128
- * @param {number} data.Specialty - Optional.
129
- * @param {string} data.SSN - Optional.
130
- * @param {'true' | 'false'} data.IsSecondary - Optional.
131
- * @param {'true' | 'false'} data.IsHidden - Optional.
132
- * @param {'true' | 'false'} data.UsingTIN - Optional.
133
- * @param {'true' | 'false'} data.SigOnFile - Optional.
134
- * @param {'true' | 'false'} data.IsNotPerson - Optional.
135
- * @param {'true' | 'false'} data.IsHiddenReport - Optional.
136
- * @param {string} data.Birthdate - Optional.
137
- * @param {string} data.SchedNote - Optional.
138
- * @param {string} data.PreferredName - Optional.
139
- * @returns {Promise<Provider>} - The created PatField.
121
+ * @param {Object} data - The data for a provider.
122
+ * @param {string} [data.Abbr] - Optional but must not be blank.
123
+ * @param {string} [data.LName] - Optional.
124
+ * @param {string} [data.FName] - Optional.
125
+ * @param {string} [data.MI] - Optional.
126
+ * @param {string} [data.Suffix] - Optional.
127
+ * @param {number} [data.FeeSched] - Optional.
128
+ * @param {number} [data.Specialty] - Optional.
129
+ * @param {string} [data.SSN] - Optional.
130
+ * @param {'true' | 'false'} [data.IsSecondary] - Optional.
131
+ * @param {'true' | 'false'} [data.IsHidden] - Optional.
132
+ * @param {'true' | 'false'} [data.UsingTIN] - Optional.
133
+ * @param {'true' | 'false'} [data.SigOnFile] - Optional.
134
+ * @param {'true' | 'false'} [data.IsNotPerson] - Optional.
135
+ * @param {'true' | 'false'} [data.IsHiddenReport] - Optional.
136
+ * @param {string} [data.Birthdate] - Optional.
137
+ * @param {string} [data.SchedNote] - Optional.
138
+ * @param {string} [data.PreferredName] - Optional.
139
+ * @returns {Promise<Provider>} - The updated Provider.
140
140
  * @throws {Error} - If the data is invalid or the API returns an error.
141
141
  */
142
142
  public async updateProvider({
@@ -13,8 +13,8 @@ export default class Schedules {
13
13
 
14
14
  /**
15
15
  * Fetch a single Schedule by its ID.
16
- * @param {number} ScheduleNum - The ID of the patfield.
17
- * @returns {Promise<Schedule>} - The patient data.
16
+ * @param {number} ScheduleNum - The ID of a schedule.
17
+ * @returns {Promise<Schedule>} - The schedule data.
18
18
  * @throws {Error} - If `PatNum` is not valid or the API returns an error.
19
19
  */
20
20
  public async getSchedule(ScheduleNum: number): Promise<Schedule> {
@@ -26,7 +26,7 @@ export default class Schedules {
26
26
  }
27
27
 
28
28
  /**
29
- * Fetch multiple patients with optional filtering and pagination.
29
+ * Fetch multiple schedules with optional filtering and pagination.
30
30
  * @param {Object} params - Filtering and pagination parameters.
31
31
  * @param {string} [params.date] - Optional: For a single day. Today's date by default.
32
32
  * @param {string} [params.dateStart] - Optional: For a single day. Today's date by default.
@@ -36,7 +36,7 @@ export default class Schedules {
36
36
  * @param {number} [params.ProvNum] - FK to provider.ProvNum.
37
37
  * @param {number} [params.EmployeeNum] - FK to employee.EmployeeNum.
38
38
  * @param {number} [params.Offset] - Pagination offset.
39
- * @returns {Promise<Schedule[]>} - A list of summarized patient data.
39
+ * @returns {Promise<Schedule[]>} - A list of schedules.
40
40
  * @throws {Error} - If the API returns an error.
41
41
  */
42
42
  public async getSchedules({
@@ -6,7 +6,6 @@ import {
6
6
  UpdateTreatmentPlanParams,
7
7
  SaveTreatmentPlanParams,
8
8
  } from "../types/treatPlanTypes";
9
- import { updateProcedureLogParams } from "../types/procedurelogTypes";
10
9
 
11
10
  export default class TreatmentPlans {
12
11
  private httpClient: HttpClient;
@@ -21,7 +20,7 @@ export default class TreatmentPlans {
21
20
  * @param {string} [params.PatNum] - patient.PatNum.
22
21
  * @param {string} [params.SecDateTEdit] - Only include TreatPlans with a SecDateTEdit altered after the specified date and time. String in "yyyy-MM-dd HH:mm:ss" format.
23
22
  * @param {"Saved" | "Active" | "Inactive"} [params.TPStatus] - Either "Saved", "Active", or "Inactive". Default all.
24
- * @returns {Promise<TreatmentPlan[]>} - An array of recall list objects.
23
+ * @returns {Promise<TreatmentPlan[]>} - An array of treatplan objects.
25
24
  */
26
25
  public async getTreatmentPlans({
27
26
  PatNum,
@@ -39,12 +38,12 @@ export default class TreatmentPlans {
39
38
 
40
39
  /**
41
40
  * Create a new TreatPlan.
42
- * @param {Object} data - Data for the new appointment.
41
+ * @param {Object} data - Data for the new treatment plan.
43
42
  * @param {number} data.PatNum - Required. FK to patient.PatNum.
44
43
  * @param {string} [data.Heading] - Optional. Defaults to the heading of the supplied Treatment Plan.
45
44
  * @param {string} [data.Note] - Optional: An administrative note for staff use.
46
45
  * @param {"Insurance" | "Discount"} [params.TPType] - Optional. Either "Insurance" or "Discount". If the patient is subscribed to a Discount Plan, this will default to "Discount". Otherwise, defaults to "Insurance".
47
- * @returns {Promise<TreatmentPlan>} - The created recall object.
46
+ * @returns {Promise<TreatmentPlan>} - The created treatment plan object.
48
47
  * @throws {Error} - If required fields are missing.
49
48
  */
50
49
  public async createTreatmentPlan(data: CreateTreatmentPlanParams): Promise<TreatmentPlan> {
@@ -57,11 +56,11 @@ export default class TreatmentPlans {
57
56
 
58
57
  /**
59
58
  * Creates an unsigned Saved TreatPlan from an existing Active or Inactive TreatPlan.
60
- * @param {Object} data - Data for the new appointment.
59
+ * @param {Object} data - Data for saved treatment plan.
61
60
  * @param {number} data.TreatPlanNum - Required.
62
61
  * @param {string} [data.Heading] - Optional. Defaults to the heading of the supplied Treatment Plan.
63
62
  * @param {string} [data.UserNumPresenter=0] - Optional. FK to userod.UserNum. Default 0.
64
- * @returns {Promise<TreatmentPlan>} - The created recall object.
63
+ * @returns {Promise<TreatmentPlan>} - The saved treatment plan object.
65
64
  * @throws {Error} - If required fields are missing.
66
65
  */
67
66
  public async saveTreatmentPlan(data: SaveTreatmentPlanParams): Promise<TreatmentPlan> {
@@ -73,10 +72,10 @@ export default class TreatmentPlans {
73
72
  }
74
73
 
75
74
  /**
76
- * Create a new TreatPlan.
77
- * @param {Object} data - Data for the new appointment.
75
+ * Update a TreatPlan.
76
+ * @param {Object} data - Data for the treatplan.
78
77
  * @param {number} data.TreatPlanNum - Required.
79
- * @param {string} [data.Heading] - The heading that shows at the top of the treatment plan.
78
+ * @param {string} [data.Heading] - Optional. The heading that shows at the top of the treatment plan.
80
79
  * @param {string} [data.Note] - Optional: An administrative note for staff use.
81
80
  * @param {number} [data.ResponsParty] - FK to patient.PatNum. The patient responsible for approving the treatment.
82
81
  * @param {"Insurance" | "Discount"} [params.TPType] - Optional. Either "Insurance" or "Discount". If the patient is subscribed to a Discount Plan, this will default to "Discount". Otherwise, defaults to "Insurance".
@@ -84,7 +83,7 @@ export default class TreatmentPlans {
84
83
  * @param {string} [data.SignaturePracticeText] - The typed name of the person who signed the patient signature.
85
84
  * @param {"true" | "false"} [data.isSigned] - The typed name of the person who signed the patient signature.
86
85
  * @param {"true" | "false"} [data.isSignedPractice] - Either "true" or "false". True updates the treatplan SignaturePractice, digitally signs for the practice, and overwrites existing signature. False clears the exisiting treatplan SignaturePractice.
87
- * @returns {Promise<TreatmentPlan>} - The created recall object.
86
+ * @returns {Promise<TreatmentPlan>} - The updated treatplan object.
88
87
  * @throws {Error} - If required fields are missing.
89
88
  */
90
89
  public async updateTreatmentPlan(data: UpdateTreatmentPlanParams): Promise<TreatmentPlan> {