primarycare-binder 1.1.67 → 1.1.68

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 +23 -79
  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) {
@@ -38888,10 +38832,9 @@ var clinicQuery = {
38888
38832
  readClinicData: function readClinicData(key) {
38889
38833
  return {
38890
38834
  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}"
38835
+ entity: "LocationMaster",
38836
+ filter: "LocationMaster._id == '".concat(key, "' && LocationMaster.activestatus==true"),
38837
+ 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
38838
  };
38896
38839
  }
38897
38840
  };
@@ -43004,7 +42947,7 @@ var orderSetDropDown = {
43004
42947
  return {
43005
42948
  db_name: dbName,
43006
42949
  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, "')"),
42950
+ 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
42951
  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
42952
  }; // {
43010
42953
  // db_name: dbName,
@@ -43164,19 +43107,20 @@ var makeMedicationData = function makeMedicationData(order, info) {
43164
43107
  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
43108
  dosageDurationValue: (_order$duration2 = order === null || order === void 0 ? void 0 : order.duration) !== null && _order$duration2 !== void 0 ? _order$duration2 : 0,
43166
43109
  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
- ],
43110
+ // UseAsFreqDose: [
43111
+ // {
43112
+ // frqGrpId: "number",
43113
+ // dispSeqNo: "number",
43114
+ // adminDate: "number",
43115
+ // adminTime: "time",
43116
+ // adminDosageQty: "number",
43117
+ // adminDosageUOM: "string",
43118
+ // adminDosageInstruction: "string",
43119
+ // adminFrDay: "number",
43120
+ // adminToDay: "number",
43121
+ // adminDosageFreqCode: "string",
43122
+ // },
43123
+ // ],
43180
43124
  useAsTaperedDose: [// {
43181
43125
  // tdGrpId: "number",
43182
43126
  // 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.68",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",