primary_care_admin_binder 0.1.40 → 0.1.43

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 +74 -34
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -7982,6 +7982,27 @@ var fetchData = /*#__PURE__*/function () {
7982
7982
  };
7983
7983
  }();
7984
7984
 
7985
+ var getAge = function getAge(date) {
7986
+ if (date) {
7987
+ var yearDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'years', false);
7988
+
7989
+ if (yearDiff > 0) {
7990
+ return yearDiff + ' Y';
7991
+ }
7992
+
7993
+ var monthDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'months', false);
7994
+
7995
+ if (monthDiff > 0) {
7996
+ return monthDiff + ' M';
7997
+ }
7998
+
7999
+ var dayDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'days', false);
8000
+ return dayDiff + ' D';
8001
+ }
8002
+
8003
+ return "";
8004
+ };
8005
+
7985
8006
  var makeName = function makeName() {
7986
8007
  var _prefix$, _prefix$$coding, _prefix$$coding$, _prefix$coding, _prefix$coding$, _prefix$2, _suffix$, _suffix$$coding, _suffix$$coding$, _suffix$coding, _suffix$coding$, _suffix$2;
7987
8008
 
@@ -8894,9 +8915,9 @@ var masterQuery$7 = {
8894
8915
  "suffix": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='NAMESUFFIX'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8895
8916
  "gender": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER' AND DOCUMENT(CodeableConceptMaster.coding)[*].code ANY != 'ANY' AND DOCUMENT(CodeableConceptMaster.coding)[*].status ANY ==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\"\n }"),
8896
8917
  "use": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='USE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8897
- "practitioner_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='PRACTTYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8918
+ "practitioner_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='PRACTTYPE' && CodeableConceptMaster.status == true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8898
8919
  "Communication_languages": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='LANGUAGE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8899
- "speciality": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='SPECIALTY'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8920
+ "speciality": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='SPECIALTY' && CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8900
8921
  // "entity": `{
8901
8922
  // "db_name": "${dbName}",
8902
8923
  // "entity": "Organization",
@@ -8915,8 +8936,8 @@ var masterQuery$7 = {
8915
8936
  "contact_mode": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='CONTACTSYSTEM'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8916
8937
  "priority": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='PRIORITY'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8917
8938
  "address_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ADDRESSTYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8918
- "role": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='PRACTROLE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8919
- "location": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"LocationMaster\",\n \"sort\":\"LocationMaster.shortdesc\",\n \"filter\": \"LocationMaster.activestatus==true\",\n \"return_fields\": \"LocationMaster\"\n }"),
8939
+ "role": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='PRACTROLE' && CodeableConceptMaster.status == true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
8940
+ "location": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"LocationMaster\",\n \"sort\":\"LocationMaster.shortdesc\",\n \"filter\": \"LocationMaster.activestatus==true && LocationMaster.status=='active'\",\n \"return_fields\": \"LocationMaster\"\n }"),
8920
8941
  "city": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\":\"SMGeographicMaster.geogLevelName\",\n \"filter\": \"SMGeographicMaster.geogLevelType=='CITY' && SMGeographicMaster.activestatus == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
8921
8942
  "district": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\":\"SMGeographicMaster.geogLevelName\",\n \"filter\": \"SMGeographicMaster.geogLevelType=='DISTRICT' && SMGeographicMaster.geogLevelCode=='BLR' && SMGeographicMaster.activestatus == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
8922
8943
  "state": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\":\"SMGeographicMaster.geogLevelName\",\n \"filter\": \"SMGeographicMaster.geogLevelType=='STATE' && SMGeographicMaster.geogLevelCode=='KAR' && SMGeographicMaster.activestatus == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
@@ -11041,6 +11062,7 @@ var categoryJson = function categoryJson(data, state, agecategory) {
11041
11062
  category: agecategory.find(function (sys) {
11042
11063
  return v._id.indexOf(sys._id) > -1;
11043
11064
  }),
11065
+ description: v.description,
11044
11066
  ageMin: v.age_minimum,
11045
11067
  ageMax: v.age_maximum,
11046
11068
  unit: state.reference_unit_allowed.data.find(function (sys) {
@@ -17355,7 +17377,7 @@ var masterQuery$5 = {
17355
17377
  // }`,
17356
17378
  "age_range_group": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"AgeRanges\",\n \"sort\":\"AgeRanges.agerangecode\",\n \"filter\":\"AgeRanges.activestatus == true && AgeRanges.status==true\",\n \"return_fields\": \"{id:AgeRanges.id, _id:AgeRanges._id, agerangecode:AgeRanges.agerangecode, longdesc:AgeRanges.longdesc, shortdesc:AgeRanges.shortdesc,AgeCategory:AgeRanges.AgeCategory}\"\n }"),
17357
17379
  "age_category": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"AgeCategory\",\n \"filter\":\"AgeCategory.activestatus == true\",\n \"return_fields\": \"{id:AgeCategory.id, _id:AgeCategory._id, code:AgeCategory.code, age_minimum:AgeCategory.age_minimum, age_maximum:AgeCategory.age_maximum, description:AgeCategory.description,UOM:document(document(AgeCategory.UOM).coding)}\",\n \"sort\": \"AgeCategory.description\"\n }"),
17358
- "default_frequency": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"FrequencyMaster\",\n \"sort\": \"FrequencyMaster.shortdesc\",\n \"filter\": \"FrequencyMaster.activestatus==true\",\n \"return_fields\": \"{_id:FrequencyMaster._id,id:FrequencyMaster.id,freqcode:FrequencyMaster.freqcode,longdesc:FrequencyMaster.longdesc,shortdesc:FrequencyMaster.shortdesc}\"\n }"),
17380
+ "default_frequency": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"FrequencyMaster\",\n \"sort\": \"FrequencyMaster.shortdesc\",\n \"filter\": \"FrequencyMaster._key != null && FrequencyMaster.longdesc != null && FrequencyMaster.activestatus==true && FrequencyMaster.status==true\",\n \"return_fields\": \"{_id:FrequencyMaster._id,id:FrequencyMaster.id,freqcode:FrequencyMaster.freqcode,longdesc:FrequencyMaster.longdesc,shortdesc:FrequencyMaster.shortdesc}\"\n }"),
17359
17381
  "actions": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='DRUGACTION' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
17360
17382
  "status": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='DRUGSTATUS' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
17361
17383
  "drug_item_master": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"DrugItemMaster\",\n \"sort\": \"DrugItemMaster.shortdesc\",\n \"filter\": \"DrugItemMaster.activestatus==true && DrugItemMaster.effectivefrom <= DATE_TIMESTAMP(DATE_NOW()/1000) && (DrugItemMaster.effectiveto == 0 || DrugItemMaster.effectiveto == null ? DrugItemMaster.effectiveto==0: DrugItemMaster.effectiveto >= DATE_TIMESTAMP(DATE_NOW()/1000))\",\n \"return_fields\": \"{_id:DrugItemMaster._id,id:DrugItemMaster.id,itemcode:DrugItemMaster.itemcode,shortdesc:DrugItemMaster.shortdesc,longdesc:DrugItemMaster.longdesc,effectivefrom:DrugItemMaster.effectivefrom,effectiveto:DrugItemMaster.effectiveto}\"\n }")
@@ -18656,7 +18678,7 @@ var queries$e = {
18656
18678
  "entity": "DrugRouteDirection",
18657
18679
  "sort": "DrugRouteDirection.RouteDirectionCode",
18658
18680
  "filter": "DrugRouteDirection.activestatus == true ",
18659
- "return_fields": "merge(DrugRouteDirection,{DoseForm:DOCUMENT(DrugRouteDirection.DoseForm),Action:DOCUMENT(DrugRouteDirection.Action)})"
18681
+ "return_fields": "merge(DrugRouteDirection,{DoseForm:DOCUMENT(DrugRouteDirection.DoseForm),Action:(DrugRouteDirection.Action)})"
18660
18682
  };
18661
18683
  },
18662
18684
  DosageFormDropDown: function DosageFormDropDown() {
@@ -18754,12 +18776,13 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
18754
18776
  debugger;
18755
18777
  data.result.map(function (val) {
18756
18778
  if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.LongDesc) {
18757
- var _val$Action, _val$Action2, _val$DoseForm, _val$DoseForm2;
18779
+ var _val$DoseForm, _val$DoseForm2;
18758
18780
 
18759
18781
  arry.push({
18760
18782
  code: val === null || val === void 0 ? void 0 : val.RouteDirectionCode,
18761
- action_id: val === null || val === void 0 ? void 0 : (_val$Action = val.Action) === null || _val$Action === void 0 ? void 0 : _val$Action._id,
18762
- action: val === null || val === void 0 ? void 0 : (_val$Action2 = val.Action) === null || _val$Action2 === void 0 ? void 0 : _val$Action2.display,
18783
+ // action_id: val?.Action?._id,
18784
+ // action: val?.Action?.display,
18785
+ action: val === null || val === void 0 ? void 0 : val.Action,
18763
18786
  longDesc: val === null || val === void 0 ? void 0 : val.LongDesc,
18764
18787
  shortDesc: val === null || val === void 0 ? void 0 : val.ShortDesc,
18765
18788
  status: val === null || val === void 0 ? void 0 : val.Status,
@@ -29121,19 +29144,35 @@ var queries$4 = {
29121
29144
  };
29122
29145
  },
29123
29146
  UOM: function UOM() {
29147
+ // return {
29148
+ // db_name: dbName,
29149
+ // entity: "DrugUOM",
29150
+ // sort: "DrugUOM.UOM",
29151
+ // return_fields: "DrugUOM",
29152
+ // };
29124
29153
  return {
29125
- db_name: dbName$1,
29126
- entity: "DrugUOM",
29127
- sort: "DrugUOM.UOM",
29128
- return_fields: "DrugUOM"
29154
+ "db_name": dbName$1,
29155
+ "entity": "CodingMaster",
29156
+ "filter": "CodingMaster.Type == 'UOM' && CodingMaster.status == true && CodingMaster.activestatus == true",
29157
+ "return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','shortdesc','longdesc','activestatus')",
29158
+ "sort": "CodingMaster.shortdesc"
29129
29159
  };
29130
29160
  },
29131
29161
  WEEKDAYS: function WEEKDAYS() {
29162
+ // return {
29163
+ // db_name: dbName,
29164
+ // entity: "CodeableConceptMaster",
29165
+ // filter:
29166
+ // "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='WEEKDAYS'",
29167
+ // return_fields:
29168
+ // "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
29169
+ // };
29132
29170
  return {
29133
29171
  db_name: dbName$1,
29134
- entity: "CodeableConceptMaster",
29135
- filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='WEEKDAYS'",
29136
- return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
29172
+ entity: "CodingMaster",
29173
+ filter: "CodingMaster.Type == 'WEEKDAYS' && CodingMaster.status == true && CodingMaster.activestatus == true",
29174
+ return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
29175
+ sort: "CodingMaster.code"
29137
29176
  };
29138
29177
  },
29139
29178
  FIXEDDURATIONTYPE: function FIXEDDURATIONTYPE() {
@@ -29403,11 +29442,9 @@ var DRUG_WEEKDAYS_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_weekday
29403
29442
  arry = [];
29404
29443
  data.result.map(function (val) {
29405
29444
  if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.activestatus) {
29406
- var _val$coding$3, _val$coding$4;
29407
-
29408
29445
  arry.push({
29409
- label: val === null || val === void 0 ? void 0 : (_val$coding$3 = val.coding[0]) === null || _val$coding$3 === void 0 ? void 0 : _val$coding$3.display,
29410
- value: val === null || val === void 0 ? void 0 : (_val$coding$4 = val.coding[0]) === null || _val$coding$4 === void 0 ? void 0 : _val$coding$4._id
29446
+ label: val === null || val === void 0 ? void 0 : val.display,
29447
+ value: val === null || val === void 0 ? void 0 : val._id
29411
29448
  });
29412
29449
  }
29413
29450
  });
@@ -29454,11 +29491,11 @@ var DRUG_FIXEDDURATIONTYPE_READ = createAsyncThunk("drugMasterFREQUENCYSlice/dru
29454
29491
  arry = [];
29455
29492
  data.result.map(function (val) {
29456
29493
  if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.activestatus) {
29457
- var _val$coding$5, _val$coding$6;
29494
+ var _val$coding$3, _val$coding$4;
29458
29495
 
29459
29496
  arry.push({
29460
- label: val === null || val === void 0 ? void 0 : (_val$coding$5 = val.coding[0]) === null || _val$coding$5 === void 0 ? void 0 : _val$coding$5.display,
29461
- value: val === null || val === void 0 ? void 0 : (_val$coding$6 = val.coding[0]) === null || _val$coding$6 === void 0 ? void 0 : _val$coding$6._id
29497
+ label: val === null || val === void 0 ? void 0 : (_val$coding$3 = val.coding[0]) === null || _val$coding$3 === void 0 ? void 0 : _val$coding$3.display,
29498
+ value: val === null || val === void 0 ? void 0 : (_val$coding$4 = val.coding[0]) === null || _val$coding$4 === void 0 ? void 0 : _val$coding$4._id
29462
29499
  });
29463
29500
  }
29464
29501
  });
@@ -29505,11 +29542,11 @@ var DRUG_FREQUENCYTYPE_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_fr
29505
29542
  arry = [];
29506
29543
  data.result.map(function (val) {
29507
29544
  if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.activestatus) {
29508
- var _val$coding$7, _val$coding$8;
29545
+ var _val$coding$5, _val$coding$6;
29509
29546
 
29510
29547
  arry.push({
29511
- label: val === null || val === void 0 ? void 0 : (_val$coding$7 = val.coding[0]) === null || _val$coding$7 === void 0 ? void 0 : _val$coding$7.display,
29512
- value: val === null || val === void 0 ? void 0 : (_val$coding$8 = val.coding[0]) === null || _val$coding$8 === void 0 ? void 0 : _val$coding$8._id
29548
+ label: val === null || val === void 0 ? void 0 : (_val$coding$5 = val.coding[0]) === null || _val$coding$5 === void 0 ? void 0 : _val$coding$5.display,
29549
+ value: val === null || val === void 0 ? void 0 : (_val$coding$6 = val.coding[0]) === null || _val$coding$6 === void 0 ? void 0 : _val$coding$6._id
29513
29550
  });
29514
29551
  }
29515
29552
  });
@@ -29557,7 +29594,7 @@ var DRUG_FREQUENCY_UOM_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_fr
29557
29594
  data.result.map(function (val) {
29558
29595
  if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.activestatus) {
29559
29596
  arry.push({
29560
- label: val === null || val === void 0 ? void 0 : val.UOM,
29597
+ label: val === null || val === void 0 ? void 0 : val.display,
29561
29598
  value: val === null || val === void 0 ? void 0 : val._id
29562
29599
  });
29563
29600
  }
@@ -33740,13 +33777,14 @@ var VIEW_PENDING_PATIENT_LIST = createAsyncThunk("getPendingRescheduleListApiSli
33740
33777
  case 5:
33741
33778
  data = _context2.sent;
33742
33779
  returnedData = data !== null && data !== void 0 && data.result ? data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (_) {
33743
- var _makeName2, _$Patient, _$Patient$name, _$Patient$alias, _$Patient2, _$Patient$age, _$Patient3, _ref6, _$Patient4, _$Patient4$telecom, _$Patient4$telecom$, _$appno, _$Patient$slotID$0$bl, _$Patient5, _$Patient5$slotID, _$Patient5$slotID$, _$Patient5$slotID$$bl, _$Patient$gender$, _$Patient6, _$Patient6$gender, _$id2;
33780
+ var _$Patient, _makeName2, _$Patient2, _$Patient2$name, _$Patient$alias, _$Patient3, _ref6, _$Patient4, _$Patient4$telecom, _$Patient4$telecom$, _$appno, _$Patient$slotID$0$bl, _$Patient5, _$Patient5$slotID, _$Patient5$slotID$, _$Patient5$slotID$$bl, _$Patient$gender$, _$Patient6, _$Patient6$gender, _$id2;
33744
33781
 
33782
+ var age = getAge(_ === null || _ === void 0 ? void 0 : (_$Patient = _.Patient) === null || _$Patient === void 0 ? void 0 : _$Patient.birthDate);
33745
33783
  return {
33746
33784
  "select": false,
33747
- "name": (_makeName2 = makeName(_ === null || _ === void 0 ? void 0 : (_$Patient = _.Patient) === null || _$Patient === void 0 ? void 0 : (_$Patient$name = _$Patient.name) === null || _$Patient$name === void 0 ? void 0 : _$Patient$name[0])) !== null && _makeName2 !== void 0 ? _makeName2 : '',
33748
- "mrn": (_$Patient$alias = _ === null || _ === void 0 ? void 0 : (_$Patient2 = _.Patient) === null || _$Patient2 === void 0 ? void 0 : _$Patient2.alias) !== null && _$Patient$alias !== void 0 ? _$Patient$alias : '---',
33749
- "age": (_$Patient$age = _ === null || _ === void 0 ? void 0 : (_$Patient3 = _.Patient) === null || _$Patient3 === void 0 ? void 0 : _$Patient3.age) !== null && _$Patient$age !== void 0 ? _$Patient$age : '',
33785
+ "name": (_makeName2 = makeName(_ === null || _ === void 0 ? void 0 : (_$Patient2 = _.Patient) === null || _$Patient2 === void 0 ? void 0 : (_$Patient2$name = _$Patient2.name) === null || _$Patient2$name === void 0 ? void 0 : _$Patient2$name[0])) !== null && _makeName2 !== void 0 ? _makeName2 : '',
33786
+ "mrn": (_$Patient$alias = _ === null || _ === void 0 ? void 0 : (_$Patient3 = _.Patient) === null || _$Patient3 === void 0 ? void 0 : _$Patient3.alias) !== null && _$Patient$alias !== void 0 ? _$Patient$alias : '---',
33787
+ "age": age !== null && age !== void 0 ? age : '',
33750
33788
  "mobile no": (_ref6 = "".concat(_ === null || _ === void 0 ? void 0 : (_$Patient4 = _.Patient) === null || _$Patient4 === void 0 ? void 0 : (_$Patient4$telecom = _$Patient4.telecom) === null || _$Patient4$telecom === void 0 ? void 0 : (_$Patient4$telecom$ = _$Patient4$telecom[0]) === null || _$Patient4$telecom$ === void 0 ? void 0 : _$Patient4$telecom$.value)) !== null && _ref6 !== void 0 ? _ref6 : '',
33751
33789
  "appt ref no.": (_$appno = _ === null || _ === void 0 ? void 0 : _.appno) !== null && _$appno !== void 0 ? _$appno : '',
33752
33790
  "appt date & time": _ !== null && _ !== void 0 && _.start ? utcTOLocal(_ === null || _ === void 0 ? void 0 : _.start, 'DD MMM,YYYY hh:mm A') : '',
@@ -36245,11 +36283,13 @@ var ENCOUNTER_TYPE_READ = createAsyncThunk("encouterTypeSlice/encouterTypeRead",
36245
36283
  arry = [];
36246
36284
  data.result.map(function (val, i) {
36247
36285
  if (val !== null && val !== void 0 && val._id) {
36286
+ var _val$encTypeDesc, _val$encType;
36287
+
36248
36288
  arry.push(_objectSpread2({
36249
36289
  id: val === null || val === void 0 ? void 0 : val.id,
36250
- description: val === null || val === void 0 ? void 0 : val.encTypeDesc,
36251
- code: val === null || val === void 0 ? void 0 : val.encType,
36252
- encounter_class: (val === null || val === void 0 ? void 0 : val.encClsDesc) + " ( " + (val === null || val === void 0 ? void 0 : val.encClsType) + " )"
36290
+ description: (_val$encTypeDesc = val === null || val === void 0 ? void 0 : val.encTypeDesc) !== null && _val$encTypeDesc !== void 0 ? _val$encTypeDesc : "",
36291
+ code: (_val$encType = val === null || val === void 0 ? void 0 : val.encType) !== null && _val$encType !== void 0 ? _val$encType : "",
36292
+ encounter_class: val !== null && val !== void 0 && val.encClsDesc ? val === null || val === void 0 ? void 0 : val.encClsDesc : "" + " ( " + (val === null || val === void 0 ? void 0 : val.encClsType) ? val === null || val === void 0 ? void 0 : val.encClsType : "" + " )"
36253
36293
  }, val));
36254
36294
  }
36255
36295
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.40",
3
+ "version": "0.1.43",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",