fluent-cerner-js 1.1.1-0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +20 -9
- package/src/getValidEncountersAsync.ts +1 -1
- package/src/launchClinicalNoteAsync.ts +5 -3
- package/src/openOrganizerTabAsync.spec.ts +21 -27
- package/src/openPatientTabAsync.spec.ts +21 -27
- package/src/submitOrdersAsync.spec.ts +53 -67
- package/src/submitOrdersAsync.ts +5 -0
- package/src/submitPowerOrdersAsync.spec.ts +5 -1
- package/src/submitPowerOrdersAsync.ts +3 -6
- package/src/utils/addNewOrdersToScratchPadAsync.ts +1 -1
- package/src/utils/addPowerPlanWithDetailsAsync.ts +1 -1
- package/src/utils/calculateMOEWBitmask.ts +1 -1
- package/src/utils/getOrdersPlacedAsync.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -514,7 +514,8 @@ var submitOrdersAsync = async (patientId, encounterId, orders, opts) => {
|
|
|
514
514
|
inPowerChart: true,
|
|
515
515
|
status: "success",
|
|
516
516
|
response: null,
|
|
517
|
-
ordersPlaced: null
|
|
517
|
+
ordersPlaced: null,
|
|
518
|
+
rawResponse: null
|
|
518
519
|
};
|
|
519
520
|
if (dryRun) {
|
|
520
521
|
retVal.status = "dry run";
|
|
@@ -525,6 +526,7 @@ var submitOrdersAsync = async (patientId, encounterId, orders, opts) => {
|
|
|
525
526
|
"ORDERS",
|
|
526
527
|
eventString
|
|
527
528
|
);
|
|
529
|
+
retVal.rawResponse = response;
|
|
528
530
|
if (response === null) {
|
|
529
531
|
retVal.status = "failed";
|
|
530
532
|
return retVal;
|
|
@@ -912,11 +914,7 @@ async function signOrdersAsync(dcof, moewHandle) {
|
|
|
912
914
|
var submitPowerOrdersAsync = async (patientId, encounterId, orders, opts, moewFlags, targetTab) => {
|
|
913
915
|
opts = !opts ? { signSilently: false, interactionChecking: true } : opts;
|
|
914
916
|
moewFlags = !moewFlags ? [] : moewFlags;
|
|
915
|
-
const {
|
|
916
|
-
dwCustomizeFlag,
|
|
917
|
-
dwTabFlag,
|
|
918
|
-
dwTabDisplayOptionsFlag
|
|
919
|
-
} = calculateMOEWBitmask(targetTab || "orders tab", moewFlags);
|
|
917
|
+
const { dwCustomizeFlag, dwTabFlag, dwTabDisplayOptionsFlag } = calculateMOEWBitmask(targetTab || "orders tab", moewFlags);
|
|
920
918
|
let retData = {
|
|
921
919
|
inPowerChart: true,
|
|
922
920
|
status: "success",
|