@rinse-dental/open-dental 1.0.9 → 1.1.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/deploy_notes.txt +1 -1
- package/dist/api/labCases.d.ts +66 -0
- package/dist/api/labCases.d.ts.map +1 -0
- package/dist/api/labCases.js +119 -0
- package/dist/openDental.d.ts +4 -0
- package/dist/openDental.d.ts.map +1 -1
- package/dist/openDental.js +9 -0
- package/dist/types/labCaseTypes.d.ts +68 -0
- package/dist/types/labCaseTypes.d.ts.map +1 -0
- package/dist/types/labCaseTypes.js +2 -0
- package/package.json +1 -1
- package/src/api/labCases.ts +183 -0
- package/src/openDental.ts +11 -0
- package/src/types/labCaseTypes.ts +71 -0
package/deploy_notes.txt
CHANGED
|
@@ -10,7 +10,7 @@ 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.
|
|
13
|
+
gh release create v1.0.4 --title "Release v1.0.4" --notes "addition of patplan, insplan, familymodule apis"
|
|
14
14
|
|
|
15
15
|
if the tag doesn't exist locally:
|
|
16
16
|
git tag vX.Y.Z
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import HttpClient from "../utils/httpClient";
|
|
2
|
+
import { LabCase, GetLabCasesParams, CreateLabCaseParams, UpdateLabCaseParams } from "../types/labCaseTypes";
|
|
3
|
+
export default class LabCases {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Fetch a single lab case by its ID.
|
|
8
|
+
* @param {number} LabCaseNum - The unique identifier for the LabCase.
|
|
9
|
+
* @returns {Promise<LabCase>} - The LabCase object.
|
|
10
|
+
* @throws {Error} - If `LabCaseNum` is not provided.
|
|
11
|
+
*/
|
|
12
|
+
getLabCase(LabCaseNum: number): Promise<LabCase>;
|
|
13
|
+
/**
|
|
14
|
+
* Fetch multiple lab cases with optional filtering and pagination.
|
|
15
|
+
* @param {Object} params - The parameters for filtering and pagination.
|
|
16
|
+
* @param {number} [params.PatNum] - FK to patient.PatNum.
|
|
17
|
+
* @param {number} [params.LaboratoryNum] - FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
18
|
+
* @param {number} [params.AptNum] - FK to appointment.AptNum.
|
|
19
|
+
* @param {number} [params.PlannedAptNum] - FK to appointment.AptNum.
|
|
20
|
+
* @param {number} [params.ProvNum] - FK to provider.ProvNum.
|
|
21
|
+
* @param {number} [params.Offset] - Pagination offset for results.
|
|
22
|
+
* @returns {Promise<LabCase[]>} - A list of lab cases.
|
|
23
|
+
*/
|
|
24
|
+
getLabCases({ PatNum, LaboratoryNum, AptNum, PlannedAptNum, ProvNum }?: GetLabCasesParams): Promise<LabCase[]>;
|
|
25
|
+
/**
|
|
26
|
+
* Create a new inssub.
|
|
27
|
+
* @param {Object} data - The details of InsSub to create.
|
|
28
|
+
* @param {number} data.PatNum - Required. FK to patient.PatNum.
|
|
29
|
+
* @param {number} data.LaboratoryNum - Required. FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
30
|
+
* @param {number} data.ProvNum - Required. FK to provider.ProvNum.
|
|
31
|
+
* @param {number} [data.AptNum] - Optional. FK to appointment.AptNum where appointment.AptStatus=Scheduled.
|
|
32
|
+
* @param {number} [data.PlannedAptNum] - Optional. FK to appointment.AptNum where appointment.AptStatus=Planned.
|
|
33
|
+
* @param {string} [data.DateTimeDue] - Optional. The due date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
34
|
+
* @param {string} [data.DateTimeCreated] - Optional. The created date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
35
|
+
* @param {string} [data.DateTimeSent] - Optional. The sent date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
36
|
+
* @param {string} [data.DateTimeRecd] - Optional. The received date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
37
|
+
* @param {string} [data.DateTimeChecked] - Optional. The checked date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
38
|
+
* @param {string} [data.Instructions] - Optional. The text instructions for this labcase.
|
|
39
|
+
* @param {number} [data.LabFee] - Optional. This is used for tracking and informational purposes only. The fee is not used in any calculation.
|
|
40
|
+
* @param {string} [data.InvoiceNum] - Optional. This is an optional invoice number used for tracking and informational purposes only.
|
|
41
|
+
* @returns {Promise<LabCase>} - The created lab case.
|
|
42
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
43
|
+
*/
|
|
44
|
+
createLabCase({ PatNum, LaboratoryNum, ProvNum, AptNum, PlannedAptNum, DateTimeDue, DateTimeCreated, DateTimeSent, DateTimeRecd, DateTimeChecked, Instructions, LabFee, InvoiceNum, }: CreateLabCaseParams): Promise<LabCase>;
|
|
45
|
+
/**
|
|
46
|
+
* Update an inssub.
|
|
47
|
+
* @param {Object} data - The details of lab case to update.
|
|
48
|
+
* @param {number} data.LabCaseNum - Required in the URL. The PK of the lab case.
|
|
49
|
+
* @param {number} [data.LaboratoryNum] - FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
50
|
+
* @param {number} [data.AptNum] - FK to appointment.AptNum where appointment.AptStatus=Scheduled.
|
|
51
|
+
* @param {number} [data.PlannedAptNum] - FK to appointment.AptNum where appointment.AptStatus=Planned.
|
|
52
|
+
* @param {string} [data.DateTimeDue] - The due date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
53
|
+
* @param {string} [data.DateTimeCreated] - The created date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
54
|
+
* @param {string} [data.DateTimeSent] - The sent date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
55
|
+
* @param {string} [data.DateTimeRecd] - The received date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
56
|
+
* @param {string} [data.DateTimeChecked] - The checked date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
57
|
+
* @param {number} [data.ProvNum] - FK to provider.ProvNum.
|
|
58
|
+
* @param {string} [data.Instructions] - The text instructions for this labcase.
|
|
59
|
+
* @param {number} [data.LabFee] - This is used for tracking and informational purposes only. The fee is not used in any calculation.
|
|
60
|
+
* @param {string} [data.InvoiceNum] - This is an optional invoice number used for tracking and informational purposes only.
|
|
61
|
+
* @returns {Promise<LabCase>} - The updated lab case.
|
|
62
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
63
|
+
*/
|
|
64
|
+
updateLabCase({ LabCaseNum, LaboratoryNum, ProvNum, AptNum, PlannedAptNum, DateTimeDue, DateTimeCreated, DateTimeSent, DateTimeRecd, DateTimeChecked, Instructions, LabFee, InvoiceNum, }: UpdateLabCaseParams): Promise<LabCase>;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=labCases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labCases.d.ts","sourceRoot":"","sources":["../../src/api/labCases.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACL,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,OAAO,CAAC,UAAU,CAAa;gBAEnB,UAAU,EAAE,UAAU;IAIlC;;;;;OAKG;IACU,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAO7D;;;;;;;;;;QAUI;IACS,WAAW,CAAC,EACvB,MAAM,EACN,aAAa,EACb,MAAM,EACN,aAAa,EACb,OAAO,EACR,GAAE,iBAAsB,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAY9C;;;;;;;;;;;;;;;;;;OAkBG;IACU,aAAa,CAAC,EACzB,MAAM,EACN,aAAa,EACb,OAAO,EACP,MAAM,EACN,aAAa,EACb,WAAW,EACX,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,MAAM,EACN,UAAU,GACX,EAAG,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC;IAsB1C;;;;;;;;;;;;;;;;;;OAkBG;IACU,aAAa,CAAC,EACzB,UAAU,EACV,aAAa,EACb,OAAO,EACP,MAAM,EACN,aAAa,EACb,WAAW,EACX,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,MAAM,EACN,UAAU,GACX,EAAG,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC;CAqC3C"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class LabCases {
|
|
4
|
+
httpClient;
|
|
5
|
+
constructor(httpClient) {
|
|
6
|
+
this.httpClient = httpClient;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Fetch a single lab case by its ID.
|
|
10
|
+
* @param {number} LabCaseNum - The unique identifier for the LabCase.
|
|
11
|
+
* @returns {Promise<LabCase>} - The LabCase object.
|
|
12
|
+
* @throws {Error} - If `LabCaseNum` is not provided.
|
|
13
|
+
*/
|
|
14
|
+
async getLabCase(LabCaseNum) {
|
|
15
|
+
if (!LabCaseNum) {
|
|
16
|
+
throw new Error("LabCaseNum is required.");
|
|
17
|
+
}
|
|
18
|
+
return this.httpClient.get(`/labcases/${LabCaseNum}`);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Fetch multiple lab cases with optional filtering and pagination.
|
|
22
|
+
* @param {Object} params - The parameters for filtering and pagination.
|
|
23
|
+
* @param {number} [params.PatNum] - FK to patient.PatNum.
|
|
24
|
+
* @param {number} [params.LaboratoryNum] - FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
25
|
+
* @param {number} [params.AptNum] - FK to appointment.AptNum.
|
|
26
|
+
* @param {number} [params.PlannedAptNum] - FK to appointment.AptNum.
|
|
27
|
+
* @param {number} [params.ProvNum] - FK to provider.ProvNum.
|
|
28
|
+
* @param {number} [params.Offset] - Pagination offset for results.
|
|
29
|
+
* @returns {Promise<LabCase[]>} - A list of lab cases.
|
|
30
|
+
*/
|
|
31
|
+
async getLabCases({ PatNum, LaboratoryNum, AptNum, PlannedAptNum, ProvNum } = {}) {
|
|
32
|
+
const params = {
|
|
33
|
+
PatNum,
|
|
34
|
+
LaboratoryNum,
|
|
35
|
+
AptNum,
|
|
36
|
+
PlannedAptNum,
|
|
37
|
+
ProvNum
|
|
38
|
+
};
|
|
39
|
+
return this.httpClient.get("/labcases", params);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Create a new inssub.
|
|
43
|
+
* @param {Object} data - The details of InsSub to create.
|
|
44
|
+
* @param {number} data.PatNum - Required. FK to patient.PatNum.
|
|
45
|
+
* @param {number} data.LaboratoryNum - Required. FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
46
|
+
* @param {number} data.ProvNum - Required. FK to provider.ProvNum.
|
|
47
|
+
* @param {number} [data.AptNum] - Optional. FK to appointment.AptNum where appointment.AptStatus=Scheduled.
|
|
48
|
+
* @param {number} [data.PlannedAptNum] - Optional. FK to appointment.AptNum where appointment.AptStatus=Planned.
|
|
49
|
+
* @param {string} [data.DateTimeDue] - Optional. The due date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
50
|
+
* @param {string} [data.DateTimeCreated] - Optional. The created date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
51
|
+
* @param {string} [data.DateTimeSent] - Optional. The sent date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
52
|
+
* @param {string} [data.DateTimeRecd] - Optional. The received date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
53
|
+
* @param {string} [data.DateTimeChecked] - Optional. The checked date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
54
|
+
* @param {string} [data.Instructions] - Optional. The text instructions for this labcase.
|
|
55
|
+
* @param {number} [data.LabFee] - Optional. This is used for tracking and informational purposes only. The fee is not used in any calculation.
|
|
56
|
+
* @param {string} [data.InvoiceNum] - Optional. This is an optional invoice number used for tracking and informational purposes only.
|
|
57
|
+
* @returns {Promise<LabCase>} - The created lab case.
|
|
58
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
59
|
+
*/
|
|
60
|
+
async createLabCase({ PatNum, LaboratoryNum, ProvNum, AptNum, PlannedAptNum, DateTimeDue, DateTimeCreated, DateTimeSent, DateTimeRecd, DateTimeChecked, Instructions, LabFee, InvoiceNum, }) {
|
|
61
|
+
if (!PatNum || !LaboratoryNum || !ProvNum) {
|
|
62
|
+
throw new Error("Invalid data: PatNum, LaboratoryNum, and ProvNum are required.");
|
|
63
|
+
}
|
|
64
|
+
return this.httpClient.post("/labcases", {
|
|
65
|
+
PatNum,
|
|
66
|
+
LaboratoryNum,
|
|
67
|
+
ProvNum,
|
|
68
|
+
AptNum,
|
|
69
|
+
PlannedAptNum,
|
|
70
|
+
DateTimeDue,
|
|
71
|
+
DateTimeCreated,
|
|
72
|
+
DateTimeSent,
|
|
73
|
+
DateTimeRecd,
|
|
74
|
+
DateTimeChecked,
|
|
75
|
+
Instructions,
|
|
76
|
+
LabFee,
|
|
77
|
+
InvoiceNum,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Update an inssub.
|
|
82
|
+
* @param {Object} data - The details of lab case to update.
|
|
83
|
+
* @param {number} data.LabCaseNum - Required in the URL. The PK of the lab case.
|
|
84
|
+
* @param {number} [data.LaboratoryNum] - FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
85
|
+
* @param {number} [data.AptNum] - FK to appointment.AptNum where appointment.AptStatus=Scheduled.
|
|
86
|
+
* @param {number} [data.PlannedAptNum] - FK to appointment.AptNum where appointment.AptStatus=Planned.
|
|
87
|
+
* @param {string} [data.DateTimeDue] - The due date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
88
|
+
* @param {string} [data.DateTimeCreated] - The created date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
89
|
+
* @param {string} [data.DateTimeSent] - The sent date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
90
|
+
* @param {string} [data.DateTimeRecd] - The received date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
91
|
+
* @param {string} [data.DateTimeChecked] - The checked date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
92
|
+
* @param {number} [data.ProvNum] - FK to provider.ProvNum.
|
|
93
|
+
* @param {string} [data.Instructions] - The text instructions for this labcase.
|
|
94
|
+
* @param {number} [data.LabFee] - This is used for tracking and informational purposes only. The fee is not used in any calculation.
|
|
95
|
+
* @param {string} [data.InvoiceNum] - This is an optional invoice number used for tracking and informational purposes only.
|
|
96
|
+
* @returns {Promise<LabCase>} - The updated lab case.
|
|
97
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
98
|
+
*/
|
|
99
|
+
async updateLabCase({ LabCaseNum, LaboratoryNum, ProvNum, AptNum, PlannedAptNum, DateTimeDue, DateTimeCreated, DateTimeSent, DateTimeRecd, DateTimeChecked, Instructions, LabFee, InvoiceNum, }) {
|
|
100
|
+
if (!LabCaseNum || typeof LabCaseNum !== "number") {
|
|
101
|
+
throw new Error("Invalid data: A Valid LabCaseNum is required.");
|
|
102
|
+
}
|
|
103
|
+
return this.httpClient.put(`/labcases/${LabCaseNum}`, {
|
|
104
|
+
LaboratoryNum,
|
|
105
|
+
ProvNum,
|
|
106
|
+
AptNum,
|
|
107
|
+
PlannedAptNum,
|
|
108
|
+
DateTimeDue,
|
|
109
|
+
DateTimeCreated,
|
|
110
|
+
DateTimeSent,
|
|
111
|
+
DateTimeRecd,
|
|
112
|
+
DateTimeChecked,
|
|
113
|
+
Instructions,
|
|
114
|
+
LabFee,
|
|
115
|
+
InvoiceNum,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.default = LabCases;
|
package/dist/openDental.d.ts
CHANGED
|
@@ -89,6 +89,10 @@ declare class OpenDental {
|
|
|
89
89
|
* Create a new instance of the PatPlan API.
|
|
90
90
|
*/
|
|
91
91
|
static PatPlans(): PatPlans;
|
|
92
|
+
/**
|
|
93
|
+
* Create a new instance of the LabCases API.
|
|
94
|
+
*/
|
|
95
|
+
static LabCases(): PatPlans;
|
|
92
96
|
}
|
|
93
97
|
export { OpenDental };
|
|
94
98
|
//# 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,MAAM,eAAe,CAAC;AACpC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;
|
|
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,MAAM,eAAe,CAAC;AACpC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAGtC,cAAM,UAAU;IACd,OAAO,CAAC,MAAM,CAAC,UAAU,CAAa;IAEtC;;OAEG;WACW,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAWlE;;OAEG;WACa,YAAY;IAQ5B;;OAEG;WACa,QAAQ;IAOxB;;OAEG;WACW,YAAY;IAO1B;;SAEK;WACS,SAAS;IAOvB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,aAAa;IAO3B;;OAEG;WACW,OAAO;IAOrB;;OAEG;WACW,cAAc;IAO5B;;OAEG;WACa,SAAS;IAOzB;;OAEG;WACa,SAAS;IAOzB;;OAEG;WACa,WAAW;IAO3B;;OAEG;WACa,QAAQ;IAOxB;;OAEG;WACW,WAAW;IAOzB;;OAEG;WACW,gBAAgB;IAO9B;;OAEG;WACW,aAAa;IAO3B;;OAEG;WACW,OAAO;IAOrB;;OAEG;WACW,QAAQ;IAOtB;;OAEG;WACW,QAAQ;CAMvB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/openDental.js
CHANGED
|
@@ -188,5 +188,14 @@ class OpenDental {
|
|
|
188
188
|
}
|
|
189
189
|
return new patPlans_1.default(this.httpClient);
|
|
190
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* Create a new instance of the LabCases API.
|
|
193
|
+
*/
|
|
194
|
+
static LabCases() {
|
|
195
|
+
if (!this.httpClient) {
|
|
196
|
+
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
197
|
+
}
|
|
198
|
+
return new patPlans_1.default(this.httpClient);
|
|
199
|
+
}
|
|
191
200
|
}
|
|
192
201
|
exports.OpenDental = OpenDental;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an InsSub in the Open Dental system. Links an InsPlan to a Subscriber (patient.PatNum). Also, see PatPlans to indicate coverage.
|
|
3
|
+
* @see https://www.opendental.com/site/apilabcases.html
|
|
4
|
+
*/
|
|
5
|
+
export interface LabCase {
|
|
6
|
+
LabCaseNum?: number;
|
|
7
|
+
PatNum?: number;
|
|
8
|
+
LaboratoryNum?: number;
|
|
9
|
+
AptNum?: number;
|
|
10
|
+
PlannedAptNum?: number;
|
|
11
|
+
DateTimeDue?: string;
|
|
12
|
+
DateTimeCreated?: string;
|
|
13
|
+
DateTimeSent?: string;
|
|
14
|
+
DateTimeRecd?: string;
|
|
15
|
+
DateTimeChecked?: string;
|
|
16
|
+
ProvNum?: number;
|
|
17
|
+
Instructions?: string;
|
|
18
|
+
LabFee?: number;
|
|
19
|
+
DateTStamp?: string;
|
|
20
|
+
InvoiceNum?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Gets a list of labcases.
|
|
24
|
+
*/
|
|
25
|
+
export interface GetLabCasesParams {
|
|
26
|
+
PatNum?: number;
|
|
27
|
+
LaboratoryNum?: number;
|
|
28
|
+
AptNum?: number;
|
|
29
|
+
PlannedAptNum?: number;
|
|
30
|
+
ProvNum?: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Creates a labcase.
|
|
34
|
+
*/
|
|
35
|
+
export interface CreateLabCaseParams {
|
|
36
|
+
PatNum?: number;
|
|
37
|
+
LaboratoryNum?: number;
|
|
38
|
+
ProvNum?: number;
|
|
39
|
+
AptNum?: number;
|
|
40
|
+
PlannedAptNum?: number;
|
|
41
|
+
DateTimeDue?: string;
|
|
42
|
+
DateTimeCreated?: string;
|
|
43
|
+
DateTimeSent?: string;
|
|
44
|
+
DateTimeRecd?: string;
|
|
45
|
+
DateTimeChecked?: string;
|
|
46
|
+
Instructions?: string;
|
|
47
|
+
LabFee?: number;
|
|
48
|
+
InvoiceNum?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Updates a labcase.
|
|
52
|
+
*/
|
|
53
|
+
export interface UpdateLabCaseParams {
|
|
54
|
+
LabCaseNum?: number;
|
|
55
|
+
LaboratoryNum?: number;
|
|
56
|
+
ProvNum?: number;
|
|
57
|
+
AptNum?: number;
|
|
58
|
+
PlannedAptNum?: number;
|
|
59
|
+
DateTimeDue?: string;
|
|
60
|
+
DateTimeCreated?: string;
|
|
61
|
+
DateTimeSent?: string;
|
|
62
|
+
DateTimeRecd?: string;
|
|
63
|
+
DateTimeChecked?: string;
|
|
64
|
+
Instructions?: string;
|
|
65
|
+
LabFee?: number;
|
|
66
|
+
InvoiceNum?: string;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=labCaseTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labCaseTypes.d.ts","sourceRoot":"","sources":["../../src/types/labCaseTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,OAAO;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import HttpClient from "../utils/httpClient";
|
|
2
|
+
import {
|
|
3
|
+
LabCase,
|
|
4
|
+
GetLabCasesParams,
|
|
5
|
+
CreateLabCaseParams,
|
|
6
|
+
UpdateLabCaseParams,
|
|
7
|
+
} from "../types/labCaseTypes";
|
|
8
|
+
|
|
9
|
+
export default class LabCases {
|
|
10
|
+
private httpClient: HttpClient;
|
|
11
|
+
|
|
12
|
+
constructor(httpClient: HttpClient) {
|
|
13
|
+
this.httpClient = httpClient;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Fetch a single lab case by its ID.
|
|
18
|
+
* @param {number} LabCaseNum - The unique identifier for the LabCase.
|
|
19
|
+
* @returns {Promise<LabCase>} - The LabCase object.
|
|
20
|
+
* @throws {Error} - If `LabCaseNum` is not provided.
|
|
21
|
+
*/
|
|
22
|
+
public async getLabCase(LabCaseNum: number): Promise<LabCase> {
|
|
23
|
+
if (!LabCaseNum) {
|
|
24
|
+
throw new Error("LabCaseNum is required.");
|
|
25
|
+
}
|
|
26
|
+
return this.httpClient.get<LabCase>(`/labcases/${LabCaseNum}`);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Fetch multiple lab cases with optional filtering and pagination.
|
|
31
|
+
* @param {Object} params - The parameters for filtering and pagination.
|
|
32
|
+
* @param {number} [params.PatNum] - FK to patient.PatNum.
|
|
33
|
+
* @param {number} [params.LaboratoryNum] - FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
34
|
+
* @param {number} [params.AptNum] - FK to appointment.AptNum.
|
|
35
|
+
* @param {number} [params.PlannedAptNum] - FK to appointment.AptNum.
|
|
36
|
+
* @param {number} [params.ProvNum] - FK to provider.ProvNum.
|
|
37
|
+
* @param {number} [params.Offset] - Pagination offset for results.
|
|
38
|
+
* @returns {Promise<LabCase[]>} - A list of lab cases.
|
|
39
|
+
*/
|
|
40
|
+
public async getLabCases({
|
|
41
|
+
PatNum,
|
|
42
|
+
LaboratoryNum,
|
|
43
|
+
AptNum,
|
|
44
|
+
PlannedAptNum,
|
|
45
|
+
ProvNum
|
|
46
|
+
}: GetLabCasesParams = {}): Promise<LabCase[]> {
|
|
47
|
+
const params = {
|
|
48
|
+
PatNum,
|
|
49
|
+
LaboratoryNum,
|
|
50
|
+
AptNum,
|
|
51
|
+
PlannedAptNum,
|
|
52
|
+
ProvNum
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
return this.httpClient.get<LabCase[]>("/labcases", params);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Create a new inssub.
|
|
60
|
+
* @param {Object} data - The details of InsSub to create.
|
|
61
|
+
* @param {number} data.PatNum - Required. FK to patient.PatNum.
|
|
62
|
+
* @param {number} data.LaboratoryNum - Required. FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
63
|
+
* @param {number} data.ProvNum - Required. FK to provider.ProvNum.
|
|
64
|
+
* @param {number} [data.AptNum] - Optional. FK to appointment.AptNum where appointment.AptStatus=Scheduled.
|
|
65
|
+
* @param {number} [data.PlannedAptNum] - Optional. FK to appointment.AptNum where appointment.AptStatus=Planned.
|
|
66
|
+
* @param {string} [data.DateTimeDue] - Optional. The due date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
67
|
+
* @param {string} [data.DateTimeCreated] - Optional. The created date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
68
|
+
* @param {string} [data.DateTimeSent] - Optional. The sent date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
69
|
+
* @param {string} [data.DateTimeRecd] - Optional. The received date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
70
|
+
* @param {string} [data.DateTimeChecked] - Optional. The checked date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
71
|
+
* @param {string} [data.Instructions] - Optional. The text instructions for this labcase.
|
|
72
|
+
* @param {number} [data.LabFee] - Optional. This is used for tracking and informational purposes only. The fee is not used in any calculation.
|
|
73
|
+
* @param {string} [data.InvoiceNum] - Optional. This is an optional invoice number used for tracking and informational purposes only.
|
|
74
|
+
* @returns {Promise<LabCase>} - The created lab case.
|
|
75
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
76
|
+
*/
|
|
77
|
+
public async createLabCase({
|
|
78
|
+
PatNum,
|
|
79
|
+
LaboratoryNum,
|
|
80
|
+
ProvNum,
|
|
81
|
+
AptNum,
|
|
82
|
+
PlannedAptNum,
|
|
83
|
+
DateTimeDue,
|
|
84
|
+
DateTimeCreated,
|
|
85
|
+
DateTimeSent,
|
|
86
|
+
DateTimeRecd,
|
|
87
|
+
DateTimeChecked,
|
|
88
|
+
Instructions,
|
|
89
|
+
LabFee,
|
|
90
|
+
InvoiceNum,
|
|
91
|
+
} : CreateLabCaseParams): Promise<LabCase> {
|
|
92
|
+
if (!PatNum || !LaboratoryNum || !ProvNum) {
|
|
93
|
+
throw new Error("Invalid data: PatNum, LaboratoryNum, and ProvNum are required.");
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return this.httpClient.post<LabCase>("/labcases", {
|
|
97
|
+
PatNum,
|
|
98
|
+
LaboratoryNum,
|
|
99
|
+
ProvNum,
|
|
100
|
+
AptNum,
|
|
101
|
+
PlannedAptNum,
|
|
102
|
+
DateTimeDue,
|
|
103
|
+
DateTimeCreated,
|
|
104
|
+
DateTimeSent,
|
|
105
|
+
DateTimeRecd,
|
|
106
|
+
DateTimeChecked,
|
|
107
|
+
Instructions,
|
|
108
|
+
LabFee,
|
|
109
|
+
InvoiceNum,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Update an inssub.
|
|
115
|
+
* @param {Object} data - The details of lab case to update.
|
|
116
|
+
* @param {number} data.LabCaseNum - Required in the URL. The PK of the lab case.
|
|
117
|
+
* @param {number} [data.LaboratoryNum] - FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
118
|
+
* @param {number} [data.AptNum] - FK to appointment.AptNum where appointment.AptStatus=Scheduled.
|
|
119
|
+
* @param {number} [data.PlannedAptNum] - FK to appointment.AptNum where appointment.AptStatus=Planned.
|
|
120
|
+
* @param {string} [data.DateTimeDue] - The due date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
121
|
+
* @param {string} [data.DateTimeCreated] - The created date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
122
|
+
* @param {string} [data.DateTimeSent] - The sent date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
123
|
+
* @param {string} [data.DateTimeRecd] - The received date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
124
|
+
* @param {string} [data.DateTimeChecked] - The checked date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
125
|
+
* @param {number} [data.ProvNum] - FK to provider.ProvNum.
|
|
126
|
+
* @param {string} [data.Instructions] - The text instructions for this labcase.
|
|
127
|
+
* @param {number} [data.LabFee] - This is used for tracking and informational purposes only. The fee is not used in any calculation.
|
|
128
|
+
* @param {string} [data.InvoiceNum] - This is an optional invoice number used for tracking and informational purposes only.
|
|
129
|
+
* @returns {Promise<LabCase>} - The updated lab case.
|
|
130
|
+
* @throws {Error} - If required fields are missing or the API returns an error.
|
|
131
|
+
*/
|
|
132
|
+
public async updateLabCase({
|
|
133
|
+
LabCaseNum,
|
|
134
|
+
LaboratoryNum,
|
|
135
|
+
ProvNum,
|
|
136
|
+
AptNum,
|
|
137
|
+
PlannedAptNum,
|
|
138
|
+
DateTimeDue,
|
|
139
|
+
DateTimeCreated,
|
|
140
|
+
DateTimeSent,
|
|
141
|
+
DateTimeRecd,
|
|
142
|
+
DateTimeChecked,
|
|
143
|
+
Instructions,
|
|
144
|
+
LabFee,
|
|
145
|
+
InvoiceNum,
|
|
146
|
+
} : UpdateLabCaseParams): Promise<LabCase> {
|
|
147
|
+
if (!LabCaseNum || typeof LabCaseNum !== "number") {
|
|
148
|
+
throw new Error("Invalid data: A Valid LabCaseNum is required.");
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return this.httpClient.put<LabCase>(`/labcases/${LabCaseNum}`, {
|
|
152
|
+
LaboratoryNum,
|
|
153
|
+
ProvNum,
|
|
154
|
+
AptNum,
|
|
155
|
+
PlannedAptNum,
|
|
156
|
+
DateTimeDue,
|
|
157
|
+
DateTimeCreated,
|
|
158
|
+
DateTimeSent,
|
|
159
|
+
DateTimeRecd,
|
|
160
|
+
DateTimeChecked,
|
|
161
|
+
Instructions,
|
|
162
|
+
LabFee,
|
|
163
|
+
InvoiceNum,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Delete an inssub entry. Will fail if any PatPlans exist. You can obtain the InsSubNum from FamilyModules GET Insurance.
|
|
170
|
+
* @param {number} LabCaseNum - Required: The unique identifier of the inssub to delete.
|
|
171
|
+
* @returns {Promise<void>} - Resolves when the discount plan sub is deleted.
|
|
172
|
+
* @throws {Error} - If `LabCaseNum` is not valid or the API returns an error.
|
|
173
|
+
*/
|
|
174
|
+
/*
|
|
175
|
+
public async deleteLabCase(LabCaseNum: number): Promise<void> {
|
|
176
|
+
if (!LabCaseNum || typeof LabCaseNum !== "number") {
|
|
177
|
+
throw new Error("Invalid parameter: LabCaseNum must be a valid number.");
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return this.httpClient.delete<void>(`/labcases/${LabCaseNum}`);
|
|
181
|
+
}
|
|
182
|
+
*/
|
|
183
|
+
}
|
package/src/openDental.ts
CHANGED
|
@@ -16,6 +16,7 @@ import DiscountPlanSubs from "./api/discountPlanSubs";
|
|
|
16
16
|
import FamilyModules from "./api/familyModules";
|
|
17
17
|
import InsSubs from "./api/insSubs";
|
|
18
18
|
import PatPlans from "./api/patPlans";
|
|
19
|
+
import LabCases from "./api/labCases";
|
|
19
20
|
|
|
20
21
|
class OpenDental {
|
|
21
22
|
private static httpClient: HttpClient;
|
|
@@ -204,6 +205,16 @@ class OpenDental {
|
|
|
204
205
|
}
|
|
205
206
|
return new PatPlans(this.httpClient);
|
|
206
207
|
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Create a new instance of the LabCases API.
|
|
211
|
+
*/
|
|
212
|
+
public static LabCases() {
|
|
213
|
+
if (!this.httpClient) {
|
|
214
|
+
throw new Error("OpenDental not initialized. Call OpenDental.initialize() first.");
|
|
215
|
+
}
|
|
216
|
+
return new PatPlans(this.httpClient);
|
|
217
|
+
}
|
|
207
218
|
}
|
|
208
219
|
|
|
209
220
|
export { OpenDental };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an InsSub in the Open Dental system. Links an InsPlan to a Subscriber (patient.PatNum). Also, see PatPlans to indicate coverage.
|
|
3
|
+
* @see https://www.opendental.com/site/apilabcases.html
|
|
4
|
+
*/
|
|
5
|
+
export interface LabCase {
|
|
6
|
+
LabCaseNum?: number; //PK
|
|
7
|
+
PatNum?: number; //FK to patient.PatNum.
|
|
8
|
+
LaboratoryNum?: number; //FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
9
|
+
AptNum?: number; //FK to appointment.AptNum.
|
|
10
|
+
PlannedAptNum?: number; //FK to appointment.AptNum.
|
|
11
|
+
DateTimeDue?: string; //The due date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
12
|
+
DateTimeCreated?: string; // When the labcase was created. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
13
|
+
DateTimeSent?: string; //The time that the labcase actually went out to the lab. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
14
|
+
DateTimeRecd?: string; //Date/time received back from the lab. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
15
|
+
DateTimeChecked?: string; //Date/time that quality was checked. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
16
|
+
ProvNum?: number; //FK to provider.ProvNum.
|
|
17
|
+
Instructions?: string; //The text instructions for this labcase.
|
|
18
|
+
LabFee?: number; //This is used for tracking and informational purposes only. The fee is not used in any calculation.
|
|
19
|
+
DateTStamp?: string; //String in "yyyy-MM-dd HH:mm:ss" format
|
|
20
|
+
InvoiceNum?: string; //This is an optional invoice number used for tracking and informational purposes only.
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Gets a list of labcases.
|
|
25
|
+
*/
|
|
26
|
+
export interface GetLabCasesParams {
|
|
27
|
+
PatNum?: number; //FK to patient.PatNum.
|
|
28
|
+
LaboratoryNum?: number; //FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
29
|
+
AptNum?: number; //FK to appointment.AptNum.
|
|
30
|
+
PlannedAptNum?: number; //FK to appointment.AptNum.
|
|
31
|
+
ProvNum?: number; //FK to provider.ProvNum.
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Creates a labcase.
|
|
36
|
+
*/
|
|
37
|
+
export interface CreateLabCaseParams {
|
|
38
|
+
PatNum?: number; //Required. FK to patient.PatNum.
|
|
39
|
+
LaboratoryNum?: number; //Required. FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
40
|
+
ProvNum?: number; //Required. FK to provider.ProvNum.
|
|
41
|
+
AptNum?: number; //Optional. FK to appointment.AptNum.
|
|
42
|
+
PlannedAptNum?: number; //Optional. FK to appointment.AptNum.
|
|
43
|
+
DateTimeDue?: string; //Optional. The due date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
44
|
+
DateTimeCreated?: string; //Optional. When the labcase was created. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
45
|
+
DateTimeSent?: string; //Optional. The time that the labcase actually went out to the lab. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
46
|
+
DateTimeRecd?: string; //Optional. Date/time received back from the lab. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
47
|
+
DateTimeChecked?: string; //Optional. Date/time that quality was checked. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
48
|
+
Instructions?: string; //Optional. The text instructions for this labcase.
|
|
49
|
+
LabFee?: number; //Optional. This is used for tracking and informational purposes only. The fee is not used in any calculation.
|
|
50
|
+
InvoiceNum?: string; //Optional. This is an optional invoice number used for tracking and informational purposes only.
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Updates a labcase.
|
|
55
|
+
*/
|
|
56
|
+
export interface UpdateLabCaseParams {
|
|
57
|
+
LabCaseNum?: number; //Required in the URL.
|
|
58
|
+
LaboratoryNum?: number; //Required. FK to laboratory.LaboratoryNum. The lab that the case gets sent to.
|
|
59
|
+
ProvNum?: number; //Required. FK to provider.ProvNum.
|
|
60
|
+
AptNum?: number; //Optional. FK to appointment.AptNum.
|
|
61
|
+
PlannedAptNum?: number; //Optional. FK to appointment.AptNum.
|
|
62
|
+
DateTimeDue?: string; //Optional. The due date that is put on the labslip. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
63
|
+
DateTimeCreated?: string; //Optional. When the labcase was created. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
64
|
+
DateTimeSent?: string; //Optional. The time that the labcase actually went out to the lab. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
65
|
+
DateTimeRecd?: string; //Optional. Date/time received back from the lab. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
66
|
+
DateTimeChecked?: string; //Optional. Date/time that quality was checked. String in "yyyy-MM-dd HH:mm:ss" format.
|
|
67
|
+
Instructions?: string; //Optional. The text instructions for this labcase.
|
|
68
|
+
LabFee?: number; //Optional. This is used for tracking and informational purposes only. The fee is not used in any calculation.
|
|
69
|
+
InvoiceNum?: string; //Optional. This is an optional invoice number used for tracking and informational purposes only.
|
|
70
|
+
}
|
|
71
|
+
|