primarycare-binder 1.0.141 → 1.0.142

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.js CHANGED
@@ -13022,8 +13022,11 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
13022
13022
  id = record.id,
13023
13023
  restData = _objectWithoutProperties(record, ["OrgType", "id"]);
13024
13024
 
13025
+ var facilityCoding = "facility";
13025
13026
  var isClinic = (_OrgType$some = OrgType === null || OrgType === void 0 ? void 0 : OrgType.some(function (type) {
13026
- return type.toLowerCase() === 'clinic';
13027
+ var _type$display;
13028
+
13029
+ return (type === null || type === void 0 ? void 0 : (_type$display = type.display) === null || _type$display === void 0 ? void 0 : _type$display.toLowerCase()) === facilityCoding;
13027
13030
  })) !== null && _OrgType$some !== void 0 ? _OrgType$some : false;
13028
13031
  var healthCareId = [0];
13029
13032
  var slots = [];
@@ -13513,12 +13516,12 @@ var GET_HOSPITALS_LOCALITY = createAsyncThunk("searhcApiSlice/getHospitals", /*#
13513
13516
 
13514
13517
  if (Array.isArray(data)) {
13515
13518
  data.forEach(function (hospInfo) {
13516
- if (hospInfo.id && hospInfo.alias) {
13519
+ if (hospInfo.id && hospInfo.name) {
13517
13520
  var _hospInfo$address, _hospInfo$address2;
13518
13521
 
13519
13522
  returnData.push({
13520
13523
  value: hospInfo.id,
13521
- label: hospInfo.alias,
13524
+ label: hospInfo.name,
13522
13525
  lat: hospInfo === null || hospInfo === void 0 ? void 0 : (_hospInfo$address = hospInfo.address) === null || _hospInfo$address === void 0 ? void 0 : _hospInfo$address.latitude,
13523
13526
  "long": hospInfo === null || hospInfo === void 0 ? void 0 : (_hospInfo$address2 = hospInfo.address) === null || _hospInfo$address2 === void 0 ? void 0 : _hospInfo$address2.longitude
13524
13527
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.0.141",
3
+ "version": "1.0.142",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",