primarycare-binder 1.1.20 → 1.1.21

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 +231 -103
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -14611,12 +14611,10 @@ var GET_ALL_SPECIALITY = createAsyncThunk("searhcApiSlice/getAllSpeciality", /*#
14611
14611
  }
14612
14612
  }, _callee7, null, [[2, 12]]);
14613
14613
  })));
14614
- var MASTER_SEARCH = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
14614
+ var GET_ALL_SPECIALITY_2 = createAsyncThunk("searhcApiSlice/getAllSpeciality_2", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
14615
14615
  var payload,
14616
14616
  _ref16,
14617
14617
  rejectWithValue,
14618
- _payload$type,
14619
- type,
14620
14618
  body,
14621
14619
  data,
14622
14620
  returnData,
@@ -14629,30 +14627,32 @@ var MASTER_SEARCH = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*
14629
14627
  payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
14630
14628
  _ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
14631
14629
  _context8.prev = 2;
14632
- _payload$type = payload.type, type = _payload$type === void 0 ? [] : _payload$type;
14633
14630
  body = {
14634
14631
  db_name: dbName,
14635
- queryid: query_ids["searhcApiSlice/masterSearch"],
14636
- filter: {
14637
- type: type
14638
- }
14632
+ queryid: query_ids["searhcApiSlice/getAllSpeciality"]
14639
14633
  };
14640
- _context8.next = 7;
14634
+ _context8.next = 6;
14641
14635
  return fetchData$3({
14642
14636
  body: JSON.stringify(body)
14643
14637
  });
14644
14638
 
14645
- case 7:
14639
+ case 6:
14646
14640
  data = _context8.sent;
14647
- returnData = {};
14641
+ returnData = [];
14648
14642
 
14649
14643
  if (Array.isArray(data)) {
14650
14644
  data.forEach(function (spec) {
14651
- if (!(spec.Type in returnData)) {
14652
- returnData[spec.Type] = [];
14653
- }
14645
+ var _spec$coding5, _spec$coding5$;
14654
14646
 
14655
- returnData[spec.Type].push(spec);
14647
+ if (spec === null || spec === void 0 ? void 0 : (_spec$coding5 = spec.coding) === null || _spec$coding5 === void 0 ? void 0 : (_spec$coding5$ = _spec$coding5[0]) === null || _spec$coding5$ === void 0 ? void 0 : _spec$coding5$.display) {
14648
+ var _spec$coding6, _spec$coding6$;
14649
+
14650
+ returnData.push({
14651
+ value: spec.id,
14652
+ label: spec === null || spec === void 0 ? void 0 : (_spec$coding6 = spec.coding) === null || _spec$coding6 === void 0 ? void 0 : (_spec$coding6$ = _spec$coding6[0]) === null || _spec$coding6$ === void 0 ? void 0 : _spec$coding6$.display,
14653
+ type: 'Speciality'
14654
+ });
14655
+ }
14656
14656
  });
14657
14657
  }
14658
14658
 
@@ -14660,27 +14660,38 @@ var MASTER_SEARCH = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*
14660
14660
  data: returnData
14661
14661
  }));
14662
14662
 
14663
- case 13:
14664
- _context8.prev = 13;
14663
+ case 12:
14664
+ _context8.prev = 12;
14665
14665
  _context8.t0 = _context8["catch"](2);
14666
14666
  return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
14667
14667
  message: _context8.t0.message
14668
14668
  })));
14669
14669
 
14670
- case 16:
14670
+ case 15:
14671
14671
  case "end":
14672
14672
  return _context8.stop();
14673
14673
  }
14674
14674
  }
14675
- }, _callee8, null, [[2, 13]]);
14675
+ }, _callee8, null, [[2, 12]]);
14676
14676
  })));
14677
- var GET_RELATIONSHIPS = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
14677
+ var MASTER_SEARCH = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
14678
14678
  var payload,
14679
14679
  _ref18,
14680
14680
  rejectWithValue,
14681
+ _payload$type,
14682
+ type,
14683
+ newType,
14684
+ fetchEncounter,
14681
14685
  body,
14686
+ encounterQuery,
14687
+ promArr,
14688
+ _yield$Promise$all,
14689
+ _yield$Promise$all2,
14682
14690
  data,
14691
+ _yield$Promise$all2$,
14692
+ encounterData,
14683
14693
  returnData,
14694
+ encounterRes,
14684
14695
  _args9 = arguments;
14685
14696
 
14686
14697
  return regeneratorRuntime.wrap(function _callee9$(_context9) {
@@ -14690,52 +14701,96 @@ var GET_RELATIONSHIPS = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PUR
14690
14701
  payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
14691
14702
  _ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
14692
14703
  _context9.prev = 2;
14704
+ _payload$type = payload.type, type = _payload$type === void 0 ? [] : _payload$type;
14705
+ newType = type;
14706
+ fetchEncounter = false;
14707
+
14708
+ if (type.includes('ENCOUNTERTYPE')) {
14709
+ newType = newType.filter(function (item) {
14710
+ return item !== 'ENCOUNTERTYPE';
14711
+ });
14712
+ fetchEncounter = true;
14713
+ }
14714
+
14693
14715
  body = {
14694
14716
  db_name: dbName,
14695
14717
  queryid: query_ids["searhcApiSlice/masterSearch"],
14696
14718
  filter: {
14697
- type: ["Relation"]
14719
+ type: newType
14698
14720
  }
14699
14721
  };
14700
- _context9.next = 6;
14701
- return fetchData$3({
14722
+ encounterQuery = {
14723
+ db_name: dbName,
14724
+ entity: "AMPatientClass",
14725
+ filter: "AMPatientClass.activestatus==true and AMPatientClass.status==true",
14726
+ return_fields: "merge(AMPatientClass,{encType:document(AMPatientClass.encType).code},{encTypeDesc:document(AMPatientClass.encTypeDesc).display},{encClsType:document(AMPatientClass.encClsType).code},{encClsDesc:document(AMPatientClass.encClsDesc).display})",
14727
+ sort: "document(AMPatientClass.encTypeDesc).display"
14728
+ };
14729
+ promArr = [fetchData$3({
14702
14730
  body: JSON.stringify(body)
14703
- });
14731
+ })];
14704
14732
 
14705
- case 6:
14706
- data = _context9.sent;
14707
- returnData = [];
14733
+ if (fetchEncounter) {
14734
+ promArr.push(fetchData$3({
14735
+ body: JSON.stringify(encounterQuery)
14736
+ }, __readDocumentUrl__));
14737
+ }
14738
+
14739
+ _context9.next = 13;
14740
+ return es6Promise.Promise.all(promArr);
14741
+
14742
+ case 13:
14743
+ _yield$Promise$all = _context9.sent;
14744
+ _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
14745
+ data = _yield$Promise$all2[0];
14746
+ _yield$Promise$all2$ = _yield$Promise$all2[1];
14747
+ encounterData = _yield$Promise$all2$ === void 0 ? {
14748
+ result: []
14749
+ } : _yield$Promise$all2$;
14750
+ returnData = {};
14708
14751
 
14709
14752
  if (Array.isArray(data)) {
14710
14753
  data.forEach(function (spec) {
14711
- var _spec$coding5;
14754
+ if (!(spec.Type in returnData)) {
14755
+ returnData[spec.Type] = [];
14756
+ }
14712
14757
 
14713
- returnData.push({
14714
- label: (_spec$coding5 = spec.coding) === null || _spec$coding5 === void 0 ? void 0 : _spec$coding5.display,
14715
- value: spec._id
14716
- });
14758
+ returnData[spec.Type].push(spec);
14759
+ });
14760
+ }
14761
+
14762
+ if (fetchEncounter) {
14763
+ encounterRes = encounterData.result.map(function (enc) {
14764
+ return {
14765
+ data: enc,
14766
+ coding: {
14767
+ _id: enc._id,
14768
+ display: enc.encClsDesc
14769
+ }
14770
+ };
14717
14771
  });
14772
+ returnData['ENCOUNTERTYPE'] = encounterRes;
14718
14773
  }
14719
14774
 
14720
14775
  return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
14721
14776
  data: returnData
14722
14777
  }));
14723
14778
 
14724
- case 12:
14725
- _context9.prev = 12;
14779
+ case 24:
14780
+ _context9.prev = 24;
14726
14781
  _context9.t0 = _context9["catch"](2);
14727
14782
  return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
14728
14783
  message: _context9.t0.message
14729
14784
  })));
14730
14785
 
14731
- case 15:
14786
+ case 27:
14732
14787
  case "end":
14733
14788
  return _context9.stop();
14734
14789
  }
14735
14790
  }
14736
- }, _callee9, null, [[2, 12]]);
14791
+ }, _callee9, null, [[2, 24]]);
14737
14792
  })));
14738
- var SPECIALITY_AGAINST_PRACTITIONER = createAsyncThunk("searhcApiSlice/specialityAgainstPractitioner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
14793
+ var GET_RELATIONSHIPS = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
14739
14794
  var payload,
14740
14795
  _ref20,
14741
14796
  rejectWithValue,
@@ -14751,18 +14806,79 @@ var SPECIALITY_AGAINST_PRACTITIONER = createAsyncThunk("searhcApiSlice/specialit
14751
14806
  payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
14752
14807
  _ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
14753
14808
  _context10.prev = 2;
14809
+ body = {
14810
+ db_name: dbName,
14811
+ queryid: query_ids["searhcApiSlice/masterSearch"],
14812
+ filter: {
14813
+ type: ["Relation"]
14814
+ }
14815
+ };
14816
+ _context10.next = 6;
14817
+ return fetchData$3({
14818
+ body: JSON.stringify(body)
14819
+ });
14820
+
14821
+ case 6:
14822
+ data = _context10.sent;
14823
+ returnData = [];
14824
+
14825
+ if (Array.isArray(data)) {
14826
+ data.forEach(function (spec) {
14827
+ var _spec$coding7;
14828
+
14829
+ returnData.push({
14830
+ label: (_spec$coding7 = spec.coding) === null || _spec$coding7 === void 0 ? void 0 : _spec$coding7.display,
14831
+ value: spec._id
14832
+ });
14833
+ });
14834
+ }
14835
+
14836
+ return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
14837
+ data: returnData
14838
+ }));
14839
+
14840
+ case 12:
14841
+ _context10.prev = 12;
14842
+ _context10.t0 = _context10["catch"](2);
14843
+ return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
14844
+ message: _context10.t0.message
14845
+ })));
14846
+
14847
+ case 15:
14848
+ case "end":
14849
+ return _context10.stop();
14850
+ }
14851
+ }
14852
+ }, _callee10, null, [[2, 12]]);
14853
+ })));
14854
+ var SPECIALITY_AGAINST_PRACTITIONER = createAsyncThunk("searhcApiSlice/specialityAgainstPractitioner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
14855
+ var payload,
14856
+ _ref22,
14857
+ rejectWithValue,
14858
+ body,
14859
+ data,
14860
+ returnData,
14861
+ _args11 = arguments;
14862
+
14863
+ return regeneratorRuntime.wrap(function _callee11$(_context11) {
14864
+ while (1) {
14865
+ switch (_context11.prev = _context11.next) {
14866
+ case 0:
14867
+ payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
14868
+ _ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
14869
+ _context11.prev = 2;
14754
14870
  body = {
14755
14871
  db_name: dbName,
14756
14872
  entity: "Practitioner",
14757
14873
  return_fields: "MERGE(Practitioner,{name:(FOR cod IN TO_ARRAY(Practitioner.name) RETURN DOCUMENT(cod)),SPECIALTY:(FOR spec IN TO_ARRAY(Practitioner.practitioner_role) FOR speccod IN TO_ARRAY( DOCUMENT(spec).SpecialtyID) RETURN MERGE(DOCUMENT(speccod),{coding:(FOR cod IN DOCUMENT(speccod).coding RETURN DOCUMENT(cod))})) })"
14758
14874
  };
14759
- _context10.next = 6;
14875
+ _context11.next = 6;
14760
14876
  return fetchData$3({
14761
14877
  body: JSON.stringify(body)
14762
14878
  }, __readDocumentUrl__);
14763
14879
 
14764
14880
  case 6:
14765
- data = _context10.sent;
14881
+ data = _context11.sent;
14766
14882
  returnData = [];
14767
14883
 
14768
14884
  if (Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
@@ -14778,70 +14894,70 @@ var SPECIALITY_AGAINST_PRACTITIONER = createAsyncThunk("searhcApiSlice/specialit
14778
14894
  });
14779
14895
  }
14780
14896
 
14781
- return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
14897
+ return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
14782
14898
  data: returnData
14783
14899
  }));
14784
14900
 
14785
14901
  case 12:
14786
- _context10.prev = 12;
14787
- _context10.t0 = _context10["catch"](2);
14788
- return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
14789
- message: _context10.t0.message
14902
+ _context11.prev = 12;
14903
+ _context11.t0 = _context11["catch"](2);
14904
+ return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
14905
+ message: _context11.t0.message
14790
14906
  })));
14791
14907
 
14792
14908
  case 15:
14793
14909
  case "end":
14794
- return _context10.stop();
14910
+ return _context11.stop();
14795
14911
  }
14796
14912
  }
14797
- }, _callee10, null, [[2, 12]]);
14913
+ }, _callee11, null, [[2, 12]]);
14798
14914
  })));
14799
14915
 
14800
14916
  var getLocationInfo = /*#__PURE__*/function () {
14801
- var _ref21 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
14917
+ var _ref23 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
14802
14918
  var _hospInfo$address3, _hospInfo$address3$, _hospInfo$address3$$c;
14803
14919
 
14804
14920
  var hospInfo,
14805
14921
  obj,
14806
14922
  city,
14807
14923
  info,
14808
- _args11 = arguments;
14809
- return regeneratorRuntime.wrap(function _callee11$(_context11) {
14924
+ _args12 = arguments;
14925
+ return regeneratorRuntime.wrap(function _callee12$(_context12) {
14810
14926
  while (1) {
14811
- switch (_context11.prev = _context11.next) {
14927
+ switch (_context12.prev = _context12.next) {
14812
14928
  case 0:
14813
- hospInfo = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
14814
- obj = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
14929
+ hospInfo = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
14930
+ obj = _args12.length > 1 && _args12[1] !== undefined ? _args12[1] : {};
14815
14931
  city = hospInfo === null || hospInfo === void 0 ? void 0 : (_hospInfo$address3 = hospInfo.address) === null || _hospInfo$address3 === void 0 ? void 0 : (_hospInfo$address3$ = _hospInfo$address3[0]) === null || _hospInfo$address3$ === void 0 ? void 0 : (_hospInfo$address3$$c = _hospInfo$address3$.city) === null || _hospInfo$address3$$c === void 0 ? void 0 : _hospInfo$address3$$c.geogLevelName;
14816
14932
 
14817
14933
  if (obj[city]) {
14818
- _context11.next = 8;
14934
+ _context12.next = 8;
14819
14935
  break;
14820
14936
  }
14821
14937
 
14822
- _context11.next = 6;
14938
+ _context12.next = 6;
14823
14939
  return getLatLong(city);
14824
14940
 
14825
14941
  case 6:
14826
- info = _context11.sent;
14942
+ info = _context12.sent;
14827
14943
  obj[city] = info;
14828
14944
 
14829
14945
  case 8:
14830
14946
  case "end":
14831
- return _context11.stop();
14947
+ return _context12.stop();
14832
14948
  }
14833
14949
  }
14834
- }, _callee11);
14950
+ }, _callee12);
14835
14951
  }));
14836
14952
 
14837
14953
  return function getLocationInfo() {
14838
- return _ref21.apply(this, arguments);
14954
+ return _ref23.apply(this, arguments);
14839
14955
  };
14840
14956
  }();
14841
14957
 
14842
- var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practitionerAgainstOrganization", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
14958
+ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practitionerAgainstOrganization", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
14843
14959
  var payload,
14844
- _ref23,
14960
+ _ref25,
14845
14961
  rejectWithValue,
14846
14962
  _payload$practitioner,
14847
14963
  practitionerId,
@@ -14855,21 +14971,21 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
14855
14971
  _data$result2,
14856
14972
  cityMap,
14857
14973
  promArr,
14858
- _args12 = arguments;
14974
+ _args13 = arguments;
14859
14975
 
14860
- return regeneratorRuntime.wrap(function _callee12$(_context12) {
14976
+ return regeneratorRuntime.wrap(function _callee13$(_context13) {
14861
14977
  while (1) {
14862
- switch (_context12.prev = _context12.next) {
14978
+ switch (_context13.prev = _context13.next) {
14863
14979
  case 0:
14864
- payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
14865
- _ref23 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref23.rejectWithValue;
14866
- _context12.prev = 2;
14980
+ payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
14981
+ _ref25 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
14982
+ _context13.prev = 2;
14867
14983
  _payload$practitioner = payload.practitionerId, practitionerId = _payload$practitioner === void 0 ? "" : _payload$practitioner;
14868
- _context12.next = 6;
14984
+ _context13.next = 6;
14869
14985
  return getCurrentPosition();
14870
14986
 
14871
14987
  case 6:
14872
- _yield$getCurrentPosi2 = _context12.sent;
14988
+ _yield$getCurrentPosi2 = _context13.sent;
14873
14989
  myLat = _yield$getCurrentPosi2.lat;
14874
14990
  myLong = _yield$getCurrentPosi2["long"];
14875
14991
  body = {
@@ -14881,17 +14997,17 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
14881
14997
  },
14882
14998
  return_fields: "{address: (let add = Document(Organization.address[0]) return merge(add, { city: Document(add.city) })), OrganizationName:Organization.name, OrgID:Organization.id}"
14883
14999
  };
14884
- _context12.next = 12;
15000
+ _context13.next = 12;
14885
15001
  return fetchData$3({
14886
15002
  body: JSON.stringify(body)
14887
15003
  }, __readDocumentUrl__);
14888
15004
 
14889
15005
  case 12:
14890
- data = _context12.sent;
15006
+ data = _context13.sent;
14891
15007
  returnData = [];
14892
15008
 
14893
15009
  if (!Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
14894
- _context12.next = 20;
15010
+ _context13.next = 20;
14895
15011
  break;
14896
15012
  }
14897
15013
 
@@ -14899,7 +15015,7 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
14899
15015
  promArr = data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (hospInfo) {
14900
15016
  return getLocationInfo(hospInfo, cityMap);
14901
15017
  });
14902
- _context12.next = 19;
15018
+ _context13.next = 19;
14903
15019
  return es6Promise.Promise.all(promArr);
14904
15020
 
14905
15021
  case 19:
@@ -14908,9 +15024,9 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
14908
15024
 
14909
15025
  var city = hospInfo === null || hospInfo === void 0 ? void 0 : (_hospInfo$address4 = hospInfo.address) === null || _hospInfo$address4 === void 0 ? void 0 : (_hospInfo$address4$ = _hospInfo$address4[0]) === null || _hospInfo$address4$ === void 0 ? void 0 : (_hospInfo$address4$$c = _hospInfo$address4$.city) === null || _hospInfo$address4$$c === void 0 ? void 0 : _hospInfo$address4$$c.geogLevelName;
14910
15026
 
14911
- var _ref24 = cityMap[city] || {},
14912
- lat = _ref24.lat,
14913
- _long2 = _ref24["long"];
15027
+ var _ref26 = cityMap[city] || {},
15028
+ lat = _ref26.lat,
15029
+ _long2 = _ref26["long"];
14914
15030
 
14915
15031
  var distance = "";
14916
15032
 
@@ -14928,23 +15044,23 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
14928
15044
  });
14929
15045
 
14930
15046
  case 20:
14931
- return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
15047
+ return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
14932
15048
  data: returnData
14933
15049
  }));
14934
15050
 
14935
15051
  case 23:
14936
- _context12.prev = 23;
14937
- _context12.t0 = _context12["catch"](2);
14938
- return _context12.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
14939
- message: _context12.t0.message
15052
+ _context13.prev = 23;
15053
+ _context13.t0 = _context13["catch"](2);
15054
+ return _context13.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
15055
+ message: _context13.t0.message
14940
15056
  })));
14941
15057
 
14942
15058
  case 26:
14943
15059
  case "end":
14944
- return _context12.stop();
15060
+ return _context13.stop();
14945
15061
  }
14946
15062
  }
14947
- }, _callee12, null, [[2, 23]]);
15063
+ }, _callee13, null, [[2, 23]]);
14948
15064
  })));
14949
15065
  var searhcApiSlice = createSlice({
14950
15066
  name: "searhcApiSlice",
@@ -14954,6 +15070,7 @@ var searhcApiSlice = createSlice({
14954
15070
  hospitals: _objectSpread2({}, defaultState.List),
14955
15071
  symptoms: _objectSpread2({}, defaultState.List),
14956
15072
  speciality: _objectSpread2({}, defaultState.List),
15073
+ allSpeciality: _objectSpread2({}, defaultState.List),
14957
15074
  masterSearch: _objectSpread2({}, defaultState.Info),
14958
15075
  getRelationships: _objectSpread2({}, defaultState.Info),
14959
15076
  getSpecialityAgainstPractitioner: _objectSpread2({}, defaultState.Info),
@@ -15019,56 +15136,66 @@ var searhcApiSlice = createSlice({
15019
15136
  var _action$payload12;
15020
15137
 
15021
15138
  state.speciality = (_action$payload12 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
15022
- }), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY.fulfilled, function (state, action) {
15139
+ }), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY_2.fulfilled, function (state, action) {
15023
15140
  var _action$payload13;
15024
15141
 
15025
- state.speciality = (_action$payload13 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload13 !== void 0 ? _action$payload13 : {};
15142
+ state.allSpeciality = (_action$payload13 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload13 !== void 0 ? _action$payload13 : {};
15143
+ }), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY_2.pending, function (state, action) {
15144
+ state.allSpeciality.loading = true;
15145
+ }), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY_2.rejected, function (state, action) {
15146
+ var _action$payload14;
15147
+
15148
+ state.allSpeciality = (_action$payload14 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload14 !== void 0 ? _action$payload14 : {};
15149
+ }), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY.fulfilled, function (state, action) {
15150
+ var _action$payload15;
15151
+
15152
+ state.speciality = (_action$payload15 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload15 !== void 0 ? _action$payload15 : {};
15026
15153
  }), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY.pending, function (state, action) {
15027
15154
  state.speciality.loading = true;
15028
15155
  }), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY.rejected, function (state, action) {
15029
- var _action$payload14;
15156
+ var _action$payload16;
15030
15157
 
15031
- state.speciality = (_action$payload14 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload14 !== void 0 ? _action$payload14 : {};
15158
+ state.speciality = (_action$payload16 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload16 !== void 0 ? _action$payload16 : {};
15032
15159
  }), _defineProperty(_extraReducers$w, MASTER_SEARCH.fulfilled, function (state, action) {
15033
- var _action$payload15;
15160
+ var _action$payload17;
15034
15161
 
15035
- state.masterSearch = (_action$payload15 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload15 !== void 0 ? _action$payload15 : {};
15162
+ state.masterSearch = (_action$payload17 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload17 !== void 0 ? _action$payload17 : {};
15036
15163
  }), _defineProperty(_extraReducers$w, MASTER_SEARCH.pending, function (state, action) {
15037
15164
  state.masterSearch.loading = true;
15038
15165
  }), _defineProperty(_extraReducers$w, MASTER_SEARCH.rejected, function (state, action) {
15039
- var _action$payload16;
15166
+ var _action$payload18;
15040
15167
 
15041
- state.masterSearch = (_action$payload16 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload16 !== void 0 ? _action$payload16 : {};
15168
+ state.masterSearch = (_action$payload18 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload18 !== void 0 ? _action$payload18 : {};
15042
15169
  }), _defineProperty(_extraReducers$w, GET_RELATIONSHIPS.fulfilled, function (state, action) {
15043
- var _action$payload17;
15170
+ var _action$payload19;
15044
15171
 
15045
- state.getRelationships = (_action$payload17 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload17 !== void 0 ? _action$payload17 : [];
15172
+ state.getRelationships = (_action$payload19 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload19 !== void 0 ? _action$payload19 : [];
15046
15173
  }), _defineProperty(_extraReducers$w, GET_RELATIONSHIPS.pending, function (state, action) {
15047
15174
  state.getRelationships.loading = true;
15048
15175
  }), _defineProperty(_extraReducers$w, GET_RELATIONSHIPS.rejected, function (state, action) {
15049
- var _action$payload18;
15176
+ var _action$payload20;
15050
15177
 
15051
- state.getRelationships = (_action$payload18 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload18 !== void 0 ? _action$payload18 : [];
15178
+ state.getRelationships = (_action$payload20 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload20 !== void 0 ? _action$payload20 : [];
15052
15179
  }), _defineProperty(_extraReducers$w, SPECIALITY_AGAINST_PRACTITIONER.fulfilled, function (state, action) {
15053
- var _action$payload19;
15180
+ var _action$payload21;
15054
15181
 
15055
- state.getSpecialityAgainstPractitioner = (_action$payload19 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload19 !== void 0 ? _action$payload19 : [];
15182
+ state.getSpecialityAgainstPractitioner = (_action$payload21 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload21 !== void 0 ? _action$payload21 : [];
15056
15183
  }), _defineProperty(_extraReducers$w, SPECIALITY_AGAINST_PRACTITIONER.pending, function (state, action) {
15057
15184
  state.getSpecialityAgainstPractitioner.loading = true;
15058
15185
  }), _defineProperty(_extraReducers$w, SPECIALITY_AGAINST_PRACTITIONER.rejected, function (state, action) {
15059
- var _action$payload20;
15186
+ var _action$payload22;
15060
15187
 
15061
- state.getSpecialityAgainstPractitioner = (_action$payload20 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload20 !== void 0 ? _action$payload20 : [];
15188
+ state.getSpecialityAgainstPractitioner = (_action$payload22 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload22 !== void 0 ? _action$payload22 : [];
15062
15189
  }), _defineProperty(_extraReducers$w, PRACTITIONER_AGAINST_ORGANIZATION.fulfilled, function (state, action) {
15063
- var _action$payload21;
15190
+ var _action$payload23;
15064
15191
 
15065
- state.getPractitionerAgainstOrganization = (_action$payload21 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload21 !== void 0 ? _action$payload21 : [];
15192
+ state.getPractitionerAgainstOrganization = (_action$payload23 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload23 !== void 0 ? _action$payload23 : [];
15066
15193
  }), _defineProperty(_extraReducers$w, PRACTITIONER_AGAINST_ORGANIZATION.pending, function (state, action) {
15067
15194
  state.getPractitionerAgainstOrganization.loading = true;
15068
15195
  }), _defineProperty(_extraReducers$w, PRACTITIONER_AGAINST_ORGANIZATION.rejected, function (state, action) {
15069
- var _action$payload22;
15196
+ var _action$payload24;
15070
15197
 
15071
- state.getPractitionerAgainstOrganization = (_action$payload22 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload22 !== void 0 ? _action$payload22 : [];
15198
+ state.getPractitionerAgainstOrganization = (_action$payload24 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload24 !== void 0 ? _action$payload24 : [];
15072
15199
  }), _extraReducers$w)
15073
15200
  });
15074
15201
  var searchApiActions = {
@@ -15082,7 +15209,8 @@ var searchApiActions = {
15082
15209
  MASTER_SEARCH: MASTER_SEARCH,
15083
15210
  GET_RELATIONSHIPS: GET_RELATIONSHIPS,
15084
15211
  SPECIALITY_AGAINST_PRACTITIONER: SPECIALITY_AGAINST_PRACTITIONER,
15085
- PRACTITIONER_AGAINST_ORGANIZATION: PRACTITIONER_AGAINST_ORGANIZATION
15212
+ PRACTITIONER_AGAINST_ORGANIZATION: PRACTITIONER_AGAINST_ORGANIZATION,
15213
+ GET_ALL_SPECIALITY_2: GET_ALL_SPECIALITY_2
15086
15214
  };
15087
15215
  var searhcApiSlice$1 = searhcApiSlice.reducer;
15088
15216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",