primary_care_admin_binder 0.0.46 → 0.0.47
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 +229 -47
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -20716,7 +20716,7 @@ var query_ids = {
|
|
|
20716
20716
|
|
|
20717
20717
|
var query$2 = {
|
|
20718
20718
|
role_type: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='RESOURCETYPE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(for cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n}"),
|
|
20719
|
-
all_practitioner: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner\",\n \"filter\": \"Practitioner.activestatus==true\",\n
|
|
20719
|
+
all_practitioner: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner\",\n \"filter\": \"Practitioner.activestatus==true\",\n \"return_fields\": \"MERGE(KEEP(Practitioner,'_id','id','name','_key','practitioner_role'),{name:(for hu in HumanNameMaster filter hu._id in Practitioner.name return merge(hu,{use:(for us in CodeableConceptMaster filter us._id == hu.use return merge(us,{coding:document(us.coding)}))},{prefix:(for pre in CodeableConceptMaster filter pre._id == hu.prefix return merge(pre,{coding:document(pre.coding)}))},{suffix:(for suf in CodeableConceptMaster filter suf._id == hu.suffix return merge(suf,{coding:document(suf.coding)}))}))},{practitioner_role:(for prac in PractitionerRole filter prac._id in Practitioner.practitioner_role return merge (keep(prac,'role'),{role:(for rol in CodeableConceptMaster filter rol._id == prac.role return merge(rol,{coding:document(rol.coding)}))}))})\"\n}"),
|
|
20720
20720
|
practitoner_slot: function practitoner_slot(startDate, endDate, practitonerId) {
|
|
20721
20721
|
return {
|
|
20722
20722
|
db_name: dbName,
|
|
@@ -20728,22 +20728,37 @@ var query$2 = {
|
|
|
20728
20728
|
queryid: query_ids["scheduleManagementApiSlice/practitionerSlots"]
|
|
20729
20729
|
};
|
|
20730
20730
|
},
|
|
20731
|
-
release_schedule: function release_schedule(startDate, endDate, practitonerId) {
|
|
20731
|
+
release_schedule: function release_schedule(startDate, endDate, practitonerId, reason) {
|
|
20732
20732
|
return {
|
|
20733
20733
|
db_name: dbName,
|
|
20734
20734
|
practitionerId: parseInt("".concat(practitonerId)),
|
|
20735
20735
|
start: parseInt("".concat(startDate)),
|
|
20736
|
-
end: parseInt("".concat(endDate))
|
|
20736
|
+
end: parseInt("".concat(endDate)),
|
|
20737
|
+
releasereason: "".concat(reason)
|
|
20737
20738
|
};
|
|
20738
20739
|
},
|
|
20739
|
-
block_schedule: function block_schedule(startDate, endDate, practitonerId) {
|
|
20740
|
+
block_schedule: function block_schedule(startDate, endDate, practitonerId, reason) {
|
|
20740
20741
|
return {
|
|
20741
20742
|
db_name: dbName,
|
|
20742
20743
|
practitionerId: parseInt("".concat(practitonerId)),
|
|
20743
20744
|
start: parseInt("".concat(startDate)),
|
|
20744
|
-
end: parseInt("".concat(endDate))
|
|
20745
|
+
end: parseInt("".concat(endDate)),
|
|
20746
|
+
blockreason: "".concat(reason)
|
|
20745
20747
|
};
|
|
20746
|
-
}
|
|
20748
|
+
},
|
|
20749
|
+
block_partial: function block_partial(startDate, endDate, starttime, endtime, practitonerId, days, reason) {
|
|
20750
|
+
return {
|
|
20751
|
+
db_name: dbName,
|
|
20752
|
+
practitionerId: parseInt("".concat(practitonerId)),
|
|
20753
|
+
startDate: "".concat(startDate),
|
|
20754
|
+
endDate: "".concat(endDate),
|
|
20755
|
+
startTime: "".concat(starttime),
|
|
20756
|
+
endTime: "".concat(endtime),
|
|
20757
|
+
days: "".concat(days),
|
|
20758
|
+
blockreason: "".concat(reason)
|
|
20759
|
+
};
|
|
20760
|
+
},
|
|
20761
|
+
release_block_reason: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"ReasonMaster\",\n \"filter\": \"ReasonMaster.activestatus==true\",\n \"return_fields\": \"{_key:ReasonMaster._key,id:ReasonMaster.id,_id:ReasonMaster._id,ReasonCode:ReasonMaster.ReasonCode,ReasonDesc:ReasonMaster.ReasonDesc}\"\n}")
|
|
20747
20762
|
};
|
|
20748
20763
|
|
|
20749
20764
|
var generateSlots = function generateSlots(data) {
|
|
@@ -20833,60 +20848,63 @@ var ALL_PRACTITIONER = createAsyncThunk("scheduleManagementApiSlice/allPractitio
|
|
|
20833
20848
|
case 5:
|
|
20834
20849
|
data = _context2.sent;
|
|
20835
20850
|
arr = [];
|
|
20851
|
+
debugger;
|
|
20836
20852
|
data && data.result.map(function (val) {
|
|
20837
20853
|
arr.push({
|
|
20838
20854
|
value: val._id,
|
|
20839
|
-
label: val.name.length > 0 ? val.name[0].prefix + " " + val.name[0].text : "",
|
|
20840
|
-
id: val.id
|
|
20855
|
+
label: val.name.length > 0 ? val.name[0].prefix.length > 0 ? val.name[0].prefix[0].coding[0].display + " " + val.name[0].text : "" + val.name[0].text : "",
|
|
20856
|
+
id: val.id,
|
|
20857
|
+
role: val.practitioner_role.length > 0 ? val.practitioner_role[0].role.length > 0 ? val.practitioner_role[0].role[0].coding[0].display : "" : "Role not Assigned"
|
|
20841
20858
|
});
|
|
20842
20859
|
});
|
|
20843
20860
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
20844
20861
|
data: arr
|
|
20845
20862
|
}));
|
|
20846
20863
|
|
|
20847
|
-
case
|
|
20848
|
-
_context2.prev =
|
|
20864
|
+
case 12:
|
|
20865
|
+
_context2.prev = 12;
|
|
20849
20866
|
_context2.t0 = _context2["catch"](2);
|
|
20850
20867
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
20851
20868
|
message: _context2.t0.message
|
|
20852
20869
|
})));
|
|
20853
20870
|
|
|
20854
|
-
case
|
|
20871
|
+
case 15:
|
|
20855
20872
|
case "end":
|
|
20856
20873
|
return _context2.stop();
|
|
20857
20874
|
}
|
|
20858
20875
|
}
|
|
20859
|
-
}, _callee2, null, [[2,
|
|
20876
|
+
}, _callee2, null, [[2, 12]]);
|
|
20860
20877
|
})));
|
|
20861
|
-
var
|
|
20862
|
-
var
|
|
20863
|
-
_ref6,
|
|
20878
|
+
var BLOCK_RELEASE_REASON = createAsyncThunk("scheduleManagementApiSlice/block_release_reason", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
20879
|
+
var _ref6,
|
|
20864
20880
|
rejectWithValue,
|
|
20865
|
-
startDate,
|
|
20866
|
-
endDate,
|
|
20867
|
-
practitonerId,
|
|
20868
20881
|
data,
|
|
20869
|
-
|
|
20882
|
+
arr,
|
|
20870
20883
|
_args3 = arguments;
|
|
20871
20884
|
|
|
20872
20885
|
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
20873
20886
|
while (1) {
|
|
20874
20887
|
switch (_context3.prev = _context3.next) {
|
|
20875
20888
|
case 0:
|
|
20876
|
-
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
20877
20889
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
20878
20890
|
_context3.prev = 2;
|
|
20879
|
-
|
|
20880
|
-
_context3.next = 6;
|
|
20891
|
+
_context3.next = 5;
|
|
20881
20892
|
return fetchData({
|
|
20882
|
-
body:
|
|
20883
|
-
},
|
|
20893
|
+
body: query$2.release_block_reason
|
|
20894
|
+
}, __readDocumentUrl__);
|
|
20884
20895
|
|
|
20885
|
-
case
|
|
20896
|
+
case 5:
|
|
20886
20897
|
data = _context3.sent;
|
|
20887
|
-
|
|
20898
|
+
arr = [];
|
|
20899
|
+
data && data.result.map(function (val) {
|
|
20900
|
+
arr.push({
|
|
20901
|
+
value: val._id,
|
|
20902
|
+
label: val.ReasonDesc,
|
|
20903
|
+
id: val.id
|
|
20904
|
+
});
|
|
20905
|
+
});
|
|
20888
20906
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
20889
|
-
data:
|
|
20907
|
+
data: arr
|
|
20890
20908
|
}));
|
|
20891
20909
|
|
|
20892
20910
|
case 11:
|
|
@@ -20903,7 +20921,7 @@ var PRACTITIONER_SLOTS = createAsyncThunk("scheduleManagementApiSlice/practition
|
|
|
20903
20921
|
}
|
|
20904
20922
|
}, _callee3, null, [[2, 11]]);
|
|
20905
20923
|
})));
|
|
20906
|
-
var
|
|
20924
|
+
var PRACTITIONER_SLOTS = createAsyncThunk("scheduleManagementApiSlice/practitionerSlots", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
20907
20925
|
var payload,
|
|
20908
20926
|
_ref8,
|
|
20909
20927
|
rejectWithValue,
|
|
@@ -20911,6 +20929,7 @@ var RELEASE_SCHEDULE = createAsyncThunk("scheduleManagementApiSlice/release_sche
|
|
|
20911
20929
|
endDate,
|
|
20912
20930
|
practitonerId,
|
|
20913
20931
|
data,
|
|
20932
|
+
slots,
|
|
20914
20933
|
_args4 = arguments;
|
|
20915
20934
|
|
|
20916
20935
|
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
@@ -20923,31 +20942,31 @@ var RELEASE_SCHEDULE = createAsyncThunk("scheduleManagementApiSlice/release_sche
|
|
|
20923
20942
|
startDate = payload.startDate, endDate = payload.endDate, practitonerId = payload.practitonerId;
|
|
20924
20943
|
_context4.next = 6;
|
|
20925
20944
|
return fetchData({
|
|
20926
|
-
body: JSON.stringify(query$2.
|
|
20927
|
-
},
|
|
20928
|
-
);
|
|
20945
|
+
body: JSON.stringify(query$2.practitoner_slot(startDate, endDate, practitonerId))
|
|
20946
|
+
}, __baseUrl__$1);
|
|
20929
20947
|
|
|
20930
20948
|
case 6:
|
|
20931
20949
|
data = _context4.sent;
|
|
20950
|
+
slots = generateSlots(data);
|
|
20932
20951
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
20933
|
-
data:
|
|
20952
|
+
data: slots
|
|
20934
20953
|
}));
|
|
20935
20954
|
|
|
20936
|
-
case
|
|
20937
|
-
_context4.prev =
|
|
20955
|
+
case 11:
|
|
20956
|
+
_context4.prev = 11;
|
|
20938
20957
|
_context4.t0 = _context4["catch"](2);
|
|
20939
20958
|
return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
20940
20959
|
message: _context4.t0.message
|
|
20941
20960
|
})));
|
|
20942
20961
|
|
|
20943
|
-
case
|
|
20962
|
+
case 14:
|
|
20944
20963
|
case "end":
|
|
20945
20964
|
return _context4.stop();
|
|
20946
20965
|
}
|
|
20947
20966
|
}
|
|
20948
|
-
}, _callee4, null, [[2,
|
|
20967
|
+
}, _callee4, null, [[2, 11]]);
|
|
20949
20968
|
})));
|
|
20950
|
-
var
|
|
20969
|
+
var RELEASE_SLOTS = createAsyncThunk("scheduleManagementApiSlice/releaseSlots", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
20951
20970
|
var payload,
|
|
20952
20971
|
_ref10,
|
|
20953
20972
|
rejectWithValue,
|
|
@@ -20955,6 +20974,7 @@ var BLOCK_SCHEDULE = createAsyncThunk("scheduleManagementApiSlice/block_schedule
|
|
|
20955
20974
|
endDate,
|
|
20956
20975
|
practitonerId,
|
|
20957
20976
|
data,
|
|
20977
|
+
slots,
|
|
20958
20978
|
_args5 = arguments;
|
|
20959
20979
|
|
|
20960
20980
|
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
@@ -20967,29 +20987,167 @@ var BLOCK_SCHEDULE = createAsyncThunk("scheduleManagementApiSlice/block_schedule
|
|
|
20967
20987
|
startDate = payload.startDate, endDate = payload.endDate, practitonerId = payload.practitonerId;
|
|
20968
20988
|
_context5.next = 6;
|
|
20969
20989
|
return fetchData({
|
|
20970
|
-
body: JSON.stringify(query$2.
|
|
20971
|
-
},
|
|
20972
|
-
);
|
|
20990
|
+
body: JSON.stringify(query$2.practitoner_slot(startDate, endDate, practitonerId))
|
|
20991
|
+
}, __baseUrl__$1);
|
|
20973
20992
|
|
|
20974
20993
|
case 6:
|
|
20975
20994
|
data = _context5.sent;
|
|
20995
|
+
slots = generateSlots(data);
|
|
20976
20996
|
return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
20977
|
-
data:
|
|
20997
|
+
data: slots
|
|
20978
20998
|
}));
|
|
20979
20999
|
|
|
20980
|
-
case
|
|
20981
|
-
_context5.prev =
|
|
21000
|
+
case 11:
|
|
21001
|
+
_context5.prev = 11;
|
|
20982
21002
|
_context5.t0 = _context5["catch"](2);
|
|
20983
21003
|
return _context5.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
20984
21004
|
message: _context5.t0.message
|
|
20985
21005
|
})));
|
|
20986
21006
|
|
|
20987
|
-
case
|
|
21007
|
+
case 14:
|
|
20988
21008
|
case "end":
|
|
20989
21009
|
return _context5.stop();
|
|
20990
21010
|
}
|
|
20991
21011
|
}
|
|
20992
|
-
}, _callee5, null, [[2,
|
|
21012
|
+
}, _callee5, null, [[2, 11]]);
|
|
21013
|
+
})));
|
|
21014
|
+
var RELEASE_SCHEDULE = createAsyncThunk("scheduleManagementApiSlice/release_schedule", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
21015
|
+
var payload,
|
|
21016
|
+
_ref12,
|
|
21017
|
+
rejectWithValue,
|
|
21018
|
+
startDate,
|
|
21019
|
+
endDate,
|
|
21020
|
+
practitonerId,
|
|
21021
|
+
reason,
|
|
21022
|
+
data,
|
|
21023
|
+
_args6 = arguments;
|
|
21024
|
+
|
|
21025
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
21026
|
+
while (1) {
|
|
21027
|
+
switch (_context6.prev = _context6.next) {
|
|
21028
|
+
case 0:
|
|
21029
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
21030
|
+
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
21031
|
+
_context6.prev = 2;
|
|
21032
|
+
startDate = payload.startDate, endDate = payload.endDate, practitonerId = payload.practitonerId, reason = payload.reason;
|
|
21033
|
+
_context6.next = 6;
|
|
21034
|
+
return fetchData({
|
|
21035
|
+
body: JSON.stringify(query$2.release_schedule(startDate, endDate, practitonerId, reason))
|
|
21036
|
+
}, "".concat(__nifiUrl__, "/api/v1/ReleaseSchedule") //need to add in the env
|
|
21037
|
+
);
|
|
21038
|
+
|
|
21039
|
+
case 6:
|
|
21040
|
+
data = _context6.sent;
|
|
21041
|
+
return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
21042
|
+
data: data
|
|
21043
|
+
}));
|
|
21044
|
+
|
|
21045
|
+
case 10:
|
|
21046
|
+
_context6.prev = 10;
|
|
21047
|
+
_context6.t0 = _context6["catch"](2);
|
|
21048
|
+
return _context6.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
21049
|
+
message: _context6.t0.message
|
|
21050
|
+
})));
|
|
21051
|
+
|
|
21052
|
+
case 13:
|
|
21053
|
+
case "end":
|
|
21054
|
+
return _context6.stop();
|
|
21055
|
+
}
|
|
21056
|
+
}
|
|
21057
|
+
}, _callee6, null, [[2, 10]]);
|
|
21058
|
+
})));
|
|
21059
|
+
var BLOCK_SCHEDULE = createAsyncThunk("scheduleManagementApiSlice/block_schedule", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
21060
|
+
var payload,
|
|
21061
|
+
_ref14,
|
|
21062
|
+
rejectWithValue,
|
|
21063
|
+
startDate,
|
|
21064
|
+
endDate,
|
|
21065
|
+
practitonerId,
|
|
21066
|
+
reason,
|
|
21067
|
+
data,
|
|
21068
|
+
_args7 = arguments;
|
|
21069
|
+
|
|
21070
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
21071
|
+
while (1) {
|
|
21072
|
+
switch (_context7.prev = _context7.next) {
|
|
21073
|
+
case 0:
|
|
21074
|
+
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
21075
|
+
_ref14 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
|
|
21076
|
+
_context7.prev = 2;
|
|
21077
|
+
startDate = payload.startDate, endDate = payload.endDate, practitonerId = payload.practitonerId, reason = payload.reason;
|
|
21078
|
+
_context7.next = 6;
|
|
21079
|
+
return fetchData({
|
|
21080
|
+
body: JSON.stringify(query$2.block_schedule(startDate, endDate, practitonerId, reason))
|
|
21081
|
+
}, "".concat(__nifiUrl__, "/api/v1/BlockSchedule") //need to add in the env
|
|
21082
|
+
);
|
|
21083
|
+
|
|
21084
|
+
case 6:
|
|
21085
|
+
data = _context7.sent;
|
|
21086
|
+
return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
21087
|
+
data: data
|
|
21088
|
+
}));
|
|
21089
|
+
|
|
21090
|
+
case 10:
|
|
21091
|
+
_context7.prev = 10;
|
|
21092
|
+
_context7.t0 = _context7["catch"](2);
|
|
21093
|
+
return _context7.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
21094
|
+
message: _context7.t0.message
|
|
21095
|
+
})));
|
|
21096
|
+
|
|
21097
|
+
case 13:
|
|
21098
|
+
case "end":
|
|
21099
|
+
return _context7.stop();
|
|
21100
|
+
}
|
|
21101
|
+
}
|
|
21102
|
+
}, _callee7, null, [[2, 10]]);
|
|
21103
|
+
})));
|
|
21104
|
+
var BLOCK_SCHEDULE_PARTIAL = createAsyncThunk("scheduleManagementApiSlice/block_schedule_partial", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
21105
|
+
var payload,
|
|
21106
|
+
_ref16,
|
|
21107
|
+
rejectWithValue,
|
|
21108
|
+
startDate,
|
|
21109
|
+
endDate,
|
|
21110
|
+
starttime,
|
|
21111
|
+
endtime,
|
|
21112
|
+
practitonerId,
|
|
21113
|
+
days,
|
|
21114
|
+
reason,
|
|
21115
|
+
data,
|
|
21116
|
+
_args8 = arguments;
|
|
21117
|
+
|
|
21118
|
+
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
21119
|
+
while (1) {
|
|
21120
|
+
switch (_context8.prev = _context8.next) {
|
|
21121
|
+
case 0:
|
|
21122
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
21123
|
+
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
|
|
21124
|
+
_context8.prev = 2;
|
|
21125
|
+
startDate = payload.startDate, endDate = payload.endDate, starttime = payload.starttime, endtime = payload.endtime, practitonerId = payload.practitonerId, days = payload.days, reason = payload.reason;
|
|
21126
|
+
_context8.next = 6;
|
|
21127
|
+
return fetchData({
|
|
21128
|
+
body: JSON.stringify(query$2.block_partial(startDate, endDate, starttime, endtime, practitonerId, days, reason))
|
|
21129
|
+
}, "".concat(__nifiUrl__, "/api/v1/BlockSchedule") //need to add in the env
|
|
21130
|
+
);
|
|
21131
|
+
|
|
21132
|
+
case 6:
|
|
21133
|
+
data = _context8.sent;
|
|
21134
|
+
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
21135
|
+
data: data
|
|
21136
|
+
}));
|
|
21137
|
+
|
|
21138
|
+
case 10:
|
|
21139
|
+
_context8.prev = 10;
|
|
21140
|
+
_context8.t0 = _context8["catch"](2);
|
|
21141
|
+
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
21142
|
+
message: _context8.t0.message
|
|
21143
|
+
})));
|
|
21144
|
+
|
|
21145
|
+
case 13:
|
|
21146
|
+
case "end":
|
|
21147
|
+
return _context8.stop();
|
|
21148
|
+
}
|
|
21149
|
+
}
|
|
21150
|
+
}, _callee8, null, [[2, 10]]);
|
|
20993
21151
|
})));
|
|
20994
21152
|
var scheduleManagementSlice = createSlice({
|
|
20995
21153
|
name: "scheduleManagementApiSlice",
|
|
@@ -20998,7 +21156,10 @@ var scheduleManagementSlice = createSlice({
|
|
|
20998
21156
|
all_practitioner: _objectSpread2({}, defaultState.List),
|
|
20999
21157
|
practitioner_slots: _objectSpread2({}, defaultState.List),
|
|
21000
21158
|
release_schedule: _objectSpread2({}, defaultState.List),
|
|
21001
|
-
block_schedule: _objectSpread2({}, defaultState.List)
|
|
21159
|
+
block_schedule: _objectSpread2({}, defaultState.List),
|
|
21160
|
+
block_release_reason: _objectSpread2({}, defaultState.List),
|
|
21161
|
+
block_schedule_partial: _objectSpread2({}, defaultState.List),
|
|
21162
|
+
release_slots: _objectSpread2({}, defaultState.List)
|
|
21002
21163
|
},
|
|
21003
21164
|
extraReducers: (_extraReducers$8 = {}, _defineProperty(_extraReducers$8, ROLE_TYPE.fulfilled, function (state, action) {
|
|
21004
21165
|
state.role_type.loading = false, state.role_type.error = false, state.role_type = action.payload;
|
|
@@ -21012,12 +21173,24 @@ var scheduleManagementSlice = createSlice({
|
|
|
21012
21173
|
state.all_practitioner.loading = true, state.all_practitioner.error = false, state.all_practitioner.loading = true;
|
|
21013
21174
|
}), _defineProperty(_extraReducers$8, ALL_PRACTITIONER.rejected, function (state, action) {
|
|
21014
21175
|
state.all_practitioner.loading = false, state.all_practitioner.error = true, state.all_practitioner = action.payload;
|
|
21176
|
+
}), _defineProperty(_extraReducers$8, BLOCK_RELEASE_REASON.fulfilled, function (state, action) {
|
|
21177
|
+
state.block_release_reason.loading = false, state.block_release_reason.error = false, state.block_release_reason = action.payload;
|
|
21178
|
+
}), _defineProperty(_extraReducers$8, BLOCK_RELEASE_REASON.pending, function (state, action) {
|
|
21179
|
+
state.block_release_reason.loading = true, state.block_release_reason.error = false, state.block_release_reason.loading = true;
|
|
21180
|
+
}), _defineProperty(_extraReducers$8, BLOCK_RELEASE_REASON.rejected, function (state, action) {
|
|
21181
|
+
state.block_release_reason.loading = false, state.block_release_reason.error = true, state.block_release_reason = action.payload;
|
|
21015
21182
|
}), _defineProperty(_extraReducers$8, PRACTITIONER_SLOTS.fulfilled, function (state, action) {
|
|
21016
21183
|
state.practitioner_slots.loading = false, state.practitioner_slots.error = false, state.practitioner_slots = action.payload;
|
|
21017
21184
|
}), _defineProperty(_extraReducers$8, PRACTITIONER_SLOTS.pending, function (state, action) {
|
|
21018
21185
|
state.practitioner_slots.loading = true, state.practitioner_slots.error = false, state.practitioner_slots.loading = true;
|
|
21019
21186
|
}), _defineProperty(_extraReducers$8, PRACTITIONER_SLOTS.rejected, function (state, action) {
|
|
21020
21187
|
state.practitioner_slots.loading = false, state.practitioner_slots.error = true, state.practitioner_slots = action.payload;
|
|
21188
|
+
}), _defineProperty(_extraReducers$8, RELEASE_SLOTS.fulfilled, function (state, action) {
|
|
21189
|
+
state.release_slots.loading = false, state.release_slots.error = false, state.release_slots = action.payload;
|
|
21190
|
+
}), _defineProperty(_extraReducers$8, RELEASE_SLOTS.pending, function (state, action) {
|
|
21191
|
+
state.release_slots.loading = true, state.release_slots.error = false, state.release_slots.loading = true;
|
|
21192
|
+
}), _defineProperty(_extraReducers$8, RELEASE_SLOTS.rejected, function (state, action) {
|
|
21193
|
+
state.release_slots.loading = false, state.release_slots.error = true, state.release_slots = action.payload;
|
|
21021
21194
|
}), _defineProperty(_extraReducers$8, RELEASE_SCHEDULE.fulfilled, function (state, action) {
|
|
21022
21195
|
state.release_schedule.loading = false, state.release_schedule.error = false, state.release_schedule = action.payload;
|
|
21023
21196
|
}), _defineProperty(_extraReducers$8, RELEASE_SCHEDULE.pending, function (state, action) {
|
|
@@ -21030,6 +21203,12 @@ var scheduleManagementSlice = createSlice({
|
|
|
21030
21203
|
state.block_schedule.loading = true, state.block_schedule.error = false, state.block_schedule.loading = true;
|
|
21031
21204
|
}), _defineProperty(_extraReducers$8, BLOCK_SCHEDULE.rejected, function (state, action) {
|
|
21032
21205
|
state.block_schedule.loading = false, state.block_schedule.error = true, state.block_schedule = action.payload;
|
|
21206
|
+
}), _defineProperty(_extraReducers$8, BLOCK_SCHEDULE_PARTIAL.fulfilled, function (state, action) {
|
|
21207
|
+
state.block_schedule_partial.loading = false, state.block_schedule_partial.error = false, state.block_schedule_partial = action.payload;
|
|
21208
|
+
}), _defineProperty(_extraReducers$8, BLOCK_SCHEDULE_PARTIAL.pending, function (state, action) {
|
|
21209
|
+
state.block_schedule_partial.loading = true, state.block_schedule_partial.error = false, state.block_schedule_partial.loading = true;
|
|
21210
|
+
}), _defineProperty(_extraReducers$8, BLOCK_SCHEDULE_PARTIAL.rejected, function (state, action) {
|
|
21211
|
+
state.block_schedule_partial.loading = false, state.block_schedule_partial.error = true, state.block_schedule_partial = action.payload;
|
|
21033
21212
|
}), _extraReducers$8)
|
|
21034
21213
|
});
|
|
21035
21214
|
var scheduleManagementActions = {
|
|
@@ -21037,7 +21216,10 @@ var scheduleManagementActions = {
|
|
|
21037
21216
|
ALL_PRACTITIONER: ALL_PRACTITIONER,
|
|
21038
21217
|
PRACTITIONER_SLOTS: PRACTITIONER_SLOTS,
|
|
21039
21218
|
RELEASE_SCHEDULE: RELEASE_SCHEDULE,
|
|
21040
|
-
BLOCK_SCHEDULE: BLOCK_SCHEDULE
|
|
21219
|
+
BLOCK_SCHEDULE: BLOCK_SCHEDULE,
|
|
21220
|
+
BLOCK_RELEASE_REASON: BLOCK_RELEASE_REASON,
|
|
21221
|
+
BLOCK_SCHEDULE_PARTIAL: BLOCK_SCHEDULE_PARTIAL,
|
|
21222
|
+
RELEASE_SLOTS: RELEASE_SLOTS
|
|
21041
21223
|
};
|
|
21042
21224
|
var scheduleManagementSlice$1 = scheduleManagementSlice.reducer;
|
|
21043
21225
|
|