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 CHANGED
@@ -399,8 +399,8 @@ function generateOpenApplicationArgumentString(args) {
399
399
  const quickOpen = qo;
400
400
  const quickOpenStr = quickOpen && isTab && !isOrgLevel ? "+" : "";
401
401
  const surroundStr = isTab ? "^" : "";
402
- return `/${arg}=${surroundStr}${value}${quickOpenStr}${surroundStr}`;
403
- }).join(" ").toUpperCase();
402
+ return `/${arg.toUpperCase()}=${surroundStr}${value}${quickOpenStr}${surroundStr}`;
403
+ }).join(" ");
404
404
  }
405
405
  var modeMap = /* @__PURE__ */ new Map();
406
406
  modeMap.set("by solution name", 0);
@@ -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",