fluent-cerner-js 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 +6 -8
- 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 +6 -8
- 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/openApplicationAsync.spec.ts +4 -4
- package/src/openApplicationAsync.ts +2 -3
- package/src/openOrganizerTabAsync.spec.ts +22 -28
- package/src/openPatientTabAsync.spec.ts +23 -29
- 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.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -360,8 +360,8 @@ function generateOpenApplicationArgumentString(args) {
|
|
|
360
360
|
const quickOpen = qo;
|
|
361
361
|
const quickOpenStr = quickOpen && isTab && !isOrgLevel ? "+" : "";
|
|
362
362
|
const surroundStr = isTab ? "^" : "";
|
|
363
|
-
return `/${arg}=${surroundStr}${value}${quickOpenStr}${surroundStr}`;
|
|
364
|
-
}).join(" ")
|
|
363
|
+
return `/${arg.toUpperCase()}=${surroundStr}${value}${quickOpenStr}${surroundStr}`;
|
|
364
|
+
}).join(" ");
|
|
365
365
|
}
|
|
366
366
|
var modeMap = /* @__PURE__ */ new Map();
|
|
367
367
|
modeMap.set("by solution name", 0);
|
|
@@ -475,7 +475,8 @@ var submitOrdersAsync = async (patientId, encounterId, orders, opts) => {
|
|
|
475
475
|
inPowerChart: true,
|
|
476
476
|
status: "success",
|
|
477
477
|
response: null,
|
|
478
|
-
ordersPlaced: null
|
|
478
|
+
ordersPlaced: null,
|
|
479
|
+
rawResponse: null
|
|
479
480
|
};
|
|
480
481
|
if (dryRun) {
|
|
481
482
|
retVal.status = "dry run";
|
|
@@ -486,6 +487,7 @@ var submitOrdersAsync = async (patientId, encounterId, orders, opts) => {
|
|
|
486
487
|
"ORDERS",
|
|
487
488
|
eventString
|
|
488
489
|
);
|
|
490
|
+
retVal.rawResponse = response;
|
|
489
491
|
if (response === null) {
|
|
490
492
|
retVal.status = "failed";
|
|
491
493
|
return retVal;
|
|
@@ -873,11 +875,7 @@ async function signOrdersAsync(dcof, moewHandle) {
|
|
|
873
875
|
var submitPowerOrdersAsync = async (patientId, encounterId, orders, opts, moewFlags, targetTab) => {
|
|
874
876
|
opts = !opts ? { signSilently: false, interactionChecking: true } : opts;
|
|
875
877
|
moewFlags = !moewFlags ? [] : moewFlags;
|
|
876
|
-
const {
|
|
877
|
-
dwCustomizeFlag,
|
|
878
|
-
dwTabFlag,
|
|
879
|
-
dwTabDisplayOptionsFlag
|
|
880
|
-
} = calculateMOEWBitmask(targetTab || "orders tab", moewFlags);
|
|
878
|
+
const { dwCustomizeFlag, dwTabFlag, dwTabDisplayOptionsFlag } = calculateMOEWBitmask(targetTab || "orders tab", moewFlags);
|
|
881
879
|
let retData = {
|
|
882
880
|
inPowerChart: true,
|
|
883
881
|
status: "success",
|