primarycare-binder 1.1.123 → 1.1.124
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 +360 -217
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8130,7 +8130,7 @@ var queries$b = {
|
|
|
8130
8130
|
return "'".concat(name, "' IN Organization.OrgType");
|
|
8131
8131
|
},
|
|
8132
8132
|
// "filter": "'Hospital' IN Organization.OrgType",
|
|
8133
|
-
returnFields: "{OrgID:Organization.id,name:Organization.name}"
|
|
8133
|
+
returnFields: "{OrgID:Organization.id,name:Organization.name, _id:Organization._id }"
|
|
8134
8134
|
},
|
|
8135
8135
|
codablemasterSpeciality: {
|
|
8136
8136
|
query: function query(id) {
|
|
@@ -8153,8 +8153,8 @@ var queries$b = {
|
|
|
8153
8153
|
returnFields: "distinct {practitioner_type:contains(Practitioner.practitioner_type,'CodeableConceptMaster')?document(document(Practitioner.practitioner_type).coding):document(Practitioner.practitioner_type)}"
|
|
8154
8154
|
},
|
|
8155
8155
|
codablemasterPractitionerName: {
|
|
8156
|
-
query: function query(specialityID, practitionerType) {
|
|
8157
|
-
return "(document(Practitioner.practitioner_role)[*].SpecialtyID any == '".concat(specialityID, "' || first(document(document(Practitioner.practitioner_role)[*].SpecialtyID)[*].coding) any == '").concat(specialityID, "' ) && (document(Practitioner.practitioner_type).coding any=='").concat(practitionerType, "' || Practitioner.practitioner_type=='").concat(practitionerType, "') && Practitioner.activestatus==true && Practitioner.active == true");
|
|
8156
|
+
query: function query(specialityID, practitionerType, facilityId) {
|
|
8157
|
+
return "(document(Practitioner.practitioner_role)[*].SpecialtyID any == '".concat(specialityID, "' || first(document(document(Practitioner.practitioner_role)[*].SpecialtyID)[*].coding) any == '").concat(specialityID, "' ) && (document(Practitioner.practitioner_type).coding any=='").concat(practitionerType, "' || Practitioner.practitioner_type=='").concat(practitionerType, "') && document(Practitioner.practitioner_role)[*].OrgID any=='").concat(facilityId, "' && Practitioner.activestatus==true && Practitioner.active == true");
|
|
8158
8158
|
},
|
|
8159
8159
|
returnFields: "merge(Practitioner,{name:(for hm in HumanNameMaster filter hm._id in Practitioner.name return merge(hm,{use:(for cod in CodeableConceptMaster filter cod._id== hm.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == hm.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == hm.suffix return document(cod.coding))}))})"
|
|
8160
8160
|
},
|
|
@@ -8360,9 +8360,10 @@ var __update__ = "".concat(process.env.REACT_APP_BASE_URL_PROTOCAL, "://").conca
|
|
|
8360
8360
|
var __readDocumentUrl__ = "".concat(process.env.REACT_APP_BASE_URL_PROTOCAL, "://").concat(process.env.REACT_APP_BASE_URL_HOST, ":").concat(process.env.REACT_APP_BASE_URL_PORT, "/api/read_documents");
|
|
8361
8361
|
var __deleteUrl__ = "".concat(process.env.REACT_APP_BASE_URL_PROTOCAL, "://").concat(process.env.REACT_APP_BASE_URL_HOST, ":").concat(process.env.REACT_APP_BASE_URL_PORT, "/api/delete_document");
|
|
8362
8362
|
var __ruleBuilderUrl__ = "".concat(process.env.REACT_APP_RULE_BUILDER_URL, "/multi/rule-validate");
|
|
8363
|
-
var __OrderlinewithQueue__ = "".concat(process.env.
|
|
8363
|
+
var __OrderlinewithQueue__ = "".concat(process.env.REACT_APP_NIFI_CLMM_API, "/api/v1/upsert/OrderlinewithQueue");
|
|
8364
|
+
var __GetOrderStartDate__ = "".concat(process.env.REACT_APP_CLMM_NIFI_API, "/api/ScheduleGeneration/GetOrderStartDate"); // export const __GetOrderStartDate__ = `https://apiclmm.dev.ainqaplatform.in/api/ScheduleGeneration/GetOrderStartDate`;
|
|
8364
8365
|
|
|
8365
|
-
var
|
|
8366
|
+
var __Soft_Delete__ = "".concat(process.env.REACT_APP_SOFT_DELETE, "/api/soft_delete"); // export const __ruleBuilderUrl__ = `http://164.52.210.54:9090/multi/rule-validate`;
|
|
8366
8367
|
|
|
8367
8368
|
var __seqNoGenerator__ = "".concat(process.env.REACT_APP_BASE_URL_PROTOCAL, "://").concat(process.env.REACT_APP_BASE_URL_HOST, ":").concat(process.env.REACT_APP_BASE_URL_PORT, "/api/generate_sequence");
|
|
8368
8369
|
var __insertRCMurl__ = "".concat(process.env.REACT_APP_BASE_URL_PROTOCAL, "://").concat(process.env.REACT_APP_AUTH_URL_HOST, "/api/v1/insertCAOrderInRCMPatTrx");
|
|
@@ -18899,13 +18900,26 @@ var ORGANIZATION_FINANCIAL_REGISTRATION = createAsyncThunk("OrganizationRegister
|
|
|
18899
18900
|
case 7:
|
|
18900
18901
|
Del_data = _context5.sent;
|
|
18901
18902
|
body = payloaddata.map(function (val, i) {
|
|
18902
|
-
|
|
18903
|
-
|
|
18904
|
-
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
|
|
18908
|
-
|
|
18903
|
+
if (val === null || val === void 0 ? void 0 : val._key) {
|
|
18904
|
+
return {
|
|
18905
|
+
db_name: dbName,
|
|
18906
|
+
entity: "Account",
|
|
18907
|
+
is_metadata: true,
|
|
18908
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
18909
|
+
doc: val,
|
|
18910
|
+
filter: {
|
|
18911
|
+
_key: val === null || val === void 0 ? void 0 : val._key
|
|
18912
|
+
}
|
|
18913
|
+
};
|
|
18914
|
+
} else {
|
|
18915
|
+
return {
|
|
18916
|
+
db_name: dbName,
|
|
18917
|
+
entity: "Account",
|
|
18918
|
+
is_metadata: true,
|
|
18919
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
18920
|
+
doc: val
|
|
18921
|
+
};
|
|
18922
|
+
}
|
|
18909
18923
|
});
|
|
18910
18924
|
_context5.next = 11;
|
|
18911
18925
|
return fetchData$3({
|
|
@@ -19200,6 +19214,8 @@ var GET_PRACTITIONER_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlic
|
|
|
19200
19214
|
var payload,
|
|
19201
19215
|
_ref20,
|
|
19202
19216
|
rejectWithValue,
|
|
19217
|
+
_payload$facilityId,
|
|
19218
|
+
facilityId,
|
|
19203
19219
|
_payload$specialityID,
|
|
19204
19220
|
specialityID,
|
|
19205
19221
|
_payload$practitioner,
|
|
@@ -19216,11 +19232,11 @@ var GET_PRACTITIONER_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlic
|
|
|
19216
19232
|
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
19217
19233
|
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
19218
19234
|
_context10.prev = 2;
|
|
19219
|
-
_payload$specialityID = payload.specialityID, specialityID = _payload$specialityID === void 0 ? "" : _payload$specialityID, _payload$practitioner = payload.practitionerType, practitionerType = _payload$practitioner === void 0 ? "" : _payload$practitioner;
|
|
19235
|
+
_payload$facilityId = payload.facilityId, facilityId = _payload$facilityId === void 0 ? "" : _payload$facilityId, _payload$specialityID = payload.specialityID, specialityID = _payload$specialityID === void 0 ? "" : _payload$specialityID, _payload$practitioner = payload.practitionerType, practitionerType = _payload$practitioner === void 0 ? "" : _payload$practitioner;
|
|
19220
19236
|
body = {
|
|
19221
19237
|
db_name: dbName,
|
|
19222
19238
|
entity: "Practitioner",
|
|
19223
|
-
filter: queries$b["codablemasterPractitionerName"].query(specialityID, practitionerType),
|
|
19239
|
+
filter: queries$b["codablemasterPractitionerName"].query(specialityID, practitionerType, facilityId),
|
|
19224
19240
|
return_fields: queries$b["codablemasterPractitionerName"].returnFields
|
|
19225
19241
|
};
|
|
19226
19242
|
_context10.next = 7;
|
|
@@ -19538,16 +19554,14 @@ var GET_FINANCIAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getfin
|
|
|
19538
19554
|
}
|
|
19539
19555
|
}, _callee15, null, [[2, 13]]);
|
|
19540
19556
|
})));
|
|
19541
|
-
var
|
|
19557
|
+
var SOFT_DELETE_FINANCIAL_PAYER = createAsyncThunk("OrganizationRegisterPatientApiSlice/softDeleteFinancialPayer", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
|
|
19542
19558
|
var payload,
|
|
19543
19559
|
_ref32,
|
|
19544
19560
|
rejectWithValue,
|
|
19545
|
-
_payload$
|
|
19546
|
-
|
|
19547
|
-
encounterId,
|
|
19561
|
+
_payload$_key,
|
|
19562
|
+
_key,
|
|
19548
19563
|
body,
|
|
19549
19564
|
data,
|
|
19550
|
-
returnData,
|
|
19551
19565
|
_args16 = arguments;
|
|
19552
19566
|
|
|
19553
19567
|
return regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
@@ -19557,6 +19571,56 @@ var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice
|
|
|
19557
19571
|
payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
|
|
19558
19572
|
_ref32 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
19559
19573
|
_context16.prev = 2;
|
|
19574
|
+
_payload$_key = payload._key, _key = _payload$_key === void 0 ? "" : _payload$_key;
|
|
19575
|
+
body = {
|
|
19576
|
+
db_name: dbName,
|
|
19577
|
+
entity: "Account",
|
|
19578
|
+
filter: "Account._key=='".concat(_key, "'")
|
|
19579
|
+
};
|
|
19580
|
+
_context16.next = 7;
|
|
19581
|
+
return fetchData$3({
|
|
19582
|
+
body: JSON.stringify(body)
|
|
19583
|
+
}, __Soft_Delete__);
|
|
19584
|
+
|
|
19585
|
+
case 7:
|
|
19586
|
+
data = _context16.sent;
|
|
19587
|
+
return _context16.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19588
|
+
data: data
|
|
19589
|
+
}));
|
|
19590
|
+
|
|
19591
|
+
case 11:
|
|
19592
|
+
_context16.prev = 11;
|
|
19593
|
+
_context16.t0 = _context16["catch"](2);
|
|
19594
|
+
return _context16.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19595
|
+
message: _context16.t0.message
|
|
19596
|
+
})));
|
|
19597
|
+
|
|
19598
|
+
case 14:
|
|
19599
|
+
case "end":
|
|
19600
|
+
return _context16.stop();
|
|
19601
|
+
}
|
|
19602
|
+
}
|
|
19603
|
+
}, _callee16, null, [[2, 11]]);
|
|
19604
|
+
})));
|
|
19605
|
+
var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterHeader", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {
|
|
19606
|
+
var payload,
|
|
19607
|
+
_ref34,
|
|
19608
|
+
rejectWithValue,
|
|
19609
|
+
_payload$patientId3,
|
|
19610
|
+
patientId,
|
|
19611
|
+
encounterId,
|
|
19612
|
+
body,
|
|
19613
|
+
data,
|
|
19614
|
+
returnData,
|
|
19615
|
+
_args17 = arguments;
|
|
19616
|
+
|
|
19617
|
+
return regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
19618
|
+
while (1) {
|
|
19619
|
+
switch (_context17.prev = _context17.next) {
|
|
19620
|
+
case 0:
|
|
19621
|
+
payload = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
|
|
19622
|
+
_ref34 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref34.rejectWithValue;
|
|
19623
|
+
_context17.prev = 2;
|
|
19560
19624
|
_payload$patientId3 = payload.patientId, patientId = _payload$patientId3 === void 0 ? "" : _payload$patientId3, encounterId = payload.encounterId;
|
|
19561
19625
|
body = {
|
|
19562
19626
|
db_name: dbName,
|
|
@@ -19565,40 +19629,40 @@ var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice
|
|
|
19565
19629
|
return_fields: "merge({id:adqolcEncounter.id},{_id:adqolcEncounter._id},{_key:adqolcEncounter._key},{encounterdate:adqolcEncounter.encounterdate},{encounter_no:adqolcEncounter.encounter_no},{type:document(adqolcEncounter.type)[*].display},{visit_type:adqolcEncounter.visit_type},{location:(for doc in adqolcEncounter.location for loc in LocationMaster filter loc._id == doc.location_id return document(document(loc.locationType).coding))},{Practitioner_id:(for part in adqolcEncounter.participant for practId in Practitioner filter practId.id == part.Practitioner_id return {name:(for doc in HumanNameMaster filter doc._id in practId.name return merge(doc,{use:(document(document(doc.use).coding)),prefix:(document(document(doc.prefix).coding)),suffix:(document(document(doc.suffix).coding))})),communication:document(practId.communication)[*]} )},{PractitionerRole_id:(for part in adqolcEncounter.participant for practRole in PractitionerRole filter practRole.id == part.PractitionerRole_id return document(document(practRole.role).coding) )})",
|
|
19566
19630
|
sort: "Encounter.encounterdate desc"
|
|
19567
19631
|
};
|
|
19568
|
-
|
|
19632
|
+
_context17.next = 7;
|
|
19569
19633
|
return fetchData$3({
|
|
19570
19634
|
body: JSON.stringify(body)
|
|
19571
19635
|
}, __readDocumentUrl__);
|
|
19572
19636
|
|
|
19573
19637
|
case 7:
|
|
19574
|
-
data =
|
|
19638
|
+
data = _context17.sent;
|
|
19575
19639
|
returnData = [];
|
|
19576
19640
|
|
|
19577
19641
|
if (Array.isArray(data.result)) {
|
|
19578
19642
|
returnData = data.result;
|
|
19579
19643
|
}
|
|
19580
19644
|
|
|
19581
|
-
return
|
|
19645
|
+
return _context17.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19582
19646
|
data: returnData
|
|
19583
19647
|
}));
|
|
19584
19648
|
|
|
19585
19649
|
case 13:
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
return
|
|
19589
|
-
message:
|
|
19650
|
+
_context17.prev = 13;
|
|
19651
|
+
_context17.t0 = _context17["catch"](2);
|
|
19652
|
+
return _context17.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19653
|
+
message: _context17.t0.message
|
|
19590
19654
|
})));
|
|
19591
19655
|
|
|
19592
19656
|
case 16:
|
|
19593
19657
|
case "end":
|
|
19594
|
-
return
|
|
19658
|
+
return _context17.stop();
|
|
19595
19659
|
}
|
|
19596
19660
|
}
|
|
19597
|
-
},
|
|
19661
|
+
}, _callee17, null, [[2, 13]]);
|
|
19598
19662
|
})));
|
|
19599
|
-
var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getreferral", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19663
|
+
var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getreferral", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
|
19600
19664
|
var payload,
|
|
19601
|
-
|
|
19665
|
+
_ref36,
|
|
19602
19666
|
rejectWithValue,
|
|
19603
19667
|
_payload$patientid,
|
|
19604
19668
|
patientid,
|
|
@@ -19638,15 +19702,15 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19638
19702
|
_returnData15,
|
|
19639
19703
|
_returnData15$,
|
|
19640
19704
|
info,
|
|
19641
|
-
|
|
19705
|
+
_args18 = arguments;
|
|
19642
19706
|
|
|
19643
|
-
return regeneratorRuntime.wrap(function
|
|
19707
|
+
return regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
19644
19708
|
while (1) {
|
|
19645
|
-
switch (
|
|
19709
|
+
switch (_context18.prev = _context18.next) {
|
|
19646
19710
|
case 0:
|
|
19647
|
-
payload =
|
|
19648
|
-
|
|
19649
|
-
|
|
19711
|
+
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
19712
|
+
_ref36 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref36.rejectWithValue;
|
|
19713
|
+
_context18.prev = 2;
|
|
19650
19714
|
_payload$patientid = payload.patientid, patientid = _payload$patientid === void 0 ? "" : _payload$patientid, _payload$reffId = payload.reffId, reffId = _payload$reffId === void 0 ? "" : _payload$reffId;
|
|
19651
19715
|
body = {
|
|
19652
19716
|
db_name: dbName,
|
|
@@ -19654,13 +19718,13 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19654
19718
|
filter: queries$b["codablemasterGetReferral"].query(patientid, reffId),
|
|
19655
19719
|
return_fields: queries$b["codablemasterGetReferral"].returnFields
|
|
19656
19720
|
};
|
|
19657
|
-
|
|
19721
|
+
_context18.next = 7;
|
|
19658
19722
|
return fetchData$3({
|
|
19659
19723
|
body: JSON.stringify(body)
|
|
19660
19724
|
}, __readDocumentUrl__);
|
|
19661
19725
|
|
|
19662
19726
|
case 7:
|
|
19663
|
-
data =
|
|
19727
|
+
data = _context18.sent;
|
|
19664
19728
|
returnData = [];
|
|
19665
19729
|
|
|
19666
19730
|
if (Array.isArray(data.result)) {
|
|
@@ -19693,42 +19757,42 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19693
19757
|
returnData[0] = _objectSpread2(_objectSpread2({}, returnData[0]), info);
|
|
19694
19758
|
}
|
|
19695
19759
|
|
|
19696
|
-
return
|
|
19760
|
+
return _context18.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19697
19761
|
data: returnData
|
|
19698
19762
|
}));
|
|
19699
19763
|
|
|
19700
19764
|
case 13:
|
|
19701
|
-
|
|
19702
|
-
|
|
19703
|
-
return
|
|
19704
|
-
message:
|
|
19765
|
+
_context18.prev = 13;
|
|
19766
|
+
_context18.t0 = _context18["catch"](2);
|
|
19767
|
+
return _context18.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19768
|
+
message: _context18.t0.message
|
|
19705
19769
|
})));
|
|
19706
19770
|
|
|
19707
19771
|
case 16:
|
|
19708
19772
|
case "end":
|
|
19709
|
-
return
|
|
19773
|
+
return _context18.stop();
|
|
19710
19774
|
}
|
|
19711
19775
|
}
|
|
19712
|
-
},
|
|
19776
|
+
}, _callee18, null, [[2, 13]]);
|
|
19713
19777
|
})));
|
|
19714
|
-
var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSlice/getappointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19778
|
+
var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSlice/getappointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
|
|
19715
19779
|
var payload,
|
|
19716
|
-
|
|
19780
|
+
_ref38,
|
|
19717
19781
|
rejectWithValue,
|
|
19718
19782
|
_payload$appointmentI,
|
|
19719
19783
|
appointmentId,
|
|
19720
19784
|
body,
|
|
19721
19785
|
data,
|
|
19722
19786
|
returnData,
|
|
19723
|
-
|
|
19787
|
+
_args19 = arguments;
|
|
19724
19788
|
|
|
19725
|
-
return regeneratorRuntime.wrap(function
|
|
19789
|
+
return regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
19726
19790
|
while (1) {
|
|
19727
|
-
switch (
|
|
19791
|
+
switch (_context19.prev = _context19.next) {
|
|
19728
19792
|
case 0:
|
|
19729
|
-
payload =
|
|
19730
|
-
|
|
19731
|
-
|
|
19793
|
+
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
19794
|
+
_ref38 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref38.rejectWithValue;
|
|
19795
|
+
_context19.prev = 2;
|
|
19732
19796
|
_payload$appointmentI = payload.appointmentId, appointmentId = _payload$appointmentI === void 0 ? "" : _payload$appointmentI;
|
|
19733
19797
|
body = {
|
|
19734
19798
|
db_name: dbName,
|
|
@@ -19736,40 +19800,40 @@ var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSl
|
|
|
19736
19800
|
filter: queries$b["codablemasterGetAppointment"].query(appointmentId),
|
|
19737
19801
|
return_fields: queries$b["codablemasterGetAppointment"].returnFields
|
|
19738
19802
|
};
|
|
19739
|
-
|
|
19803
|
+
_context19.next = 7;
|
|
19740
19804
|
return fetchData$3({
|
|
19741
19805
|
body: JSON.stringify(body)
|
|
19742
19806
|
}, __readDocumentUrl__);
|
|
19743
19807
|
|
|
19744
19808
|
case 7:
|
|
19745
|
-
data =
|
|
19809
|
+
data = _context19.sent;
|
|
19746
19810
|
returnData = [];
|
|
19747
19811
|
|
|
19748
19812
|
if (Array.isArray(data.result)) {
|
|
19749
19813
|
returnData = data.result;
|
|
19750
19814
|
}
|
|
19751
19815
|
|
|
19752
|
-
return
|
|
19816
|
+
return _context19.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19753
19817
|
data: returnData
|
|
19754
19818
|
}));
|
|
19755
19819
|
|
|
19756
19820
|
case 13:
|
|
19757
|
-
|
|
19758
|
-
|
|
19759
|
-
return
|
|
19760
|
-
message:
|
|
19821
|
+
_context19.prev = 13;
|
|
19822
|
+
_context19.t0 = _context19["catch"](2);
|
|
19823
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19824
|
+
message: _context19.t0.message
|
|
19761
19825
|
})));
|
|
19762
19826
|
|
|
19763
19827
|
case 16:
|
|
19764
19828
|
case "end":
|
|
19765
|
-
return
|
|
19829
|
+
return _context19.stop();
|
|
19766
19830
|
}
|
|
19767
19831
|
}
|
|
19768
|
-
},
|
|
19832
|
+
}, _callee19, null, [[2, 13]]);
|
|
19769
19833
|
})));
|
|
19770
|
-
var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatientname", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19834
|
+
var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatientname", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20() {
|
|
19771
19835
|
var payload,
|
|
19772
|
-
|
|
19836
|
+
_ref40,
|
|
19773
19837
|
rejectWithValue,
|
|
19774
19838
|
_patientName$split,
|
|
19775
19839
|
_patientName$split2,
|
|
@@ -19782,15 +19846,15 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19782
19846
|
body,
|
|
19783
19847
|
data,
|
|
19784
19848
|
returnData,
|
|
19785
|
-
|
|
19849
|
+
_args20 = arguments;
|
|
19786
19850
|
|
|
19787
|
-
return regeneratorRuntime.wrap(function
|
|
19851
|
+
return regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
19788
19852
|
while (1) {
|
|
19789
|
-
switch (
|
|
19853
|
+
switch (_context20.prev = _context20.next) {
|
|
19790
19854
|
case 0:
|
|
19791
|
-
payload =
|
|
19792
|
-
|
|
19793
|
-
|
|
19855
|
+
payload = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};
|
|
19856
|
+
_ref40 = _args20.length > 1 ? _args20[1] : undefined, rejectWithValue = _ref40.rejectWithValue;
|
|
19857
|
+
_context20.prev = 2;
|
|
19794
19858
|
_payload$patientName = payload.patientName, patientName = _payload$patientName === void 0 ? "" : _payload$patientName;
|
|
19795
19859
|
firstName = (_patientName$split = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 1)) !== null && _patientName$split !== void 0 ? _patientName$split : "";
|
|
19796
19860
|
secondName = (_patientName$split2 = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 2)) !== null && _patientName$split2 !== void 0 ? _patientName$split2 : "";
|
|
@@ -19806,40 +19870,40 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19806
19870
|
}),
|
|
19807
19871
|
return_fields: queries$b["codablemasterGetPatientname"].returnFields
|
|
19808
19872
|
};
|
|
19809
|
-
|
|
19873
|
+
_context20.next = 11;
|
|
19810
19874
|
return fetchData$3({
|
|
19811
19875
|
body: JSON.stringify(body)
|
|
19812
19876
|
}, __readDocumentUrl__);
|
|
19813
19877
|
|
|
19814
19878
|
case 11:
|
|
19815
|
-
data =
|
|
19879
|
+
data = _context20.sent;
|
|
19816
19880
|
returnData = [];
|
|
19817
19881
|
|
|
19818
19882
|
if (Array.isArray(data.result)) {
|
|
19819
19883
|
returnData = data.result;
|
|
19820
19884
|
}
|
|
19821
19885
|
|
|
19822
|
-
return
|
|
19886
|
+
return _context20.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19823
19887
|
data: returnData
|
|
19824
19888
|
}));
|
|
19825
19889
|
|
|
19826
19890
|
case 17:
|
|
19827
|
-
|
|
19828
|
-
|
|
19829
|
-
return
|
|
19830
|
-
message:
|
|
19891
|
+
_context20.prev = 17;
|
|
19892
|
+
_context20.t0 = _context20["catch"](2);
|
|
19893
|
+
return _context20.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19894
|
+
message: _context20.t0.message
|
|
19831
19895
|
})));
|
|
19832
19896
|
|
|
19833
19897
|
case 20:
|
|
19834
19898
|
case "end":
|
|
19835
|
-
return
|
|
19899
|
+
return _context20.stop();
|
|
19836
19900
|
}
|
|
19837
19901
|
}
|
|
19838
|
-
},
|
|
19902
|
+
}, _callee20, null, [[2, 17]]);
|
|
19839
19903
|
})));
|
|
19840
|
-
var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatienttypeid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19904
|
+
var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatienttypeid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee21() {
|
|
19841
19905
|
var payload,
|
|
19842
|
-
|
|
19906
|
+
_ref42,
|
|
19843
19907
|
rejectWithValue,
|
|
19844
19908
|
_payload$idnumber,
|
|
19845
19909
|
idnumber,
|
|
@@ -19847,88 +19911,89 @@ var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/g
|
|
|
19847
19911
|
idsourcecode,
|
|
19848
19912
|
body,
|
|
19849
19913
|
data,
|
|
19850
|
-
|
|
19914
|
+
_args21 = arguments;
|
|
19851
19915
|
|
|
19852
|
-
return regeneratorRuntime.wrap(function
|
|
19916
|
+
return regeneratorRuntime.wrap(function _callee21$(_context21) {
|
|
19853
19917
|
while (1) {
|
|
19854
|
-
switch (
|
|
19918
|
+
switch (_context21.prev = _context21.next) {
|
|
19855
19919
|
case 0:
|
|
19856
|
-
payload =
|
|
19857
|
-
|
|
19858
|
-
|
|
19920
|
+
payload = _args21.length > 0 && _args21[0] !== undefined ? _args21[0] : {};
|
|
19921
|
+
_ref42 = _args21.length > 1 ? _args21[1] : undefined, rejectWithValue = _ref42.rejectWithValue;
|
|
19922
|
+
_context21.prev = 2;
|
|
19859
19923
|
_payload$idnumber = payload.idnumber, idnumber = _payload$idnumber === void 0 ? "" : _payload$idnumber, _payload$idsourcecode = payload.idsourcecode, idsourcecode = _payload$idsourcecode === void 0 ? "" : _payload$idsourcecode;
|
|
19860
19924
|
body = {
|
|
19861
19925
|
db_name: dbName,
|
|
19862
19926
|
filter: JSON.parse("{\n \"idnumber\":\"".concat(idnumber, "\",\"idsourcecode\":\"").concat(idsourcecode, "\"\n }")),
|
|
19863
19927
|
queryid: "8ffac13e-b147-4568-a13e-ecf9c07c0d92"
|
|
19864
19928
|
};
|
|
19865
|
-
|
|
19929
|
+
_context21.next = 7;
|
|
19866
19930
|
return fetchData$3({
|
|
19867
19931
|
body: JSON.stringify(body)
|
|
19868
19932
|
}, __baseUrl__);
|
|
19869
19933
|
|
|
19870
19934
|
case 7:
|
|
19871
|
-
data =
|
|
19872
|
-
return
|
|
19935
|
+
data = _context21.sent;
|
|
19936
|
+
return _context21.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19873
19937
|
data: data
|
|
19874
19938
|
}));
|
|
19875
19939
|
|
|
19876
19940
|
case 11:
|
|
19877
|
-
|
|
19878
|
-
|
|
19879
|
-
return
|
|
19880
|
-
message:
|
|
19941
|
+
_context21.prev = 11;
|
|
19942
|
+
_context21.t0 = _context21["catch"](2);
|
|
19943
|
+
return _context21.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19944
|
+
message: _context21.t0.message
|
|
19881
19945
|
})));
|
|
19882
19946
|
|
|
19883
19947
|
case 14:
|
|
19884
19948
|
case "end":
|
|
19885
|
-
return
|
|
19949
|
+
return _context21.stop();
|
|
19886
19950
|
}
|
|
19887
19951
|
}
|
|
19888
|
-
},
|
|
19952
|
+
}, _callee21, null, [[2, 11]]);
|
|
19889
19953
|
})));
|
|
19890
|
-
var GET_ENCOUNTER_STATUS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19954
|
+
var GET_ENCOUNTER_STATUS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee22() {
|
|
19891
19955
|
var payload,
|
|
19892
|
-
|
|
19956
|
+
_ref44,
|
|
19893
19957
|
rejectWithValue,
|
|
19894
19958
|
data,
|
|
19895
|
-
|
|
19959
|
+
_args22 = arguments;
|
|
19896
19960
|
|
|
19897
|
-
return regeneratorRuntime.wrap(function
|
|
19961
|
+
return regeneratorRuntime.wrap(function _callee22$(_context22) {
|
|
19898
19962
|
while (1) {
|
|
19899
|
-
switch (
|
|
19963
|
+
switch (_context22.prev = _context22.next) {
|
|
19900
19964
|
case 0:
|
|
19901
|
-
payload =
|
|
19902
|
-
|
|
19903
|
-
|
|
19904
|
-
|
|
19965
|
+
payload = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};
|
|
19966
|
+
_ref44 = _args22.length > 1 ? _args22[1] : undefined, rejectWithValue = _ref44.rejectWithValue;
|
|
19967
|
+
_context22.prev = 2;
|
|
19968
|
+
_context22.next = 5;
|
|
19905
19969
|
return fetchData$3({
|
|
19906
19970
|
body: JSON.stringify(registerQuery.statusRead())
|
|
19907
19971
|
}, __readDocumentUrl__);
|
|
19908
19972
|
|
|
19909
19973
|
case 5:
|
|
19910
|
-
data =
|
|
19911
|
-
return
|
|
19974
|
+
data = _context22.sent;
|
|
19975
|
+
return _context22.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19912
19976
|
data: data.result
|
|
19913
19977
|
}));
|
|
19914
19978
|
|
|
19915
19979
|
case 9:
|
|
19916
|
-
|
|
19917
|
-
|
|
19918
|
-
return
|
|
19919
|
-
message:
|
|
19980
|
+
_context22.prev = 9;
|
|
19981
|
+
_context22.t0 = _context22["catch"](2);
|
|
19982
|
+
return _context22.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19983
|
+
message: _context22.t0.message
|
|
19920
19984
|
})));
|
|
19921
19985
|
|
|
19922
19986
|
case 12:
|
|
19923
19987
|
case "end":
|
|
19924
|
-
return
|
|
19988
|
+
return _context22.stop();
|
|
19925
19989
|
}
|
|
19926
19990
|
}
|
|
19927
|
-
},
|
|
19991
|
+
}, _callee22, null, [[2, 9]]);
|
|
19928
19992
|
})));
|
|
19929
19993
|
var OrganizationRegisterPatientApiSlice = createSlice({
|
|
19930
19994
|
name: "OrganizationRegisterPatientApiSlice",
|
|
19931
19995
|
initialState: {
|
|
19996
|
+
softDeleteFinancialPayer: _objectSpread2({}, defaultState.Info),
|
|
19932
19997
|
specilitytype: _objectSpread2({}, defaultState.Info),
|
|
19933
19998
|
specilityname: _objectSpread2({}, defaultState.Info),
|
|
19934
19999
|
oraganizationRegisterPatient: _objectSpread2({}, defaultState.Info),
|
|
@@ -19951,216 +20016,226 @@ var OrganizationRegisterPatientApiSlice = createSlice({
|
|
|
19951
20016
|
getPractitionerName: _objectSpread2({}, defaultState.Info),
|
|
19952
20017
|
getPatient_id: _objectSpread2({}, defaultState.Info)
|
|
19953
20018
|
},
|
|
19954
|
-
extraReducers: (_extraReducers$r = {}, _defineProperty(_extraReducers$r,
|
|
20019
|
+
extraReducers: (_extraReducers$r = {}, _defineProperty(_extraReducers$r, SOFT_DELETE_FINANCIAL_PAYER.fulfilled, function (state, action) {
|
|
19955
20020
|
var _action$payload;
|
|
19956
20021
|
|
|
19957
|
-
state.
|
|
20022
|
+
state.softDeleteFinancialPayer = (_action$payload = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload !== void 0 ? _action$payload : {};
|
|
20023
|
+
}), _defineProperty(_extraReducers$r, SOFT_DELETE_FINANCIAL_PAYER.pending, function (state, action) {
|
|
20024
|
+
state.softDeleteFinancialPayer.loading = true;
|
|
20025
|
+
}), _defineProperty(_extraReducers$r, SOFT_DELETE_FINANCIAL_PAYER.rejected, function (state, action) {
|
|
20026
|
+
var _action$payload2;
|
|
20027
|
+
|
|
20028
|
+
state.softDeleteFinancialPayer = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : {};
|
|
20029
|
+
}), _defineProperty(_extraReducers$r, GET_PATIENT__ID_BY_ID.fulfilled, function (state, action) {
|
|
20030
|
+
var _action$payload3;
|
|
20031
|
+
|
|
20032
|
+
state.getPatient_id = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : {};
|
|
19958
20033
|
}), _defineProperty(_extraReducers$r, GET_PATIENT__ID_BY_ID.pending, function (state, action) {
|
|
19959
20034
|
state.getPatient_id.loading = true;
|
|
19960
20035
|
}), _defineProperty(_extraReducers$r, GET_PATIENT__ID_BY_ID.rejected, function (state, action) {
|
|
19961
|
-
var _action$
|
|
20036
|
+
var _action$payload4;
|
|
19962
20037
|
|
|
19963
|
-
state.getPatient_id = (_action$
|
|
20038
|
+
state.getPatient_id = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : {};
|
|
19964
20039
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_TYPE.fulfilled, function (state, action) {
|
|
19965
|
-
var _action$
|
|
20040
|
+
var _action$payload5;
|
|
19966
20041
|
|
|
19967
|
-
state.getPractitionerType = (_action$
|
|
20042
|
+
state.getPractitionerType = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : {};
|
|
19968
20043
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_TYPE.pending, function (state, action) {
|
|
19969
20044
|
state.getPractitionerType.loading = true;
|
|
19970
20045
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_TYPE.rejected, function (state, action) {
|
|
19971
|
-
var _action$
|
|
20046
|
+
var _action$payload6;
|
|
19972
20047
|
|
|
19973
|
-
state.getPractitionerType = (_action$
|
|
20048
|
+
state.getPractitionerType = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : {};
|
|
19974
20049
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_NAME.fulfilled, function (state, action) {
|
|
19975
|
-
var _action$
|
|
20050
|
+
var _action$payload7;
|
|
19976
20051
|
|
|
19977
|
-
state.getPractitionerName = (_action$
|
|
20052
|
+
state.getPractitionerName = (_action$payload7 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload7 !== void 0 ? _action$payload7 : {};
|
|
19978
20053
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_NAME.pending, function (state, action) {
|
|
19979
20054
|
state.getPractitionerName.loading = true;
|
|
19980
20055
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_NAME.rejected, function (state, action) {
|
|
19981
|
-
var _action$
|
|
20056
|
+
var _action$payload8;
|
|
19982
20057
|
|
|
19983
|
-
state.getPractitionerName = (_action$
|
|
20058
|
+
state.getPractitionerName = (_action$payload8 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload8 !== void 0 ? _action$payload8 : {};
|
|
19984
20059
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_NAME.fulfilled, function (state, action) {
|
|
19985
|
-
var _action$
|
|
20060
|
+
var _action$payload9;
|
|
19986
20061
|
|
|
19987
|
-
state.getpatientname = (_action$
|
|
20062
|
+
state.getpatientname = (_action$payload9 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload9 !== void 0 ? _action$payload9 : {};
|
|
19988
20063
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_NAME.pending, function (state, action) {
|
|
19989
20064
|
state.getpatientname.loading = true;
|
|
19990
20065
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_NAME.rejected, function (state, action) {
|
|
19991
|
-
var _action$
|
|
20066
|
+
var _action$payload10;
|
|
19992
20067
|
|
|
19993
|
-
state.getpatientname = (_action$
|
|
20068
|
+
state.getpatientname = (_action$payload10 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload10 !== void 0 ? _action$payload10 : {};
|
|
19994
20069
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_APPOINTMENT.fulfilled, function (state, action) {
|
|
19995
|
-
var _action$
|
|
20070
|
+
var _action$payload11;
|
|
19996
20071
|
|
|
19997
|
-
state.getappointment = (_action$
|
|
20072
|
+
state.getappointment = (_action$payload11 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload11 !== void 0 ? _action$payload11 : {};
|
|
19998
20073
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_APPOINTMENT.pending, function (state, action) {
|
|
19999
20074
|
state.getappointment.loading = true;
|
|
20000
20075
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_APPOINTMENT.rejected, function (state, action) {
|
|
20001
|
-
var _action$
|
|
20076
|
+
var _action$payload12;
|
|
20002
20077
|
|
|
20003
|
-
state.getappointment = (_action$
|
|
20078
|
+
state.getappointment = (_action$payload12 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
|
|
20004
20079
|
}), _defineProperty(_extraReducers$r, GET_FERERRAL.fulfilled, function (state, action) {
|
|
20005
|
-
var _action$
|
|
20080
|
+
var _action$payload13;
|
|
20006
20081
|
|
|
20007
|
-
state.getreferral = (_action$
|
|
20082
|
+
state.getreferral = (_action$payload13 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload13 !== void 0 ? _action$payload13 : {};
|
|
20008
20083
|
}), _defineProperty(_extraReducers$r, GET_FERERRAL.pending, function (state, action) {
|
|
20009
20084
|
state.getreferral.loading = true;
|
|
20010
20085
|
}), _defineProperty(_extraReducers$r, GET_FERERRAL.rejected, function (state, action) {
|
|
20011
|
-
var _action$
|
|
20086
|
+
var _action$payload14;
|
|
20012
20087
|
|
|
20013
|
-
state.getreferral = (_action$
|
|
20088
|
+
state.getreferral = (_action$payload14 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload14 !== void 0 ? _action$payload14 : {};
|
|
20014
20089
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REGISTER_PATIENT.fulfilled, function (state, action) {
|
|
20015
|
-
var _action$
|
|
20090
|
+
var _action$payload15;
|
|
20016
20091
|
|
|
20017
|
-
state.oraganizationRegisterPatient = (_action$
|
|
20092
|
+
state.oraganizationRegisterPatient = (_action$payload15 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload15 !== void 0 ? _action$payload15 : {};
|
|
20018
20093
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REGISTER_PATIENT.pending, function (state, action) {
|
|
20019
20094
|
state.oraganizationRegisterPatient.loading = true;
|
|
20020
20095
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REGISTER_PATIENT.rejected, function (state, action) {
|
|
20021
|
-
var _action$
|
|
20096
|
+
var _action$payload16;
|
|
20022
20097
|
|
|
20023
|
-
state.oraganizationRegisterPatient = (_action$
|
|
20098
|
+
state.oraganizationRegisterPatient = (_action$payload16 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload16 !== void 0 ? _action$payload16 : {};
|
|
20024
20099
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_VISIT_REGISTRATION.fulfilled, function (state, action) {
|
|
20025
|
-
var _action$
|
|
20100
|
+
var _action$payload17;
|
|
20026
20101
|
|
|
20027
|
-
state.oraganizationvisitRegister = (_action$
|
|
20102
|
+
state.oraganizationvisitRegister = (_action$payload17 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload17 !== void 0 ? _action$payload17 : {};
|
|
20028
20103
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_VISIT_REGISTRATION.pending, function (state, action) {
|
|
20029
20104
|
state.oraganizationvisitRegister.loading = true;
|
|
20030
20105
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_VISIT_REGISTRATION.rejected, function (state, action) {
|
|
20031
|
-
var _action$
|
|
20106
|
+
var _action$payload18;
|
|
20032
20107
|
|
|
20033
|
-
state.oraganizationvisitRegister = (_action$
|
|
20108
|
+
state.oraganizationvisitRegister = (_action$payload18 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload18 !== void 0 ? _action$payload18 : {};
|
|
20034
20109
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REFERRAL_REGISTRATION.fulfilled, function (state, action) {
|
|
20035
|
-
var _action$
|
|
20110
|
+
var _action$payload19;
|
|
20036
20111
|
|
|
20037
|
-
state.oraganizationreferralRegister = (_action$
|
|
20112
|
+
state.oraganizationreferralRegister = (_action$payload19 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload19 !== void 0 ? _action$payload19 : {};
|
|
20038
20113
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REFERRAL_REGISTRATION.pending, function (state, action) {
|
|
20039
20114
|
state.oraganizationreferralRegister.loading = true;
|
|
20040
20115
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REFERRAL_REGISTRATION.rejected, function (state, action) {
|
|
20041
|
-
var _action$
|
|
20116
|
+
var _action$payload20;
|
|
20042
20117
|
|
|
20043
|
-
state.oraganizationreferralRegister = (_action$
|
|
20118
|
+
state.oraganizationreferralRegister = (_action$payload20 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload20 !== void 0 ? _action$payload20 : {};
|
|
20044
20119
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FILTER_BY_PATIENT.fulfilled, function (state, action) {
|
|
20045
|
-
var _action$
|
|
20120
|
+
var _action$payload21;
|
|
20046
20121
|
|
|
20047
|
-
state.oraganizationfilterbypatient = (_action$
|
|
20122
|
+
state.oraganizationfilterbypatient = (_action$payload21 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload21 !== void 0 ? _action$payload21 : {};
|
|
20048
20123
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FILTER_BY_PATIENT.pending, function (state, action) {
|
|
20049
20124
|
state.oraganizationfilterbypatient.loading = true;
|
|
20050
20125
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FILTER_BY_PATIENT.rejected, function (state, action) {
|
|
20051
|
-
var _action$
|
|
20126
|
+
var _action$payload22;
|
|
20052
20127
|
|
|
20053
|
-
state.oraganizationfilterbypatient = (_action$
|
|
20128
|
+
state.oraganizationfilterbypatient = (_action$payload22 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload22 !== void 0 ? _action$payload22 : {};
|
|
20054
20129
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FINANCIAL_REGISTRATION.fulfilled, function (state, action) {
|
|
20055
|
-
var _action$
|
|
20130
|
+
var _action$payload23;
|
|
20056
20131
|
|
|
20057
|
-
state.oraganizationfinancialregister = (_action$
|
|
20132
|
+
state.oraganizationfinancialregister = (_action$payload23 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload23 !== void 0 ? _action$payload23 : {};
|
|
20058
20133
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FINANCIAL_REGISTRATION.pending, function (state, action) {
|
|
20059
20134
|
state.oraganizationfinancialregister.loading = true;
|
|
20060
20135
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FINANCIAL_REGISTRATION.rejected, function (state, action) {
|
|
20061
|
-
var _action$
|
|
20136
|
+
var _action$payload24;
|
|
20062
20137
|
|
|
20063
|
-
state.oraganizationfinancialregister = (_action$
|
|
20138
|
+
state.oraganizationfinancialregister = (_action$payload24 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload24 !== void 0 ? _action$payload24 : {};
|
|
20064
20139
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_TYPE.fulfilled, function (state, action) {
|
|
20065
|
-
var _action$
|
|
20140
|
+
var _action$payload25;
|
|
20066
20141
|
|
|
20067
|
-
state.specilitytype = (_action$
|
|
20142
|
+
state.specilitytype = (_action$payload25 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload25 !== void 0 ? _action$payload25 : {};
|
|
20068
20143
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_TYPE.pending, function (state, action) {
|
|
20069
20144
|
state.specilitytype.loading = true;
|
|
20070
20145
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_TYPE.rejected, function (state, action) {
|
|
20071
|
-
var _action$
|
|
20146
|
+
var _action$payload26;
|
|
20072
20147
|
|
|
20073
|
-
state.specilitytype = (_action$
|
|
20148
|
+
state.specilitytype = (_action$payload26 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload26 !== void 0 ? _action$payload26 : {};
|
|
20074
20149
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_NAME.fulfilled, function (state, action) {
|
|
20075
|
-
var _action$
|
|
20150
|
+
var _action$payload27;
|
|
20076
20151
|
|
|
20077
|
-
state.specilityname = (_action$
|
|
20152
|
+
state.specilityname = (_action$payload27 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload27 !== void 0 ? _action$payload27 : {};
|
|
20078
20153
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_NAME.pending, function (state, action) {
|
|
20079
20154
|
state.specilityname.loading = true;
|
|
20080
20155
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_NAME.rejected, function (state, action) {
|
|
20081
|
-
var _action$
|
|
20156
|
+
var _action$payload28;
|
|
20082
20157
|
|
|
20083
|
-
state.specilityname = (_action$
|
|
20158
|
+
state.specilityname = (_action$payload28 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload28 !== void 0 ? _action$payload28 : {};
|
|
20084
20159
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER.fulfilled, function (state, action) {
|
|
20085
|
-
var _action$
|
|
20160
|
+
var _action$payload29;
|
|
20086
20161
|
|
|
20087
|
-
state.practitioner = (_action$
|
|
20162
|
+
state.practitioner = (_action$payload29 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload29 !== void 0 ? _action$payload29 : {};
|
|
20088
20163
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER.pending, function (state, action) {
|
|
20089
20164
|
state.practitioner.loading = true;
|
|
20090
20165
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER.rejected, function (state, action) {
|
|
20091
|
-
var _action$
|
|
20166
|
+
var _action$payload30;
|
|
20092
20167
|
|
|
20093
|
-
state.practitioner = (_action$
|
|
20168
|
+
state.practitioner = (_action$payload30 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload30 !== void 0 ? _action$payload30 : {};
|
|
20094
20169
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONERS.fulfilled, function (state, action) {
|
|
20095
|
-
var _action$
|
|
20170
|
+
var _action$payload31;
|
|
20096
20171
|
|
|
20097
|
-
state.practitioners = (_action$
|
|
20172
|
+
state.practitioners = (_action$payload31 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload31 !== void 0 ? _action$payload31 : {};
|
|
20098
20173
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONERS.pending, function (state, action) {
|
|
20099
20174
|
state.practitioners.loading = true;
|
|
20100
20175
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONERS.rejected, function (state, action) {
|
|
20101
|
-
var _action$
|
|
20176
|
+
var _action$payload32;
|
|
20102
20177
|
|
|
20103
|
-
state.practitioners = (_action$
|
|
20178
|
+
state.practitioners = (_action$payload32 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload32 !== void 0 ? _action$payload32 : {};
|
|
20104
20179
|
}), _defineProperty(_extraReducers$r, GET_SPECIALITY_DATA.fulfilled, function (state, action) {
|
|
20105
|
-
var _action$
|
|
20180
|
+
var _action$payload33;
|
|
20106
20181
|
|
|
20107
|
-
state.speciality = (_action$
|
|
20182
|
+
state.speciality = (_action$payload33 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload33 !== void 0 ? _action$payload33 : {};
|
|
20108
20183
|
}), _defineProperty(_extraReducers$r, GET_SPECIALITY_DATA.pending, function (state, action) {
|
|
20109
20184
|
state.speciality.loading = true;
|
|
20110
20185
|
}), _defineProperty(_extraReducers$r, GET_SPECIALITY_DATA.rejected, function (state, action) {
|
|
20111
|
-
var _action$
|
|
20186
|
+
var _action$payload34;
|
|
20112
20187
|
|
|
20113
|
-
state.speciality = (_action$
|
|
20188
|
+
state.speciality = (_action$payload34 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload34 !== void 0 ? _action$payload34 : {};
|
|
20114
20189
|
}), _defineProperty(_extraReducers$r, GET_FINANCIAL.fulfilled, function (state, action) {
|
|
20115
|
-
var _action$
|
|
20190
|
+
var _action$payload35;
|
|
20116
20191
|
|
|
20117
|
-
state.getfinancial = (_action$
|
|
20192
|
+
state.getfinancial = (_action$payload35 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload35 !== void 0 ? _action$payload35 : {};
|
|
20118
20193
|
}), _defineProperty(_extraReducers$r, GET_FINANCIAL.pending, function (state, action) {
|
|
20119
20194
|
state.getfinancial.loading = true;
|
|
20120
20195
|
}), _defineProperty(_extraReducers$r, GET_FINANCIAL.rejected, function (state, action) {
|
|
20121
|
-
var _action$
|
|
20196
|
+
var _action$payload36;
|
|
20122
20197
|
|
|
20123
|
-
state.getfinancial = (_action$
|
|
20198
|
+
state.getfinancial = (_action$payload36 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload36 !== void 0 ? _action$payload36 : {};
|
|
20124
20199
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_ROLE.fulfilled, function (state, action) {
|
|
20125
|
-
var _action$
|
|
20200
|
+
var _action$payload37;
|
|
20126
20201
|
|
|
20127
|
-
state.getpractitionerrole = (_action$
|
|
20202
|
+
state.getpractitionerrole = (_action$payload37 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload37 !== void 0 ? _action$payload37 : {};
|
|
20128
20203
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_ROLE.pending, function (state, action) {
|
|
20129
20204
|
state.getpractitionerrole.loading = true;
|
|
20130
20205
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_ROLE.rejected, function (state, action) {
|
|
20131
|
-
var _action$
|
|
20206
|
+
var _action$payload38;
|
|
20132
20207
|
|
|
20133
|
-
state.getpractitionerrole = (_action$
|
|
20208
|
+
state.getpractitionerrole = (_action$payload38 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload38 !== void 0 ? _action$payload38 : {};
|
|
20134
20209
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_TYPEID.fulfilled, function (state, action) {
|
|
20135
|
-
var _action$
|
|
20210
|
+
var _action$payload39;
|
|
20136
20211
|
|
|
20137
|
-
state.getpatientid = (_action$
|
|
20212
|
+
state.getpatientid = (_action$payload39 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload39 !== void 0 ? _action$payload39 : {};
|
|
20138
20213
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_TYPEID.pending, function (state, action) {
|
|
20139
20214
|
state.getpatientid.loading = true;
|
|
20140
20215
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_TYPEID.rejected, function (state, action) {
|
|
20141
|
-
var _action$
|
|
20216
|
+
var _action$payload40;
|
|
20142
20217
|
|
|
20143
|
-
state.getpatientid = (_action$
|
|
20218
|
+
state.getpatientid = (_action$payload40 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload40 !== void 0 ? _action$payload40 : {};
|
|
20144
20219
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_HEADER.fulfilled, function (state, action) {
|
|
20145
|
-
var _action$
|
|
20220
|
+
var _action$payload41;
|
|
20146
20221
|
|
|
20147
|
-
state.getEncounterHeader = (_action$
|
|
20222
|
+
state.getEncounterHeader = (_action$payload41 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload41 !== void 0 ? _action$payload41 : {};
|
|
20148
20223
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_HEADER.pending, function (state, action) {
|
|
20149
20224
|
state.getEncounterHeader.loading = true;
|
|
20150
20225
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_HEADER.rejected, function (state, action) {
|
|
20151
|
-
var _action$
|
|
20226
|
+
var _action$payload42;
|
|
20152
20227
|
|
|
20153
|
-
state.getEncounterHeader = (_action$
|
|
20228
|
+
state.getEncounterHeader = (_action$payload42 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload42 !== void 0 ? _action$payload42 : {};
|
|
20154
20229
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_STATUS.fulfilled, function (state, action) {
|
|
20155
|
-
var _action$
|
|
20230
|
+
var _action$payload43;
|
|
20156
20231
|
|
|
20157
|
-
state.getEncounterStatus = (_action$
|
|
20232
|
+
state.getEncounterStatus = (_action$payload43 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload43 !== void 0 ? _action$payload43 : {};
|
|
20158
20233
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_STATUS.pending, function (state, action) {
|
|
20159
20234
|
state.getEncounterStatus.loading = true;
|
|
20160
20235
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_STATUS.rejected, function (state, action) {
|
|
20161
|
-
var _action$
|
|
20236
|
+
var _action$payload44;
|
|
20162
20237
|
|
|
20163
|
-
state.getEncounterStatus = (_action$
|
|
20238
|
+
state.getEncounterStatus = (_action$payload44 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload44 !== void 0 ? _action$payload44 : {};
|
|
20164
20239
|
}), _extraReducers$r)
|
|
20165
20240
|
});
|
|
20166
20241
|
var oraganizationRegisterPatientActions = {
|
|
@@ -20184,7 +20259,8 @@ var oraganizationRegisterPatientActions = {
|
|
|
20184
20259
|
GET_ENCOUNTER_STATUS: GET_ENCOUNTER_STATUS,
|
|
20185
20260
|
GET_PRACTITIONER_TYPE: GET_PRACTITIONER_TYPE,
|
|
20186
20261
|
GET_PRACTITIONER_NAME: GET_PRACTITIONER_NAME,
|
|
20187
|
-
GET_PATIENT__ID_BY_ID: GET_PATIENT__ID_BY_ID
|
|
20262
|
+
GET_PATIENT__ID_BY_ID: GET_PATIENT__ID_BY_ID,
|
|
20263
|
+
SOFT_DELETE_FINANCIAL_PAYER: SOFT_DELETE_FINANCIAL_PAYER
|
|
20188
20264
|
};
|
|
20189
20265
|
var OrganizationRegisterPatientApiSlice$1 = OrganizationRegisterPatientApiSlice.reducer;
|
|
20190
20266
|
|
|
@@ -24268,7 +24344,8 @@ var queries$9 = {
|
|
|
24268
24344
|
return {
|
|
24269
24345
|
db_name: dbName,
|
|
24270
24346
|
entity: "Diagnosis",
|
|
24271
|
-
filter:
|
|
24347
|
+
//filter: `Diagnosis.icdname LIKE '%${input_text}%' && (round(DATE_TIMESTAMP(DATE_ADD(DATE_NOW(), -1, 'day'))/1000)<=Diagnosis.effTo || Diagnosis.effTo==null)`,
|
|
24348
|
+
filter: "(like(Diagnosis.icdname,'%".concat(input_text, "%',true) || like(Diagnosis.icdcode,'%").concat(input_text, "%',true)) && (round(DATE_TIMESTAMP(DATE_ADD(DATE_NOW(), -1, 'day'))/1000)<=Diagnosis.effTo || Diagnosis.effTo==null) && Diagnosis.activestatus==true"),
|
|
24272
24349
|
return_fields: "{_id:Diagnosis._id,icdcode:Diagnosis.icdcode,icdname:Diagnosis.icdname}",
|
|
24273
24350
|
sort: "Diagnosis.icdname"
|
|
24274
24351
|
};
|
|
@@ -24536,11 +24613,9 @@ var DIAGNOSIS_MASTERS = createAsyncThunk("DiagnosisMasterSlice/diagnosis", /*#__
|
|
|
24536
24613
|
data = _context.sent;
|
|
24537
24614
|
arr = [];
|
|
24538
24615
|
data.result.map(function (val) {
|
|
24539
|
-
var _val$icdname;
|
|
24540
|
-
|
|
24541
24616
|
arr.push({
|
|
24542
24617
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
24543
|
-
label: (
|
|
24618
|
+
label: (val === null || val === void 0 ? void 0 : val.icdcode) && (val === null || val === void 0 ? void 0 : val.icdname) ? (val === null || val === void 0 ? void 0 : val.icdcode) + " - " + (val === null || val === void 0 ? void 0 : val.icdname) : ""
|
|
24544
24619
|
});
|
|
24545
24620
|
});
|
|
24546
24621
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -24588,11 +24663,11 @@ var DIAGNOSIS_MASTERS_VALUE = createAsyncThunk("DiagnosisMasterSlice/diagnosis_v
|
|
|
24588
24663
|
data = _context2.sent;
|
|
24589
24664
|
arr = [];
|
|
24590
24665
|
data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (val) {
|
|
24591
|
-
var _val$
|
|
24666
|
+
var _val$icdname;
|
|
24592
24667
|
|
|
24593
24668
|
arr.push({
|
|
24594
24669
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
24595
|
-
label: (_val$
|
|
24670
|
+
label: (_val$icdname = val === null || val === void 0 ? void 0 : val.icdname) !== null && _val$icdname !== void 0 ? _val$icdname : ""
|
|
24596
24671
|
});
|
|
24597
24672
|
});
|
|
24598
24673
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -45986,7 +46061,7 @@ var tableData = function tableData(patientId, encounterId) {
|
|
|
45986
46061
|
db_name: dbName,
|
|
45987
46062
|
entity: "RCM_PatientChargeTrx",
|
|
45988
46063
|
filter: "RCM_PatientChargeTrx.patientid=='".concat(patientId, "' && RCM_PatientChargeTrx.encounterid=='").concat(encounterId, "' && RCM_PatientChargeTrx.activestatus==true"),
|
|
45989
|
-
return_fields: "merge(RCM_PatientChargeTrx,{service:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCode:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercatalog:false,servicedesc:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).ShortDesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).shortdesc:false,orderref:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).prescriptionId:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).order_Id:false,ordcatOrdrugclass:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCategory).shortdesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercategory).ordercategory:false,chargeuom:document(RCM_PatientChargeTrx.chargeuom).UOM},{orderdatetime:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).PrescriptionDate:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).orderDateTime:false})"
|
|
46064
|
+
return_fields: "merge(RCM_PatientChargeTrx,{chargestatus:contains(RCM_PatientChargeTrx.chargestatus,'CodingMaster')?document(RCM_PatientChargeTrx.chargestatus).display:contains(RCM_PatientChargeTrx.chargestatus,'CodeableConceptMaster')?document(document(RCM_PatientChargeTrx.chargestatus).coding)[0].display:''},{service:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCode:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercatalog:false,servicedesc:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).ShortDesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).shortdesc:false,orderref:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).prescriptionId:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).order_Id:false,ordcatOrdrugclass:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCategory).shortdesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercategory).ordercategory:false,chargeuom:document(RCM_PatientChargeTrx.chargeuom).UOM},{orderdatetime:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).PrescriptionDate:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).orderDateTime:false})"
|
|
45990
46065
|
};
|
|
45991
46066
|
};
|
|
45992
46067
|
var searchCodeDesc = function searchCodeDesc(patientId, encounterId, search) {
|
|
@@ -45994,7 +46069,7 @@ var searchCodeDesc = function searchCodeDesc(patientId, encounterId, search) {
|
|
|
45994
46069
|
db_name: "primarycare",
|
|
45995
46070
|
entity: "RCM_PatientChargeTrx",
|
|
45996
46071
|
filter: "RCM_PatientChargeTrx.patientid=='".concat(patientId, "' && RCM_PatientChargeTrx.encounterid=='").concat(encounterId, "' && RCM_PatientChargeTrx.activestatus==true && (like(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).ShortDesc,'%").concat(search, "%',true) || like(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCode,'%").concat(search, "%',true) || like(document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercatalog,'%").concat(search, "%',true) ||like(document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).shortdesc,'%").concat(search, "%',true)) && (false==true ? RCM_PatientChargeTrx.billstatus == false: RCM_PatientChargeTrx.billstatus == RCM_PatientChargeTrx.billstatus)"),
|
|
45997
|
-
return_fields: "merge(RCM_PatientChargeTrx,{service:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCode:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercatalog:false,servicedesc:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).ShortDesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).shortdesc:false,orderref:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).prescriptionId:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).order_Id:false,
|
|
46072
|
+
return_fields: "merge(RCM_PatientChargeTrx,{chargestatus:contains(RCM_PatientChargeTrx.chargestatus,'CodingMaster')?document(RCM_PatientChargeTrx.chargestatus).display:contains(RCM_PatientChargeTrx.chargestatus,'CodeableConceptMaster')?document(document(RCM_PatientChargeTrx.chargestatus).coding)[0].display:''},{service:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCode:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercatalog:false,servicedesc:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).ShortDesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).shortdesc:false,orderref:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).prescriptionId:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).order_Id:false,ordcatOrdrugclass:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCategory).shortdesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercategory).ordercategory:false,chargeuom:document(RCM_PatientChargeTrx.chargeuom).UOM},{orderdatetime:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).PrescriptionDate:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).orderDateTime:false})"
|
|
45998
46073
|
};
|
|
45999
46074
|
};
|
|
46000
46075
|
var dropDown = {
|
|
@@ -46079,7 +46154,7 @@ var saveBill = {
|
|
|
46079
46154
|
totgrossamt: billHeaderSave.totgrossamt,
|
|
46080
46155
|
totdiscamt: billHeaderSave.totdiscamt,
|
|
46081
46156
|
totnetamt: billHeaderSave.totnetamt,
|
|
46082
|
-
totpatientshare: billHeaderSave.totpatientshare,
|
|
46157
|
+
totpatientshare: Number(billHeaderSave.totpatientshare),
|
|
46083
46158
|
totpayershare: billHeaderSave.totpayershare,
|
|
46084
46159
|
billhstatus: billHeaderSave.billhstatus,
|
|
46085
46160
|
payerid: billHeaderSave === null || billHeaderSave === void 0 ? void 0 : billHeaderSave.payerid
|
|
@@ -46110,8 +46185,8 @@ var saveBill = {
|
|
|
46110
46185
|
billhdrid: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.billhdrid,
|
|
46111
46186
|
receiptno: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.receiptno,
|
|
46112
46187
|
receiptdate: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.receiptdate,
|
|
46113
|
-
billamt: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.billamt,
|
|
46114
|
-
paidamt: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.paidamt,
|
|
46188
|
+
billamt: Number(paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.billamt),
|
|
46189
|
+
paidamt: Number(paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.paidamt),
|
|
46115
46190
|
balamt: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.balamt,
|
|
46116
46191
|
paymentdtls: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.paymentdtls,
|
|
46117
46192
|
settlenow: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.settlenow,
|
|
@@ -46138,6 +46213,14 @@ var saveBill = {
|
|
|
46138
46213
|
};
|
|
46139
46214
|
}
|
|
46140
46215
|
};
|
|
46216
|
+
var billRounding = function billRounding(orgId) {
|
|
46217
|
+
return {
|
|
46218
|
+
db_name: "primarycare",
|
|
46219
|
+
entity: "EntityParametersSetup",
|
|
46220
|
+
filter: "EntityParametersSetup.entityid=='".concat(orgId, "' && document(EntityParametersSetup.parameterid).code=='BILLROUNDDECVAL' && EntityParametersSetup.activestatus==true"),
|
|
46221
|
+
return_fields: "unset(EntityParametersSetup,'createdby','createddate','updatedby','updatedate')"
|
|
46222
|
+
};
|
|
46223
|
+
};
|
|
46141
46224
|
|
|
46142
46225
|
var makeName = function makeName() {
|
|
46143
46226
|
var _prefix$, _prefix$$coding, _prefix$$coding$, _prefix$coding, _prefix$coding$, _prefix$2, _suffix$, _suffix$$coding, _suffix$$coding$, _suffix$coding, _suffix$coding$, _suffix$2;
|
|
@@ -46158,12 +46241,16 @@ var makeName = function makeName() {
|
|
|
46158
46241
|
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(family && family + " ").concat(suffixVal && suffixVal);
|
|
46159
46242
|
};
|
|
46160
46243
|
|
|
46161
|
-
var createDate = function createDate(date) {
|
|
46162
|
-
|
|
46244
|
+
var createDate = function createDate(date, format) {
|
|
46245
|
+
if (format) {
|
|
46246
|
+
return moment$1.unix(date).format("".concat(format));
|
|
46247
|
+
} else {
|
|
46248
|
+
return moment$1.unix(date).format("DD/MM/YYYY HH:mm");
|
|
46249
|
+
}
|
|
46163
46250
|
};
|
|
46164
46251
|
|
|
46165
46252
|
var constructReciept = function constructReciept(data) {
|
|
46166
|
-
var _data$encounterid, _data$encounterid$Org, _data$encounterid2, _data$encounterid2$Or, _data$encounterid3, _data$encounterid3$Or, _data$encounterid4, _data$encounterid4$Or, _data$encounterid4$Or2, _data$encounterid4$Or3, _data$encounterid5, _data$encounterid5$Or, _data$encounterid5$Or2, _data$encounterid5$Or3, _data$patientid, _data$patientid2, _data$patientid3, _data$patientid3$gend, _data$patientid4, _data$encounterid6, _data$encounterid7, _data$encounterid8, _data$encounterid8$pr, _data$encounterid8$pr2, _data$encounterid8$pr3, _data$encounterid9, _data$encounterid9$pr, _data$encounterid9$pr2, _data$encounterid10, _data$encounterid10$p, _data$encounterid10$p2, _data$payerid, _data$totgrossamt, _data$totdiscamt, _data$totnetamt, _data$totpatientshare, _data$totpayershare, _data$
|
|
46253
|
+
var _data$encounterid, _data$encounterid$Org, _data$encounterid2, _data$encounterid2$Or, _data$encounterid3, _data$encounterid3$Or, _data$encounterid4, _data$encounterid4$Or, _data$encounterid4$Or2, _data$encounterid4$Or3, _data$encounterid5, _data$encounterid5$Or, _data$encounterid5$Or2, _data$encounterid5$Or3, _data$patientid, _data$patientid2, _data$patientid3, _data$patientid3$gend, _data$patientid4, _data$encounterid6, _data$encounterid7, _data$encounterid8, _data$encounterid8$pr, _data$encounterid8$pr2, _data$encounterid8$pr3, _data$encounterid9, _data$encounterid9$pr, _data$encounterid9$pr2, _data$encounterid10, _data$encounterid10$p, _data$encounterid10$p2, _data$payerid, _data$paymentdtls, _data$paymentdtls$, _data$paymentdtls2, _data$paymentdtls2$, _data$paymentdtls3, _data$paymentdtls3$, _data$totgrossamt, _data$totdiscamt, _data$totnetamt, _data$totpatientshare, _data$totpayershare, _data$paymentdtls4, _data$paymentdtls4$, _data$paymentdtls4$$b, _data$paymentdtls5, _data$paymentdtls5$, _data$paymentdtls5$$b, _data$paymentdtls6, _data$paymentdtls6$, _data$paymentdtls6$$p, _data$glNo, _data$glDate, _data$guarantor, _data$plan, _data$sponsor;
|
|
46167
46254
|
|
|
46168
46255
|
debugger;
|
|
46169
46256
|
var pinCode = data === null || data === void 0 ? void 0 : (_data$encounterid = data.encounterid) === null || _data$encounterid === void 0 ? void 0 : (_data$encounterid$Org = _data$encounterid.Organization_id) === null || _data$encounterid$Org === void 0 ? void 0 : _data$encounterid$Org.address;
|
|
@@ -46191,6 +46278,8 @@ var constructReciept = function constructReciept(data) {
|
|
|
46191
46278
|
billNo: data === null || data === void 0 ? void 0 : data.billno,
|
|
46192
46279
|
billdate: createDate(data === null || data === void 0 ? void 0 : data.billdate),
|
|
46193
46280
|
payerid: (_data$payerid = data === null || data === void 0 ? void 0 : data.payerid) !== null && _data$payerid !== void 0 ? _data$payerid : "-",
|
|
46281
|
+
recieptNo: data === null || data === void 0 ? void 0 : (_data$paymentdtls = data.paymentdtls) === null || _data$paymentdtls === void 0 ? void 0 : (_data$paymentdtls$ = _data$paymentdtls[0]) === null || _data$paymentdtls$ === void 0 ? void 0 : _data$paymentdtls$.receiptno,
|
|
46282
|
+
recieptDate: createDate(data === null || data === void 0 ? void 0 : (_data$paymentdtls2 = data.paymentdtls) === null || _data$paymentdtls2 === void 0 ? void 0 : (_data$paymentdtls2$ = _data$paymentdtls2[0]) === null || _data$paymentdtls2$ === void 0 ? void 0 : _data$paymentdtls2$.receiptdate, "DD-MMM-YY"),
|
|
46194
46283
|
billDetails: data === null || data === void 0 ? void 0 : data.billdetails.map(function (val) {
|
|
46195
46284
|
var _val$patchargetrxid, _val$patchargetrxid2, _val$patchargetrxid2$, _val$patchargetrxid3, _val$grossamt, _val$discamt, _val$netamt, _val$patientshare, _val$payershare;
|
|
46196
46285
|
|
|
@@ -46205,14 +46294,15 @@ var constructReciept = function constructReciept(data) {
|
|
|
46205
46294
|
creditShare: val === null || val === void 0 ? void 0 : (_val$payershare = val.payershare) === null || _val$payershare === void 0 ? void 0 : _val$payershare.toFixed(2)
|
|
46206
46295
|
};
|
|
46207
46296
|
}),
|
|
46297
|
+
roundoffamt: data === null || data === void 0 ? void 0 : (_data$paymentdtls3 = data.paymentdtls) === null || _data$paymentdtls3 === void 0 ? void 0 : (_data$paymentdtls3$ = _data$paymentdtls3[0]) === null || _data$paymentdtls3$ === void 0 ? void 0 : _data$paymentdtls3$.roundoffamt,
|
|
46208
46298
|
totgrossamt: data === null || data === void 0 ? void 0 : (_data$totgrossamt = data.totgrossamt) === null || _data$totgrossamt === void 0 ? void 0 : _data$totgrossamt.toFixed(2),
|
|
46209
46299
|
totdiscamt: data === null || data === void 0 ? void 0 : (_data$totdiscamt = data.totdiscamt) === null || _data$totdiscamt === void 0 ? void 0 : _data$totdiscamt.toFixed(2),
|
|
46210
46300
|
totnetamt: data === null || data === void 0 ? void 0 : (_data$totnetamt = data.totnetamt) === null || _data$totnetamt === void 0 ? void 0 : _data$totnetamt.toFixed(2),
|
|
46211
46301
|
totpatientshare: data === null || data === void 0 ? void 0 : (_data$totpatientshare = data.totpatientshare) === null || _data$totpatientshare === void 0 ? void 0 : _data$totpatientshare.toFixed(2),
|
|
46212
46302
|
totpayershare: data === null || data === void 0 ? void 0 : (_data$totpayershare = data.totpayershare) === null || _data$totpayershare === void 0 ? void 0 : _data$totpayershare.toFixed(2),
|
|
46213
|
-
billamt: data === null || data === void 0 ? void 0 : (_data$
|
|
46214
|
-
balamt: data === null || data === void 0 ? void 0 : (_data$
|
|
46215
|
-
paidamt: data === null || data === void 0 ? void 0 : (_data$
|
|
46303
|
+
billamt: data === null || data === void 0 ? void 0 : (_data$paymentdtls4 = data.paymentdtls) === null || _data$paymentdtls4 === void 0 ? void 0 : (_data$paymentdtls4$ = _data$paymentdtls4[0]) === null || _data$paymentdtls4$ === void 0 ? void 0 : (_data$paymentdtls4$$b = _data$paymentdtls4$.billamt) === null || _data$paymentdtls4$$b === void 0 ? void 0 : _data$paymentdtls4$$b.toFixed(2),
|
|
46304
|
+
balamt: data === null || data === void 0 ? void 0 : (_data$paymentdtls5 = data.paymentdtls) === null || _data$paymentdtls5 === void 0 ? void 0 : (_data$paymentdtls5$ = _data$paymentdtls5[0]) === null || _data$paymentdtls5$ === void 0 ? void 0 : (_data$paymentdtls5$$b = _data$paymentdtls5$.balamt) === null || _data$paymentdtls5$$b === void 0 ? void 0 : _data$paymentdtls5$$b.toFixed(2),
|
|
46305
|
+
paidamt: data === null || data === void 0 ? void 0 : (_data$paymentdtls6 = data.paymentdtls) === null || _data$paymentdtls6 === void 0 ? void 0 : (_data$paymentdtls6$ = _data$paymentdtls6[0]) === null || _data$paymentdtls6$ === void 0 ? void 0 : (_data$paymentdtls6$$p = _data$paymentdtls6$.paidamt) === null || _data$paymentdtls6$$p === void 0 ? void 0 : _data$paymentdtls6$$p.toFixed(2),
|
|
46216
46306
|
glNo: (_data$glNo = data === null || data === void 0 ? void 0 : data.glNo) !== null && _data$glNo !== void 0 ? _data$glNo : "-",
|
|
46217
46307
|
glDate: (_data$glDate = data === null || data === void 0 ? void 0 : data.glDate) !== null && _data$glDate !== void 0 ? _data$glDate : "-",
|
|
46218
46308
|
guarantor: (_data$guarantor = data === null || data === void 0 ? void 0 : data.guarantor) !== null && _data$guarantor !== void 0 ? _data$guarantor : "-",
|
|
@@ -47034,6 +47124,47 @@ var BILL_RECEIPT_READ = createAsyncThunk("billSettlementSlice/billReceiptRead",
|
|
|
47034
47124
|
}
|
|
47035
47125
|
}, _callee18, null, [[3, 14]]);
|
|
47036
47126
|
})));
|
|
47127
|
+
var BILL_ROUND_OFF = createAsyncThunk("billSettlementSlice/billRoundOff", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
|
|
47128
|
+
var payload,
|
|
47129
|
+
_ref39,
|
|
47130
|
+
rejectWithValue,
|
|
47131
|
+
orgId,
|
|
47132
|
+
data,
|
|
47133
|
+
_args19 = arguments;
|
|
47134
|
+
|
|
47135
|
+
return regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
47136
|
+
while (1) {
|
|
47137
|
+
switch (_context19.prev = _context19.next) {
|
|
47138
|
+
case 0:
|
|
47139
|
+
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
47140
|
+
_ref39 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref39.rejectWithValue;
|
|
47141
|
+
_context19.prev = 2;
|
|
47142
|
+
orgId = payload.orgId;
|
|
47143
|
+
_context19.next = 6;
|
|
47144
|
+
return fetchData$3({
|
|
47145
|
+
body: JSON.stringify(billRounding(orgId))
|
|
47146
|
+
}, __readDocumentUrl__);
|
|
47147
|
+
|
|
47148
|
+
case 6:
|
|
47149
|
+
data = _context19.sent;
|
|
47150
|
+
return _context19.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
47151
|
+
data: data
|
|
47152
|
+
}));
|
|
47153
|
+
|
|
47154
|
+
case 10:
|
|
47155
|
+
_context19.prev = 10;
|
|
47156
|
+
_context19.t0 = _context19["catch"](2);
|
|
47157
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
47158
|
+
message: _context19.t0.message
|
|
47159
|
+
})));
|
|
47160
|
+
|
|
47161
|
+
case 13:
|
|
47162
|
+
case "end":
|
|
47163
|
+
return _context19.stop();
|
|
47164
|
+
}
|
|
47165
|
+
}
|
|
47166
|
+
}, _callee19, null, [[2, 10]]);
|
|
47167
|
+
})));
|
|
47037
47168
|
var billSettlementSlice = createSlice({
|
|
47038
47169
|
name: "billSettlementSlice",
|
|
47039
47170
|
initialState: {
|
|
@@ -47054,7 +47185,8 @@ var billSettlementSlice = createSlice({
|
|
|
47054
47185
|
payment_save: _objectSpread2({}, defaultState.Info),
|
|
47055
47186
|
payment_dropDown: _objectSpread2({}, defaultState.Info),
|
|
47056
47187
|
billing_status_save: _objectSpread2({}, defaultState.Info),
|
|
47057
|
-
bill_reciept_read: _objectSpread2({}, defaultState.Info)
|
|
47188
|
+
bill_reciept_read: _objectSpread2({}, defaultState.Info),
|
|
47189
|
+
bill_roundoff: _objectSpread2({}, defaultState.Info)
|
|
47058
47190
|
},
|
|
47059
47191
|
extraReducers: (_extraReducers$3 = {}, _defineProperty(_extraReducers$3, SEARCH_VIA_NAME.fulfilled, function (state, action) {
|
|
47060
47192
|
var _action$payload;
|
|
@@ -47236,6 +47368,16 @@ var billSettlementSlice = createSlice({
|
|
|
47236
47368
|
var _action$payload36;
|
|
47237
47369
|
|
|
47238
47370
|
state.bill_reciept_read = (_action$payload36 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload36 !== void 0 ? _action$payload36 : {};
|
|
47371
|
+
}), _defineProperty(_extraReducers$3, BILL_ROUND_OFF.fulfilled, function (state, action) {
|
|
47372
|
+
var _action$payload37;
|
|
47373
|
+
|
|
47374
|
+
state.bill_roundoff = (_action$payload37 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload37 !== void 0 ? _action$payload37 : {};
|
|
47375
|
+
}), _defineProperty(_extraReducers$3, BILL_ROUND_OFF.pending, function (state, action) {
|
|
47376
|
+
state.bill_roundoff.loading = true;
|
|
47377
|
+
}), _defineProperty(_extraReducers$3, BILL_ROUND_OFF.rejected, function (state, action) {
|
|
47378
|
+
var _action$payload38;
|
|
47379
|
+
|
|
47380
|
+
state.bill_roundoff = (_action$payload38 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload38 !== void 0 ? _action$payload38 : {};
|
|
47239
47381
|
}), _extraReducers$3)
|
|
47240
47382
|
});
|
|
47241
47383
|
var billSettlementActions = {
|
|
@@ -47256,7 +47398,8 @@ var billSettlementActions = {
|
|
|
47256
47398
|
PAYMENT_SAVE: PAYMENT_SAVE,
|
|
47257
47399
|
PAYMENT_DROPDOWN: PAYMENT_DROPDOWN,
|
|
47258
47400
|
BILL_STATUS_SAVE: BILL_STATUS_SAVE,
|
|
47259
|
-
BILL_RECEIPT_READ: BILL_RECEIPT_READ
|
|
47401
|
+
BILL_RECEIPT_READ: BILL_RECEIPT_READ,
|
|
47402
|
+
BILL_ROUND_OFF: BILL_ROUND_OFF
|
|
47260
47403
|
};
|
|
47261
47404
|
var billSettlementSlice$1 = billSettlementSlice.reducer;
|
|
47262
47405
|
|