primarycare-binder 1.1.97 → 1.1.100
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 +267 -126
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18345,6 +18345,17 @@ var organizAtionauthActions = {
|
|
|
18345
18345
|
};
|
|
18346
18346
|
var OrganizationAuthApiSlice$1 = OrganizationAuthApiSlice.reducer;
|
|
18347
18347
|
|
|
18348
|
+
var registerQuery = {
|
|
18349
|
+
statusRead: function statusRead() {
|
|
18350
|
+
return {
|
|
18351
|
+
db_name: dbName,
|
|
18352
|
+
entity: "CodingMaster",
|
|
18353
|
+
filter: "lower(CodingMaster.display)==lower('Checked-in') && CodingMaster.activestatus==true",
|
|
18354
|
+
return_fields: "CodingMaster._id"
|
|
18355
|
+
};
|
|
18356
|
+
}
|
|
18357
|
+
};
|
|
18358
|
+
|
|
18348
18359
|
var _extraReducers$q;
|
|
18349
18360
|
var ORGANIZATION_REGISTER_PATIENT = createAsyncThunk("OrganizationRegisterPatientApiSlice/upsert_document", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
18350
18361
|
var payload,
|
|
@@ -19369,6 +19380,45 @@ var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/g
|
|
|
19369
19380
|
}
|
|
19370
19381
|
}, _callee17, null, [[2, 11]]);
|
|
19371
19382
|
})));
|
|
19383
|
+
var GET_ENCOUNTER_STATUS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
|
19384
|
+
var payload,
|
|
19385
|
+
_ref36,
|
|
19386
|
+
rejectWithValue,
|
|
19387
|
+
data,
|
|
19388
|
+
_args18 = arguments;
|
|
19389
|
+
|
|
19390
|
+
return regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
19391
|
+
while (1) {
|
|
19392
|
+
switch (_context18.prev = _context18.next) {
|
|
19393
|
+
case 0:
|
|
19394
|
+
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
19395
|
+
_ref36 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref36.rejectWithValue;
|
|
19396
|
+
_context18.prev = 2;
|
|
19397
|
+
_context18.next = 5;
|
|
19398
|
+
return fetchData$3({
|
|
19399
|
+
body: JSON.stringify(registerQuery.statusRead())
|
|
19400
|
+
}, __readDocumentUrl__);
|
|
19401
|
+
|
|
19402
|
+
case 5:
|
|
19403
|
+
data = _context18.sent;
|
|
19404
|
+
return _context18.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19405
|
+
data: data.result
|
|
19406
|
+
}));
|
|
19407
|
+
|
|
19408
|
+
case 9:
|
|
19409
|
+
_context18.prev = 9;
|
|
19410
|
+
_context18.t0 = _context18["catch"](2);
|
|
19411
|
+
return _context18.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19412
|
+
message: _context18.t0.message
|
|
19413
|
+
})));
|
|
19414
|
+
|
|
19415
|
+
case 12:
|
|
19416
|
+
case "end":
|
|
19417
|
+
return _context18.stop();
|
|
19418
|
+
}
|
|
19419
|
+
}
|
|
19420
|
+
}, _callee18, null, [[2, 9]]);
|
|
19421
|
+
})));
|
|
19372
19422
|
var OrganizationRegisterPatientApiSlice = createSlice({
|
|
19373
19423
|
name: "OrganizationRegisterPatientApiSlice",
|
|
19374
19424
|
initialState: {
|
|
@@ -19388,7 +19438,8 @@ var OrganizationRegisterPatientApiSlice = createSlice({
|
|
|
19388
19438
|
getappointment: _objectSpread2({}, defaultState.Info),
|
|
19389
19439
|
getpatientname: _objectSpread2({}, defaultState.Info),
|
|
19390
19440
|
getpatientid: _objectSpread2({}, defaultState.Info),
|
|
19391
|
-
getEncounterHeader: _objectSpread2({}, defaultState.Info)
|
|
19441
|
+
getEncounterHeader: _objectSpread2({}, defaultState.Info),
|
|
19442
|
+
getEncounterStatus: _objectSpread2({}, defaultState.Info)
|
|
19392
19443
|
},
|
|
19393
19444
|
extraReducers: (_extraReducers$q = {}, _defineProperty(_extraReducers$q, GET_PATIENT_NAME.fulfilled, function (state, action) {
|
|
19394
19445
|
var _action$payload;
|
|
@@ -19560,6 +19611,16 @@ var OrganizationRegisterPatientApiSlice = createSlice({
|
|
|
19560
19611
|
var _action$payload34;
|
|
19561
19612
|
|
|
19562
19613
|
state.getEncounterHeader = (_action$payload34 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload34 !== void 0 ? _action$payload34 : {};
|
|
19614
|
+
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_STATUS.fulfilled, function (state, action) {
|
|
19615
|
+
var _action$payload35;
|
|
19616
|
+
|
|
19617
|
+
state.getEncounterStatus = (_action$payload35 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload35 !== void 0 ? _action$payload35 : {};
|
|
19618
|
+
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_STATUS.pending, function (state, action) {
|
|
19619
|
+
state.getEncounterStatus.loading = true;
|
|
19620
|
+
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_STATUS.rejected, function (state, action) {
|
|
19621
|
+
var _action$payload36;
|
|
19622
|
+
|
|
19623
|
+
state.getEncounterStatus = (_action$payload36 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload36 !== void 0 ? _action$payload36 : {};
|
|
19563
19624
|
}), _extraReducers$q)
|
|
19564
19625
|
});
|
|
19565
19626
|
var oraganizationRegisterPatientActions = {
|
|
@@ -19579,7 +19640,8 @@ var oraganizationRegisterPatientActions = {
|
|
|
19579
19640
|
GET_PATIENT_NAME: GET_PATIENT_NAME,
|
|
19580
19641
|
GET_PATIENT_TYPEID: GET_PATIENT_TYPEID,
|
|
19581
19642
|
GET_PRACTITIONERS: GET_PRACTITIONERS,
|
|
19582
|
-
GET_ENCOUNTER_HEADER: GET_ENCOUNTER_HEADER
|
|
19643
|
+
GET_ENCOUNTER_HEADER: GET_ENCOUNTER_HEADER,
|
|
19644
|
+
GET_ENCOUNTER_STATUS: GET_ENCOUNTER_STATUS
|
|
19583
19645
|
};
|
|
19584
19646
|
var OrganizationRegisterPatientApiSlice$1 = OrganizationRegisterPatientApiSlice.reducer;
|
|
19585
19647
|
|
|
@@ -19592,12 +19654,20 @@ var dashboardQuery = {
|
|
|
19592
19654
|
// filter: `Appointment.activestatus==true && Appointment.orgid=='${orgID}' && Appointment.start>=${startDate} && Appointment.end<=${endDate} && lower(Appointment.appointmentType)!='cancelled' && document(Appointment.resourcecode).id ==${loginId} collect with count into length`,
|
|
19593
19655
|
// return_fields: "{Count:length}",
|
|
19594
19656
|
// },
|
|
19657
|
+
// 1: {
|
|
19658
|
+
// "db_name": dbName,
|
|
19659
|
+
// "entity": "Appointment,Encounter",
|
|
19660
|
+
// "filter": {
|
|
19661
|
+
// "Appointment": `Appointment.start >= ${startDate} && Appointment.end <= ${endDate} && Appointment.orgid == '${orgID}' && Appointment.activestatus == true`,
|
|
19662
|
+
// "Encounter": `Appointment.id in Encounter.appointmentId && first((Encounter.participant)[*].Practitioner_id) == ${loginId} && Encounter.activestatus == true collect with count into length`
|
|
19663
|
+
// },
|
|
19664
|
+
// "return_fields": "{Count:length}"
|
|
19665
|
+
// },
|
|
19595
19666
|
1: {
|
|
19596
19667
|
"db_name": dbName,
|
|
19597
|
-
"entity": "Appointment
|
|
19668
|
+
"entity": "Appointment",
|
|
19598
19669
|
"filter": {
|
|
19599
|
-
"Appointment": "Appointment.start
|
|
19600
|
-
"Encounter": "Appointment.id in Encounter.appointmentId && first((Encounter.participant)[*].Practitioner_id) == ".concat(loginId, " && Encounter.activestatus == true collect with count into length")
|
|
19670
|
+
"Appointment": "Appointment.activestatus==true && Appointment.start>=".concat(startDate, " && Appointment.end<=").concat(endDate, " && lower(Appointment.appointmentType)!='cancelled' && document(Appointment.resourcecode).id ==").concat(loginId, " && Appointment.orgid=='").concat(orgID, "' collect with count into length")
|
|
19601
19671
|
},
|
|
19602
19672
|
"return_fields": "{Count:length}"
|
|
19603
19673
|
},
|
|
@@ -20079,7 +20149,8 @@ var visitQuery = {
|
|
|
20079
20149
|
entity: "Practitioner,Encounter",
|
|
20080
20150
|
filter: {
|
|
20081
20151
|
Practitioner: "DOCUMENT(DOCUMENT(DOCUMENT(Practitioner.practitioner_role[*])[*].role)[0].coding)[*].code ANY =='PR023' && Practitioner.id== ".concat(loginId, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(orGId, "'"),
|
|
20082
|
-
Encounter:
|
|
20152
|
+
// Encounter: `Encounter.activestatus == true && Encounter.Organization_id == ${orgId} && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality AND Encounter.encounterdate>=${startDate} && Encounter.encounterdate<=${endDate} && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in' collect with count into length`,
|
|
20153
|
+
Encounter: "Encounter.activestatus == true && Encounter.Organization_id == ".concat(orgId, " && (first(document(DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID)[*].coding) ANY IN Encounter.practitioner_details[*].speciality || DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality) AND Encounter.encounterdate>=").concat(startDate, " && Encounter.encounterdate<=").concat(endDate, " && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in' collect with count into length")
|
|
20083
20154
|
},
|
|
20084
20155
|
return_fields: "{CheckedIn:length}"
|
|
20085
20156
|
},
|
|
@@ -20107,7 +20178,8 @@ var visitQuery = {
|
|
|
20107
20178
|
entity: "Practitioner,Encounter",
|
|
20108
20179
|
filter: {
|
|
20109
20180
|
Practitioner: "DOCUMENT(DOCUMENT(DOCUMENT(Practitioner.practitioner_role[*])[*].role)[0].coding)[*].code ANY =='PR023' && Practitioner.id==".concat(loginId, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(orGId, "'"),
|
|
20110
|
-
Encounter:
|
|
20181
|
+
// Encounter: `Encounter.activestatus == true && Encounter.Organization_id == ${orgId} && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality AND Encounter.encounterdate>=${startDate} && Encounter.encounterdate<=${endDate} && DOCUMENT(Encounter.statushistory[*].status)[*].display ANY=='Triaged' collect with count into length`,
|
|
20182
|
+
Encounter: "Encounter.activestatus == true && Encounter.Organization_id == ".concat(orgId, " && (first(document(DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID)[*].coding) ANY IN Encounter.practitioner_details[*].speciality || DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality) AND Encounter.encounterdate>=").concat(startDate, " && Encounter.encounterdate<=").concat(endDate, " && DOCUMENT(Encounter.statushistory[*].status)[*].display ANY=='Triaged' collect with count into length")
|
|
20111
20183
|
},
|
|
20112
20184
|
return_fields: "{TriagedCount:length}"
|
|
20113
20185
|
},
|
|
@@ -20135,7 +20207,8 @@ var visitQuery = {
|
|
|
20135
20207
|
entity: "Practitioner,Encounter",
|
|
20136
20208
|
filter: {
|
|
20137
20209
|
Practitioner: "DOCUMENT(DOCUMENT(DOCUMENT(Practitioner.practitioner_role[*])[*].role)[0].coding)[*].code ANY =='PR023' && Practitioner.id== ".concat(loginId, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(orGId, "'"),
|
|
20138
|
-
Encounter:
|
|
20210
|
+
// Encounter: `Encounter.activestatus == true && Encounter.Organization_id == ${orgId} && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality AND Encounter.encounterdate>= ${startDate} && Encounter.encounterdate<= ${endDate} && Encounter.encounterdate<=${endDate} && document(Encounter.statushistory[*].status)[*].code ANY =='ENCSTATUS0010' collect with count into length`,
|
|
20211
|
+
Encounter: "Encounter.activestatus == true && Encounter.Organization_id == ".concat(orgId, " && (first(document(DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID)[*].coding) ANY IN Encounter.practitioner_details[*].speciality || DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality) AND Encounter.encounterdate>= 1655404200 && Encounter.encounterdate<= ").concat(startDate, " && Encounter.encounterdate<=").concat(endDate, " && document(Encounter.statushistory[*].status)[*].code ANY =='ENCSTATUS0010' collect with count into length")
|
|
20139
20212
|
},
|
|
20140
20213
|
return_fields: "{CompletedCount:length}"
|
|
20141
20214
|
},
|
|
@@ -24982,7 +25055,7 @@ var radOrderActions = _objectSpread2({}, actionInfo$3);
|
|
|
24982
25055
|
var radOrderSlice$1 = radOrderSlice.reducer;
|
|
24983
25056
|
|
|
24984
25057
|
var generateJSON$6 = function generateJSON(payload, orgId) {
|
|
24985
|
-
var _payload$patientid, _payload$encountertyp, _payload$encounterid, _payload$
|
|
25058
|
+
var _payload$patientid, _payload$encountertyp, _payload$encounterid, _payload$prescription, _payload$Prescription, _payload$name$drugTyp, _payload$name, _payload$presNature$v, _payload$presNature, _payload$presMode$val, _payload$presMode, _payload$priority$val, _payload$priority, _payload$status, _payload$statusreason, _payload$intent, _payload$orderPrivile, _payload$privilegeAle, _payload$workFlowStat, _payload$name$value, _payload$name2, _payload$formCode, _payload$routeCode$va, _payload$routeCode, _payload$dosageTypeIn, _payload$unitValue$va, _payload$unitValue, _payload$drug_categor, _payload$drug_categor2, _payload$dispensing_p, _payload$dispensing_p2, _payload$IVDosageDura, _payload$IVDosageDura2, _payload$unitsTypes$v, _payload$unitsTypes, _payload$ivInfusionRa, _payload$ivInfusionRa2, _payload$doseOption$v, _payload$doseOption, _payload$occurStartDa, _payload$occurEndDate, _payload$totPresQtyUO, _payload$totPresQtyUO2, _payload$totDispQty, _payload$totDispQtyUO, _payload$totBilledQty, _payload$totBilledQty2, _payload$totReturnedQ, _payload$PRNYN, _payload$prnComment, _payload$direction, _payload$diagnosis, _payload$reasonCode, _payload$indication$v, _payload$indication, _payload$patientInstr, _payload$patientInstr2, _payload$patientInstr3, _payload$notes, _payload$parentPresId, _payload$presGroupRef, _payload$noofRefillsA, _payload$initialDispe, _payload$refillDispen, _payload$maxRefillDis, _payload$pendingRefil, _payload$prescription2, _payload$substitution, _payload$substitution2, _payload$substituteRe, _payload$broughtFromH, _payload$IVIngredient, _payload$createdby, _payload$updatedby, _payload$statushistor, _payload$statusperiod;
|
|
24986
25059
|
|
|
24987
25060
|
var filter = {};
|
|
24988
25061
|
|
|
@@ -25006,7 +25079,7 @@ var generateJSON$6 = function generateJSON(payload, orgId) {
|
|
|
25006
25079
|
"patient_Id": (_payload$patientid = payload.patientid) !== null && _payload$patientid !== void 0 ? _payload$patientid : "",
|
|
25007
25080
|
"encountertype": (_payload$encountertyp = payload.encountertype) !== null && _payload$encountertyp !== void 0 ? _payload$encountertyp : "",
|
|
25008
25081
|
"encounter_Id": (_payload$encounterid = payload.encounterid) !== null && _payload$encounterid !== void 0 ? _payload$encounterid : "",
|
|
25009
|
-
"prescripionType":
|
|
25082
|
+
//"prescripionType": payload.prescripionType ?? "",
|
|
25010
25083
|
"prescriptionId": (_payload$prescription = payload.prescriptionId) !== null && _payload$prescription !== void 0 ? _payload$prescription : "",
|
|
25011
25084
|
"PrescriptionDate": (_payload$Prescription = payload.PrescriptionDate) !== null && _payload$Prescription !== void 0 ? _payload$Prescription : 0,
|
|
25012
25085
|
"drugType": (_payload$name$drugTyp = payload === null || payload === void 0 ? void 0 : (_payload$name = payload.name) === null || _payload$name === void 0 ? void 0 : _payload$name.drugTypeId) !== null && _payload$name$drugTyp !== void 0 ? _payload$name$drugTyp : "",
|
|
@@ -27402,6 +27475,9 @@ var queries$7 = {
|
|
|
27402
27475
|
medicationOrder: function medicationOrder(orgId) {
|
|
27403
27476
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CA_PerformingLocationforOrdLocn\",\n \"filter\": \"CA_PerformingLocationforOrdLocn.activestatus==true && CA_PerformingLocationforOrdLocn.ordering_org == '").concat(orgId, "' && CA_PerformingLocationforOrdLocn.service_applicability == 'CodingMaster/10291' && length(CA_PerformingLocationforOrdLocn.order_criteria) > 0\",\n \"return_fields\": \"CA_PerformingLocationforOrdLocn\"\n }");
|
|
27404
27477
|
},
|
|
27478
|
+
medicationOrder_: function medicationOrder_(orgId) {
|
|
27479
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"LocationMaster\",\n \"filter\": \"(document(document(LocationMaster.locationType).coding)[*].code any =='LT006' || document(LocationMaster.locationType).code=='LT006') && LocationMaster.status=='Active' && LocationMaster.managingOrgID=='").concat(orgId, "' && LocationMaster.activestatus==true \",\n \"return_fields\": \" merge(keep(LocationMaster,'_key','_id','shortdesc','longdesc','status','id','managingOrgID','locationType'),{managingOrgID:document(LocationMaster.managingOrgID).name})\"\n }");
|
|
27480
|
+
},
|
|
27405
27481
|
organization: function organization(ids) {
|
|
27406
27482
|
return "{\n\t\t\t\"db_name\": \"".concat(dbName, "\",\n\t\t\t\"entity\": \"Organization\",\n \"filter\": \"Organization._id in ").concat("".concat(JSON.stringify(ids)).replace(/"/g, "'"), "\",\n\t\t\t\"return_fields\":\n\t\t\t\t\"{_id:Organization._id,_key:Organization._key,name:Organization.name,orgId:Organization.id}\"\n\t\t}");
|
|
27407
27483
|
},
|
|
@@ -28019,11 +28095,64 @@ var FETCHPERFORMINGLOCATIONMED = createAsyncThunk("validateRulesSlice/PFMedData"
|
|
|
28019
28095
|
}
|
|
28020
28096
|
}, _callee4, null, [[2, 25]]);
|
|
28021
28097
|
})));
|
|
28022
|
-
var
|
|
28098
|
+
var FETCHPERFORMINGLOCATIONMED_ = createAsyncThunk("validateRulesSlice/PFMedData_", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
28023
28099
|
var payload,
|
|
28024
28100
|
_ref8,
|
|
28025
28101
|
rejectWithValue,
|
|
28026
28102
|
orgId,
|
|
28103
|
+
data,
|
|
28104
|
+
arr,
|
|
28105
|
+
_args5 = arguments;
|
|
28106
|
+
|
|
28107
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
28108
|
+
while (1) {
|
|
28109
|
+
switch (_context5.prev = _context5.next) {
|
|
28110
|
+
case 0:
|
|
28111
|
+
payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
28112
|
+
_ref8 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
28113
|
+
_context5.prev = 2;
|
|
28114
|
+
orgId = payload.orgId;
|
|
28115
|
+
_context5.next = 6;
|
|
28116
|
+
return fetchData$3({
|
|
28117
|
+
body: queries$7.medicationOrder_(orgId)
|
|
28118
|
+
}, __readDocumentUrl__);
|
|
28119
|
+
|
|
28120
|
+
case 6:
|
|
28121
|
+
data = _context5.sent;
|
|
28122
|
+
arr = [];
|
|
28123
|
+
data.result.map(function (val) {
|
|
28124
|
+
var _val$shortdesc4, _val$_id6, _val$_id7;
|
|
28125
|
+
|
|
28126
|
+
arr.push({
|
|
28127
|
+
label: (_val$shortdesc4 = val === null || val === void 0 ? void 0 : val.shortdesc) !== null && _val$shortdesc4 !== void 0 ? _val$shortdesc4 : "",
|
|
28128
|
+
value: (_val$_id6 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id6 !== void 0 ? _val$_id6 : "",
|
|
28129
|
+
id: (_val$_id7 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id7 !== void 0 ? _val$_id7 : ""
|
|
28130
|
+
});
|
|
28131
|
+
});
|
|
28132
|
+
debugger;
|
|
28133
|
+
return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
28134
|
+
data: arr
|
|
28135
|
+
}));
|
|
28136
|
+
|
|
28137
|
+
case 13:
|
|
28138
|
+
_context5.prev = 13;
|
|
28139
|
+
_context5.t0 = _context5["catch"](2);
|
|
28140
|
+
return _context5.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
28141
|
+
message: _context5.t0.message
|
|
28142
|
+
})));
|
|
28143
|
+
|
|
28144
|
+
case 16:
|
|
28145
|
+
case "end":
|
|
28146
|
+
return _context5.stop();
|
|
28147
|
+
}
|
|
28148
|
+
}
|
|
28149
|
+
}, _callee5, null, [[2, 13]]);
|
|
28150
|
+
})));
|
|
28151
|
+
var GETALERTWITHLABORDER = createAsyncThunk("validateRulesSlice/alertLabOrder", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
28152
|
+
var payload,
|
|
28153
|
+
_ref10,
|
|
28154
|
+
rejectWithValue,
|
|
28155
|
+
orgId,
|
|
28027
28156
|
rulePayload,
|
|
28028
28157
|
pracId,
|
|
28029
28158
|
patId,
|
|
@@ -28035,37 +28164,37 @@ var GETALERTWITHLABORDER = createAsyncThunk("validateRulesSlice/alertLabOrder",
|
|
|
28035
28164
|
ruleResponse,
|
|
28036
28165
|
resType,
|
|
28037
28166
|
resText,
|
|
28038
|
-
|
|
28167
|
+
_args8 = arguments;
|
|
28039
28168
|
|
|
28040
|
-
return regeneratorRuntime.wrap(function
|
|
28169
|
+
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
28041
28170
|
while (1) {
|
|
28042
|
-
switch (
|
|
28171
|
+
switch (_context8.prev = _context8.next) {
|
|
28043
28172
|
case 0:
|
|
28044
|
-
payload =
|
|
28045
|
-
|
|
28046
|
-
|
|
28173
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
28174
|
+
_ref10 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
|
|
28175
|
+
_context8.prev = 2;
|
|
28047
28176
|
orgId = payload.orgId, rulePayload = payload.rulePayload, pracId = payload.pracId, patId = payload.patId;
|
|
28048
|
-
|
|
28177
|
+
_context8.next = 6;
|
|
28049
28178
|
return fetchData$3({
|
|
28050
28179
|
body: queries$7.patientData(patId)
|
|
28051
28180
|
}, __readDocumentUrl__);
|
|
28052
28181
|
|
|
28053
28182
|
case 6:
|
|
28054
|
-
patientData =
|
|
28055
|
-
|
|
28183
|
+
patientData = _context8.sent;
|
|
28184
|
+
_context8.next = 9;
|
|
28056
28185
|
return fetchData$3({
|
|
28057
28186
|
body: queries$7.PractitionerData(pracId)
|
|
28058
28187
|
}, __readDocumentUrl__);
|
|
28059
28188
|
|
|
28060
28189
|
case 9:
|
|
28061
|
-
PractitionerData =
|
|
28062
|
-
|
|
28190
|
+
PractitionerData = _context8.sent;
|
|
28191
|
+
_context8.next = 12;
|
|
28063
28192
|
return fetchData$3({
|
|
28064
28193
|
body: queries$7.alertOrderRule(orgId)
|
|
28065
28194
|
}, __readDocumentUrl__);
|
|
28066
28195
|
|
|
28067
28196
|
case 12:
|
|
28068
|
-
alertOrderRule =
|
|
28197
|
+
alertOrderRule = _context8.sent;
|
|
28069
28198
|
arr = [];
|
|
28070
28199
|
alertOrderRule.result.map(function (val) {
|
|
28071
28200
|
arr.push({
|
|
@@ -28079,13 +28208,13 @@ var GETALERTWITHLABORDER = createAsyncThunk("validateRulesSlice/alertLabOrder",
|
|
|
28079
28208
|
});
|
|
28080
28209
|
});
|
|
28081
28210
|
ruleParamJson = generateJSON$4(rulePayload);
|
|
28082
|
-
|
|
28211
|
+
_context8.next = 18;
|
|
28083
28212
|
return es6Promise.Promise.all(arr.map( /*#__PURE__*/function () {
|
|
28084
|
-
var
|
|
28213
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(val) {
|
|
28085
28214
|
var order_catalog_criteria, patient_criteria, pract_criteria;
|
|
28086
|
-
return regeneratorRuntime.wrap(function
|
|
28215
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
28087
28216
|
while (1) {
|
|
28088
|
-
switch (
|
|
28217
|
+
switch (_context7.prev = _context7.next) {
|
|
28089
28218
|
case 0:
|
|
28090
28219
|
order_catalog_criteria = val.order_catalog_criteria.map(function (val) {
|
|
28091
28220
|
return val.rule.value;
|
|
@@ -28096,24 +28225,24 @@ var GETALERTWITHLABORDER = createAsyncThunk("validateRulesSlice/alertLabOrder",
|
|
|
28096
28225
|
pract_criteria = val.pract_criteria.map(function (val) {
|
|
28097
28226
|
return val.rule.value;
|
|
28098
28227
|
});
|
|
28099
|
-
return
|
|
28100
|
-
var
|
|
28228
|
+
return _context7.abrupt("return", new es6Promise.Promise( /*#__PURE__*/function () {
|
|
28229
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(resolve, reject) {
|
|
28101
28230
|
var oC, patC, prcC;
|
|
28102
|
-
return regeneratorRuntime.wrap(function
|
|
28231
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
28103
28232
|
while (1) {
|
|
28104
|
-
switch (
|
|
28233
|
+
switch (_context6.prev = _context6.next) {
|
|
28105
28234
|
case 0:
|
|
28106
28235
|
if (!(order_catalog_criteria.length == 0)) {
|
|
28107
|
-
|
|
28236
|
+
_context6.next = 4;
|
|
28108
28237
|
break;
|
|
28109
28238
|
}
|
|
28110
28239
|
|
|
28111
|
-
|
|
28112
|
-
|
|
28240
|
+
_context6.t0 = null;
|
|
28241
|
+
_context6.next = 7;
|
|
28113
28242
|
break;
|
|
28114
28243
|
|
|
28115
28244
|
case 4:
|
|
28116
|
-
|
|
28245
|
+
_context6.next = 6;
|
|
28117
28246
|
return fetchData$3({
|
|
28118
28247
|
body: JSON.stringify({
|
|
28119
28248
|
"ruleId": order_catalog_criteria,
|
|
@@ -28125,22 +28254,22 @@ var GETALERTWITHLABORDER = createAsyncThunk("validateRulesSlice/alertLabOrder",
|
|
|
28125
28254
|
}, __ruleBuilderUrl__);
|
|
28126
28255
|
|
|
28127
28256
|
case 6:
|
|
28128
|
-
|
|
28257
|
+
_context6.t0 = _context6.sent;
|
|
28129
28258
|
|
|
28130
28259
|
case 7:
|
|
28131
|
-
oC =
|
|
28260
|
+
oC = _context6.t0;
|
|
28132
28261
|
|
|
28133
28262
|
if (!(patient_criteria.length == 0)) {
|
|
28134
|
-
|
|
28263
|
+
_context6.next = 12;
|
|
28135
28264
|
break;
|
|
28136
28265
|
}
|
|
28137
28266
|
|
|
28138
|
-
|
|
28139
|
-
|
|
28267
|
+
_context6.t1 = null;
|
|
28268
|
+
_context6.next = 15;
|
|
28140
28269
|
break;
|
|
28141
28270
|
|
|
28142
28271
|
case 12:
|
|
28143
|
-
|
|
28272
|
+
_context6.next = 14;
|
|
28144
28273
|
return fetchData$3({
|
|
28145
28274
|
body: JSON.stringify({
|
|
28146
28275
|
"ruleId": patient_criteria,
|
|
@@ -28152,22 +28281,22 @@ var GETALERTWITHLABORDER = createAsyncThunk("validateRulesSlice/alertLabOrder",
|
|
|
28152
28281
|
}, __ruleBuilderUrl__);
|
|
28153
28282
|
|
|
28154
28283
|
case 14:
|
|
28155
|
-
|
|
28284
|
+
_context6.t1 = _context6.sent;
|
|
28156
28285
|
|
|
28157
28286
|
case 15:
|
|
28158
|
-
patC =
|
|
28287
|
+
patC = _context6.t1;
|
|
28159
28288
|
|
|
28160
28289
|
if (!(pract_criteria.length == 0)) {
|
|
28161
|
-
|
|
28290
|
+
_context6.next = 20;
|
|
28162
28291
|
break;
|
|
28163
28292
|
}
|
|
28164
28293
|
|
|
28165
|
-
|
|
28166
|
-
|
|
28294
|
+
_context6.t2 = null;
|
|
28295
|
+
_context6.next = 23;
|
|
28167
28296
|
break;
|
|
28168
28297
|
|
|
28169
28298
|
case 20:
|
|
28170
|
-
|
|
28299
|
+
_context6.next = 22;
|
|
28171
28300
|
return fetchData$3({
|
|
28172
28301
|
body: JSON.stringify({
|
|
28173
28302
|
"ruleId": pract_criteria,
|
|
@@ -28179,10 +28308,10 @@ var GETALERTWITHLABORDER = createAsyncThunk("validateRulesSlice/alertLabOrder",
|
|
|
28179
28308
|
}, __ruleBuilderUrl__);
|
|
28180
28309
|
|
|
28181
28310
|
case 22:
|
|
28182
|
-
|
|
28311
|
+
_context6.t2 = _context6.sent;
|
|
28183
28312
|
|
|
28184
28313
|
case 23:
|
|
28185
|
-
prcC =
|
|
28314
|
+
prcC = _context6.t2;
|
|
28186
28315
|
resolve({
|
|
28187
28316
|
oC: oC,
|
|
28188
28317
|
patC: patC,
|
|
@@ -28191,32 +28320,32 @@ var GETALERTWITHLABORDER = createAsyncThunk("validateRulesSlice/alertLabOrder",
|
|
|
28191
28320
|
|
|
28192
28321
|
case 25:
|
|
28193
28322
|
case "end":
|
|
28194
|
-
return
|
|
28323
|
+
return _context6.stop();
|
|
28195
28324
|
}
|
|
28196
28325
|
}
|
|
28197
|
-
},
|
|
28326
|
+
}, _callee6);
|
|
28198
28327
|
}));
|
|
28199
28328
|
|
|
28200
28329
|
return function (_x4, _x5) {
|
|
28201
|
-
return
|
|
28330
|
+
return _ref12.apply(this, arguments);
|
|
28202
28331
|
};
|
|
28203
28332
|
}()));
|
|
28204
28333
|
|
|
28205
28334
|
case 4:
|
|
28206
28335
|
case "end":
|
|
28207
|
-
return
|
|
28336
|
+
return _context7.stop();
|
|
28208
28337
|
}
|
|
28209
28338
|
}
|
|
28210
|
-
},
|
|
28339
|
+
}, _callee7);
|
|
28211
28340
|
}));
|
|
28212
28341
|
|
|
28213
28342
|
return function (_x3) {
|
|
28214
|
-
return
|
|
28343
|
+
return _ref11.apply(this, arguments);
|
|
28215
28344
|
};
|
|
28216
28345
|
}()));
|
|
28217
28346
|
|
|
28218
28347
|
case 18:
|
|
28219
|
-
ruleResponse =
|
|
28348
|
+
ruleResponse = _context8.sent;
|
|
28220
28349
|
resType = null;
|
|
28221
28350
|
resText = null;
|
|
28222
28351
|
ruleResponse.map(function (val) {
|
|
@@ -28235,7 +28364,7 @@ var GETALERTWITHLABORDER = createAsyncThunk("validateRulesSlice/alertLabOrder",
|
|
|
28235
28364
|
resText = val.oC.returnData.alert_test_message;
|
|
28236
28365
|
}
|
|
28237
28366
|
});
|
|
28238
|
-
return
|
|
28367
|
+
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
28239
28368
|
data: {
|
|
28240
28369
|
type: resType ? alertType[resType] : resType,
|
|
28241
28370
|
alertText: resText
|
|
@@ -28243,22 +28372,22 @@ var GETALERTWITHLABORDER = createAsyncThunk("validateRulesSlice/alertLabOrder",
|
|
|
28243
28372
|
}));
|
|
28244
28373
|
|
|
28245
28374
|
case 25:
|
|
28246
|
-
|
|
28247
|
-
|
|
28248
|
-
return
|
|
28249
|
-
message:
|
|
28375
|
+
_context8.prev = 25;
|
|
28376
|
+
_context8.t0 = _context8["catch"](2);
|
|
28377
|
+
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
28378
|
+
message: _context8.t0.message
|
|
28250
28379
|
})));
|
|
28251
28380
|
|
|
28252
28381
|
case 28:
|
|
28253
28382
|
case "end":
|
|
28254
|
-
return
|
|
28383
|
+
return _context8.stop();
|
|
28255
28384
|
}
|
|
28256
28385
|
}
|
|
28257
|
-
},
|
|
28386
|
+
}, _callee8, null, [[2, 25]]);
|
|
28258
28387
|
})));
|
|
28259
|
-
var GETALERTWITHMEDI = createAsyncThunk("validateRulesSlice/alertMedication", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
28388
|
+
var GETALERTWITHMEDI = createAsyncThunk("validateRulesSlice/alertMedication", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
28260
28389
|
var payload,
|
|
28261
|
-
|
|
28390
|
+
_ref14,
|
|
28262
28391
|
rejectWithValue,
|
|
28263
28392
|
orgId,
|
|
28264
28393
|
rulePayload,
|
|
@@ -28272,37 +28401,37 @@ var GETALERTWITHMEDI = createAsyncThunk("validateRulesSlice/alertMedication", /*
|
|
|
28272
28401
|
ruleResponse,
|
|
28273
28402
|
resType,
|
|
28274
28403
|
resText,
|
|
28275
|
-
|
|
28404
|
+
_args11 = arguments;
|
|
28276
28405
|
|
|
28277
|
-
return regeneratorRuntime.wrap(function
|
|
28406
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
28278
28407
|
while (1) {
|
|
28279
|
-
switch (
|
|
28408
|
+
switch (_context11.prev = _context11.next) {
|
|
28280
28409
|
case 0:
|
|
28281
|
-
payload =
|
|
28282
|
-
|
|
28283
|
-
|
|
28410
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
28411
|
+
_ref14 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
|
|
28412
|
+
_context11.prev = 2;
|
|
28284
28413
|
orgId = payload.orgId, rulePayload = payload.rulePayload, pracId = payload.pracId, patId = payload.patId;
|
|
28285
|
-
|
|
28414
|
+
_context11.next = 6;
|
|
28286
28415
|
return fetchData$3({
|
|
28287
28416
|
body: queries$7.patientData(patId)
|
|
28288
28417
|
}, __readDocumentUrl__);
|
|
28289
28418
|
|
|
28290
28419
|
case 6:
|
|
28291
|
-
patientData =
|
|
28292
|
-
|
|
28420
|
+
patientData = _context11.sent;
|
|
28421
|
+
_context11.next = 9;
|
|
28293
28422
|
return fetchData$3({
|
|
28294
28423
|
body: queries$7.PractitionerData(pracId)
|
|
28295
28424
|
}, __readDocumentUrl__);
|
|
28296
28425
|
|
|
28297
28426
|
case 9:
|
|
28298
|
-
PractitionerData =
|
|
28299
|
-
|
|
28427
|
+
PractitionerData = _context11.sent;
|
|
28428
|
+
_context11.next = 12;
|
|
28300
28429
|
return fetchData$3({
|
|
28301
28430
|
body: queries$7.alertMedicationRule(orgId)
|
|
28302
28431
|
}, __readDocumentUrl__);
|
|
28303
28432
|
|
|
28304
28433
|
case 12:
|
|
28305
|
-
alertOrderRule =
|
|
28434
|
+
alertOrderRule = _context11.sent;
|
|
28306
28435
|
arr = [];
|
|
28307
28436
|
alertOrderRule.result.map(function (val) {
|
|
28308
28437
|
arr.push({
|
|
@@ -28316,13 +28445,13 @@ var GETALERTWITHMEDI = createAsyncThunk("validateRulesSlice/alertMedication", /*
|
|
|
28316
28445
|
});
|
|
28317
28446
|
});
|
|
28318
28447
|
ruleParamJson = generateJsonMed(rulePayload);
|
|
28319
|
-
|
|
28448
|
+
_context11.next = 18;
|
|
28320
28449
|
return es6Promise.Promise.all(arr.map( /*#__PURE__*/function () {
|
|
28321
|
-
var
|
|
28450
|
+
var _ref15 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(val) {
|
|
28322
28451
|
var order_catalog_criteria, patient_criteria, pract_criteria;
|
|
28323
|
-
return regeneratorRuntime.wrap(function
|
|
28452
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
28324
28453
|
while (1) {
|
|
28325
|
-
switch (
|
|
28454
|
+
switch (_context10.prev = _context10.next) {
|
|
28326
28455
|
case 0:
|
|
28327
28456
|
order_catalog_criteria = val.order_catalog_criteria.map(function (val) {
|
|
28328
28457
|
return val.rule.value;
|
|
@@ -28333,24 +28462,24 @@ var GETALERTWITHMEDI = createAsyncThunk("validateRulesSlice/alertMedication", /*
|
|
|
28333
28462
|
pract_criteria = val.pract_criteria.map(function (val) {
|
|
28334
28463
|
return val.rule.value;
|
|
28335
28464
|
});
|
|
28336
|
-
return
|
|
28337
|
-
var
|
|
28465
|
+
return _context10.abrupt("return", new es6Promise.Promise( /*#__PURE__*/function () {
|
|
28466
|
+
var _ref16 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(resolve, reject) {
|
|
28338
28467
|
var oC, patC, prcC;
|
|
28339
|
-
return regeneratorRuntime.wrap(function
|
|
28468
|
+
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
28340
28469
|
while (1) {
|
|
28341
|
-
switch (
|
|
28470
|
+
switch (_context9.prev = _context9.next) {
|
|
28342
28471
|
case 0:
|
|
28343
28472
|
if (!(order_catalog_criteria.length == 0)) {
|
|
28344
|
-
|
|
28473
|
+
_context9.next = 4;
|
|
28345
28474
|
break;
|
|
28346
28475
|
}
|
|
28347
28476
|
|
|
28348
|
-
|
|
28349
|
-
|
|
28477
|
+
_context9.t0 = null;
|
|
28478
|
+
_context9.next = 7;
|
|
28350
28479
|
break;
|
|
28351
28480
|
|
|
28352
28481
|
case 4:
|
|
28353
|
-
|
|
28482
|
+
_context9.next = 6;
|
|
28354
28483
|
return fetchData$3({
|
|
28355
28484
|
body: JSON.stringify({
|
|
28356
28485
|
"ruleId": order_catalog_criteria,
|
|
@@ -28362,22 +28491,22 @@ var GETALERTWITHMEDI = createAsyncThunk("validateRulesSlice/alertMedication", /*
|
|
|
28362
28491
|
}, __ruleBuilderUrl__);
|
|
28363
28492
|
|
|
28364
28493
|
case 6:
|
|
28365
|
-
|
|
28494
|
+
_context9.t0 = _context9.sent;
|
|
28366
28495
|
|
|
28367
28496
|
case 7:
|
|
28368
|
-
oC =
|
|
28497
|
+
oC = _context9.t0;
|
|
28369
28498
|
|
|
28370
28499
|
if (!(patient_criteria.length == 0)) {
|
|
28371
|
-
|
|
28500
|
+
_context9.next = 12;
|
|
28372
28501
|
break;
|
|
28373
28502
|
}
|
|
28374
28503
|
|
|
28375
|
-
|
|
28376
|
-
|
|
28504
|
+
_context9.t1 = null;
|
|
28505
|
+
_context9.next = 15;
|
|
28377
28506
|
break;
|
|
28378
28507
|
|
|
28379
28508
|
case 12:
|
|
28380
|
-
|
|
28509
|
+
_context9.next = 14;
|
|
28381
28510
|
return fetchData$3({
|
|
28382
28511
|
body: JSON.stringify({
|
|
28383
28512
|
"ruleId": patient_criteria,
|
|
@@ -28389,22 +28518,22 @@ var GETALERTWITHMEDI = createAsyncThunk("validateRulesSlice/alertMedication", /*
|
|
|
28389
28518
|
}, __ruleBuilderUrl__);
|
|
28390
28519
|
|
|
28391
28520
|
case 14:
|
|
28392
|
-
|
|
28521
|
+
_context9.t1 = _context9.sent;
|
|
28393
28522
|
|
|
28394
28523
|
case 15:
|
|
28395
|
-
patC =
|
|
28524
|
+
patC = _context9.t1;
|
|
28396
28525
|
|
|
28397
28526
|
if (!(pract_criteria.length == 0)) {
|
|
28398
|
-
|
|
28527
|
+
_context9.next = 20;
|
|
28399
28528
|
break;
|
|
28400
28529
|
}
|
|
28401
28530
|
|
|
28402
|
-
|
|
28403
|
-
|
|
28531
|
+
_context9.t2 = null;
|
|
28532
|
+
_context9.next = 23;
|
|
28404
28533
|
break;
|
|
28405
28534
|
|
|
28406
28535
|
case 20:
|
|
28407
|
-
|
|
28536
|
+
_context9.next = 22;
|
|
28408
28537
|
return fetchData$3({
|
|
28409
28538
|
body: JSON.stringify({
|
|
28410
28539
|
"ruleId": pract_criteria,
|
|
@@ -28416,10 +28545,10 @@ var GETALERTWITHMEDI = createAsyncThunk("validateRulesSlice/alertMedication", /*
|
|
|
28416
28545
|
}, __ruleBuilderUrl__);
|
|
28417
28546
|
|
|
28418
28547
|
case 22:
|
|
28419
|
-
|
|
28548
|
+
_context9.t2 = _context9.sent;
|
|
28420
28549
|
|
|
28421
28550
|
case 23:
|
|
28422
|
-
prcC =
|
|
28551
|
+
prcC = _context9.t2;
|
|
28423
28552
|
resolve({
|
|
28424
28553
|
oC: oC,
|
|
28425
28554
|
patC: patC,
|
|
@@ -28428,32 +28557,32 @@ var GETALERTWITHMEDI = createAsyncThunk("validateRulesSlice/alertMedication", /*
|
|
|
28428
28557
|
|
|
28429
28558
|
case 25:
|
|
28430
28559
|
case "end":
|
|
28431
|
-
return
|
|
28560
|
+
return _context9.stop();
|
|
28432
28561
|
}
|
|
28433
28562
|
}
|
|
28434
|
-
},
|
|
28563
|
+
}, _callee9);
|
|
28435
28564
|
}));
|
|
28436
28565
|
|
|
28437
28566
|
return function (_x7, _x8) {
|
|
28438
|
-
return
|
|
28567
|
+
return _ref16.apply(this, arguments);
|
|
28439
28568
|
};
|
|
28440
28569
|
}()));
|
|
28441
28570
|
|
|
28442
28571
|
case 4:
|
|
28443
28572
|
case "end":
|
|
28444
|
-
return
|
|
28573
|
+
return _context10.stop();
|
|
28445
28574
|
}
|
|
28446
28575
|
}
|
|
28447
|
-
},
|
|
28576
|
+
}, _callee10);
|
|
28448
28577
|
}));
|
|
28449
28578
|
|
|
28450
28579
|
return function (_x6) {
|
|
28451
|
-
return
|
|
28580
|
+
return _ref15.apply(this, arguments);
|
|
28452
28581
|
};
|
|
28453
28582
|
}()));
|
|
28454
28583
|
|
|
28455
28584
|
case 18:
|
|
28456
|
-
ruleResponse =
|
|
28585
|
+
ruleResponse = _context11.sent;
|
|
28457
28586
|
resType = null;
|
|
28458
28587
|
resText = null;
|
|
28459
28588
|
ruleResponse.map(function (val) {
|
|
@@ -28472,7 +28601,7 @@ var GETALERTWITHMEDI = createAsyncThunk("validateRulesSlice/alertMedication", /*
|
|
|
28472
28601
|
resText = val.oC.returnData.alert_test_message;
|
|
28473
28602
|
}
|
|
28474
28603
|
});
|
|
28475
|
-
return
|
|
28604
|
+
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
28476
28605
|
data: {
|
|
28477
28606
|
type: resType ? alertType[resType] : resType,
|
|
28478
28607
|
alertText: resText
|
|
@@ -28480,24 +28609,25 @@ var GETALERTWITHMEDI = createAsyncThunk("validateRulesSlice/alertMedication", /*
|
|
|
28480
28609
|
}));
|
|
28481
28610
|
|
|
28482
28611
|
case 25:
|
|
28483
|
-
|
|
28484
|
-
|
|
28485
|
-
return
|
|
28486
|
-
message:
|
|
28612
|
+
_context11.prev = 25;
|
|
28613
|
+
_context11.t0 = _context11["catch"](2);
|
|
28614
|
+
return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
28615
|
+
message: _context11.t0.message
|
|
28487
28616
|
})));
|
|
28488
28617
|
|
|
28489
28618
|
case 28:
|
|
28490
28619
|
case "end":
|
|
28491
|
-
return
|
|
28620
|
+
return _context11.stop();
|
|
28492
28621
|
}
|
|
28493
28622
|
}
|
|
28494
|
-
},
|
|
28623
|
+
}, _callee11, null, [[2, 25]]);
|
|
28495
28624
|
})));
|
|
28496
28625
|
var validateRulesSlice = createSlice({
|
|
28497
28626
|
name: "validateRulesSlice",
|
|
28498
28627
|
initialState: {
|
|
28499
28628
|
PFData: _objectSpread2({}, defaultState.Info),
|
|
28500
28629
|
PFMedData: _objectSpread2({}, defaultState.Info),
|
|
28630
|
+
PFMedData_: _objectSpread2({}, defaultState.Info),
|
|
28501
28631
|
alertLabOrder: _objectSpread2({}, defaultState.Info),
|
|
28502
28632
|
alertMedication: _objectSpread2({}, defaultState.Info)
|
|
28503
28633
|
},
|
|
@@ -28521,33 +28651,44 @@ var validateRulesSlice = createSlice({
|
|
|
28521
28651
|
var _action$payload4;
|
|
28522
28652
|
|
|
28523
28653
|
state.PFMedData.loading = false, state.PFMedData.error = true, state.PFMedData = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : {};
|
|
28524
|
-
}), _defineProperty(_extraReducers$j,
|
|
28654
|
+
}), _defineProperty(_extraReducers$j, FETCHPERFORMINGLOCATIONMED_.fulfilled, function (state, action) {
|
|
28525
28655
|
var _action$payload5;
|
|
28526
28656
|
|
|
28527
|
-
state.
|
|
28657
|
+
state.PFMedData_.loading = false, state.PFMedData_.error = false, state.PFMedData_ = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : {};
|
|
28658
|
+
}), _defineProperty(_extraReducers$j, FETCHPERFORMINGLOCATIONMED_.pending, function (state, action) {
|
|
28659
|
+
state.PFMedData_.loading = true, state.PFMedData_.error = false, state.PFMedData_.loading = true;
|
|
28660
|
+
}), _defineProperty(_extraReducers$j, FETCHPERFORMINGLOCATIONMED_.rejected, function (state, action) {
|
|
28661
|
+
var _action$payload6;
|
|
28662
|
+
|
|
28663
|
+
state.PFMedData_.loading = false, state.PFMedData_.error = true, state.PFMedData_ = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : {};
|
|
28664
|
+
}), _defineProperty(_extraReducers$j, GETALERTWITHLABORDER.fulfilled, function (state, action) {
|
|
28665
|
+
var _action$payload7;
|
|
28666
|
+
|
|
28667
|
+
state.alertLabOrder.loading = false, state.alertLabOrder.error = false, state.alertLabOrder = (_action$payload7 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload7 !== void 0 ? _action$payload7 : {};
|
|
28528
28668
|
}), _defineProperty(_extraReducers$j, GETALERTWITHLABORDER.pending, function (state, action) {
|
|
28529
28669
|
state.alertLabOrder.loading = true, state.alertLabOrder.error = false, state.alertLabOrder.loading = true;
|
|
28530
28670
|
}), _defineProperty(_extraReducers$j, GETALERTWITHLABORDER.rejected, function (state, action) {
|
|
28531
|
-
var _action$
|
|
28671
|
+
var _action$payload8;
|
|
28532
28672
|
|
|
28533
|
-
state.alertLabOrder.loading = false, state.alertLabOrder.error = true, state.alertLabOrder = (_action$
|
|
28673
|
+
state.alertLabOrder.loading = false, state.alertLabOrder.error = true, state.alertLabOrder = (_action$payload8 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload8 !== void 0 ? _action$payload8 : {};
|
|
28534
28674
|
}), _defineProperty(_extraReducers$j, GETALERTWITHMEDI.fulfilled, function (state, action) {
|
|
28535
|
-
var _action$
|
|
28675
|
+
var _action$payload9;
|
|
28536
28676
|
|
|
28537
|
-
state.alertMedication.loading = false, state.alertMedication.error = false, state.alertMedication = (_action$
|
|
28677
|
+
state.alertMedication.loading = false, state.alertMedication.error = false, state.alertMedication = (_action$payload9 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload9 !== void 0 ? _action$payload9 : {};
|
|
28538
28678
|
}), _defineProperty(_extraReducers$j, GETALERTWITHMEDI.pending, function (state, action) {
|
|
28539
28679
|
state.alertMedication.loading = true, state.alertMedication.error = false, state.alertMedication.loading = true;
|
|
28540
28680
|
}), _defineProperty(_extraReducers$j, GETALERTWITHMEDI.rejected, function (state, action) {
|
|
28541
|
-
var _action$
|
|
28681
|
+
var _action$payload10;
|
|
28542
28682
|
|
|
28543
|
-
state.alertMedication.loading = false, state.alertMedication.error = true, state.alertMedication = (_action$
|
|
28683
|
+
state.alertMedication.loading = false, state.alertMedication.error = true, state.alertMedication = (_action$payload10 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload10 !== void 0 ? _action$payload10 : {};
|
|
28544
28684
|
}), _extraReducers$j)
|
|
28545
28685
|
});
|
|
28546
28686
|
var validateRulesActions = {
|
|
28547
28687
|
FETCHPERFORMINGLOCATION: FETCHPERFORMINGLOCATION,
|
|
28548
28688
|
FETCHPERFORMINGLOCATIONMED: FETCHPERFORMINGLOCATIONMED,
|
|
28549
28689
|
GETALERTWITHLABORDER: GETALERTWITHLABORDER,
|
|
28550
|
-
GETALERTWITHMEDI: GETALERTWITHMEDI
|
|
28690
|
+
GETALERTWITHMEDI: GETALERTWITHMEDI,
|
|
28691
|
+
FETCHPERFORMINGLOCATIONMED_: FETCHPERFORMINGLOCATIONMED_
|
|
28551
28692
|
};
|
|
28552
28693
|
var validateRulesSlice$1 = validateRulesSlice.reducer;
|
|
28553
28694
|
|