primary_care_admin_binder 0.1.92 → 0.1.93
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 +1129 -331
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8389,7 +8389,7 @@ var queries$o = {
|
|
|
8389
8389
|
db_name: dbName$1,
|
|
8390
8390
|
entity: "Practitioner",
|
|
8391
8391
|
filter: "Practitioner._key=='".concat(id, "' && Practitioner.activestatus==true"),
|
|
8392
|
-
return_fields: "merge(adqolcPractitioner,{identifier:(FOR iden IN DOCUMENT(adqolcPractitioner.personid).identifier RETURN MERGE(iden,{code:KEEP(DOCUMENT(iden.code),'_id','display'),use:KEEP(DOCUMENT(iden.use),'_id','display'),attachments:(for att in iden.attachments FILTER document(att).activestatus == true RETURN KEEP(document(att),'url','fileName','fileid','objectid','filetype'))})),address:(FOR addr IN document(adqolcPractitioner.personid).address RETURN MERGE(addr,{use:KEEP(DOCUMENT(addr.use),'_id','display'),type:KEEP(DOCUMENT(addr.type),'_id','display'),city:KEEP(DOCUMENT(addr.city),'_id','geogLevelName'),district:KEEP(DOCUMENT(addr.district),'_id','geogLevelName'),state:KEEP(DOCUMENT(addr.state),'_id','geogLevelName'),postalcode:KEEP(DOCUMENT(addr.postalcode),'_id','geogLevelName'),country:KEEP(DOCUMENT(addr.country),'_id','geogLevelName')})),communication:(FOR coms IN DOCUMENT(adqolcPractitioner.personid).communicationlanguage RETURN KEEP(DOCUMENT(coms),'_id','display')),marital_status:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).maritalstatus),'_id','display'),birthdate:DOCUMENT(adqolcPractitioner.personid).birthdate,name:(FOR name IN DOCUMENT(adqolcPractitioner.personid).name RETURN MERGE(name,{use:KEEP(DOCUMENT(name.use),'_id','display'),prefix:KEEP(DOCUMENT(name.prefix),'_id','display')})),nationality:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).nationality),'_id','geogLevelName'),practitioner_type:KEEP(DOCUMENT(adqolcPractitioner.practitioner_type),'_id','display'),gender:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).gender),'_id','display'),practitioner_role:(FOR pro IN adqolcPractitioner.practitioner_role RETURN MERGE(pro,{role:KEEP(DOCUMENT(pro.role),'_id','display'),specialtyid:KEEP(DOCUMENT(pro.specialtyid),'_id','display'),entitytype:KEEP(DOCUMENT(pro.entitytype),'_id','display'),entityname:DOCUMENT(pro.entityname),locationid:dOCUMENT(pro.locationid)})),telecom:(FOR tel IN DOCUMENT(adqolcPractitioner.personid).telecom RETURN MERGE(tel,{system:KEEP(DOCUMENT(tel.system),'_id','display'),use:KEEP(DOCUMENT(tel.use),'_id','display')})),photo:DOCUMENT(DOCUMENT(adqolcPractitioner.personid).photo)})"
|
|
8392
|
+
return_fields: "merge(adqolcPractitioner,{identifier:(FOR iden IN DOCUMENT(adqolcPractitioner.personid).identifier RETURN MERGE(iden,{code:KEEP(DOCUMENT(iden.code),'_id','display'),use:KEEP(DOCUMENT(iden.use),'_id','display'),attachments:(for att in iden.attachments FILTER document(att).activestatus == true RETURN KEEP(document(att),'url','fileName','fileid','objectid','filetype','_id'))})),address:(FOR addr IN document(adqolcPractitioner.personid).address RETURN MERGE(addr,{use:KEEP(DOCUMENT(addr.use),'_id','display'),type:KEEP(DOCUMENT(addr.type),'_id','display'),city:KEEP(DOCUMENT(addr.city),'_id','geogLevelName'),district:KEEP(DOCUMENT(addr.district),'_id','geogLevelName'),state:KEEP(DOCUMENT(addr.state),'_id','geogLevelName'),postalcode:KEEP(DOCUMENT(addr.postalcode),'_id','geogLevelName'),country:KEEP(DOCUMENT(addr.country),'_id','geogLevelName')})),communication:(FOR coms IN DOCUMENT(adqolcPractitioner.personid).communicationlanguage RETURN KEEP(DOCUMENT(coms),'_id','display')),marital_status:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).maritalstatus),'_id','display'),birthdate:DOCUMENT(adqolcPractitioner.personid).birthdate,name:(FOR name IN DOCUMENT(adqolcPractitioner.personid).name RETURN MERGE(name,{use:KEEP(DOCUMENT(name.use),'_id','display'),prefix:KEEP(DOCUMENT(name.prefix),'_id','display')})),nationality:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).nationality),'_id','geogLevelName'),practitioner_type:KEEP(DOCUMENT(adqolcPractitioner.practitioner_type),'_id','display'),gender:KEEP(DOCUMENT(DOCUMENT(adqolcPractitioner.personid).gender),'_id','display'),practitioner_role:(FOR pro IN adqolcPractitioner.practitioner_role RETURN MERGE(pro,{role:KEEP(DOCUMENT(pro.role),'_id','display'),specialtyid:KEEP(DOCUMENT(pro.specialtyid),'_id','display'),entitytype:KEEP(DOCUMENT(pro.entitytype),'_id','display'),entityname:DOCUMENT(pro.entityname),locationid:dOCUMENT(pro.locationid)})),telecom:(FOR tel IN DOCUMENT(adqolcPractitioner.personid).telecom RETURN MERGE(tel,{system:KEEP(DOCUMENT(tel.system),'_id','display'),use:KEEP(DOCUMENT(tel.use),'_id','display')})),photo:DOCUMENT(DOCUMENT(adqolcPractitioner.personid).photo)})"
|
|
8393
8393
|
};
|
|
8394
8394
|
},
|
|
8395
8395
|
practitioner_list: function practitioner_list() {
|
|
@@ -16009,7 +16009,6 @@ var queries$i = {
|
|
|
16009
16009
|
};
|
|
16010
16010
|
},
|
|
16011
16011
|
res_appointment_list: function res_appointment_list(key) {
|
|
16012
|
-
console.log(key, "skdjiertt");
|
|
16013
16012
|
// return {
|
|
16014
16013
|
// db_name: "primarycareng",
|
|
16015
16014
|
// entity: "ResourcebyApptType",
|
|
@@ -16045,7 +16044,8 @@ var queries$i = {
|
|
|
16045
16044
|
entity: "ResourcebyApptType",
|
|
16046
16045
|
is_metadata: true,
|
|
16047
16046
|
metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03",
|
|
16048
|
-
doc: key
|
|
16047
|
+
doc: key,
|
|
16048
|
+
metadata_dbname: process.env.REACT_APP_METADATA_DB_NAME
|
|
16049
16049
|
}];
|
|
16050
16050
|
},
|
|
16051
16051
|
res_appointment_single_read: function res_appointment_single_read(key) {
|
|
@@ -16067,7 +16067,6 @@ var queries$i = {
|
|
|
16067
16067
|
// },
|
|
16068
16068
|
res_update_appointment: function res_update_appointment(key, val) {
|
|
16069
16069
|
var _key$data, _key$data$;
|
|
16070
|
-
console.log(key, "kkdkkdffds");
|
|
16071
16070
|
return [{
|
|
16072
16071
|
db_name: "primarycareng",
|
|
16073
16072
|
entity: "ResourcebyApptType",
|
|
@@ -16076,6 +16075,7 @@ var queries$i = {
|
|
|
16076
16075
|
_key: key === null || key === void 0 ? void 0 : (_key$data = key.data) === null || _key$data === void 0 ? void 0 : (_key$data$ = _key$data[0]) === null || _key$data$ === void 0 ? void 0 : _key$data$._key
|
|
16077
16076
|
},
|
|
16078
16077
|
metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03",
|
|
16078
|
+
metadata_dbname: process.env.REACT_APP_METADATA_DB_NAME,
|
|
16079
16079
|
doc: key === null || key === void 0 ? void 0 : key["final"]
|
|
16080
16080
|
// doc: {
|
|
16081
16081
|
// id: "number",
|
|
@@ -16642,12 +16642,15 @@ var RES_SPECIALINSTRUCTION = createAsyncThunk("resourceByAppointmentTypesSlice/r
|
|
|
16642
16642
|
}
|
|
16643
16643
|
}, _callee8, null, [[2, 12]]);
|
|
16644
16644
|
})));
|
|
16645
|
-
var
|
|
16645
|
+
var RES_CRITERIA_INSTRUCTION_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_criteria_instruction_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
16646
16646
|
var _ref18,
|
|
16647
16647
|
rejectWithValue,
|
|
16648
|
-
|
|
16648
|
+
_data$,
|
|
16649
|
+
_data$$HEALTHISSUES,
|
|
16650
|
+
_data$$HEALTHISSUES$V,
|
|
16651
|
+
body,
|
|
16649
16652
|
data,
|
|
16650
|
-
|
|
16653
|
+
arry,
|
|
16651
16654
|
_args9 = arguments;
|
|
16652
16655
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
16653
16656
|
while (1) {
|
|
@@ -16655,28 +16658,33 @@ var RES_CRITERIA_INSTRUVTION = createAsyncThunk("resourceByAppointmentTypesSlice
|
|
|
16655
16658
|
case 0:
|
|
16656
16659
|
_ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
|
|
16657
16660
|
_context9.prev = 2;
|
|
16658
|
-
|
|
16661
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
16662
|
+
body = {
|
|
16663
|
+
db_name: "primarycareng",
|
|
16664
|
+
filter: {
|
|
16665
|
+
type: ["HEALTHISSUES"],
|
|
16666
|
+
tenantid: "",
|
|
16667
|
+
facilityid: "",
|
|
16668
|
+
lang: ""
|
|
16669
|
+
},
|
|
16670
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
16671
|
+
};
|
|
16659
16672
|
_context9.next = 6;
|
|
16660
16673
|
return fetchData({
|
|
16661
|
-
body: JSON.stringify(
|
|
16662
|
-
},
|
|
16674
|
+
body: JSON.stringify(body)
|
|
16675
|
+
}, __baseUrl__$1);
|
|
16663
16676
|
case 6:
|
|
16664
16677
|
data = _context9.sent;
|
|
16665
|
-
|
|
16666
|
-
data.
|
|
16667
|
-
|
|
16668
|
-
|
|
16669
|
-
|
|
16670
|
-
|
|
16671
|
-
|
|
16672
|
-
label: val === null || val === void 0 ? void 0 : (_val$coding$15 = val.coding[0]) === null || _val$coding$15 === void 0 ? void 0 : _val$coding$15.display,
|
|
16673
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$16 = val.coding[0]) === null || _val$coding$16 === void 0 ? void 0 : _val$coding$16.display,
|
|
16674
|
-
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
16675
|
-
});
|
|
16676
|
-
}
|
|
16678
|
+
arry = [];
|
|
16679
|
+
(_data$ = data[0]) === null || _data$ === void 0 ? void 0 : (_data$$HEALTHISSUES = _data$.HEALTHISSUES) === null || _data$$HEALTHISSUES === void 0 ? void 0 : (_data$$HEALTHISSUES$V = _data$$HEALTHISSUES.Value) === null || _data$$HEALTHISSUES$V === void 0 ? void 0 : _data$$HEALTHISSUES$V.map(function (item) {
|
|
16680
|
+
return arry.push({
|
|
16681
|
+
_id: item._id,
|
|
16682
|
+
Value: item._id,
|
|
16683
|
+
label: item.display
|
|
16684
|
+
});
|
|
16677
16685
|
});
|
|
16678
16686
|
return _context9.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16679
|
-
data:
|
|
16687
|
+
data: arry
|
|
16680
16688
|
}));
|
|
16681
16689
|
case 12:
|
|
16682
16690
|
_context9.prev = 12;
|
|
@@ -16691,31 +16699,38 @@ var RES_CRITERIA_INSTRUVTION = createAsyncThunk("resourceByAppointmentTypesSlice
|
|
|
16691
16699
|
}
|
|
16692
16700
|
}, _callee9, null, [[2, 12]]);
|
|
16693
16701
|
})));
|
|
16694
|
-
var
|
|
16695
|
-
var
|
|
16696
|
-
_ref20,
|
|
16702
|
+
var RES_CRITERIA_INSTRUVTION = createAsyncThunk("resourceByAppointmentTypesSlice/res_criteria_instruction", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
|
16703
|
+
var _ref20,
|
|
16697
16704
|
rejectWithValue,
|
|
16698
|
-
id,
|
|
16699
|
-
checked,
|
|
16700
16705
|
queriesjson,
|
|
16706
|
+
data,
|
|
16701
16707
|
result,
|
|
16702
16708
|
_args10 = arguments;
|
|
16703
16709
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
16704
16710
|
while (1) {
|
|
16705
16711
|
switch (_context10.prev = _context10.next) {
|
|
16706
16712
|
case 0:
|
|
16707
|
-
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
16708
16713
|
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
16709
16714
|
_context10.prev = 2;
|
|
16710
|
-
|
|
16711
|
-
|
|
16712
|
-
_context10.next = 7;
|
|
16715
|
+
queriesjson = queries$i.res_criteria_instruction();
|
|
16716
|
+
_context10.next = 6;
|
|
16713
16717
|
return fetchData({
|
|
16714
16718
|
body: JSON.stringify(queriesjson)
|
|
16715
|
-
},
|
|
16716
|
-
case
|
|
16717
|
-
_context10.sent;
|
|
16719
|
+
}, __readDocumentUrl__);
|
|
16720
|
+
case 6:
|
|
16721
|
+
data = _context10.sent;
|
|
16718
16722
|
result = [];
|
|
16723
|
+
data.result.map(function (val, i) {
|
|
16724
|
+
var _val$coding$13, _val$coding$14;
|
|
16725
|
+
if (val !== null && val !== void 0 && (_val$coding$13 = val.coding[0]) !== null && _val$coding$13 !== void 0 && _val$coding$13.display && val !== null && val !== void 0 && (_val$coding$14 = val.coding[0]) !== null && _val$coding$14 !== void 0 && _val$coding$14._id) {
|
|
16726
|
+
var _val$coding$15, _val$coding$16;
|
|
16727
|
+
result.push({
|
|
16728
|
+
label: val === null || val === void 0 ? void 0 : (_val$coding$15 = val.coding[0]) === null || _val$coding$15 === void 0 ? void 0 : _val$coding$15.display,
|
|
16729
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$16 = val.coding[0]) === null || _val$coding$16 === void 0 ? void 0 : _val$coding$16.display,
|
|
16730
|
+
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
16731
|
+
});
|
|
16732
|
+
}
|
|
16733
|
+
});
|
|
16719
16734
|
return _context10.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16720
16735
|
data: result
|
|
16721
16736
|
}));
|
|
@@ -16732,12 +16747,12 @@ var UPDATE_STATUS_RES_LINE_LIST = createAsyncThunk("resourceByAppointmentTypesSl
|
|
|
16732
16747
|
}
|
|
16733
16748
|
}, _callee10, null, [[2, 12]]);
|
|
16734
16749
|
})));
|
|
16735
|
-
var
|
|
16750
|
+
var UPDATE_STATUS_RES_LINE_LIST = createAsyncThunk("resourceByAppointmentTypesSlice/res_status_update", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
16736
16751
|
var payload,
|
|
16737
16752
|
_ref22,
|
|
16738
16753
|
rejectWithValue,
|
|
16739
|
-
|
|
16740
|
-
|
|
16754
|
+
id,
|
|
16755
|
+
checked,
|
|
16741
16756
|
queriesjson,
|
|
16742
16757
|
result,
|
|
16743
16758
|
_args11 = arguments;
|
|
@@ -16748,8 +16763,8 @@ var RES_UPSERT_INSER_NEW = createAsyncThunk("resourceByAppointmentTypesSlice/res
|
|
|
16748
16763
|
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
16749
16764
|
_ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
16750
16765
|
_context11.prev = 2;
|
|
16751
|
-
|
|
16752
|
-
queriesjson =
|
|
16766
|
+
id = payload.id, checked = payload.checked;
|
|
16767
|
+
queriesjson = queries$i.res_status_update(id, checked);
|
|
16753
16768
|
_context11.next = 7;
|
|
16754
16769
|
return fetchData({
|
|
16755
16770
|
body: JSON.stringify(queriesjson)
|
|
@@ -16773,14 +16788,14 @@ var RES_UPSERT_INSER_NEW = createAsyncThunk("resourceByAppointmentTypesSlice/res
|
|
|
16773
16788
|
}
|
|
16774
16789
|
}, _callee11, null, [[2, 12]]);
|
|
16775
16790
|
})));
|
|
16776
|
-
var
|
|
16791
|
+
var RES_UPSERT_INSER_NEW = createAsyncThunk("resourceByAppointmentTypesSlice/res_upsert_new", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
|
|
16777
16792
|
var payload,
|
|
16778
16793
|
_ref24,
|
|
16779
16794
|
rejectWithValue,
|
|
16795
|
+
state,
|
|
16780
16796
|
key,
|
|
16781
16797
|
queriesjson,
|
|
16782
|
-
|
|
16783
|
-
read_json,
|
|
16798
|
+
result,
|
|
16784
16799
|
_args12 = arguments;
|
|
16785
16800
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
16786
16801
|
while (1) {
|
|
@@ -16789,17 +16804,17 @@ var RES_LINE_LIST_READ_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/r
|
|
|
16789
16804
|
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
16790
16805
|
_ref24 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
|
|
16791
16806
|
_context12.prev = 2;
|
|
16792
|
-
key = payload.key;
|
|
16793
|
-
queriesjson =
|
|
16807
|
+
state = payload.state, key = payload.key;
|
|
16808
|
+
queriesjson = generateJson$a.insert_json(state, key);
|
|
16794
16809
|
_context12.next = 7;
|
|
16795
16810
|
return fetchData({
|
|
16796
16811
|
body: JSON.stringify(queriesjson)
|
|
16797
|
-
},
|
|
16812
|
+
}, __uspsertUrl__);
|
|
16798
16813
|
case 7:
|
|
16799
|
-
|
|
16800
|
-
|
|
16814
|
+
_context12.sent;
|
|
16815
|
+
result = [];
|
|
16801
16816
|
return _context12.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16802
|
-
data:
|
|
16817
|
+
data: result
|
|
16803
16818
|
}));
|
|
16804
16819
|
case 12:
|
|
16805
16820
|
_context12.prev = 12;
|
|
@@ -16814,57 +16829,55 @@ var RES_LINE_LIST_READ_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/r
|
|
|
16814
16829
|
}
|
|
16815
16830
|
}, _callee12, null, [[2, 12]]);
|
|
16816
16831
|
})));
|
|
16817
|
-
var
|
|
16818
|
-
var
|
|
16832
|
+
var RES_LINE_LIST_READ_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_line_list_read_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
16833
|
+
var payload,
|
|
16834
|
+
_ref26,
|
|
16819
16835
|
rejectWithValue,
|
|
16820
|
-
|
|
16821
|
-
|
|
16836
|
+
key,
|
|
16837
|
+
queriesjson,
|
|
16838
|
+
data,
|
|
16839
|
+
read_json,
|
|
16822
16840
|
_args13 = arguments;
|
|
16823
16841
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
16824
16842
|
while (1) {
|
|
16825
16843
|
switch (_context13.prev = _context13.next) {
|
|
16826
16844
|
case 0:
|
|
16845
|
+
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
|
16827
16846
|
_ref26 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
|
|
16828
16847
|
_context13.prev = 2;
|
|
16829
|
-
|
|
16848
|
+
key = payload.key;
|
|
16849
|
+
queriesjson = queries$i.res_read_line_list_doc(key);
|
|
16850
|
+
_context13.next = 7;
|
|
16830
16851
|
return fetchData({
|
|
16831
|
-
body: JSON.stringify(
|
|
16852
|
+
body: JSON.stringify(queriesjson)
|
|
16832
16853
|
}, __readDocumentUrl__);
|
|
16833
|
-
case
|
|
16834
|
-
|
|
16835
|
-
|
|
16836
|
-
console.log({
|
|
16837
|
-
data_arr: data_arr
|
|
16838
|
-
});
|
|
16839
|
-
_context13.next = 10;
|
|
16840
|
-
return data_arr.result.map(function (val) {
|
|
16841
|
-
arry.push({
|
|
16842
|
-
value: val === null || val === void 0 ? void 0 : val._id,
|
|
16843
|
-
label: val === null || val === void 0 ? void 0 : val.display
|
|
16844
|
-
});
|
|
16845
|
-
});
|
|
16846
|
-
case 10:
|
|
16847
|
-
console.log(arry);
|
|
16854
|
+
case 7:
|
|
16855
|
+
data = _context13.sent;
|
|
16856
|
+
read_json = generateReadJson$3.read_json(data.result[0]);
|
|
16848
16857
|
return _context13.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16849
|
-
data:
|
|
16858
|
+
data: read_json
|
|
16850
16859
|
}));
|
|
16851
|
-
case
|
|
16852
|
-
_context13.prev =
|
|
16860
|
+
case 12:
|
|
16861
|
+
_context13.prev = 12;
|
|
16853
16862
|
_context13.t0 = _context13["catch"](2);
|
|
16854
16863
|
return _context13.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
16855
16864
|
message: _context13.t0.message
|
|
16856
16865
|
})));
|
|
16857
|
-
case
|
|
16866
|
+
case 15:
|
|
16858
16867
|
case "end":
|
|
16859
16868
|
return _context13.stop();
|
|
16860
16869
|
}
|
|
16861
16870
|
}
|
|
16862
|
-
}, _callee13, null, [[2,
|
|
16871
|
+
}, _callee13, null, [[2, 12]]);
|
|
16863
16872
|
})));
|
|
16864
|
-
var
|
|
16873
|
+
var RES_PATIENT_CATEGORY_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_patient_category_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
|
|
16865
16874
|
var _ref28,
|
|
16866
16875
|
rejectWithValue,
|
|
16867
|
-
|
|
16876
|
+
_data$2,
|
|
16877
|
+
_data$2$PATIENTIMPORT,
|
|
16878
|
+
_data$2$PATIENTIMPORT2,
|
|
16879
|
+
body,
|
|
16880
|
+
data,
|
|
16868
16881
|
arry,
|
|
16869
16882
|
_args14 = arguments;
|
|
16870
16883
|
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
@@ -16873,42 +16886,48 @@ var RES_RESOURCE_TYPE_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSli
|
|
|
16873
16886
|
case 0:
|
|
16874
16887
|
_ref28 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
|
|
16875
16888
|
_context14.prev = 2;
|
|
16876
|
-
|
|
16889
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
16890
|
+
body = {
|
|
16891
|
+
db_name: "primarycareng",
|
|
16892
|
+
filter: {
|
|
16893
|
+
type: ["PATIENTIMPORTANCETYPE"],
|
|
16894
|
+
tenantid: "",
|
|
16895
|
+
facilityid: "",
|
|
16896
|
+
lang: ""
|
|
16897
|
+
},
|
|
16898
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
16899
|
+
};
|
|
16900
|
+
_context14.next = 6;
|
|
16877
16901
|
return fetchData({
|
|
16878
|
-
body: JSON.stringify(
|
|
16879
|
-
},
|
|
16880
|
-
case
|
|
16881
|
-
|
|
16902
|
+
body: JSON.stringify(body)
|
|
16903
|
+
}, __baseUrl__$1);
|
|
16904
|
+
case 6:
|
|
16905
|
+
data = _context14.sent;
|
|
16882
16906
|
arry = [];
|
|
16883
|
-
|
|
16884
|
-
|
|
16885
|
-
|
|
16886
|
-
|
|
16887
|
-
|
|
16888
|
-
arry.push({
|
|
16889
|
-
value: val === null || val === void 0 ? void 0 : val._id,
|
|
16890
|
-
label: val === null || val === void 0 ? void 0 : val.display
|
|
16907
|
+
(_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$PATIENTIMPORT = _data$2.PATIENTIMPORTANCETYPE) === null || _data$2$PATIENTIMPORT === void 0 ? void 0 : (_data$2$PATIENTIMPORT2 = _data$2$PATIENTIMPORT.Value) === null || _data$2$PATIENTIMPORT2 === void 0 ? void 0 : _data$2$PATIENTIMPORT2.map(function (item) {
|
|
16908
|
+
return arry.push({
|
|
16909
|
+
_id: item._id,
|
|
16910
|
+
Value: item._id,
|
|
16911
|
+
label: item.display
|
|
16891
16912
|
});
|
|
16892
16913
|
});
|
|
16893
|
-
case 10:
|
|
16894
|
-
console.log(arry);
|
|
16895
16914
|
return _context14.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16896
16915
|
data: arry
|
|
16897
16916
|
}));
|
|
16898
|
-
case
|
|
16899
|
-
_context14.prev =
|
|
16917
|
+
case 12:
|
|
16918
|
+
_context14.prev = 12;
|
|
16900
16919
|
_context14.t0 = _context14["catch"](2);
|
|
16901
16920
|
return _context14.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
16902
16921
|
message: _context14.t0.message
|
|
16903
16922
|
})));
|
|
16904
|
-
case
|
|
16923
|
+
case 15:
|
|
16905
16924
|
case "end":
|
|
16906
16925
|
return _context14.stop();
|
|
16907
16926
|
}
|
|
16908
16927
|
}
|
|
16909
|
-
}, _callee14, null, [[2,
|
|
16928
|
+
}, _callee14, null, [[2, 12]]);
|
|
16910
16929
|
})));
|
|
16911
|
-
var
|
|
16930
|
+
var RES_PATIENT_CATEGORY_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_patient_category_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
16912
16931
|
var _ref30,
|
|
16913
16932
|
rejectWithValue,
|
|
16914
16933
|
data_arr,
|
|
@@ -16922,44 +16941,44 @@ var RES_RESOURCE_ROLE_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSli
|
|
|
16922
16941
|
_context15.prev = 2;
|
|
16923
16942
|
_context15.next = 5;
|
|
16924
16943
|
return fetchData({
|
|
16925
|
-
body: JSON.stringify(queries$i.
|
|
16944
|
+
body: JSON.stringify(queries$i.res_patient_category_list())
|
|
16926
16945
|
}, __readDocumentUrl__);
|
|
16927
16946
|
case 5:
|
|
16928
16947
|
data_arr = _context15.sent;
|
|
16929
16948
|
arry = [];
|
|
16930
|
-
|
|
16931
|
-
data_arr: data_arr
|
|
16932
|
-
});
|
|
16933
|
-
_context15.next = 10;
|
|
16949
|
+
_context15.next = 9;
|
|
16934
16950
|
return data_arr.result.map(function (val) {
|
|
16935
16951
|
arry.push({
|
|
16936
|
-
value: val === null || val === void 0 ? void 0 : val.
|
|
16952
|
+
value: val === null || val === void 0 ? void 0 : val.display,
|
|
16937
16953
|
label: val === null || val === void 0 ? void 0 : val.display,
|
|
16938
|
-
|
|
16954
|
+
_id: val === null || val === void 0 ? void 0 : val._id
|
|
16939
16955
|
});
|
|
16940
16956
|
});
|
|
16941
|
-
case
|
|
16942
|
-
console.log(arry, "cf");
|
|
16957
|
+
case 9:
|
|
16943
16958
|
return _context15.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16944
16959
|
data: arry
|
|
16945
16960
|
}));
|
|
16946
|
-
case
|
|
16947
|
-
_context15.prev =
|
|
16961
|
+
case 12:
|
|
16962
|
+
_context15.prev = 12;
|
|
16948
16963
|
_context15.t0 = _context15["catch"](2);
|
|
16949
16964
|
return _context15.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
16950
16965
|
message: _context15.t0.message
|
|
16951
16966
|
})));
|
|
16952
|
-
case
|
|
16967
|
+
case 15:
|
|
16953
16968
|
case "end":
|
|
16954
16969
|
return _context15.stop();
|
|
16955
16970
|
}
|
|
16956
16971
|
}
|
|
16957
|
-
}, _callee15, null, [[2,
|
|
16972
|
+
}, _callee15, null, [[2, 12]]);
|
|
16958
16973
|
})));
|
|
16959
|
-
var
|
|
16974
|
+
var RES_RESOURCE_TYPE_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_type_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
|
|
16960
16975
|
var _ref32,
|
|
16961
16976
|
rejectWithValue,
|
|
16962
|
-
|
|
16977
|
+
_data$3,
|
|
16978
|
+
_data$3$RESOURCETYPE,
|
|
16979
|
+
_data$3$RESOURCETYPE$,
|
|
16980
|
+
body,
|
|
16981
|
+
data,
|
|
16963
16982
|
arry,
|
|
16964
16983
|
_args16 = arguments;
|
|
16965
16984
|
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
@@ -16968,44 +16987,48 @@ var RES_RESOURCE_DEPARTMENT_LIST_DOC = createAsyncThunk("resourceByAppointmentTy
|
|
|
16968
16987
|
case 0:
|
|
16969
16988
|
_ref32 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
16970
16989
|
_context16.prev = 2;
|
|
16971
|
-
|
|
16990
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
16991
|
+
body = {
|
|
16992
|
+
db_name: "primarycareng",
|
|
16993
|
+
filter: {
|
|
16994
|
+
type: ["RESOURCETYPE"],
|
|
16995
|
+
tenantid: "",
|
|
16996
|
+
facilityid: "",
|
|
16997
|
+
lang: ""
|
|
16998
|
+
},
|
|
16999
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
17000
|
+
};
|
|
17001
|
+
_context16.next = 6;
|
|
16972
17002
|
return fetchData({
|
|
16973
|
-
body: JSON.stringify(
|
|
16974
|
-
},
|
|
16975
|
-
case
|
|
16976
|
-
|
|
17003
|
+
body: JSON.stringify(body)
|
|
17004
|
+
}, __baseUrl__$1);
|
|
17005
|
+
case 6:
|
|
17006
|
+
data = _context16.sent;
|
|
16977
17007
|
arry = [];
|
|
16978
|
-
|
|
16979
|
-
|
|
16980
|
-
|
|
16981
|
-
|
|
16982
|
-
|
|
16983
|
-
console.log(val, "Type");
|
|
16984
|
-
arry.push({
|
|
16985
|
-
value: val === null || val === void 0 ? void 0 : val._id,
|
|
16986
|
-
title: val === null || val === void 0 ? void 0 : val.Type,
|
|
16987
|
-
label: val === null || val === void 0 ? void 0 : val.display
|
|
17008
|
+
(_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : (_data$3$RESOURCETYPE = _data$3.RESOURCETYPE) === null || _data$3$RESOURCETYPE === void 0 ? void 0 : (_data$3$RESOURCETYPE$ = _data$3$RESOURCETYPE.Value) === null || _data$3$RESOURCETYPE$ === void 0 ? void 0 : _data$3$RESOURCETYPE$.map(function (item) {
|
|
17009
|
+
return arry.push({
|
|
17010
|
+
_id: item._id,
|
|
17011
|
+
Value: item._id,
|
|
17012
|
+
label: item.display
|
|
16988
17013
|
});
|
|
16989
17014
|
});
|
|
16990
|
-
case 10:
|
|
16991
|
-
console.log(arry);
|
|
16992
17015
|
return _context16.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
16993
17016
|
data: arry
|
|
16994
17017
|
}));
|
|
16995
|
-
case
|
|
16996
|
-
_context16.prev =
|
|
17018
|
+
case 12:
|
|
17019
|
+
_context16.prev = 12;
|
|
16997
17020
|
_context16.t0 = _context16["catch"](2);
|
|
16998
17021
|
return _context16.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
16999
17022
|
message: _context16.t0.message
|
|
17000
17023
|
})));
|
|
17001
|
-
case
|
|
17024
|
+
case 15:
|
|
17002
17025
|
case "end":
|
|
17003
17026
|
return _context16.stop();
|
|
17004
17027
|
}
|
|
17005
17028
|
}
|
|
17006
|
-
}, _callee16, null, [[2,
|
|
17029
|
+
}, _callee16, null, [[2, 12]]);
|
|
17007
17030
|
})));
|
|
17008
|
-
var
|
|
17031
|
+
var RES_RESOURCE_TYPE_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_type_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
17009
17032
|
var _ref34,
|
|
17010
17033
|
rejectWithValue,
|
|
17011
17034
|
data_arr,
|
|
@@ -17019,95 +17042,95 @@ var RES_RESOURCE_NAME_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSli
|
|
|
17019
17042
|
_context17.prev = 2;
|
|
17020
17043
|
_context17.next = 5;
|
|
17021
17044
|
return fetchData({
|
|
17022
|
-
body: JSON.stringify(queries$i.
|
|
17045
|
+
body: JSON.stringify(queries$i.res_resource_type_list_appointments())
|
|
17023
17046
|
}, __readDocumentUrl__);
|
|
17024
17047
|
case 5:
|
|
17025
17048
|
data_arr = _context17.sent;
|
|
17026
17049
|
arry = [];
|
|
17027
|
-
|
|
17028
|
-
data_arr: data_arr
|
|
17029
|
-
});
|
|
17030
|
-
_context17.next = 10;
|
|
17050
|
+
_context17.next = 9;
|
|
17031
17051
|
return data_arr.result.map(function (val) {
|
|
17032
17052
|
arry.push({
|
|
17033
17053
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17034
17054
|
label: val === null || val === void 0 ? void 0 : val.display
|
|
17035
17055
|
});
|
|
17036
17056
|
});
|
|
17037
|
-
case
|
|
17038
|
-
console.log(arry);
|
|
17057
|
+
case 9:
|
|
17039
17058
|
return _context17.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17040
17059
|
data: arry
|
|
17041
17060
|
}));
|
|
17042
|
-
case
|
|
17043
|
-
_context17.prev =
|
|
17061
|
+
case 12:
|
|
17062
|
+
_context17.prev = 12;
|
|
17044
17063
|
_context17.t0 = _context17["catch"](2);
|
|
17045
17064
|
return _context17.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17046
17065
|
message: _context17.t0.message
|
|
17047
17066
|
})));
|
|
17048
|
-
case
|
|
17067
|
+
case 15:
|
|
17049
17068
|
case "end":
|
|
17050
17069
|
return _context17.stop();
|
|
17051
17070
|
}
|
|
17052
17071
|
}
|
|
17053
|
-
}, _callee17, null, [[2,
|
|
17072
|
+
}, _callee17, null, [[2, 12]]);
|
|
17054
17073
|
})));
|
|
17055
|
-
var
|
|
17056
|
-
var
|
|
17074
|
+
var RES_RESOURCE_ROLE_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_role_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
17075
|
+
var payload,
|
|
17076
|
+
_ref36,
|
|
17057
17077
|
rejectWithValue,
|
|
17058
|
-
|
|
17078
|
+
resourcetypeId,
|
|
17079
|
+
body,
|
|
17080
|
+
data,
|
|
17059
17081
|
arry,
|
|
17060
17082
|
_args18 = arguments;
|
|
17061
17083
|
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
17062
17084
|
while (1) {
|
|
17063
17085
|
switch (_context18.prev = _context18.next) {
|
|
17064
17086
|
case 0:
|
|
17087
|
+
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
17065
17088
|
_ref36 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref36.rejectWithValue;
|
|
17066
17089
|
_context18.prev = 2;
|
|
17067
|
-
|
|
17090
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17091
|
+
resourcetypeId = payload;
|
|
17092
|
+
body = {
|
|
17093
|
+
db_name: "primarycareng",
|
|
17094
|
+
filter: {
|
|
17095
|
+
resourcetype: resourcetypeId
|
|
17096
|
+
},
|
|
17097
|
+
queryid: "133cbcbf-90b2-4739-9d1e-b89de4189d66"
|
|
17098
|
+
};
|
|
17099
|
+
_context18.next = 7;
|
|
17068
17100
|
return fetchData({
|
|
17069
|
-
body: JSON.stringify(
|
|
17070
|
-
},
|
|
17071
|
-
case
|
|
17072
|
-
|
|
17101
|
+
body: JSON.stringify(body)
|
|
17102
|
+
}, __baseUrl__$1);
|
|
17103
|
+
case 7:
|
|
17104
|
+
data = _context18.sent;
|
|
17073
17105
|
arry = [];
|
|
17074
|
-
|
|
17075
|
-
|
|
17076
|
-
|
|
17077
|
-
|
|
17078
|
-
|
|
17079
|
-
|
|
17080
|
-
arry.push({
|
|
17081
|
-
label: val === null || val === void 0 ? void 0 : val.InstructionCode,
|
|
17082
|
-
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17083
|
-
title: val === null || val === void 0 ? void 0 : val.InstructionDesc
|
|
17084
|
-
});
|
|
17085
|
-
}
|
|
17106
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
17107
|
+
return arry.push({
|
|
17108
|
+
_id: item._id,
|
|
17109
|
+
Value: item._id,
|
|
17110
|
+
label: item.display
|
|
17111
|
+
});
|
|
17086
17112
|
});
|
|
17087
|
-
case 10:
|
|
17088
|
-
console.log("pie", arry);
|
|
17089
17113
|
return _context18.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17090
17114
|
data: arry
|
|
17091
17115
|
}));
|
|
17092
|
-
case
|
|
17093
|
-
_context18.prev =
|
|
17116
|
+
case 13:
|
|
17117
|
+
_context18.prev = 13;
|
|
17094
17118
|
_context18.t0 = _context18["catch"](2);
|
|
17095
17119
|
return _context18.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17096
17120
|
message: _context18.t0.message
|
|
17097
17121
|
})));
|
|
17098
|
-
case
|
|
17122
|
+
case 16:
|
|
17099
17123
|
case "end":
|
|
17100
17124
|
return _context18.stop();
|
|
17101
17125
|
}
|
|
17102
17126
|
}
|
|
17103
|
-
}, _callee18, null, [[2,
|
|
17127
|
+
}, _callee18, null, [[2, 13]]);
|
|
17104
17128
|
})));
|
|
17105
|
-
var
|
|
17129
|
+
var RES_RESOURCE_ROLE_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_role_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
|
|
17106
17130
|
var _ref38,
|
|
17107
17131
|
rejectWithValue,
|
|
17108
|
-
|
|
17109
|
-
|
|
17110
|
-
result,
|
|
17132
|
+
data_arr,
|
|
17133
|
+
arry,
|
|
17111
17134
|
_args19 = arguments;
|
|
17112
17135
|
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
17113
17136
|
while (1) {
|
|
@@ -17115,13 +17138,361 @@ var RES_CRITERIA_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/re
|
|
|
17115
17138
|
case 0:
|
|
17116
17139
|
_ref38 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref38.rejectWithValue;
|
|
17117
17140
|
_context19.prev = 2;
|
|
17141
|
+
_context19.next = 5;
|
|
17142
|
+
return fetchData({
|
|
17143
|
+
body: JSON.stringify(queries$i.res_resource_role_list_appointments())
|
|
17144
|
+
}, __readDocumentUrl__);
|
|
17145
|
+
case 5:
|
|
17146
|
+
data_arr = _context19.sent;
|
|
17147
|
+
arry = [];
|
|
17148
|
+
console.log({
|
|
17149
|
+
data_arr: data_arr
|
|
17150
|
+
});
|
|
17151
|
+
_context19.next = 10;
|
|
17152
|
+
return data_arr.result.map(function (val) {
|
|
17153
|
+
arry.push({
|
|
17154
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17155
|
+
label: val === null || val === void 0 ? void 0 : val.display,
|
|
17156
|
+
title: val === null || val === void 0 ? void 0 : val.Type
|
|
17157
|
+
});
|
|
17158
|
+
});
|
|
17159
|
+
case 10:
|
|
17160
|
+
console.log(arry, "cf");
|
|
17161
|
+
return _context19.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17162
|
+
data: arry
|
|
17163
|
+
}));
|
|
17164
|
+
case 14:
|
|
17165
|
+
_context19.prev = 14;
|
|
17166
|
+
_context19.t0 = _context19["catch"](2);
|
|
17167
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17168
|
+
message: _context19.t0.message
|
|
17169
|
+
})));
|
|
17170
|
+
case 17:
|
|
17171
|
+
case "end":
|
|
17172
|
+
return _context19.stop();
|
|
17173
|
+
}
|
|
17174
|
+
}
|
|
17175
|
+
}, _callee19, null, [[2, 14]]);
|
|
17176
|
+
})));
|
|
17177
|
+
var RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_department_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
|
|
17178
|
+
var payload,
|
|
17179
|
+
_ref40,
|
|
17180
|
+
rejectWithValue,
|
|
17181
|
+
body,
|
|
17182
|
+
data,
|
|
17183
|
+
arry,
|
|
17184
|
+
_args20 = arguments;
|
|
17185
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
17186
|
+
while (1) {
|
|
17187
|
+
switch (_context20.prev = _context20.next) {
|
|
17188
|
+
case 0:
|
|
17189
|
+
payload = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};
|
|
17190
|
+
_ref40 = _args20.length > 1 ? _args20[1] : undefined, rejectWithValue = _ref40.rejectWithValue;
|
|
17191
|
+
_context20.prev = 2;
|
|
17192
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17193
|
+
body = {
|
|
17194
|
+
db_name: "primarycareng",
|
|
17195
|
+
filter: {
|
|
17196
|
+
resourcetype: payload === null || payload === void 0 ? void 0 : payload.resourcetypeId,
|
|
17197
|
+
roletype: payload === null || payload === void 0 ? void 0 : payload.resourceroleId
|
|
17198
|
+
},
|
|
17199
|
+
queryid: "377c3f68-3454-49bb-86c7-4d856dda932e"
|
|
17200
|
+
};
|
|
17201
|
+
_context20.next = 6;
|
|
17202
|
+
return fetchData({
|
|
17203
|
+
body: JSON.stringify(body)
|
|
17204
|
+
}, __baseUrl__$1);
|
|
17205
|
+
case 6:
|
|
17206
|
+
data = _context20.sent;
|
|
17207
|
+
arry = [];
|
|
17208
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
17209
|
+
return arry.push({
|
|
17210
|
+
_id: item._id,
|
|
17211
|
+
Value: item._id,
|
|
17212
|
+
label: item.display
|
|
17213
|
+
});
|
|
17214
|
+
});
|
|
17215
|
+
return _context20.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17216
|
+
data: arry
|
|
17217
|
+
}));
|
|
17218
|
+
case 12:
|
|
17219
|
+
_context20.prev = 12;
|
|
17220
|
+
_context20.t0 = _context20["catch"](2);
|
|
17221
|
+
return _context20.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17222
|
+
message: _context20.t0.message
|
|
17223
|
+
})));
|
|
17224
|
+
case 15:
|
|
17225
|
+
case "end":
|
|
17226
|
+
return _context20.stop();
|
|
17227
|
+
}
|
|
17228
|
+
}
|
|
17229
|
+
}, _callee20, null, [[2, 12]]);
|
|
17230
|
+
})));
|
|
17231
|
+
var RES_RESOURCE_DEPARTMENT_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_department_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
|
17232
|
+
var _ref42,
|
|
17233
|
+
rejectWithValue,
|
|
17234
|
+
data_arr,
|
|
17235
|
+
arry,
|
|
17236
|
+
_args21 = arguments;
|
|
17237
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
17238
|
+
while (1) {
|
|
17239
|
+
switch (_context21.prev = _context21.next) {
|
|
17240
|
+
case 0:
|
|
17241
|
+
_ref42 = _args21.length > 1 ? _args21[1] : undefined, rejectWithValue = _ref42.rejectWithValue;
|
|
17242
|
+
_context21.prev = 2;
|
|
17243
|
+
_context21.next = 5;
|
|
17244
|
+
return fetchData({
|
|
17245
|
+
body: JSON.stringify(queries$i.res_resource_department_list_appointments())
|
|
17246
|
+
}, __readDocumentUrl__);
|
|
17247
|
+
case 5:
|
|
17248
|
+
data_arr = _context21.sent;
|
|
17249
|
+
arry = [];
|
|
17250
|
+
console.log({
|
|
17251
|
+
data_arr: data_arr
|
|
17252
|
+
});
|
|
17253
|
+
_context21.next = 10;
|
|
17254
|
+
return data_arr.result.map(function (val) {
|
|
17255
|
+
console.log(val, "Type");
|
|
17256
|
+
arry.push({
|
|
17257
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17258
|
+
title: val === null || val === void 0 ? void 0 : val.Type,
|
|
17259
|
+
label: val === null || val === void 0 ? void 0 : val.display
|
|
17260
|
+
});
|
|
17261
|
+
});
|
|
17262
|
+
case 10:
|
|
17263
|
+
console.log(arry);
|
|
17264
|
+
return _context21.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17265
|
+
data: arry
|
|
17266
|
+
}));
|
|
17267
|
+
case 14:
|
|
17268
|
+
_context21.prev = 14;
|
|
17269
|
+
_context21.t0 = _context21["catch"](2);
|
|
17270
|
+
return _context21.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17271
|
+
message: _context21.t0.message
|
|
17272
|
+
})));
|
|
17273
|
+
case 17:
|
|
17274
|
+
case "end":
|
|
17275
|
+
return _context21.stop();
|
|
17276
|
+
}
|
|
17277
|
+
}
|
|
17278
|
+
}, _callee21, null, [[2, 14]]);
|
|
17279
|
+
})));
|
|
17280
|
+
var RES_RESOURCE_NAME_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_name_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
17281
|
+
var payload,
|
|
17282
|
+
_ref44,
|
|
17283
|
+
rejectWithValue,
|
|
17284
|
+
body,
|
|
17285
|
+
data,
|
|
17286
|
+
arry,
|
|
17287
|
+
_args22 = arguments;
|
|
17288
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
17289
|
+
while (1) {
|
|
17290
|
+
switch (_context22.prev = _context22.next) {
|
|
17291
|
+
case 0:
|
|
17292
|
+
payload = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};
|
|
17293
|
+
_ref44 = _args22.length > 1 ? _args22[1] : undefined, rejectWithValue = _ref44.rejectWithValue;
|
|
17294
|
+
_context22.prev = 2;
|
|
17295
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17296
|
+
body = {
|
|
17297
|
+
db_name: "primarycareng",
|
|
17298
|
+
filter: {
|
|
17299
|
+
resourcetype: payload === null || payload === void 0 ? void 0 : payload.resourcetypeId,
|
|
17300
|
+
roletype: payload === null || payload === void 0 ? void 0 : payload.resourceroleId,
|
|
17301
|
+
deptid: payload === null || payload === void 0 ? void 0 : payload.resourcedepartmentId
|
|
17302
|
+
},
|
|
17303
|
+
queryid: "2159f59b-00e5-436d-9daa-7b09f1ff840d"
|
|
17304
|
+
};
|
|
17305
|
+
_context22.next = 6;
|
|
17306
|
+
return fetchData({
|
|
17307
|
+
body: JSON.stringify(body)
|
|
17308
|
+
}, __baseUrl__$1);
|
|
17309
|
+
case 6:
|
|
17310
|
+
data = _context22.sent;
|
|
17311
|
+
arry = [];
|
|
17312
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
17313
|
+
return arry.push({
|
|
17314
|
+
_id: item._id,
|
|
17315
|
+
Value: item._id,
|
|
17316
|
+
label: item.display
|
|
17317
|
+
});
|
|
17318
|
+
});
|
|
17319
|
+
return _context22.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17320
|
+
data: arry
|
|
17321
|
+
}));
|
|
17322
|
+
case 12:
|
|
17323
|
+
_context22.prev = 12;
|
|
17324
|
+
_context22.t0 = _context22["catch"](2);
|
|
17325
|
+
return _context22.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17326
|
+
message: _context22.t0.message
|
|
17327
|
+
})));
|
|
17328
|
+
case 15:
|
|
17329
|
+
case "end":
|
|
17330
|
+
return _context22.stop();
|
|
17331
|
+
}
|
|
17332
|
+
}
|
|
17333
|
+
}, _callee22, null, [[2, 12]]);
|
|
17334
|
+
})));
|
|
17335
|
+
var RES_RESOURCE_NAME_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_resource_name_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
|
|
17336
|
+
var _ref46,
|
|
17337
|
+
rejectWithValue,
|
|
17338
|
+
data_arr,
|
|
17339
|
+
arry,
|
|
17340
|
+
_args23 = arguments;
|
|
17341
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
17342
|
+
while (1) {
|
|
17343
|
+
switch (_context23.prev = _context23.next) {
|
|
17344
|
+
case 0:
|
|
17345
|
+
_ref46 = _args23.length > 1 ? _args23[1] : undefined, rejectWithValue = _ref46.rejectWithValue;
|
|
17346
|
+
_context23.prev = 2;
|
|
17347
|
+
_context23.next = 5;
|
|
17348
|
+
return fetchData({
|
|
17349
|
+
body: JSON.stringify(queries$i.res_resource_name_list_appointments())
|
|
17350
|
+
}, __readDocumentUrl__);
|
|
17351
|
+
case 5:
|
|
17352
|
+
data_arr = _context23.sent;
|
|
17353
|
+
arry = [];
|
|
17354
|
+
console.log({
|
|
17355
|
+
data_arr: data_arr
|
|
17356
|
+
});
|
|
17357
|
+
_context23.next = 10;
|
|
17358
|
+
return data_arr.result.map(function (val) {
|
|
17359
|
+
arry.push({
|
|
17360
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17361
|
+
label: val === null || val === void 0 ? void 0 : val.display
|
|
17362
|
+
});
|
|
17363
|
+
});
|
|
17364
|
+
case 10:
|
|
17365
|
+
console.log(arry);
|
|
17366
|
+
return _context23.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17367
|
+
data: arry
|
|
17368
|
+
}));
|
|
17369
|
+
case 14:
|
|
17370
|
+
_context23.prev = 14;
|
|
17371
|
+
_context23.t0 = _context23["catch"](2);
|
|
17372
|
+
return _context23.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17373
|
+
message: _context23.t0.message
|
|
17374
|
+
})));
|
|
17375
|
+
case 17:
|
|
17376
|
+
case "end":
|
|
17377
|
+
return _context23.stop();
|
|
17378
|
+
}
|
|
17379
|
+
}
|
|
17380
|
+
}, _callee23, null, [[2, 14]]);
|
|
17381
|
+
})));
|
|
17382
|
+
var RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_special_instruction_list_doc_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
|
|
17383
|
+
var _ref48,
|
|
17384
|
+
rejectWithValue,
|
|
17385
|
+
body,
|
|
17386
|
+
data,
|
|
17387
|
+
arry,
|
|
17388
|
+
_args24 = arguments;
|
|
17389
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
17390
|
+
while (1) {
|
|
17391
|
+
switch (_context24.prev = _context24.next) {
|
|
17392
|
+
case 0:
|
|
17393
|
+
_ref48 = _args24.length > 1 ? _args24[1] : undefined, rejectWithValue = _ref48.rejectWithValue;
|
|
17394
|
+
_context24.prev = 2;
|
|
17395
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17396
|
+
body = {
|
|
17397
|
+
db_name: "primarycareng",
|
|
17398
|
+
queryid: "be26a8ae-2181-4a08-bcbc-d0b07632fe84"
|
|
17399
|
+
};
|
|
17400
|
+
_context24.next = 6;
|
|
17401
|
+
return fetchData({
|
|
17402
|
+
body: JSON.stringify(body)
|
|
17403
|
+
}, __baseUrl__$1);
|
|
17404
|
+
case 6:
|
|
17405
|
+
data = _context24.sent;
|
|
17406
|
+
arry = [];
|
|
17407
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
17408
|
+
return arry.push({
|
|
17409
|
+
Value: item.display,
|
|
17410
|
+
_id: item._id,
|
|
17411
|
+
label: item.code
|
|
17412
|
+
});
|
|
17413
|
+
});
|
|
17414
|
+
return _context24.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17415
|
+
data: arry
|
|
17416
|
+
}));
|
|
17417
|
+
case 12:
|
|
17418
|
+
_context24.prev = 12;
|
|
17419
|
+
_context24.t0 = _context24["catch"](2);
|
|
17420
|
+
return _context24.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17421
|
+
message: _context24.t0.message
|
|
17422
|
+
})));
|
|
17423
|
+
case 15:
|
|
17424
|
+
case "end":
|
|
17425
|
+
return _context24.stop();
|
|
17426
|
+
}
|
|
17427
|
+
}
|
|
17428
|
+
}, _callee24, null, [[2, 12]]);
|
|
17429
|
+
})));
|
|
17430
|
+
var RES_SPECIAL_INSTRUCTION_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_special_instruction_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
|
|
17431
|
+
var _ref50,
|
|
17432
|
+
rejectWithValue,
|
|
17433
|
+
data_arr,
|
|
17434
|
+
arry,
|
|
17435
|
+
_args25 = arguments;
|
|
17436
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
17437
|
+
while (1) {
|
|
17438
|
+
switch (_context25.prev = _context25.next) {
|
|
17439
|
+
case 0:
|
|
17440
|
+
_ref50 = _args25.length > 1 ? _args25[1] : undefined, rejectWithValue = _ref50.rejectWithValue;
|
|
17441
|
+
_context25.prev = 2;
|
|
17442
|
+
_context25.next = 5;
|
|
17443
|
+
return fetchData({
|
|
17444
|
+
body: JSON.stringify(queries$i.res_special_instruction_list_appointment())
|
|
17445
|
+
}, __readDocumentUrl__);
|
|
17446
|
+
case 5:
|
|
17447
|
+
data_arr = _context25.sent;
|
|
17448
|
+
arry = [];
|
|
17449
|
+
_context25.next = 9;
|
|
17450
|
+
return data_arr.result.map(function (val, i) {
|
|
17451
|
+
if (val !== null && val !== void 0 && val.InstructionCode && val !== null && val !== void 0 && val.InstructionDesc) {
|
|
17452
|
+
arry.push({
|
|
17453
|
+
label: val === null || val === void 0 ? void 0 : val.InstructionCode,
|
|
17454
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
17455
|
+
title: val === null || val === void 0 ? void 0 : val.InstructionDesc
|
|
17456
|
+
});
|
|
17457
|
+
}
|
|
17458
|
+
});
|
|
17459
|
+
case 9:
|
|
17460
|
+
return _context25.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17461
|
+
data: arry
|
|
17462
|
+
}));
|
|
17463
|
+
case 12:
|
|
17464
|
+
_context25.prev = 12;
|
|
17465
|
+
_context25.t0 = _context25["catch"](2);
|
|
17466
|
+
return _context25.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17467
|
+
message: _context25.t0.message
|
|
17468
|
+
})));
|
|
17469
|
+
case 15:
|
|
17470
|
+
case "end":
|
|
17471
|
+
return _context25.stop();
|
|
17472
|
+
}
|
|
17473
|
+
}
|
|
17474
|
+
}, _callee25, null, [[2, 12]]);
|
|
17475
|
+
})));
|
|
17476
|
+
var RES_CRITERIA_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/res_criteria_list_doc", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
|
|
17477
|
+
var _ref52,
|
|
17478
|
+
rejectWithValue,
|
|
17479
|
+
queriesjson,
|
|
17480
|
+
data,
|
|
17481
|
+
result,
|
|
17482
|
+
_args26 = arguments;
|
|
17483
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
17484
|
+
while (1) {
|
|
17485
|
+
switch (_context26.prev = _context26.next) {
|
|
17486
|
+
case 0:
|
|
17487
|
+
_ref52 = _args26.length > 1 ? _args26[1] : undefined, rejectWithValue = _ref52.rejectWithValue;
|
|
17488
|
+
_context26.prev = 2;
|
|
17118
17489
|
queriesjson = queries$i.res_criteria_instruction_list_appointment();
|
|
17119
|
-
|
|
17490
|
+
_context26.next = 6;
|
|
17120
17491
|
return fetchData({
|
|
17121
17492
|
body: JSON.stringify(queriesjson)
|
|
17122
17493
|
}, __readDocumentUrl__);
|
|
17123
17494
|
case 6:
|
|
17124
|
-
data =
|
|
17495
|
+
data = _context26.sent;
|
|
17125
17496
|
console.log(data, "taeetee");
|
|
17126
17497
|
result = [];
|
|
17127
17498
|
data.result.map(function (val, i) {
|
|
@@ -17132,42 +17503,90 @@ var RES_CRITERIA_LIST_DOC = createAsyncThunk("resourceByAppointmentTypesSlice/re
|
|
|
17132
17503
|
});
|
|
17133
17504
|
}
|
|
17134
17505
|
});
|
|
17135
|
-
return
|
|
17136
|
-
data: result
|
|
17506
|
+
return _context26.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17507
|
+
data: result
|
|
17508
|
+
}));
|
|
17509
|
+
case 13:
|
|
17510
|
+
_context26.prev = 13;
|
|
17511
|
+
_context26.t0 = _context26["catch"](2);
|
|
17512
|
+
return _context26.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17513
|
+
message: _context26.t0.message
|
|
17514
|
+
})));
|
|
17515
|
+
case 16:
|
|
17516
|
+
case "end":
|
|
17517
|
+
return _context26.stop();
|
|
17518
|
+
}
|
|
17519
|
+
}
|
|
17520
|
+
}, _callee26, null, [[2, 13]]);
|
|
17521
|
+
})));
|
|
17522
|
+
var RES_GENERAL_INSTRUCTION_DROPDOWN_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_general_instruction_dropdown_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
|
|
17523
|
+
var _ref54,
|
|
17524
|
+
rejectWithValue,
|
|
17525
|
+
body,
|
|
17526
|
+
data,
|
|
17527
|
+
arry,
|
|
17528
|
+
_args27 = arguments;
|
|
17529
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context27) {
|
|
17530
|
+
while (1) {
|
|
17531
|
+
switch (_context27.prev = _context27.next) {
|
|
17532
|
+
case 0:
|
|
17533
|
+
_ref54 = _args27.length > 1 ? _args27[1] : undefined, rejectWithValue = _ref54.rejectWithValue;
|
|
17534
|
+
_context27.prev = 2;
|
|
17535
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17536
|
+
body = {
|
|
17537
|
+
db_name: "primarycareng",
|
|
17538
|
+
queryid: "d9fef26c-9ac6-4921-9cce-b776c185f529"
|
|
17539
|
+
};
|
|
17540
|
+
_context27.next = 6;
|
|
17541
|
+
return fetchData({
|
|
17542
|
+
body: JSON.stringify(body)
|
|
17543
|
+
}, __baseUrl__$1);
|
|
17544
|
+
case 6:
|
|
17545
|
+
data = _context27.sent;
|
|
17546
|
+
arry = [];
|
|
17547
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
17548
|
+
return arry.push({
|
|
17549
|
+
_id: item._id,
|
|
17550
|
+
Value: item.display,
|
|
17551
|
+
label: item.code
|
|
17552
|
+
});
|
|
17553
|
+
});
|
|
17554
|
+
return _context27.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17555
|
+
data: arry
|
|
17137
17556
|
}));
|
|
17138
|
-
case
|
|
17139
|
-
|
|
17140
|
-
|
|
17141
|
-
return
|
|
17142
|
-
message:
|
|
17557
|
+
case 12:
|
|
17558
|
+
_context27.prev = 12;
|
|
17559
|
+
_context27.t0 = _context27["catch"](2);
|
|
17560
|
+
return _context27.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17561
|
+
message: _context27.t0.message
|
|
17143
17562
|
})));
|
|
17144
|
-
case
|
|
17563
|
+
case 15:
|
|
17145
17564
|
case "end":
|
|
17146
|
-
return
|
|
17565
|
+
return _context27.stop();
|
|
17147
17566
|
}
|
|
17148
17567
|
}
|
|
17149
|
-
},
|
|
17568
|
+
}, _callee27, null, [[2, 12]]);
|
|
17150
17569
|
})));
|
|
17151
|
-
var RES_GENERAL_INSTRUCTION_DROPDOWN = createAsyncThunk("resourceByAppointmentTypesSlice/res_general_instruction_dropdown", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
17152
|
-
var
|
|
17570
|
+
var RES_GENERAL_INSTRUCTION_DROPDOWN = createAsyncThunk("resourceByAppointmentTypesSlice/res_general_instruction_dropdown", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28() {
|
|
17571
|
+
var _ref56,
|
|
17153
17572
|
rejectWithValue,
|
|
17154
17573
|
data_arr,
|
|
17155
17574
|
arry,
|
|
17156
|
-
|
|
17157
|
-
return _regeneratorRuntime().wrap(function
|
|
17575
|
+
_args28 = arguments;
|
|
17576
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context28) {
|
|
17158
17577
|
while (1) {
|
|
17159
|
-
switch (
|
|
17578
|
+
switch (_context28.prev = _context28.next) {
|
|
17160
17579
|
case 0:
|
|
17161
|
-
|
|
17162
|
-
|
|
17163
|
-
|
|
17580
|
+
_ref56 = _args28.length > 1 ? _args28[1] : undefined, rejectWithValue = _ref56.rejectWithValue;
|
|
17581
|
+
_context28.prev = 2;
|
|
17582
|
+
_context28.next = 5;
|
|
17164
17583
|
return fetchData({
|
|
17165
17584
|
body: JSON.stringify(queries$i.res_general_instruction_drop_down())
|
|
17166
17585
|
}, __readDocumentUrl__);
|
|
17167
17586
|
case 5:
|
|
17168
|
-
data_arr =
|
|
17587
|
+
data_arr = _context28.sent;
|
|
17169
17588
|
arry = [];
|
|
17170
|
-
|
|
17589
|
+
_context28.next = 9;
|
|
17171
17590
|
return data_arr.result.map(function (val, i) {
|
|
17172
17591
|
if (val !== null && val !== void 0 && val.InstructionCode && val !== null && val !== void 0 && val.InstructionDesc) {
|
|
17173
17592
|
arry.push({
|
|
@@ -17179,42 +17598,99 @@ var RES_GENERAL_INSTRUCTION_DROPDOWN = createAsyncThunk("resourceByAppointmentTy
|
|
|
17179
17598
|
});
|
|
17180
17599
|
case 9:
|
|
17181
17600
|
debugger;
|
|
17182
|
-
return
|
|
17601
|
+
return _context28.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17183
17602
|
data: arry
|
|
17184
17603
|
}));
|
|
17185
17604
|
case 13:
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
return
|
|
17189
|
-
message:
|
|
17605
|
+
_context28.prev = 13;
|
|
17606
|
+
_context28.t0 = _context28["catch"](2);
|
|
17607
|
+
return _context28.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17608
|
+
message: _context28.t0.message
|
|
17190
17609
|
})));
|
|
17191
17610
|
case 16:
|
|
17192
17611
|
case "end":
|
|
17193
|
-
return
|
|
17612
|
+
return _context28.stop();
|
|
17194
17613
|
}
|
|
17195
17614
|
}
|
|
17196
|
-
},
|
|
17615
|
+
}, _callee28, null, [[2, 13]]);
|
|
17197
17616
|
})));
|
|
17198
|
-
var
|
|
17199
|
-
var
|
|
17617
|
+
var RES_SERVICE_GROUP_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_group_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
|
|
17618
|
+
var _ref58,
|
|
17619
|
+
rejectWithValue,
|
|
17620
|
+
_data$4,
|
|
17621
|
+
_data$4$SERVICETYPE,
|
|
17622
|
+
_data$4$SERVICETYPE$V,
|
|
17623
|
+
body,
|
|
17624
|
+
data,
|
|
17625
|
+
arry,
|
|
17626
|
+
_args29 = arguments;
|
|
17627
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context29) {
|
|
17628
|
+
while (1) {
|
|
17629
|
+
switch (_context29.prev = _context29.next) {
|
|
17630
|
+
case 0:
|
|
17631
|
+
_ref58 = _args29.length > 1 ? _args29[1] : undefined, rejectWithValue = _ref58.rejectWithValue;
|
|
17632
|
+
_context29.prev = 2;
|
|
17633
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17634
|
+
body = {
|
|
17635
|
+
db_name: "primarycareng",
|
|
17636
|
+
filter: {
|
|
17637
|
+
type: ["SERVICETYPE"],
|
|
17638
|
+
tenantid: "",
|
|
17639
|
+
facilityid: "",
|
|
17640
|
+
lang: ""
|
|
17641
|
+
},
|
|
17642
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
17643
|
+
};
|
|
17644
|
+
_context29.next = 6;
|
|
17645
|
+
return fetchData({
|
|
17646
|
+
body: JSON.stringify(body)
|
|
17647
|
+
}, __baseUrl__$1);
|
|
17648
|
+
case 6:
|
|
17649
|
+
data = _context29.sent;
|
|
17650
|
+
arry = [];
|
|
17651
|
+
(_data$4 = data[0]) === null || _data$4 === void 0 ? void 0 : (_data$4$SERVICETYPE = _data$4.SERVICETYPE) === null || _data$4$SERVICETYPE === void 0 ? void 0 : (_data$4$SERVICETYPE$V = _data$4$SERVICETYPE.Value) === null || _data$4$SERVICETYPE$V === void 0 ? void 0 : _data$4$SERVICETYPE$V.map(function (item) {
|
|
17652
|
+
return arry.push({
|
|
17653
|
+
_id: item._id,
|
|
17654
|
+
Value: item.display,
|
|
17655
|
+
label: item.display
|
|
17656
|
+
});
|
|
17657
|
+
});
|
|
17658
|
+
return _context29.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17659
|
+
data: arry
|
|
17660
|
+
}));
|
|
17661
|
+
case 12:
|
|
17662
|
+
_context29.prev = 12;
|
|
17663
|
+
_context29.t0 = _context29["catch"](2);
|
|
17664
|
+
return _context29.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17665
|
+
message: _context29.t0.message
|
|
17666
|
+
})));
|
|
17667
|
+
case 15:
|
|
17668
|
+
case "end":
|
|
17669
|
+
return _context29.stop();
|
|
17670
|
+
}
|
|
17671
|
+
}
|
|
17672
|
+
}, _callee29, null, [[2, 12]]);
|
|
17673
|
+
})));
|
|
17674
|
+
var RES_SERVICE_GROUP = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_group", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30() {
|
|
17675
|
+
var _ref60,
|
|
17200
17676
|
rejectWithValue,
|
|
17201
17677
|
data_arr,
|
|
17202
17678
|
arry,
|
|
17203
|
-
|
|
17204
|
-
return _regeneratorRuntime().wrap(function
|
|
17679
|
+
_args30 = arguments;
|
|
17680
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
|
|
17205
17681
|
while (1) {
|
|
17206
|
-
switch (
|
|
17682
|
+
switch (_context30.prev = _context30.next) {
|
|
17207
17683
|
case 0:
|
|
17208
|
-
|
|
17209
|
-
|
|
17210
|
-
|
|
17684
|
+
_ref60 = _args30.length > 1 ? _args30[1] : undefined, rejectWithValue = _ref60.rejectWithValue;
|
|
17685
|
+
_context30.prev = 2;
|
|
17686
|
+
_context30.next = 5;
|
|
17211
17687
|
return fetchData({
|
|
17212
17688
|
body: JSON.stringify(queries$i.res_service_group_type())
|
|
17213
17689
|
}, __readDocumentUrl__);
|
|
17214
17690
|
case 5:
|
|
17215
|
-
data_arr =
|
|
17691
|
+
data_arr = _context30.sent;
|
|
17216
17692
|
arry = [];
|
|
17217
|
-
|
|
17693
|
+
_context30.next = 9;
|
|
17218
17694
|
return data_arr.result.map(function (val) {
|
|
17219
17695
|
arry.push({
|
|
17220
17696
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
@@ -17224,42 +17700,99 @@ var RES_SERVICE_GROUP = createAsyncThunk("resourceByAppointmentTypesSlice/res_se
|
|
|
17224
17700
|
case 9:
|
|
17225
17701
|
// console.log(arry)
|
|
17226
17702
|
debugger;
|
|
17227
|
-
return
|
|
17703
|
+
return _context30.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17228
17704
|
data: arry
|
|
17229
17705
|
}));
|
|
17230
17706
|
case 13:
|
|
17231
|
-
|
|
17232
|
-
|
|
17233
|
-
return
|
|
17234
|
-
message:
|
|
17707
|
+
_context30.prev = 13;
|
|
17708
|
+
_context30.t0 = _context30["catch"](2);
|
|
17709
|
+
return _context30.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17710
|
+
message: _context30.t0.message
|
|
17235
17711
|
})));
|
|
17236
17712
|
case 16:
|
|
17237
17713
|
case "end":
|
|
17238
|
-
return
|
|
17714
|
+
return _context30.stop();
|
|
17715
|
+
}
|
|
17716
|
+
}
|
|
17717
|
+
}, _callee30, null, [[2, 13]]);
|
|
17718
|
+
})));
|
|
17719
|
+
var RES_SERVICE_CATEGORY_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_category_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31() {
|
|
17720
|
+
var _ref62,
|
|
17721
|
+
rejectWithValue,
|
|
17722
|
+
_data$5,
|
|
17723
|
+
_data$5$SERVICECATEGO,
|
|
17724
|
+
_data$5$SERVICECATEGO2,
|
|
17725
|
+
body,
|
|
17726
|
+
data,
|
|
17727
|
+
arry,
|
|
17728
|
+
_args31 = arguments;
|
|
17729
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
|
|
17730
|
+
while (1) {
|
|
17731
|
+
switch (_context31.prev = _context31.next) {
|
|
17732
|
+
case 0:
|
|
17733
|
+
_ref62 = _args31.length > 1 ? _args31[1] : undefined, rejectWithValue = _ref62.rejectWithValue;
|
|
17734
|
+
_context31.prev = 2;
|
|
17735
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17736
|
+
body = {
|
|
17737
|
+
db_name: "primarycareng",
|
|
17738
|
+
filter: {
|
|
17739
|
+
type: ["SERVICECATEGORY"],
|
|
17740
|
+
tenantid: "",
|
|
17741
|
+
facilityid: "",
|
|
17742
|
+
lang: ""
|
|
17743
|
+
},
|
|
17744
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
17745
|
+
};
|
|
17746
|
+
_context31.next = 6;
|
|
17747
|
+
return fetchData({
|
|
17748
|
+
body: JSON.stringify(body)
|
|
17749
|
+
}, __baseUrl__$1);
|
|
17750
|
+
case 6:
|
|
17751
|
+
data = _context31.sent;
|
|
17752
|
+
arry = [];
|
|
17753
|
+
(_data$5 = data[0]) === null || _data$5 === void 0 ? void 0 : (_data$5$SERVICECATEGO = _data$5.SERVICECATEGORY) === null || _data$5$SERVICECATEGO === void 0 ? void 0 : (_data$5$SERVICECATEGO2 = _data$5$SERVICECATEGO.Value) === null || _data$5$SERVICECATEGO2 === void 0 ? void 0 : _data$5$SERVICECATEGO2.map(function (item) {
|
|
17754
|
+
return arry.push({
|
|
17755
|
+
_id: item._id,
|
|
17756
|
+
Value: item.display,
|
|
17757
|
+
label: item.display
|
|
17758
|
+
});
|
|
17759
|
+
});
|
|
17760
|
+
return _context31.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17761
|
+
data: arry
|
|
17762
|
+
}));
|
|
17763
|
+
case 12:
|
|
17764
|
+
_context31.prev = 12;
|
|
17765
|
+
_context31.t0 = _context31["catch"](2);
|
|
17766
|
+
return _context31.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17767
|
+
message: _context31.t0.message
|
|
17768
|
+
})));
|
|
17769
|
+
case 15:
|
|
17770
|
+
case "end":
|
|
17771
|
+
return _context31.stop();
|
|
17239
17772
|
}
|
|
17240
17773
|
}
|
|
17241
|
-
},
|
|
17774
|
+
}, _callee31, null, [[2, 12]]);
|
|
17242
17775
|
})));
|
|
17243
|
-
var RES_SERVICE_CATEGORY = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_category", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
17244
|
-
var
|
|
17776
|
+
var RES_SERVICE_CATEGORY = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_category", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32() {
|
|
17777
|
+
var _ref64,
|
|
17245
17778
|
rejectWithValue,
|
|
17246
17779
|
queriesjson,
|
|
17247
17780
|
data,
|
|
17248
17781
|
result,
|
|
17249
|
-
|
|
17250
|
-
return _regeneratorRuntime().wrap(function
|
|
17782
|
+
_args32 = arguments;
|
|
17783
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context32) {
|
|
17251
17784
|
while (1) {
|
|
17252
|
-
switch (
|
|
17785
|
+
switch (_context32.prev = _context32.next) {
|
|
17253
17786
|
case 0:
|
|
17254
|
-
|
|
17255
|
-
|
|
17787
|
+
_ref64 = _args32.length > 1 ? _args32[1] : undefined, rejectWithValue = _ref64.rejectWithValue;
|
|
17788
|
+
_context32.prev = 2;
|
|
17256
17789
|
queriesjson = queries$i.res_service_category();
|
|
17257
|
-
|
|
17790
|
+
_context32.next = 6;
|
|
17258
17791
|
return fetchData({
|
|
17259
17792
|
body: JSON.stringify(queriesjson)
|
|
17260
17793
|
}, __readDocumentUrl__);
|
|
17261
17794
|
case 6:
|
|
17262
|
-
data =
|
|
17795
|
+
data = _context32.sent;
|
|
17263
17796
|
debugger;
|
|
17264
17797
|
result = [];
|
|
17265
17798
|
data.result.map(function (val, i) {
|
|
@@ -17268,42 +17801,99 @@ var RES_SERVICE_CATEGORY = createAsyncThunk("resourceByAppointmentTypesSlice/res
|
|
|
17268
17801
|
label: val === null || val === void 0 ? void 0 : val.display
|
|
17269
17802
|
});
|
|
17270
17803
|
});
|
|
17271
|
-
return
|
|
17804
|
+
return _context32.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17272
17805
|
data: result
|
|
17273
17806
|
}));
|
|
17274
17807
|
case 13:
|
|
17275
|
-
|
|
17276
|
-
|
|
17277
|
-
return
|
|
17278
|
-
message:
|
|
17808
|
+
_context32.prev = 13;
|
|
17809
|
+
_context32.t0 = _context32["catch"](2);
|
|
17810
|
+
return _context32.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17811
|
+
message: _context32.t0.message
|
|
17279
17812
|
})));
|
|
17280
17813
|
case 16:
|
|
17281
17814
|
case "end":
|
|
17282
|
-
return
|
|
17815
|
+
return _context32.stop();
|
|
17283
17816
|
}
|
|
17284
17817
|
}
|
|
17285
|
-
},
|
|
17818
|
+
}, _callee32, null, [[2, 13]]);
|
|
17286
17819
|
})));
|
|
17287
|
-
var
|
|
17288
|
-
var
|
|
17820
|
+
var RES_SERVICE_CODE_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_code_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33() {
|
|
17821
|
+
var _ref66,
|
|
17822
|
+
rejectWithValue,
|
|
17823
|
+
_data$6,
|
|
17824
|
+
_data$6$SERVICE,
|
|
17825
|
+
_data$6$SERVICE$Value,
|
|
17826
|
+
body,
|
|
17827
|
+
data,
|
|
17828
|
+
arry,
|
|
17829
|
+
_args33 = arguments;
|
|
17830
|
+
return _regeneratorRuntime().wrap(function _callee33$(_context33) {
|
|
17831
|
+
while (1) {
|
|
17832
|
+
switch (_context33.prev = _context33.next) {
|
|
17833
|
+
case 0:
|
|
17834
|
+
_ref66 = _args33.length > 1 ? _args33[1] : undefined, rejectWithValue = _ref66.rejectWithValue;
|
|
17835
|
+
_context33.prev = 2;
|
|
17836
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17837
|
+
body = {
|
|
17838
|
+
db_name: "primarycareng",
|
|
17839
|
+
filter: {
|
|
17840
|
+
type: ["SERVICE"],
|
|
17841
|
+
tenantid: "",
|
|
17842
|
+
facilityid: "",
|
|
17843
|
+
lang: ""
|
|
17844
|
+
},
|
|
17845
|
+
queryid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
17846
|
+
};
|
|
17847
|
+
_context33.next = 6;
|
|
17848
|
+
return fetchData({
|
|
17849
|
+
body: JSON.stringify(body)
|
|
17850
|
+
}, __baseUrl__$1);
|
|
17851
|
+
case 6:
|
|
17852
|
+
data = _context33.sent;
|
|
17853
|
+
arry = [];
|
|
17854
|
+
(_data$6 = data[0]) === null || _data$6 === void 0 ? void 0 : (_data$6$SERVICE = _data$6.SERVICE) === null || _data$6$SERVICE === void 0 ? void 0 : (_data$6$SERVICE$Value = _data$6$SERVICE.Value) === null || _data$6$SERVICE$Value === void 0 ? void 0 : _data$6$SERVICE$Value.map(function (item) {
|
|
17855
|
+
return arry.push({
|
|
17856
|
+
_id: item._id,
|
|
17857
|
+
Value: item.display,
|
|
17858
|
+
label: item.display
|
|
17859
|
+
});
|
|
17860
|
+
});
|
|
17861
|
+
return _context33.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17862
|
+
data: arry
|
|
17863
|
+
}));
|
|
17864
|
+
case 12:
|
|
17865
|
+
_context33.prev = 12;
|
|
17866
|
+
_context33.t0 = _context33["catch"](2);
|
|
17867
|
+
return _context33.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17868
|
+
message: _context33.t0.message
|
|
17869
|
+
})));
|
|
17870
|
+
case 15:
|
|
17871
|
+
case "end":
|
|
17872
|
+
return _context33.stop();
|
|
17873
|
+
}
|
|
17874
|
+
}
|
|
17875
|
+
}, _callee33, null, [[2, 12]]);
|
|
17876
|
+
})));
|
|
17877
|
+
var RES_SERVICE_CODE = createAsyncThunk("resourceByAppointmentTypesSlice/res_service_code", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34() {
|
|
17878
|
+
var _ref68,
|
|
17289
17879
|
rejectWithValue,
|
|
17290
17880
|
queriesjson,
|
|
17291
17881
|
data,
|
|
17292
17882
|
result,
|
|
17293
|
-
|
|
17294
|
-
return _regeneratorRuntime().wrap(function
|
|
17883
|
+
_args34 = arguments;
|
|
17884
|
+
return _regeneratorRuntime().wrap(function _callee34$(_context34) {
|
|
17295
17885
|
while (1) {
|
|
17296
|
-
switch (
|
|
17886
|
+
switch (_context34.prev = _context34.next) {
|
|
17297
17887
|
case 0:
|
|
17298
|
-
|
|
17299
|
-
|
|
17888
|
+
_ref68 = _args34.length > 1 ? _args34[1] : undefined, rejectWithValue = _ref68.rejectWithValue;
|
|
17889
|
+
_context34.prev = 2;
|
|
17300
17890
|
queriesjson = queries$i.res_service_code();
|
|
17301
|
-
|
|
17891
|
+
_context34.next = 6;
|
|
17302
17892
|
return fetchData({
|
|
17303
17893
|
body: JSON.stringify(queriesjson)
|
|
17304
17894
|
}, __readDocumentUrl__);
|
|
17305
17895
|
case 6:
|
|
17306
|
-
data =
|
|
17896
|
+
data = _context34.sent;
|
|
17307
17897
|
debugger;
|
|
17308
17898
|
result = [];
|
|
17309
17899
|
data.result.map(function (val, i) {
|
|
@@ -17312,45 +17902,107 @@ var RES_SERVICE_CODE = createAsyncThunk("resourceByAppointmentTypesSlice/res_ser
|
|
|
17312
17902
|
label: val === null || val === void 0 ? void 0 : val.display
|
|
17313
17903
|
});
|
|
17314
17904
|
});
|
|
17315
|
-
return
|
|
17905
|
+
return _context34.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17316
17906
|
data: result
|
|
17317
17907
|
}));
|
|
17318
17908
|
case 13:
|
|
17319
|
-
|
|
17320
|
-
|
|
17321
|
-
return
|
|
17322
|
-
message:
|
|
17909
|
+
_context34.prev = 13;
|
|
17910
|
+
_context34.t0 = _context34["catch"](2);
|
|
17911
|
+
return _context34.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17912
|
+
message: _context34.t0.message
|
|
17323
17913
|
})));
|
|
17324
17914
|
case 16:
|
|
17325
17915
|
case "end":
|
|
17326
|
-
return
|
|
17916
|
+
return _context34.stop();
|
|
17327
17917
|
}
|
|
17328
17918
|
}
|
|
17329
|
-
},
|
|
17919
|
+
}, _callee34, null, [[2, 13]]);
|
|
17330
17920
|
})));
|
|
17331
|
-
var
|
|
17921
|
+
var RES_APPOINTMENT_LIST_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_list_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35() {
|
|
17332
17922
|
var payload,
|
|
17333
|
-
|
|
17923
|
+
_ref70,
|
|
17924
|
+
rejectWithValue,
|
|
17925
|
+
body,
|
|
17926
|
+
data,
|
|
17927
|
+
arry,
|
|
17928
|
+
_args35 = arguments;
|
|
17929
|
+
return _regeneratorRuntime().wrap(function _callee35$(_context35) {
|
|
17930
|
+
while (1) {
|
|
17931
|
+
switch (_context35.prev = _context35.next) {
|
|
17932
|
+
case 0:
|
|
17933
|
+
payload = _args35.length > 0 && _args35[0] !== undefined ? _args35[0] : {};
|
|
17934
|
+
_ref70 = _args35.length > 1 ? _args35[1] : undefined, rejectWithValue = _ref70.rejectWithValue;
|
|
17935
|
+
_context35.prev = 2;
|
|
17936
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
17937
|
+
body = {
|
|
17938
|
+
db_name: "primarycareng",
|
|
17939
|
+
filter: {
|
|
17940
|
+
searchname: payload === null || payload === void 0 ? void 0 : payload.search,
|
|
17941
|
+
page: payload === null || payload === void 0 ? void 0 : payload.page,
|
|
17942
|
+
perpage: payload === null || payload === void 0 ? void 0 : payload.perPage
|
|
17943
|
+
},
|
|
17944
|
+
queryid: "9d9daea6-4bbe-4128-adcf-75cb2ad0b7e8"
|
|
17945
|
+
};
|
|
17946
|
+
_context35.next = 6;
|
|
17947
|
+
return fetchData({
|
|
17948
|
+
body: JSON.stringify(body)
|
|
17949
|
+
}, __baseUrl__$1);
|
|
17950
|
+
case 6:
|
|
17951
|
+
data = _context35.sent;
|
|
17952
|
+
arry = []; // data?.map((item) =>
|
|
17953
|
+
// arry.push({ _id: item._id, Value: item._id, label: item.display })
|
|
17954
|
+
// );
|
|
17955
|
+
data === null || data === void 0 ? void 0 : data.map(function (val, i) {
|
|
17956
|
+
var _val$servicecategory$;
|
|
17957
|
+
arry.push(_objectSpread2$1({
|
|
17958
|
+
s_no: i + 1,
|
|
17959
|
+
code: val === null || val === void 0 ? void 0 : val.code,
|
|
17960
|
+
"short": val === null || val === void 0 ? void 0 : val.shortdesc,
|
|
17961
|
+
"long": val === null || val === void 0 ? void 0 : val.longdesc,
|
|
17962
|
+
service: val !== null && val !== void 0 && val.servicecategory && (val === null || val === void 0 ? void 0 : val.servicecategory.length) > 0 ? val === null || val === void 0 ? void 0 : (_val$servicecategory$ = val.servicecategory[0]) === null || _val$servicecategory$ === void 0 ? void 0 : _val$servicecategory$.display : "No Service",
|
|
17963
|
+
entity: "StatusByEntity"
|
|
17964
|
+
}, val));
|
|
17965
|
+
});
|
|
17966
|
+
return _context35.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17967
|
+
data: arry
|
|
17968
|
+
}));
|
|
17969
|
+
case 12:
|
|
17970
|
+
_context35.prev = 12;
|
|
17971
|
+
_context35.t0 = _context35["catch"](2);
|
|
17972
|
+
console.log(_context35.t0, "datadata");
|
|
17973
|
+
return _context35.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
17974
|
+
message: _context35.t0.message
|
|
17975
|
+
})));
|
|
17976
|
+
case 16:
|
|
17977
|
+
case "end":
|
|
17978
|
+
return _context35.stop();
|
|
17979
|
+
}
|
|
17980
|
+
}
|
|
17981
|
+
}, _callee35, null, [[2, 12]]);
|
|
17982
|
+
})));
|
|
17983
|
+
var RES_APPOINTMENT_LIST = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36() {
|
|
17984
|
+
var payload,
|
|
17985
|
+
_ref72,
|
|
17334
17986
|
rejectWithValue,
|
|
17335
17987
|
queriesjson,
|
|
17336
17988
|
data,
|
|
17337
17989
|
result,
|
|
17338
|
-
|
|
17339
|
-
return _regeneratorRuntime().wrap(function
|
|
17990
|
+
_args36 = arguments;
|
|
17991
|
+
return _regeneratorRuntime().wrap(function _callee36$(_context36) {
|
|
17340
17992
|
while (1) {
|
|
17341
|
-
switch (
|
|
17993
|
+
switch (_context36.prev = _context36.next) {
|
|
17342
17994
|
case 0:
|
|
17343
|
-
payload =
|
|
17344
|
-
|
|
17995
|
+
payload = _args36.length > 0 && _args36[0] !== undefined ? _args36[0] : {};
|
|
17996
|
+
_ref72 = _args36.length > 1 ? _args36[1] : undefined, rejectWithValue = _ref72.rejectWithValue;
|
|
17345
17997
|
console.log(payload, "sdkesloert");
|
|
17346
|
-
|
|
17998
|
+
_context36.prev = 3;
|
|
17347
17999
|
queriesjson = queries$i.res_appointment_list(payload);
|
|
17348
|
-
|
|
18000
|
+
_context36.next = 7;
|
|
17349
18001
|
return fetchData({
|
|
17350
18002
|
body: JSON.stringify(queriesjson)
|
|
17351
18003
|
}, __readDocumentUrl__);
|
|
17352
18004
|
case 7:
|
|
17353
|
-
data =
|
|
18005
|
+
data = _context36.sent;
|
|
17354
18006
|
console.log(data, "datasse");
|
|
17355
18007
|
result = [];
|
|
17356
18008
|
data === null || data === void 0 ? void 0 : data.result.map(function (val, i) {
|
|
@@ -17363,143 +18015,185 @@ var RES_APPOINTMENT_LIST = createAsyncThunk("resourceByAppointmentTypesSlice/res
|
|
|
17363
18015
|
entity: "StatusByEntity"
|
|
17364
18016
|
}, val));
|
|
17365
18017
|
});
|
|
17366
|
-
return
|
|
18018
|
+
return _context36.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17367
18019
|
data: result
|
|
17368
18020
|
}));
|
|
17369
18021
|
case 14:
|
|
17370
|
-
|
|
17371
|
-
|
|
17372
|
-
return
|
|
17373
|
-
message:
|
|
18022
|
+
_context36.prev = 14;
|
|
18023
|
+
_context36.t0 = _context36["catch"](3);
|
|
18024
|
+
return _context36.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18025
|
+
message: _context36.t0.message
|
|
17374
18026
|
})));
|
|
17375
18027
|
case 17:
|
|
17376
18028
|
case "end":
|
|
17377
|
-
return
|
|
18029
|
+
return _context36.stop();
|
|
17378
18030
|
}
|
|
17379
18031
|
}
|
|
17380
|
-
},
|
|
18032
|
+
}, _callee36, null, [[3, 14]]);
|
|
17381
18033
|
})));
|
|
17382
|
-
var RES_UPSERT_APPOINTMENT = createAsyncThunk("resourceByAppointmentTypesSlice/res_upsert_appointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
18034
|
+
var RES_UPSERT_APPOINTMENT = createAsyncThunk("resourceByAppointmentTypesSlice/res_upsert_appointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37() {
|
|
17383
18035
|
var payload,
|
|
17384
|
-
|
|
18036
|
+
_ref74,
|
|
17385
18037
|
rejectWithValue,
|
|
17386
18038
|
key,
|
|
17387
18039
|
queriesjson,
|
|
17388
18040
|
result,
|
|
17389
|
-
|
|
17390
|
-
return _regeneratorRuntime().wrap(function
|
|
18041
|
+
_args37 = arguments;
|
|
18042
|
+
return _regeneratorRuntime().wrap(function _callee37$(_context37) {
|
|
17391
18043
|
while (1) {
|
|
17392
|
-
switch (
|
|
18044
|
+
switch (_context37.prev = _context37.next) {
|
|
17393
18045
|
case 0:
|
|
17394
|
-
payload =
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
_context25.prev = 3;
|
|
18046
|
+
payload = _args37.length > 0 && _args37[0] !== undefined ? _args37[0] : {};
|
|
18047
|
+
_ref74 = _args37.length > 1 ? _args37[1] : undefined, rejectWithValue = _ref74.rejectWithValue;
|
|
18048
|
+
_context37.prev = 2;
|
|
17398
18049
|
key = payload;
|
|
17399
18050
|
queriesjson = queries$i.res_upsert_appointment(key); // let queriesjson = generateJson.insert_appointment_add(state, key);
|
|
17400
|
-
|
|
18051
|
+
_context37.next = 7;
|
|
17401
18052
|
return fetchData({
|
|
17402
18053
|
body: JSON.stringify(queriesjson)
|
|
17403
18054
|
}, __uspsertUrl__);
|
|
17404
|
-
case
|
|
17405
|
-
|
|
18055
|
+
case 7:
|
|
18056
|
+
_context37.sent;
|
|
17406
18057
|
result = [];
|
|
17407
|
-
return
|
|
18058
|
+
return _context37.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17408
18059
|
data: result
|
|
17409
18060
|
}));
|
|
17410
|
-
case
|
|
17411
|
-
|
|
17412
|
-
|
|
17413
|
-
return
|
|
17414
|
-
message:
|
|
18061
|
+
case 12:
|
|
18062
|
+
_context37.prev = 12;
|
|
18063
|
+
_context37.t0 = _context37["catch"](2);
|
|
18064
|
+
return _context37.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18065
|
+
message: _context37.t0.message
|
|
17415
18066
|
})));
|
|
17416
|
-
case
|
|
18067
|
+
case 15:
|
|
17417
18068
|
case "end":
|
|
17418
|
-
return
|
|
18069
|
+
return _context37.stop();
|
|
17419
18070
|
}
|
|
17420
18071
|
}
|
|
17421
|
-
},
|
|
18072
|
+
}, _callee37, null, [[2, 12]]);
|
|
17422
18073
|
})));
|
|
17423
|
-
var RES_UPDATE_APPOINTMENT = createAsyncThunk("resourceByAppointmentTypesSlice/res_update_appointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
18074
|
+
var RES_UPDATE_APPOINTMENT = createAsyncThunk("resourceByAppointmentTypesSlice/res_update_appointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38() {
|
|
17424
18075
|
var payload,
|
|
17425
|
-
|
|
18076
|
+
_ref76,
|
|
17426
18077
|
rejectWithValue,
|
|
17427
18078
|
key,
|
|
17428
18079
|
queriesjson,
|
|
17429
18080
|
result,
|
|
17430
|
-
|
|
17431
|
-
return _regeneratorRuntime().wrap(function
|
|
18081
|
+
_args38 = arguments;
|
|
18082
|
+
return _regeneratorRuntime().wrap(function _callee38$(_context38) {
|
|
17432
18083
|
while (1) {
|
|
17433
|
-
switch (
|
|
18084
|
+
switch (_context38.prev = _context38.next) {
|
|
17434
18085
|
case 0:
|
|
17435
|
-
payload =
|
|
17436
|
-
|
|
17437
|
-
console.log(payload, "
|
|
17438
|
-
|
|
18086
|
+
payload = _args38.length > 0 && _args38[0] !== undefined ? _args38[0] : {};
|
|
18087
|
+
_ref76 = _args38.length > 1 ? _args38[1] : undefined, rejectWithValue = _ref76.rejectWithValue;
|
|
18088
|
+
console.log(payload, "updateeditvalue");
|
|
18089
|
+
_context38.prev = 3;
|
|
17439
18090
|
key = payload;
|
|
17440
18091
|
queriesjson = queries$i.res_update_appointment(key); // let queriesjson = generateJson.insert_appointment_add(state, key);
|
|
17441
|
-
|
|
18092
|
+
_context38.next = 8;
|
|
17442
18093
|
return fetchData({
|
|
17443
18094
|
body: JSON.stringify(queriesjson)
|
|
17444
18095
|
}, __uspsertUrl__);
|
|
17445
18096
|
case 8:
|
|
17446
|
-
|
|
18097
|
+
_context38.sent;
|
|
17447
18098
|
result = [];
|
|
17448
|
-
return
|
|
18099
|
+
return _context38.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17449
18100
|
data: result
|
|
17450
18101
|
}));
|
|
17451
18102
|
case 13:
|
|
17452
|
-
|
|
17453
|
-
|
|
17454
|
-
return
|
|
17455
|
-
message:
|
|
18103
|
+
_context38.prev = 13;
|
|
18104
|
+
_context38.t0 = _context38["catch"](3);
|
|
18105
|
+
return _context38.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18106
|
+
message: _context38.t0.message
|
|
17456
18107
|
})));
|
|
17457
18108
|
case 16:
|
|
17458
18109
|
case "end":
|
|
17459
|
-
return
|
|
18110
|
+
return _context38.stop();
|
|
18111
|
+
}
|
|
18112
|
+
}
|
|
18113
|
+
}, _callee38, null, [[3, 13]]);
|
|
18114
|
+
})));
|
|
18115
|
+
var RES_APPOINTMENT_SINGLE_READ_QDM = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_single_read_qdm", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39() {
|
|
18116
|
+
var payload,
|
|
18117
|
+
_ref78,
|
|
18118
|
+
rejectWithValue,
|
|
18119
|
+
body,
|
|
18120
|
+
data,
|
|
18121
|
+
_args39 = arguments;
|
|
18122
|
+
return _regeneratorRuntime().wrap(function _callee39$(_context39) {
|
|
18123
|
+
while (1) {
|
|
18124
|
+
switch (_context39.prev = _context39.next) {
|
|
18125
|
+
case 0:
|
|
18126
|
+
payload = _args39.length > 0 && _args39[0] !== undefined ? _args39[0] : {};
|
|
18127
|
+
_ref78 = _args39.length > 1 ? _args39[1] : undefined, rejectWithValue = _ref78.rejectWithValue;
|
|
18128
|
+
_context39.prev = 2;
|
|
18129
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
18130
|
+
body = {
|
|
18131
|
+
db_name: "primarycareng",
|
|
18132
|
+
filter: {
|
|
18133
|
+
_id: payload
|
|
18134
|
+
},
|
|
18135
|
+
queryid: "4351b8fe-f580-4e84-aa8e-8e9dc5cfd7f7"
|
|
18136
|
+
};
|
|
18137
|
+
_context39.next = 6;
|
|
18138
|
+
return fetchData({
|
|
18139
|
+
body: JSON.stringify(body)
|
|
18140
|
+
}, __baseUrl__$1);
|
|
18141
|
+
case 6:
|
|
18142
|
+
data = _context39.sent;
|
|
18143
|
+
return _context39.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
18144
|
+
data: data
|
|
18145
|
+
}));
|
|
18146
|
+
case 10:
|
|
18147
|
+
_context39.prev = 10;
|
|
18148
|
+
_context39.t0 = _context39["catch"](2);
|
|
18149
|
+
return _context39.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18150
|
+
message: _context39.t0.message
|
|
18151
|
+
})));
|
|
18152
|
+
case 13:
|
|
18153
|
+
case "end":
|
|
18154
|
+
return _context39.stop();
|
|
17460
18155
|
}
|
|
17461
18156
|
}
|
|
17462
|
-
},
|
|
18157
|
+
}, _callee39, null, [[2, 10]]);
|
|
17463
18158
|
})));
|
|
17464
|
-
var RES_APPOINTMENT_SINGLE_READ = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_single_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
18159
|
+
var RES_APPOINTMENT_SINGLE_READ = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_single_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40() {
|
|
17465
18160
|
var payload,
|
|
17466
|
-
|
|
18161
|
+
_ref80,
|
|
17467
18162
|
rejectWithValue,
|
|
17468
18163
|
key,
|
|
17469
18164
|
queriesjson,
|
|
17470
18165
|
data,
|
|
17471
|
-
|
|
17472
|
-
return _regeneratorRuntime().wrap(function
|
|
18166
|
+
_args40 = arguments;
|
|
18167
|
+
return _regeneratorRuntime().wrap(function _callee40$(_context40) {
|
|
17473
18168
|
while (1) {
|
|
17474
|
-
switch (
|
|
18169
|
+
switch (_context40.prev = _context40.next) {
|
|
17475
18170
|
case 0:
|
|
17476
|
-
payload =
|
|
17477
|
-
|
|
17478
|
-
|
|
17479
|
-
_context27.prev = 3;
|
|
18171
|
+
payload = _args40.length > 0 && _args40[0] !== undefined ? _args40[0] : {};
|
|
18172
|
+
_ref80 = _args40.length > 1 ? _args40[1] : undefined, rejectWithValue = _ref80.rejectWithValue;
|
|
18173
|
+
_context40.prev = 2;
|
|
17480
18174
|
key = payload;
|
|
17481
18175
|
queriesjson = queries$i.res_appointment_single_read(key); // let queriesjson = generateJson.insert_appointment_add(state, key);
|
|
17482
|
-
|
|
18176
|
+
_context40.next = 7;
|
|
17483
18177
|
return fetchData({
|
|
17484
18178
|
body: JSON.stringify(queriesjson)
|
|
17485
18179
|
}, __readDocumentUrl__);
|
|
17486
|
-
case
|
|
17487
|
-
data =
|
|
17488
|
-
return
|
|
18180
|
+
case 7:
|
|
18181
|
+
data = _context40.sent;
|
|
18182
|
+
return _context40.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
17489
18183
|
data: data
|
|
17490
18184
|
}));
|
|
17491
|
-
case
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
return
|
|
17495
|
-
message:
|
|
18185
|
+
case 12:
|
|
18186
|
+
_context40.prev = 12;
|
|
18187
|
+
_context40.t0 = _context40["catch"](2);
|
|
18188
|
+
return _context40.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18189
|
+
message: _context40.t0.message
|
|
17496
18190
|
})));
|
|
17497
|
-
case
|
|
18191
|
+
case 15:
|
|
17498
18192
|
case "end":
|
|
17499
|
-
return
|
|
18193
|
+
return _context40.stop();
|
|
17500
18194
|
}
|
|
17501
18195
|
}
|
|
17502
|
-
},
|
|
18196
|
+
}, _callee40, null, [[2, 12]]);
|
|
17503
18197
|
})));
|
|
17504
18198
|
var resourceByAppointmentTypesSlice = createSlice({
|
|
17505
18199
|
name: "resourceByAppointmentTypesSlice",
|
|
@@ -17512,24 +18206,37 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
17512
18206
|
resource_role_drop_down: _objectSpread2$1({}, defaultState.List),
|
|
17513
18207
|
res_general_instruction: _objectSpread2$1({}, defaultState.List),
|
|
17514
18208
|
res_special_instruction: _objectSpread2$1({}, defaultState.List),
|
|
18209
|
+
res_criteria_instruction_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17515
18210
|
res_criteria_instruction: _objectSpread2$1({}, defaultState.List),
|
|
17516
18211
|
res_status_update: _objectSpread2$1({}, defaultState.List),
|
|
17517
18212
|
res_upsert_new: _objectSpread2$1({}, defaultState.List),
|
|
17518
18213
|
res_line_list_read_doc: _objectSpread2$1({}, defaultState.List),
|
|
17519
18214
|
res_patient_category_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18215
|
+
res_patient_category_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
18216
|
+
res_resource_type_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17520
18217
|
res_resource_type_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18218
|
+
res_resource_role_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17521
18219
|
res_resource_role_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18220
|
+
res_resource_department_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17522
18221
|
res_resource_department_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18222
|
+
res_resource_name_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17523
18223
|
res_resource_name_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18224
|
+
res_special_instruction_list_doc_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17524
18225
|
res_special_instruction_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18226
|
+
res_general_instruction_dropdown_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17525
18227
|
res_general_instruction_dropdown: _objectSpread2$1({}, defaultState.List),
|
|
18228
|
+
res_service_group_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17526
18229
|
res_service_group: _objectSpread2$1({}, defaultState.List),
|
|
18230
|
+
res_service_category_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17527
18231
|
res_service_category: _objectSpread2$1({}, defaultState.List),
|
|
18232
|
+
res_service_code_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17528
18233
|
res_service_code: _objectSpread2$1({}, defaultState.List),
|
|
17529
18234
|
res_criteria_list_doc: _objectSpread2$1({}, defaultState.List),
|
|
18235
|
+
res_appointment_list_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17530
18236
|
res_appointment_list: _objectSpread2$1({}, defaultState.List),
|
|
17531
18237
|
res_upsert_appointment: _objectSpread2$1({}, defaultState.List),
|
|
17532
18238
|
res_update_appointment: _objectSpread2$1({}, defaultState.List),
|
|
18239
|
+
res_appointment_single_read_qdm: _objectSpread2$1({}, defaultState.List),
|
|
17533
18240
|
res_appointment_single_read: _objectSpread2$1({}, defaultState.List)
|
|
17534
18241
|
},
|
|
17535
18242
|
extraReducers: (_extraReducers$A = {}, _defineProperty(_extraReducers$A, RESOURCE_BY_APPOINTMRNT_TYPES.fulfilled, function (state, action) {
|
|
@@ -17586,6 +18293,12 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
17586
18293
|
state.res_criteria_instruction.loading = true, state.res_criteria_instruction.error = false, state.res_criteria_instruction.loading = true;
|
|
17587
18294
|
}), _defineProperty(_extraReducers$A, RES_CRITERIA_INSTRUVTION.rejected, function (state, action) {
|
|
17588
18295
|
state.res_criteria_instruction.loading = false, state.res_criteria_instruction.error = true, state.res_criteria_instruction = action.payload;
|
|
18296
|
+
}), _defineProperty(_extraReducers$A, RES_CRITERIA_INSTRUCTION_QDM.fulfilled, function (state, action) {
|
|
18297
|
+
state.res_criteria_instruction_qdm.loading = false, state.res_criteria_instruction_qdm.error = false, state.res_criteria_instruction_qdm = action.payload;
|
|
18298
|
+
}), _defineProperty(_extraReducers$A, RES_CRITERIA_INSTRUCTION_QDM.pending, function (state, action) {
|
|
18299
|
+
state.res_criteria_instruction_qdm.loading = true, state.res_criteria_instruction_qdm.error = false, state.res_criteria_instruction_qdm.loading = true;
|
|
18300
|
+
}), _defineProperty(_extraReducers$A, RES_CRITERIA_INSTRUCTION_QDM.rejected, function (state, action) {
|
|
18301
|
+
state.res_criteria_instruction_qdm.loading = false, state.res_criteria_instruction_qdm.error = true, state.res_criteria_instruction_qdm = action.payload;
|
|
17589
18302
|
}), _defineProperty(_extraReducers$A, UPDATE_STATUS_RES_LINE_LIST.fulfilled, function (state, action) {
|
|
17590
18303
|
state.res_status_update.loading = false, state.res_status_update.error = false, state.res_status_update = action.payload;
|
|
17591
18304
|
}), _defineProperty(_extraReducers$A, UPDATE_STATUS_RES_LINE_LIST.pending, function (state, action) {
|
|
@@ -17610,42 +18323,84 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
17610
18323
|
state.res_patient_category_list_doc.loading = true, state.res_patient_category_list_doc.error = false, state.res_patient_category_list_doc.loading = true;
|
|
17611
18324
|
}), _defineProperty(_extraReducers$A, RES_PATIENT_CATEGORY_LIST_DOC.rejected, function (state, action) {
|
|
17612
18325
|
state.res_patient_category_list_doc.loading = false, state.res_patient_category_list_doc.error = true, state.res_patient_category_list_doc = action.payload;
|
|
18326
|
+
}), _defineProperty(_extraReducers$A, RES_PATIENT_CATEGORY_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18327
|
+
state.res_patient_category_list_doc_qdm.loading = false, state.res_patient_category_list_doc_qdm.error = false, state.res_patient_category_list_doc_qdm = action.payload;
|
|
18328
|
+
}), _defineProperty(_extraReducers$A, RES_PATIENT_CATEGORY_LIST_DOC_QDM.pending, function (state, action) {
|
|
18329
|
+
state.res_patient_category_list_doc_qdm.loading = true, state.res_patient_category_list_doc_qdm.error = false, state.res_patient_category_list_doc_qdm.loading = true;
|
|
18330
|
+
}), _defineProperty(_extraReducers$A, RES_PATIENT_CATEGORY_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18331
|
+
state.res_patient_category_list_doc_qdm.loading = false, state.res_patient_category_list_doc_qdm.error = true, state.res_patient_category_list_doc_qdm = action.payload;
|
|
17613
18332
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC.fulfilled, function (state, action) {
|
|
17614
18333
|
state.res_resource_type_list_doc.loading = false, state.res_resource_type_list_doc.error = false, state.res_resource_type_list_doc = action.payload;
|
|
17615
18334
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC.pending, function (state, action) {
|
|
17616
18335
|
state.res_resource_type_list_doc.loading = true, state.res_resource_type_list_doc.error = false, state.res_resource_type_list_doc.loading = true;
|
|
17617
18336
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC.rejected, function (state, action) {
|
|
17618
18337
|
state.res_resource_type_list_doc.loading = false, state.res_resource_type_list_doc.error = true, state.res_resource_type_list_doc = action.payload;
|
|
18338
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18339
|
+
state.res_resource_type_list_doc_qdm.loading = false, state.res_resource_type_list_doc_qdm.error = false, state.res_resource_type_list_doc_qdm = action.payload;
|
|
18340
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC_QDM.pending, function (state, action) {
|
|
18341
|
+
state.res_resource_type_list_doc_qdm.loading = true, state.res_resource_type_list_doc_qdm.error = false, state.res_resource_type_list_doc_qdm.loading = true;
|
|
18342
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_TYPE_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18343
|
+
state.res_resource_type_list_doc_qdm.loading = false, state.res_resource_type_list_doc_qdm.error = true, state.res_resource_type_list_doc_qdm = action.payload;
|
|
17619
18344
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC.fulfilled, function (state, action) {
|
|
17620
18345
|
state.res_resource_role_list_doc.loading = false, state.res_resource_role_list_doc.error = false, state.res_resource_role_list_doc = action.payload;
|
|
17621
18346
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC.pending, function (state, action) {
|
|
17622
18347
|
state.res_resource_role_list_doc.loading = true, state.res_resource_role_list_doc.error = false, state.res_resource_role_list_doc.loading = true;
|
|
17623
18348
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC.rejected, function (state, action) {
|
|
17624
18349
|
state.res_resource_role_list_doc.loading = false, state.res_resource_role_list_doc.error = true, state.res_resource_role_list_doc = action.payload;
|
|
18350
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18351
|
+
state.res_resource_role_list_doc_qdm.loading = false, state.res_resource_role_list_doc_qdm.error = false, state.res_resource_role_list_doc_qdm = action.payload;
|
|
18352
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC_QDM.pending, function (state, action) {
|
|
18353
|
+
state.res_resource_role_list_doc_qdm.loading = true, state.res_resource_role_list_doc_qdm.error = false, state.res_resource_role_list_doc_qdm.loading = true;
|
|
18354
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_ROLE_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18355
|
+
state.res_resource_role_list_doc_qdm.loading = false, state.res_resource_role_list_doc_qdm.error = true, state.res_resource_role_list_doc_qdm = action.payload;
|
|
17625
18356
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC.fulfilled, function (state, action) {
|
|
17626
18357
|
state.res_resource_department_list_doc.loading = false, state.res_resource_department_list_doc.error = false, state.res_resource_department_list_doc = action.payload;
|
|
17627
18358
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC.pending, function (state, action) {
|
|
17628
18359
|
state.res_resource_department_list_doc.loading = true, state.res_resource_department_list_doc.error = false, state.res_resource_department_list_doc.loading = true;
|
|
17629
18360
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC.rejected, function (state, action) {
|
|
17630
18361
|
state.res_resource_department_list_doc.loading = false, state.res_resource_department_list_doc.error = true, state.res_resource_department_list_doc = action.payload;
|
|
18362
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18363
|
+
state.res_resource_department_list_doc_qdm.loading = false, state.res_resource_department_list_doc_qdm.error = false, state.res_resource_department_list_doc_qdm = action.payload;
|
|
18364
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM.pending, function (state, action) {
|
|
18365
|
+
state.res_resource_department_list_doc_qdm.loading = true, state.res_resource_department_list_doc_qdm.error = false, state.res_resource_department_list_doc_qdm.loading = true;
|
|
18366
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18367
|
+
state.res_resource_department_list_doc_qdm.loading = false, state.res_resource_department_list_doc_qdm.error = true, state.res_resource_department_list_doc_qdm = action.payload;
|
|
17631
18368
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC.fulfilled, function (state, action) {
|
|
17632
18369
|
state.res_resource_name_list_doc.loading = false, state.res_resource_name_list_doc.error = false, state.res_resource_name_list_doc = action.payload;
|
|
17633
18370
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC.pending, function (state, action) {
|
|
17634
18371
|
state.res_resource_name_list_doc.loading = true, state.res_resource_name_list_doc.error = false, state.res_resource_name_list_doc.loading = true;
|
|
17635
18372
|
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC.rejected, function (state, action) {
|
|
17636
18373
|
state.res_resource_name_list_doc.loading = false, state.res_resource_name_list_doc.error = true, state.res_resource_name_list_doc = action.payload;
|
|
18374
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18375
|
+
state.res_resource_name_list_doc_qdm.loading = false, state.res_resource_name_list_doc_qdm.error = false, state.res_resource_name_list_doc_qdm = action.payload;
|
|
18376
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC_QDM.pending, function (state, action) {
|
|
18377
|
+
state.res_resource_name_list_doc_qdm.loading = true, state.res_resource_name_list_doc_qdm.error = false, state.res_resource_name_list_doc_qdm.loading = true;
|
|
18378
|
+
}), _defineProperty(_extraReducers$A, RES_RESOURCE_NAME_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18379
|
+
state.res_resource_name_list_doc_qdm.loading = false, state.res_resource_name_list_doc_qdm.error = true, state.res_resource_name_list_doc_qdm = action.payload;
|
|
17637
18380
|
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC.fulfilled, function (state, action) {
|
|
17638
18381
|
state.res_special_instruction_list_doc.loading = false, state.res_special_instruction_list_doc.error = false, state.res_special_instruction_list_doc = action.payload;
|
|
17639
18382
|
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC.pending, function (state, action) {
|
|
17640
18383
|
state.res_special_instruction_list_doc.loading = true, state.res_special_instruction_list_doc.error = false, state.res_special_instruction_list_doc.loading = true;
|
|
17641
18384
|
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC.rejected, function (state, action) {
|
|
17642
18385
|
state.res_special_instruction_list_doc.loading = false, state.res_special_instruction_list_doc.error = true, state.res_special_instruction_list_doc = action.payload;
|
|
18386
|
+
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM.fulfilled, function (state, action) {
|
|
18387
|
+
state.res_special_instruction_list_doc_qdm.loading = false, state.res_special_instruction_list_doc_qdm.error = false, state.res_special_instruction_list_doc_qdm = action.payload;
|
|
18388
|
+
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM.pending, function (state, action) {
|
|
18389
|
+
state.res_special_instruction_list_doc_qdm.loading = true, state.res_special_instruction_list_doc_qdm.error = false, state.res_special_instruction_list_doc_qdm.loading = true;
|
|
18390
|
+
}), _defineProperty(_extraReducers$A, RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM.rejected, function (state, action) {
|
|
18391
|
+
state.res_special_instruction_list_doc_qdm.loading = false, state.res_special_instruction_list_doc_qdm.error = true, state.res_special_instruction_list_doc_qdm = action.payload;
|
|
17643
18392
|
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN.fulfilled, function (state, action) {
|
|
17644
18393
|
state.res_general_instruction_dropdown.loading = false, state.res_general_instruction_dropdown.error = false, state.res_general_instruction_dropdown = action.payload;
|
|
17645
18394
|
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN.pending, function (state, action) {
|
|
17646
18395
|
state.res_general_instruction_dropdown.loading = true, state.res_general_instruction_dropdown.error = false, state.res_general_instruction_dropdown.loading = true;
|
|
17647
18396
|
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN.rejected, function (state, action) {
|
|
17648
18397
|
state.res_general_instruction_dropdown.loading = false, state.res_general_instruction_dropdown.error = true, state.res_general_instruction_dropdown = action.payload;
|
|
18398
|
+
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN_QDM.fulfilled, function (state, action) {
|
|
18399
|
+
state.res_general_instruction_dropdown_qdm.loading = false, state.res_general_instruction_dropdown_qdm.error = false, state.res_general_instruction_dropdown_qdm = action.payload;
|
|
18400
|
+
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN_QDM.pending, function (state, action) {
|
|
18401
|
+
state.res_general_instruction_dropdown_qdm.loading = true, state.res_general_instruction_dropdown_qdm.error = false, state.res_general_instruction_dropdown_qdm.loading = true;
|
|
18402
|
+
}), _defineProperty(_extraReducers$A, RES_GENERAL_INSTRUCTION_DROPDOWN_QDM.rejected, function (state, action) {
|
|
18403
|
+
state.res_general_instruction_dropdown_qdm.loading = false, state.res_general_instruction_dropdown_qdm.error = true, state.res_general_instruction_dropdown_qdm = action.payload;
|
|
17649
18404
|
}), _defineProperty(_extraReducers$A, RES_CRITERIA_LIST_DOC.fulfilled, function (state, action) {
|
|
17650
18405
|
state.res_criteria_list_doc.loading = false, state.res_criteria_list_doc.error = false, state.res_criteria_list_doc = action.payload;
|
|
17651
18406
|
}), _defineProperty(_extraReducers$A, RES_CRITERIA_LIST_DOC.pending, function (state, action) {
|
|
@@ -17658,24 +18413,48 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
17658
18413
|
state.res_service_group.loading = true, state.res_service_group.error = false, state.res_service_group.loading = true;
|
|
17659
18414
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_GROUP.rejected, function (state, action) {
|
|
17660
18415
|
state.res_service_group.loading = false, state.res_service_group.error = true, state.res_service_group = action.payload;
|
|
18416
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_GROUP_QDM.fulfilled, function (state, action) {
|
|
18417
|
+
state.res_service_group_qdm.loading = false, state.res_service_group_qdm.error = false, state.res_service_group_qdm = action.payload;
|
|
18418
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_GROUP_QDM.pending, function (state, action) {
|
|
18419
|
+
state.res_service_group_qdm.loading = true, state.res_service_group_qdm.error = false, state.res_service_group_qdm.loading = true;
|
|
18420
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_GROUP_QDM.rejected, function (state, action) {
|
|
18421
|
+
state.res_service_group_qdm.loading = false, state.res_service_group_qdm.error = true, state.res_service_group_qdm = action.payload;
|
|
17661
18422
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY.fulfilled, function (state, action) {
|
|
17662
18423
|
state.res_service_category.loading = false, state.res_service_category.error = false, state.res_service_category = action.payload;
|
|
17663
18424
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY.pending, function (state, action) {
|
|
17664
18425
|
state.res_service_category.loading = true, state.res_service_category.error = false, state.res_service_category.loading = true;
|
|
17665
18426
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY.rejected, function (state, action) {
|
|
17666
18427
|
state.res_service_category.loading = false, state.res_service_category.error = true, state.res_service_category = action.payload;
|
|
18428
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY_QDM.fulfilled, function (state, action) {
|
|
18429
|
+
state.res_service_category_qdm.loading = false, state.res_service_category_qdm.error = false, state.res_service_category_qdm = action.payload;
|
|
18430
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY_QDM.pending, function (state, action) {
|
|
18431
|
+
state.res_service_category_qdm.loading = true, state.res_service_category_qdm.error = false, state.res_service_category_qdm.loading = true;
|
|
18432
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CATEGORY_QDM.rejected, function (state, action) {
|
|
18433
|
+
state.res_service_category_qdm.loading = false, state.res_service_category_qdm.error = true, state.res_service_category_qdm = action.payload;
|
|
17667
18434
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE.fulfilled, function (state, action) {
|
|
17668
18435
|
state.res_service_code.loading = false, state.res_service_code.error = false, state.res_service_code = action.payload;
|
|
17669
18436
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE.pending, function (state, action) {
|
|
17670
18437
|
state.res_service_code.loading = true, state.res_service_code.error = false, state.res_service_code.loading = true;
|
|
17671
18438
|
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE.rejected, function (state, action) {
|
|
17672
18439
|
state.res_service_code.loading = false, state.res_service_code.error = true, state.res_service_code = action.payload;
|
|
18440
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE_QDM.fulfilled, function (state, action) {
|
|
18441
|
+
state.res_service_code_qdm.loading = false, state.res_service_code_qdm.error = false, state.res_service_code_qdm = action.payload;
|
|
18442
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE_QDM.pending, function (state, action) {
|
|
18443
|
+
state.res_service_code_qdm.loading = true, state.res_service_code_qdm.error = false, state.res_service_code_qdm.loading = true;
|
|
18444
|
+
}), _defineProperty(_extraReducers$A, RES_SERVICE_CODE_QDM.rejected, function (state, action) {
|
|
18445
|
+
state.res_service_code_qdm.loading = false, state.res_service_code_qdm.error = true, state.res_service_code_qdm = action.payload;
|
|
17673
18446
|
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST.fulfilled, function (state, action) {
|
|
17674
18447
|
state.res_appointment_list.loading = false, state.res_appointment_list.error = false, state.res_appointment_list = action.payload;
|
|
17675
18448
|
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST.pending, function (state, action) {
|
|
17676
18449
|
state.res_appointment_list.loading = true, state.res_appointment_list.error = false, state.res_appointment_list.loading = true;
|
|
17677
18450
|
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST.rejected, function (state, action) {
|
|
17678
18451
|
state.res_appointment_list.loading = false, state.res_appointment_list.error = true, state.res_appointment_list = action.payload;
|
|
18452
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST_QDM.fulfilled, function (state, action) {
|
|
18453
|
+
state.res_appointment_list_qdm.loading = false, state.res_appointment_list_qdm.error = false, state.res_appointment_list_qdm = action.payload;
|
|
18454
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST_QDM.pending, function (state, action) {
|
|
18455
|
+
state.res_appointment_list_qdm.loading = true, state.res_appointment_list_qdm.error = false, state.res_appointment_list_qdm.loading = true;
|
|
18456
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_LIST_QDM.rejected, function (state, action) {
|
|
18457
|
+
state.res_appointment_list_qdm.loading = false, state.res_appointment_list_qdm.error = true, state.res_appointment_list_qdm = action.payload;
|
|
17679
18458
|
}), _defineProperty(_extraReducers$A, RES_UPSERT_APPOINTMENT.fulfilled, function (state, action) {
|
|
17680
18459
|
state.res_upsert_appointment.loading = false, state.res_upsert_appointment.error = false, state.res_upsert_appointment = action.payload;
|
|
17681
18460
|
}), _defineProperty(_extraReducers$A, RES_UPSERT_APPOINTMENT.pending, function (state, action) {
|
|
@@ -17694,6 +18473,12 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
17694
18473
|
state.res_appointment_single_read.loading = true, state.res_appointment_single_read.error = false, state.res_appointment_single_read.loading = true;
|
|
17695
18474
|
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_SINGLE_READ.rejected, function (state, action) {
|
|
17696
18475
|
state.res_appointment_single_read.loading = false, state.res_appointment_single_read.error = true, state.res_appointment_single_read = action.payload;
|
|
18476
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_SINGLE_READ_QDM.fulfilled, function (state, action) {
|
|
18477
|
+
state.res_appointment_single_read_qdm.loading = false, state.res_appointment_single_read_qdm.error = false, state.res_appointment_single_read_qdm = action.payload;
|
|
18478
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_SINGLE_READ_QDM.pending, function (state, action) {
|
|
18479
|
+
state.res_appointment_single_read_qdm.loading = true, state.res_appointment_single_read_qdm.error = false, state.res_appointment_single_read_qdm.loading = true;
|
|
18480
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_SINGLE_READ_QDM.rejected, function (state, action) {
|
|
18481
|
+
state.res_appointment_single_read_qdm.loading = false, state.res_appointment_single_read_qdm.error = true, state.res_appointment_single_read_qdm = action.payload;
|
|
17697
18482
|
}), _extraReducers$A)
|
|
17698
18483
|
});
|
|
17699
18484
|
var resourceByAppointmentTypes = {
|
|
@@ -17706,24 +18491,37 @@ var resourceByAppointmentTypes = {
|
|
|
17706
18491
|
RES_GENERAL_INSTRUCTION: RES_GENERAL_INSTRUCTION,
|
|
17707
18492
|
RES_SPECIALINSTRUCTION: RES_SPECIALINSTRUCTION,
|
|
17708
18493
|
RES_CRITERIA_INSTRUVTION: RES_CRITERIA_INSTRUVTION,
|
|
18494
|
+
RES_CRITERIA_INSTRUCTION_QDM: RES_CRITERIA_INSTRUCTION_QDM,
|
|
17709
18495
|
UPDATE_STATUS_RES_LINE_LIST: UPDATE_STATUS_RES_LINE_LIST,
|
|
17710
18496
|
RES_UPSERT_INSER_NEW: RES_UPSERT_INSER_NEW,
|
|
17711
18497
|
RES_LINE_LIST_READ_DOC: RES_LINE_LIST_READ_DOC,
|
|
17712
18498
|
RES_PATIENT_CATEGORY_LIST_DOC: RES_PATIENT_CATEGORY_LIST_DOC,
|
|
18499
|
+
RES_PATIENT_CATEGORY_LIST_DOC_QDM: RES_PATIENT_CATEGORY_LIST_DOC_QDM,
|
|
17713
18500
|
RES_RESOURCE_TYPE_LIST_DOC: RES_RESOURCE_TYPE_LIST_DOC,
|
|
18501
|
+
RES_RESOURCE_TYPE_LIST_DOC_QDM: RES_RESOURCE_TYPE_LIST_DOC_QDM,
|
|
17714
18502
|
RES_RESOURCE_ROLE_LIST_DOC: RES_RESOURCE_ROLE_LIST_DOC,
|
|
18503
|
+
RES_RESOURCE_ROLE_LIST_DOC_QDM: RES_RESOURCE_ROLE_LIST_DOC_QDM,
|
|
17715
18504
|
RES_RESOURCE_DEPARTMENT_LIST_DOC: RES_RESOURCE_DEPARTMENT_LIST_DOC,
|
|
18505
|
+
RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM: RES_RESOURCE_DEPARTMENT_LIST_DOC_QDM,
|
|
17716
18506
|
RES_RESOURCE_NAME_LIST_DOC: RES_RESOURCE_NAME_LIST_DOC,
|
|
18507
|
+
RES_RESOURCE_NAME_LIST_DOC_QDM: RES_RESOURCE_NAME_LIST_DOC_QDM,
|
|
17717
18508
|
RES_SPECIAL_INSTRUCTION_LIST_DOC: RES_SPECIAL_INSTRUCTION_LIST_DOC,
|
|
18509
|
+
RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM: RES_SPECIAL_INSTRUCTION_LIST_DOC_QDM,
|
|
17718
18510
|
RES_GENERAL_INSTRUCTION_DROPDOWN: RES_GENERAL_INSTRUCTION_DROPDOWN,
|
|
18511
|
+
RES_GENERAL_INSTRUCTION_DROPDOWN_QDM: RES_GENERAL_INSTRUCTION_DROPDOWN_QDM,
|
|
17719
18512
|
RES_SERVICE_GROUP: RES_SERVICE_GROUP,
|
|
18513
|
+
RES_SERVICE_GROUP_QDM: RES_SERVICE_GROUP_QDM,
|
|
17720
18514
|
RES_SERVICE_CATEGORY: RES_SERVICE_CATEGORY,
|
|
18515
|
+
RES_SERVICE_CATEGORY_QDM: RES_SERVICE_CATEGORY_QDM,
|
|
17721
18516
|
RES_SERVICE_CODE: RES_SERVICE_CODE,
|
|
18517
|
+
RES_SERVICE_CODE_QDM: RES_SERVICE_CODE_QDM,
|
|
17722
18518
|
RES_CRITERIA_LIST_DOC: RES_CRITERIA_LIST_DOC,
|
|
17723
18519
|
RES_APPOINTMENT_LIST: RES_APPOINTMENT_LIST,
|
|
18520
|
+
RES_APPOINTMENT_LIST_QDM: RES_APPOINTMENT_LIST_QDM,
|
|
17724
18521
|
RES_UPSERT_APPOINTMENT: RES_UPSERT_APPOINTMENT,
|
|
17725
18522
|
RES_UPDATE_APPOINTMENT: RES_UPDATE_APPOINTMENT,
|
|
17726
|
-
RES_APPOINTMENT_SINGLE_READ: RES_APPOINTMENT_SINGLE_READ
|
|
18523
|
+
RES_APPOINTMENT_SINGLE_READ: RES_APPOINTMENT_SINGLE_READ,
|
|
18524
|
+
RES_APPOINTMENT_SINGLE_READ_QDM: RES_APPOINTMENT_SINGLE_READ_QDM
|
|
17727
18525
|
};
|
|
17728
18526
|
var resourceByAppointmentTypesSlice$1 = resourceByAppointmentTypesSlice.reducer;
|
|
17729
18527
|
|