primarycare-binder 1.1.67 → 1.1.71

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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +61 -111
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -12411,6 +12411,7 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonF
12411
12411
  db_name: dbName,
12412
12412
  entity: "CodingMaster",
12413
12413
  filter: "CodingMaster.Type=='".concat(payload.type, "' && CodingMaster.activestatus==true"),
12414
+ sort: "CodingMaster.display ASC",
12414
12415
  return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
12415
12416
  };
12416
12417
  _context16.next = 6;
@@ -21902,7 +21903,7 @@ var visitStatsApiActions = {
21902
21903
  var visitStatsApiSlice$1 = visitStatsApiSlice.reducer;
21903
21904
 
21904
21905
  var queries$a = {
21905
- relationship: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='RELATIONSHIP'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
21906
+ relationship: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='RELATIONSHIP' && CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
21906
21907
  symptoms: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"SymptomsMapping\",\n \"return_fields\": \"SymptomsMapping\"\n }"),
21907
21908
  Severity: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='CCSEVERITY'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
21908
21909
  bodySite: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='CCBODYSITE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
@@ -22879,7 +22880,7 @@ var queries$9 = {
22879
22880
  Manifestation: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='MENIFESTATION'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
22880
22881
  GradeType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GRADETYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
22881
22882
  Assesment: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ASSESMENTREF'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
22882
- GradeCode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GRADETYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
22883
+ GradeCode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GRADECODE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
22883
22884
  deleteDiagnosis: function deleteDiagnosis(id) {
22884
22885
  return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CA_Diagnosis\",\n \"filter\": \"CA_Diagnosis._id =='").concat(id, "'\"\n }");
22885
22886
  }
@@ -24341,8 +24342,8 @@ var generateJSON$6 = function generateJSON(payload, orgId) {
24341
24342
  "ivInfusionRateUOM": (_payload$ivInfusionRa = (_payload$ivInfusionRa2 = payload.ivInfusionRateUOM) === null || _payload$ivInfusionRa2 === void 0 ? void 0 : _payload$ivInfusionRa2.value) !== null && _payload$ivInfusionRa !== void 0 ? _payload$ivInfusionRa : "",
24342
24343
  "dosageDurationValue": payload.dosetime ? parseInt(payload.dosetime) : 0,
24343
24344
  "dosageDurationUOM": (_payload$doseOption$v = (_payload$doseOption = payload.doseOption) === null || _payload$doseOption === void 0 ? void 0 : _payload$doseOption.value) !== null && _payload$doseOption$v !== void 0 ? _payload$doseOption$v : "",
24344
- "UseAsFreqDose": payload.UseAsFreqDose ? getUseAsFreqDose$1(payload.UseAsFreqDose, payload.unitsTypes) : [],
24345
- "useAsTaperedDose": payload.useAsTaperedDose ? getuseAsTaperedDose$1(payload.useAsTaperedDose) : [],
24345
+ // "UseAsFreqDose": payload.UseAsFreqDose ? getUseAsFreqDose(payload.UseAsFreqDose, payload.unitsTypes) : [],
24346
+ // "useAsTaperedDose": payload.useAsTaperedDose ? getuseAsTaperedDose(payload.useAsTaperedDose) : [],
24346
24347
  "useAsSlidingScaleDose": payload.useAsSlidingScaleDose ? getuseAsSlidingScaleDose$1(payload.useAsSlidingScaleDose) : [],
24347
24348
  "occurStartDateTime": (_payload$occurStartDa = payload.occurStartDateTime) !== null && _payload$occurStartDa !== void 0 ? _payload$occurStartDa : 0,
24348
24349
  "occurEndDateTime": (_payload$occurEndDate = payload.occurEndDateTime) !== null && _payload$occurEndDate !== void 0 ? _payload$occurEndDate : 0,
@@ -24386,63 +24387,6 @@ var generateJSON$6 = function generateJSON(payload, orgId) {
24386
24387
  })];
24387
24388
  };
24388
24389
 
24389
- var getUseAsFreqDose$1 = function getUseAsFreqDose(list, fre) {
24390
- var arr = [];
24391
- list.map(function (val, i) {
24392
- if ((fre === null || fre === void 0 ? void 0 : fre.label) === "EVERY THURSDAY AND FRIDAY") {
24393
- var _val$, _val$2, _val$2$unit$value, _val$3, _val$3$unit, _val$adminFrDay, _val$adminToDay, _val$4, _val$4$value;
24394
-
24395
- arr.push({
24396
- // "frqGrpId": val.frqGrpId ?? 0,
24397
- "dispSeqNo": i + 1,
24398
- // "adminDate": val.adminDate ?? 0,
24399
- // "adminTime": "time",
24400
- "adminDosageQty": (val === null || val === void 0 ? void 0 : (_val$ = val[2]) === null || _val$ === void 0 ? void 0 : _val$.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$2 = val[2]) === null || _val$2 === void 0 ? void 0 : _val$2.value) : 0,
24401
- "adminDosageUOM": (_val$2$unit$value = val === null || val === void 0 ? void 0 : (_val$3 = val[2]) === null || _val$3 === void 0 ? void 0 : (_val$3$unit = _val$3.unit) === null || _val$3$unit === void 0 ? void 0 : _val$3$unit.value) !== null && _val$2$unit$value !== void 0 ? _val$2$unit$value : "",
24402
- "adminFrDay": (_val$adminFrDay = val.adminFrDay) !== null && _val$adminFrDay !== void 0 ? _val$adminFrDay : 0,
24403
- "adminToDay": (_val$adminToDay = val.adminToDay) !== null && _val$adminToDay !== void 0 ? _val$adminToDay : 0,
24404
- "adminDosageFreqCode": val === null || val === void 0 ? void 0 : (_val$4 = val[1]) === null || _val$4 === void 0 ? void 0 : (_val$4$value = _val$4.value) === null || _val$4$value === void 0 ? void 0 : _val$4$value.value
24405
- });
24406
- }
24407
-
24408
- if ((fre === null || fre === void 0 ? void 0 : fre.label) === "Twice Daily") {
24409
- var _val$5, _val$6, _val$7, _val$1$unit$value, _val$8, _val$8$unit;
24410
-
24411
- arr.push({
24412
- // "frqGrpId": val.frqGrpId ?? 0,
24413
- "dispSeqNo": i + 1,
24414
- // "adminDate": val.adminDate ?? 0,
24415
- "adminTime": val === null || val === void 0 ? void 0 : (_val$5 = val[0]) === null || _val$5 === void 0 ? void 0 : _val$5.value,
24416
- "adminDosageQty": (val === null || val === void 0 ? void 0 : (_val$6 = val[1]) === null || _val$6 === void 0 ? void 0 : _val$6.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$7 = val[1]) === null || _val$7 === void 0 ? void 0 : _val$7.value) : 0,
24417
- "adminDosageUOM": (_val$1$unit$value = val === null || val === void 0 ? void 0 : (_val$8 = val[1]) === null || _val$8 === void 0 ? void 0 : (_val$8$unit = _val$8.unit) === null || _val$8$unit === void 0 ? void 0 : _val$8$unit.value) !== null && _val$1$unit$value !== void 0 ? _val$1$unit$value : "" // "adminDosageInstruction": val.adminDosageInstruction ?? ""
24418
-
24419
- });
24420
- }
24421
- });
24422
- return arr;
24423
- };
24424
-
24425
- var getuseAsTaperedDose$1 = function getuseAsTaperedDose(list) {
24426
- var arr = [];
24427
- list.map(function (val, i) {
24428
- var _val$9, _val$10, _val$11, _val$12, _val$13, _val$14, _val$15, _val$16, _val$4$value$value, _val$17, _val$17$value, _val$18, _val$19, _val$5$unit$value, _val$20;
24429
-
24430
- arr.push({
24431
- // "tdGrpId": val.tdGrpId ?? 0,
24432
- "dispSeqNo": i + 1,
24433
- "adminFrDay": (val === null || val === void 0 ? void 0 : (_val$9 = val[0]) === null || _val$9 === void 0 ? void 0 : _val$9.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$10 = val[0]) === null || _val$10 === void 0 ? void 0 : _val$10.value) : 0,
24434
- "adminToDay": (val === null || val === void 0 ? void 0 : (_val$11 = val[1]) === null || _val$11 === void 0 ? void 0 : _val$11.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$12 = val[1]) === null || _val$12 === void 0 ? void 0 : _val$12.value) : 0,
24435
- "adminFrDate": (val === null || val === void 0 ? void 0 : (_val$13 = val[2]) === null || _val$13 === void 0 ? void 0 : _val$13.value) ? moment$1(val === null || val === void 0 ? void 0 : (_val$14 = val[2]) === null || _val$14 === void 0 ? void 0 : _val$14.value, "DD-MM-YYYY,h:mm a").unix() : 0,
24436
- "adminToDate": (val === null || val === void 0 ? void 0 : (_val$15 = val[3]) === null || _val$15 === void 0 ? void 0 : _val$15.value) ? moment$1(val === null || val === void 0 ? void 0 : (_val$16 = val[3]) === null || _val$16 === void 0 ? void 0 : _val$16.value, "DD-MM-YYYY,h:mm a").unix() : 0,
24437
- "adminDosageFreqCode": (_val$4$value$value = val === null || val === void 0 ? void 0 : (_val$17 = val[4]) === null || _val$17 === void 0 ? void 0 : (_val$17$value = _val$17.value) === null || _val$17$value === void 0 ? void 0 : _val$17$value.value) !== null && _val$4$value$value !== void 0 ? _val$4$value$value : "",
24438
- "adminDosageStrength": (val === null || val === void 0 ? void 0 : (_val$18 = val[5]) === null || _val$18 === void 0 ? void 0 : _val$18.value) ? parseInt(val === null || val === void 0 ? void 0 : (_val$19 = val[5]) === null || _val$19 === void 0 ? void 0 : _val$19.value) : 0,
24439
- "adminDosageStrengthUOM": (_val$5$unit$value = val === null || val === void 0 ? void 0 : (_val$20 = val[5]) === null || _val$20 === void 0 ? void 0 : _val$20.unit.value) !== null && _val$5$unit$value !== void 0 ? _val$5$unit$value : "" // "adminDosageInstruction": val.adminDosageInstruction ?? ""
24440
-
24441
- });
24442
- });
24443
- return arr;
24444
- };
24445
-
24446
24390
  var getuseAsSlidingScaleDose$1 = function getuseAsSlidingScaleDose(list) {
24447
24391
  var arr = [];
24448
24392
  list.map(function (val) {
@@ -25343,6 +25287,7 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
25343
25287
  defaultValue,
25344
25288
  months,
25345
25289
  orgid,
25290
+ stateValues,
25346
25291
  stateDatakey,
25347
25292
  orgData,
25348
25293
  component,
@@ -25357,8 +25302,9 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
25357
25302
  payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
25358
25303
  _ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
25359
25304
  _context4.prev = 2;
25360
- defaultValue = payload.defaultValue, months = payload.months, orgid = payload.orgid; // let stateValues = Object.keys(payload.dynamicValue);
25305
+ defaultValue = payload.defaultValue, months = payload.months, orgid = payload.orgid; //let stateValues = Object.keys(payload.dynamicValue);
25361
25306
 
25307
+ stateValues = [];
25362
25308
  stateDatakey = []; // stateValues.filter((val, i) => {
25363
25309
  // if (i % 2 === 0) {
25364
25310
  // stateDatakey.push(val);
@@ -25368,18 +25314,18 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
25368
25314
  stateDatakey = Object.keys(payload.dynamicValue).filter(function (e) {
25369
25315
  return /^[A-Z0-9]+$/.exec(e);
25370
25316
  });
25371
- stateValues.filter(function (val, i) {
25317
+ stateValues === null || stateValues === void 0 ? void 0 : stateValues.filter(function (val, i) {
25372
25318
  // if (i % 2 === 0) {
25373
25319
  if (!(val.endsWith("uom") || val.endsWith("error") || val.endsWith("normalorabnormal"))) {
25374
25320
  stateDatakey.push(val);
25375
25321
  }
25376
25322
  });
25377
- _context4.next = 9;
25323
+ _context4.next = 10;
25378
25324
  return fetchData$3({
25379
25325
  body: vitalsQueries.getOrganizationId(payload.orgid)
25380
25326
  }, __readDocumentUrl__);
25381
25327
 
25382
- case 9:
25328
+ case 10:
25383
25329
  orgData = _context4.sent;
25384
25330
  component = [];
25385
25331
  stateDatakey.map(function (val) {
@@ -25402,22 +25348,20 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
25402
25348
  encounterid: payload.encounterid,
25403
25349
  component: component
25404
25350
  };
25405
- _context4.next = 15;
25351
+ _context4.next = 16;
25406
25352
  return fetchData$3({
25407
25353
  body: JSON.stringify(vitalsQueries.savedPayload(payloadData, payload.editId))
25408
25354
  }, __uspsertUrl__);
25409
25355
 
25410
- case 15:
25356
+ case 16:
25411
25357
  saveddata = _context4.sent;
25412
25358
  return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
25413
25359
  data: saveddata
25414
25360
  }));
25415
25361
 
25416
- case 19:
25417
- _context4.prev = 19;
25362
+ case 20:
25363
+ _context4.prev = 20;
25418
25364
  _context4.t0 = _context4["catch"](2);
25419
- // ;
25420
- alert(_context4.t0.message);
25421
25365
  return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
25422
25366
  message: _context4.t0.message
25423
25367
  })));
@@ -25427,7 +25371,7 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
25427
25371
  return _context4.stop();
25428
25372
  }
25429
25373
  }
25430
- }, _callee4, null, [[2, 19]]);
25374
+ }, _callee4, null, [[2, 20]]);
25431
25375
  })));
25432
25376
  var GET_VITALS_BASED_ENCOUNTER = createAsyncThunk("VitalsApiSlice/vitalsBasedEncounter", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
25433
25377
  var payload,
@@ -30757,7 +30701,13 @@ var queries$5 = {
30757
30701
  DosageForm: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DosageForm\",\n \"return_fields\": \"DosageForm\"\n }"),
30758
30702
  FrequencyMaster: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"FrequencyMaster\",\n \"filter\": \"FrequencyMaster.status==true\",\n \"return_fields\": \"FrequencyMaster\"\n }"),
30759
30703
  DurationType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\":\"LOWER(DOCUMENT(DrugUOM.UOMType).display) =='time' and DrugUOM.activestatus==true and DrugUOM.status==true\",\n \"return_fields\": \"DrugUOM\"\n }"),
30760
- Priority: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='PRIORITY'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
30704
+ // Priority: `{
30705
+ // "db_name": "${dbName}",
30706
+ // "entity": "CodeableConceptMaster",
30707
+ // "filter": "CodeableConceptMaster.Type=='PRIORITY'",
30708
+ // "return_fields": "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
30709
+ // }`,
30710
+ Priority: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type == 'PRIORITY' && CodingMaster.status == true && CodingMaster.activestatus == true\",\n \"return_fields\": \"KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','shortdesc','longdesc','activestatus')\",\n \"sort\": \"CodingMaster.display\"\n }"),
30761
30711
  DrugCategory: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugCategory\",\n \"return_fields\": \"DrugCategory\"\n }"),
30762
30712
  OrderNature: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ORDERNATURE'&& CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
30763
30713
  OrderMode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ORDERMODE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
@@ -31521,13 +31471,13 @@ var PRIORITY_MASTER = createAsyncThunk("MedicationMastersSlice/Priority_masters"
31521
31471
  data = _context14.sent;
31522
31472
  arr = [];
31523
31473
  data.result.map(function (val) {
31524
- var _val$coding$0$_id, _val$coding2, _val$coding2$, _val$coding$0$display, _val$coding3, _val$coding3$;
31474
+ var _val$_id, _val$_id2, _val$display, _val$id;
31525
31475
 
31526
31476
  arr.push({
31527
- value: val._id,
31528
- masterId: (_val$coding$0$_id = val === null || val === void 0 ? void 0 : (_val$coding2 = val.coding) === null || _val$coding2 === void 0 ? void 0 : (_val$coding2$ = _val$coding2[0]) === null || _val$coding2$ === void 0 ? void 0 : _val$coding2$._id) !== null && _val$coding$0$_id !== void 0 ? _val$coding$0$_id : "",
31529
- label: (_val$coding$0$display = val === null || val === void 0 ? void 0 : (_val$coding3 = val.coding) === null || _val$coding3 === void 0 ? void 0 : (_val$coding3$ = _val$coding3[0]) === null || _val$coding3$ === void 0 ? void 0 : _val$coding3$.display) !== null && _val$coding$0$display !== void 0 ? _val$coding$0$display : "",
31530
- id: val.id
31477
+ value: (_val$_id = val._id) !== null && _val$_id !== void 0 ? _val$_id : "",
31478
+ masterId: (_val$_id2 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id2 !== void 0 ? _val$_id2 : "",
31479
+ label: (_val$display = val === null || val === void 0 ? void 0 : val.display) !== null && _val$display !== void 0 ? _val$display : "",
31480
+ id: (_val$id = val.id) !== null && _val$id !== void 0 ? _val$id : ""
31531
31481
  });
31532
31482
  });
31533
31483
  return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -31622,11 +31572,11 @@ var ORDERNATURE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderNature_ma
31622
31572
  data = _context16.sent;
31623
31573
  arr = [];
31624
31574
  data.result.map(function (val) {
31625
- var _val$coding$0$display2, _val$coding4;
31575
+ var _val$coding$0$display, _val$coding2;
31626
31576
 
31627
31577
  arr.push({
31628
31578
  value: val._id,
31629
- label: (_val$coding$0$display2 = (_val$coding4 = val.coding) === null || _val$coding4 === void 0 ? void 0 : _val$coding4[0].display) !== null && _val$coding$0$display2 !== void 0 ? _val$coding$0$display2 : "",
31579
+ label: (_val$coding$0$display = (_val$coding2 = val.coding) === null || _val$coding2 === void 0 ? void 0 : _val$coding2[0].display) !== null && _val$coding$0$display !== void 0 ? _val$coding$0$display : "",
31630
31580
  id: val.id
31631
31581
  });
31632
31582
  });
@@ -31672,11 +31622,11 @@ var ORDERMODE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderMode_master
31672
31622
  data = _context17.sent;
31673
31623
  arr = [];
31674
31624
  data.result.map(function (val) {
31675
- var _val$coding$0$display3, _val$coding5;
31625
+ var _val$coding$0$display2, _val$coding3;
31676
31626
 
31677
31627
  arr.push({
31678
31628
  value: val._id,
31679
- label: (_val$coding$0$display3 = (_val$coding5 = val.coding) === null || _val$coding5 === void 0 ? void 0 : _val$coding5[0].display) !== null && _val$coding$0$display3 !== void 0 ? _val$coding$0$display3 : "",
31629
+ label: (_val$coding$0$display2 = (_val$coding3 = val.coding) === null || _val$coding3 === void 0 ? void 0 : _val$coding3[0].display) !== null && _val$coding$0$display2 !== void 0 ? _val$coding$0$display2 : "",
31680
31630
  id: val.id
31681
31631
  });
31682
31632
  });
@@ -31822,11 +31772,11 @@ var REASONCODE_MASTER = createAsyncThunk("MedicationMastersSlice/Reasoncode_mast
31822
31772
  data = _context20.sent;
31823
31773
  arr = [];
31824
31774
  data.result.map(function (val) {
31825
- var _val$display;
31775
+ var _val$display2;
31826
31776
 
31827
31777
  arr.push({
31828
31778
  value: val._id,
31829
- label: (_val$display = val.display) !== null && _val$display !== void 0 ? _val$display : "",
31779
+ label: (_val$display2 = val.display) !== null && _val$display2 !== void 0 ? _val$display2 : "",
31830
31780
  id: val.id
31831
31781
  });
31832
31782
  });
@@ -31922,12 +31872,12 @@ var PATIENT_INSTRUCTIONS_MASTER = createAsyncThunk("MedicationMastersSlice/Patie
31922
31872
  data = _context22.sent;
31923
31873
  arr = [];
31924
31874
  data.result.map(function (val) {
31925
- var _val$coding$0$code, _val$coding6, _val$coding6$, _val$coding$0$display4, _val$coding7, _val$coding7$;
31875
+ var _val$coding$0$code, _val$coding4, _val$coding4$, _val$coding$0$display3, _val$coding5, _val$coding5$;
31926
31876
 
31927
31877
  arr.push({
31928
31878
  value: val._id,
31929
- label: (_val$coding$0$code = (_val$coding6 = val.coding) === null || _val$coding6 === void 0 ? void 0 : (_val$coding6$ = _val$coding6[0]) === null || _val$coding6$ === void 0 ? void 0 : _val$coding6$.code) !== null && _val$coding$0$code !== void 0 ? _val$coding$0$code : "",
31930
- display: (_val$coding$0$display4 = (_val$coding7 = val.coding) === null || _val$coding7 === void 0 ? void 0 : (_val$coding7$ = _val$coding7[0]) === null || _val$coding7$ === void 0 ? void 0 : _val$coding7$.display) !== null && _val$coding$0$display4 !== void 0 ? _val$coding$0$display4 : "",
31879
+ label: (_val$coding$0$code = (_val$coding4 = val.coding) === null || _val$coding4 === void 0 ? void 0 : (_val$coding4$ = _val$coding4[0]) === null || _val$coding4$ === void 0 ? void 0 : _val$coding4$.code) !== null && _val$coding$0$code !== void 0 ? _val$coding$0$code : "",
31880
+ display: (_val$coding$0$display3 = (_val$coding5 = val.coding) === null || _val$coding5 === void 0 ? void 0 : (_val$coding5$ = _val$coding5[0]) === null || _val$coding5$ === void 0 ? void 0 : _val$coding5$.display) !== null && _val$coding$0$display3 !== void 0 ? _val$coding$0$display3 : "",
31931
31881
  id: val.id
31932
31882
  });
31933
31883
  });
@@ -31973,13 +31923,13 @@ var STATUS_MASTER = createAsyncThunk("MedicationMastersSlice/status_masters", /*
31973
31923
  data = _context23.sent;
31974
31924
  arr = [];
31975
31925
  data.result.map(function (val) {
31976
- var _val$coding$0$display5, _val$coding8, _val$coding8$, _val$coding$0$code2, _val$coding9, _val$coding9$;
31926
+ var _val$coding$0$display4, _val$coding6, _val$coding6$, _val$coding$0$code2, _val$coding7, _val$coding7$;
31977
31927
 
31978
31928
  arr.push({
31979
31929
  value: val._id,
31980
- label: (_val$coding$0$display5 = (_val$coding8 = val.coding) === null || _val$coding8 === void 0 ? void 0 : (_val$coding8$ = _val$coding8[0]) === null || _val$coding8$ === void 0 ? void 0 : _val$coding8$.display) !== null && _val$coding$0$display5 !== void 0 ? _val$coding$0$display5 : "",
31930
+ label: (_val$coding$0$display4 = (_val$coding6 = val.coding) === null || _val$coding6 === void 0 ? void 0 : (_val$coding6$ = _val$coding6[0]) === null || _val$coding6$ === void 0 ? void 0 : _val$coding6$.display) !== null && _val$coding$0$display4 !== void 0 ? _val$coding$0$display4 : "",
31981
31931
  id: val.id,
31982
- code: (_val$coding$0$code2 = val === null || val === void 0 ? void 0 : (_val$coding9 = val.coding) === null || _val$coding9 === void 0 ? void 0 : (_val$coding9$ = _val$coding9[0]) === null || _val$coding9$ === void 0 ? void 0 : _val$coding9$.code) !== null && _val$coding$0$code2 !== void 0 ? _val$coding$0$code2 : ""
31932
+ code: (_val$coding$0$code2 = val === null || val === void 0 ? void 0 : (_val$coding7 = val.coding) === null || _val$coding7 === void 0 ? void 0 : (_val$coding7$ = _val$coding7[0]) === null || _val$coding7$ === void 0 ? void 0 : _val$coding7$.code) !== null && _val$coding$0$code2 !== void 0 ? _val$coding$0$code2 : ""
31983
31933
  });
31984
31934
  });
31985
31935
  return _context23.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -32362,13 +32312,13 @@ var WORKFLOW_STATUS_MASTER = createAsyncThunk("MedicationMastersSlice/workflow_s
32362
32312
  data = _context31.sent;
32363
32313
  arr = [];
32364
32314
  data.result.map(function (val) {
32365
- var _val$coding$0$display6, _val$coding10, _val$coding10$, _val$coding$0$code3, _val$coding11, _val$coding11$;
32315
+ var _val$coding$0$display5, _val$coding8, _val$coding8$, _val$coding$0$code3, _val$coding9, _val$coding9$;
32366
32316
 
32367
32317
  arr.push({
32368
32318
  value: val._id,
32369
- label: (_val$coding$0$display6 = (_val$coding10 = val.coding) === null || _val$coding10 === void 0 ? void 0 : (_val$coding10$ = _val$coding10[0]) === null || _val$coding10$ === void 0 ? void 0 : _val$coding10$.display) !== null && _val$coding$0$display6 !== void 0 ? _val$coding$0$display6 : "",
32319
+ label: (_val$coding$0$display5 = (_val$coding8 = val.coding) === null || _val$coding8 === void 0 ? void 0 : (_val$coding8$ = _val$coding8[0]) === null || _val$coding8$ === void 0 ? void 0 : _val$coding8$.display) !== null && _val$coding$0$display5 !== void 0 ? _val$coding$0$display5 : "",
32370
32320
  id: val.id,
32371
- code: (_val$coding$0$code3 = val === null || val === void 0 ? void 0 : (_val$coding11 = val.coding) === null || _val$coding11 === void 0 ? void 0 : (_val$coding11$ = _val$coding11[0]) === null || _val$coding11$ === void 0 ? void 0 : _val$coding11$.code) !== null && _val$coding$0$code3 !== void 0 ? _val$coding$0$code3 : ""
32321
+ code: (_val$coding$0$code3 = val === null || val === void 0 ? void 0 : (_val$coding9 = val.coding) === null || _val$coding9 === void 0 ? void 0 : (_val$coding9$ = _val$coding9[0]) === null || _val$coding9$ === void 0 ? void 0 : _val$coding9$.code) !== null && _val$coding$0$code3 !== void 0 ? _val$coding$0$code3 : ""
32372
32322
  });
32373
32323
  });
32374
32324
  return _context31.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -38888,10 +38838,9 @@ var clinicQuery = {
38888
38838
  readClinicData: function readClinicData(key) {
38889
38839
  return {
38890
38840
  db_name: dbName,
38891
- entity: "LocationMaster,LocationMaster_CodeableConceptMaster_E,CodeableConceptMaster_CodingMaster_E,LocationMaster_LocationRoleType_E,LocationMaster_Organization_E,Organization_CodeableConceptMaster_E,LocationMaster_ContactPointMaster_E,LocationMaster_AddressMaster_E,LocationMaster_AttachmentMaster_E",
38892
- filter: "LocationMaster.activestatus==true && LocationMaster._id=='".concat(key, "'"),
38893
- isTraversal: "true",
38894
- return_fields: "{vertices:v,orginatedata:LocationMaster}"
38841
+ entity: "LocationMaster",
38842
+ filter: "LocationMaster._id == '".concat(key, "' && LocationMaster.activestatus==true"),
38843
+ return_fields: "merge(LocationMaster,{operationalStatus:document(LocationMaster.operationalStatus)},{managingOrgEntityType:(for managingOrgEntityType in document(to_array(LocationMaster.managingOrgEntityType)) return merge(managingOrgEntityType,{coding:document(managingOrgEntityType.coding)}))}, {parentLocationID_desc:document(LocationMaster.parentLocationID_desc)},{address:document(LocationMaster.address)},{locationType:merge(document(LocationMaster.locationType),{coding:document(document(LocationMaster.locationType).coding)})},{managingOrgID:(for managingOrgID in document(to_array(LocationMaster.managingOrgID)) return managingOrgID)},{locationRoletype:document(LocationMaster.locationRoletype)},{specialty:(for code in to_array(LocationMaster.specialty) return document(code))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in to_array(LocationMaster.pharmacy) return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
38895
38844
  };
38896
38845
  }
38897
38846
  };
@@ -43004,7 +42953,7 @@ var orderSetDropDown = {
43004
42953
  return {
43005
42954
  db_name: dbName,
43006
42955
  entity: "CA_OrderSet,CA_OrderSet_Applicability",
43007
- filter: "CA_OrderSet._id == CA_OrderSet_Applicability.Ordersetcode && (CA_OrderSet_Applicability.specialty=='".concat(list.speciality, "' || CA_OrderSet_Applicability.locationCode=='").concat(list.location, "' || CA_OrderSet_Applicability.practRoleId=='").concat(list.pract, "' || CA_OrderSet_Applicability.diagnosisCode=='").concat(list.diag, "')"),
42956
+ filter: "CA_OrderSet._id == CA_OrderSet_Applicability.Ordersetcode && (CA_OrderSet_Applicability.specialty=='".concat(list.speciality, "' && CA_OrderSet_Applicability.locationCode=='").concat(list.location, "' && CA_OrderSet_Applicability.practRoleId=='").concat(list.pract, "' && CA_OrderSet_Applicability.diagnosisCode=='").concat(list.diag, "')"),
43008
42957
  return_fields: " distinct merge(CA_OrderSet,{components:(for comp in CA_OrderSet_Components filter comp._id in CA_OrderSet.components return merge(comp,{orderCatalog:merge(document(comp.orderCatalog),{ordertype:document(document(comp.orderCatalog).ordertype)},{ordercategory:document(document(comp.orderCatalog).ordercategory)}),ordercategory:document(comp.ordercategory),ordertype:document(comp.ordertype),IVDosDurUOM:document(comp.IVDosDurUOM),IVInfusRateUOM:document(comp.IVInfusRateUOM),IVInfusRateVolUOM:document(comp.IVInfusRateVolUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltFreqRateUnit:document(comp.dfltFreqRateUnit),dfltFreqValUnit:document(comp.dfltFreqValUnit),dfltOrderUOM:document(comp.dfltOrderUOM),route:document(comp.route)}))})"
43009
42958
  }; // {
43010
42959
  // db_name: dbName,
@@ -43164,19 +43113,20 @@ var makeMedicationData = function makeMedicationData(order, info) {
43164
43113
  ivInfusionRateUOM: (_order$IVInfusRateUOM = order === null || order === void 0 ? void 0 : (_order$IVInfusRateUOM2 = order.IVInfusRateUOM) === null || _order$IVInfusRateUOM2 === void 0 ? void 0 : _order$IVInfusRateUOM2._id) !== null && _order$IVInfusRateUOM !== void 0 ? _order$IVInfusRateUOM : "",
43165
43114
  dosageDurationValue: (_order$duration2 = order === null || order === void 0 ? void 0 : order.duration) !== null && _order$duration2 !== void 0 ? _order$duration2 : 0,
43166
43115
  dosageDurationUOM: (_order$durationType$_2 = order === null || order === void 0 ? void 0 : (_order$durationType2 = order.durationType) === null || _order$durationType2 === void 0 ? void 0 : _order$durationType2._id) !== null && _order$durationType$_2 !== void 0 ? _order$durationType$_2 : "",
43167
- UseAsFreqDose: [// {
43168
- // frqGrpId: "number",
43169
- // dispSeqNo: "number",
43170
- // adminDate: "number",
43171
- // adminTime: "time",
43172
- // adminDosageQty: "number",
43173
- // adminDosageUOM: "string",
43174
- // adminDosageInstruction: "string",
43175
- // adminFrDay: "number",
43176
- // adminToDay: "number",
43177
- // adminDosageFreqCode: "string",
43178
- // },
43179
- ],
43116
+ // UseAsFreqDose: [
43117
+ // {
43118
+ // frqGrpId: "number",
43119
+ // dispSeqNo: "number",
43120
+ // adminDate: "number",
43121
+ // adminTime: "time",
43122
+ // adminDosageQty: "number",
43123
+ // adminDosageUOM: "string",
43124
+ // adminDosageInstruction: "string",
43125
+ // adminFrDay: "number",
43126
+ // adminToDay: "number",
43127
+ // adminDosageFreqCode: "string",
43128
+ // },
43129
+ // ],
43180
43130
  useAsTaperedDose: [// {
43181
43131
  // tdGrpId: "number",
43182
43132
  // dispSeqNo: "number",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.67",
3
+ "version": "1.1.71",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",