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.d.ts CHANGED
@@ -296,6 +296,7 @@ type SubmitOrderAsyncReturn = MPageEventReturn & {
296
296
  oid: number;
297
297
  display: string;
298
298
  }> | null;
299
+ rawResponse: string | null;
299
300
  };
300
301
  type Order = {
301
302
  id: number;
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(" ").toUpperCase();
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",