primarycare-binder 1.1.123 → 1.1.125
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 +369 -221
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8112,7 +8112,7 @@ var queries$b = {
|
|
|
8112
8112
|
},
|
|
8113
8113
|
getPatientByMRN: {
|
|
8114
8114
|
query: function query(id) {
|
|
8115
|
-
return "Patient.alias=='".concat(id, "' && Person.Id==Patient.personID LET name=(FOR nam IN Person.name LET period=(FOR per IN TO_ARRAY(DOCUMENT(nam).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(nam),{period:period},{use:document(TO_ARRAY(DOCUMENT(nam).use))},{suffix:document(TO_ARRAY(DOCUMENT(nam).suffix))},{prefix:document(TO_ARRAY(DOCUMENT(nam).prefix))})) LET telecom=(FOR tel IN Person.telecom LET period=(FOR per IN TO_ARRAY(DOCUMENT(tel).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(tel),{period:period})) LET photo=(FOR pht IN Person.photo RETURN DOCUMENT(pht))");
|
|
8115
|
+
return "Patient.alias=='".concat(id, "' && Person.Id==Patient.personID LET name=(FOR nam IN Person.name LET period=(FOR per IN TO_ARRAY(DOCUMENT(nam).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(nam),{period:period},{use:document(TO_ARRAY(DOCUMENT(nam).use))},{suffix:document(TO_ARRAY(DOCUMENT(nam).suffix))},{prefix:document(TO_ARRAY(DOCUMENT(nam).prefix))})) LET telecom=(FOR tel IN Person.telecom LET period=(FOR per IN TO_ARRAY(DOCUMENT(tel).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(tel),{period:period})) LET photo=(FOR pht IN TO_ARRAY(Person.photo) RETURN DOCUMENT(pht))");
|
|
8116
8116
|
},
|
|
8117
8117
|
returnFields: "MERGE(Person,{name:name,telecom:telecom,photo:photo,Patient:merge(Patient,{name:(for na in document(Patient.name) return merge(na,{use:document(na.use)},{prefix:document(na.prefix)},{suffix:document(na.suffix)}))},{photo:document(Patient.photo)})})"
|
|
8118
8118
|
},
|
|
@@ -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");
|
|
@@ -10678,7 +10679,7 @@ var PATIENT_DETAILS_READ = createAsyncThunk("patientReducer/readPatientDetails",
|
|
|
10678
10679
|
db_name: dbName,
|
|
10679
10680
|
entity: "Patient",
|
|
10680
10681
|
filter: "Patient._key=='".concat(key, "' && Patient.activestatus==true"),
|
|
10681
|
-
return_fields: "merge(Patient,{telecom:(for doc in ContactPointMaster filter doc._id in Patient.telecom return merge(doc,{system:(document(doc.system)),use:(document(doc.use)),valueprefix:(document(doc.valueprefix)),rank:(document(doc.rank))}))},{name:(for doc in HumanNameMaster filter doc._id in Patient.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))}))},{gender:document(Patient.gender)},{address:(for doc in AddressMaster filter doc._id in Patient.address return merge(doc,{use:(document(doc.use)),city:(document(doc.city)),country:(document(doc.
|
|
10682
|
+
return_fields: "merge(Patient,{telecom:(for doc in ContactPointMaster filter doc._id in Patient.telecom return merge(doc,{system:(document(doc.system)),use:(document(doc.use)),valueprefix:(document(doc.valueprefix)),rank:(document(doc.rank))}))},{name:(for doc in HumanNameMaster filter doc._id in Patient.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))}))},{gender:document(Patient.gender)},{address:(for doc in AddressMaster filter doc._id in Patient.address return merge(doc,{use:(document(doc.use)),city:(document(doc.city)),country:(document(doc.country)),district:(document(doc.district)), Type:(document(doc.Type)),postalCode:(document(doc.postalCode)),state:(document(doc.state))}))},{maritalstatus:document(Patient.maritalstatus)},{photo:document(Patient.photo)},{OrgID:document(Patient.OrgID)},{nationality:document(Patient.nationality)},{activereason:document(Patient.activereason)},{isdeceased:document(Patient.isdeceased)},{deceasedreason:document(Patient.deceasedreason)},{identifier:(for doc in IdentifierMaster filter doc._id in Patient.identifier return merge(doc,{user:(document(doc.user)), assigner:(document(doc.assigner)), period: (document(doc.period))}))},{communicationLanguage:document(Patient.communicationLanguage)},{birthGendercode:document(Patient.birthGendercode)},{citizenshipCode:document(Patient.citizenshipCode)},{disabilityCode:document(Patient.disabilityCode)},{genderIdentitycode:document(Patient.genderIdentitycode)},{religionCode:document(Patient.religionCode)},{raceCode:document(Patient.raceCode)},{ethinicityCode:document(Patient.ethinicityCode)},{patientTypecode:document(Patient.patientTypecode)},{bloodGroup:document(Patient.bloodGroup)},{attachment:document(Patient.attachment)},{age_type:document(Patient.age_type)},{primarycare_Prac:document(Patient.primarycare_Prac)},{specialArng_code:document(Patient.specialArng_code)},{specialCourtesy_code: document(Patient.specialCourtesy_code)})"
|
|
10682
10683
|
};
|
|
10683
10684
|
_context5.next = 7;
|
|
10684
10685
|
return fetchData$3({
|
|
@@ -18075,8 +18076,13 @@ var READ_PATIENT = createAsyncThunk("personApiSlice/deletePerson", /*#__PURE__*/
|
|
|
18075
18076
|
body = {
|
|
18076
18077
|
db_name: dbName,
|
|
18077
18078
|
entity: "Patient,Person",
|
|
18078
|
-
filter:
|
|
18079
|
-
|
|
18079
|
+
filter: {
|
|
18080
|
+
"Patient": "Patient.alias=='".concat(mrnnumber, "' && Patient.activestatus==true"),
|
|
18081
|
+
"Person": "Person.Id==Patient.personID && Person.activestatus==true LET name=(FOR nam IN Person.name LET period=(FOR per IN TO_ARRAY(DOCUMENT(nam).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(nam),{period:period},{use:document(TO_ARRAY(DOCUMENT(nam).use))},{suffix:document(TO_ARRAY(DOCUMENT(nam).suffix))},{prefix:document(TO_ARRAY(DOCUMENT(nam).prefix))})) LET telecom=(FOR tel IN to_Array(Person.telecom) LET period=(FOR per IN TO_ARRAY(DOCUMENT(tel).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(tel),{period:period})) LET photo=(FOR pht IN TO_ARRAY(Person.photo) RETURN DOCUMENT(pht))"
|
|
18082
|
+
},
|
|
18083
|
+
// queries["getPatientByMRN"].query(mrnnumber),
|
|
18084
|
+
return_fields: "MERGE(Person,{name:name,telecom:telecom,photo:photo,Patient:merge(Patient,{name:(for na in document(Patient.name) return merge(na,{use:document(na.use)},{prefix:document(na.prefix)},{suffix:document(na.suffix)}))},{photo:document(Patient.photo)})})" // queries["getPatientByMRN"].returnFields,
|
|
18085
|
+
|
|
18080
18086
|
};
|
|
18081
18087
|
_context9.next = 7;
|
|
18082
18088
|
return fetchData$3({
|
|
@@ -18899,13 +18905,26 @@ var ORGANIZATION_FINANCIAL_REGISTRATION = createAsyncThunk("OrganizationRegister
|
|
|
18899
18905
|
case 7:
|
|
18900
18906
|
Del_data = _context5.sent;
|
|
18901
18907
|
body = payloaddata.map(function (val, i) {
|
|
18902
|
-
|
|
18903
|
-
|
|
18904
|
-
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
|
|
18908
|
-
|
|
18908
|
+
if (val === null || val === void 0 ? void 0 : val._key) {
|
|
18909
|
+
return {
|
|
18910
|
+
db_name: dbName,
|
|
18911
|
+
entity: "Account",
|
|
18912
|
+
is_metadata: true,
|
|
18913
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
18914
|
+
doc: val,
|
|
18915
|
+
filter: {
|
|
18916
|
+
_key: val === null || val === void 0 ? void 0 : val._key
|
|
18917
|
+
}
|
|
18918
|
+
};
|
|
18919
|
+
} else {
|
|
18920
|
+
return {
|
|
18921
|
+
db_name: dbName,
|
|
18922
|
+
entity: "Account",
|
|
18923
|
+
is_metadata: true,
|
|
18924
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
18925
|
+
doc: val
|
|
18926
|
+
};
|
|
18927
|
+
}
|
|
18909
18928
|
});
|
|
18910
18929
|
_context5.next = 11;
|
|
18911
18930
|
return fetchData$3({
|
|
@@ -19200,6 +19219,8 @@ var GET_PRACTITIONER_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlic
|
|
|
19200
19219
|
var payload,
|
|
19201
19220
|
_ref20,
|
|
19202
19221
|
rejectWithValue,
|
|
19222
|
+
_payload$facilityId,
|
|
19223
|
+
facilityId,
|
|
19203
19224
|
_payload$specialityID,
|
|
19204
19225
|
specialityID,
|
|
19205
19226
|
_payload$practitioner,
|
|
@@ -19216,11 +19237,11 @@ var GET_PRACTITIONER_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlic
|
|
|
19216
19237
|
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
19217
19238
|
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
19218
19239
|
_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;
|
|
19240
|
+
_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
19241
|
body = {
|
|
19221
19242
|
db_name: dbName,
|
|
19222
19243
|
entity: "Practitioner",
|
|
19223
|
-
filter: queries$b["codablemasterPractitionerName"].query(specialityID, practitionerType),
|
|
19244
|
+
filter: queries$b["codablemasterPractitionerName"].query(specialityID, practitionerType, facilityId),
|
|
19224
19245
|
return_fields: queries$b["codablemasterPractitionerName"].returnFields
|
|
19225
19246
|
};
|
|
19226
19247
|
_context10.next = 7;
|
|
@@ -19538,16 +19559,14 @@ var GET_FINANCIAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getfin
|
|
|
19538
19559
|
}
|
|
19539
19560
|
}, _callee15, null, [[2, 13]]);
|
|
19540
19561
|
})));
|
|
19541
|
-
var
|
|
19562
|
+
var SOFT_DELETE_FINANCIAL_PAYER = createAsyncThunk("OrganizationRegisterPatientApiSlice/softDeleteFinancialPayer", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
|
|
19542
19563
|
var payload,
|
|
19543
19564
|
_ref32,
|
|
19544
19565
|
rejectWithValue,
|
|
19545
|
-
_payload$
|
|
19546
|
-
|
|
19547
|
-
encounterId,
|
|
19566
|
+
_payload$_key,
|
|
19567
|
+
_key,
|
|
19548
19568
|
body,
|
|
19549
19569
|
data,
|
|
19550
|
-
returnData,
|
|
19551
19570
|
_args16 = arguments;
|
|
19552
19571
|
|
|
19553
19572
|
return regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
@@ -19557,6 +19576,56 @@ var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice
|
|
|
19557
19576
|
payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
|
|
19558
19577
|
_ref32 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
19559
19578
|
_context16.prev = 2;
|
|
19579
|
+
_payload$_key = payload._key, _key = _payload$_key === void 0 ? "" : _payload$_key;
|
|
19580
|
+
body = {
|
|
19581
|
+
db_name: dbName,
|
|
19582
|
+
entity: "Account",
|
|
19583
|
+
filter: "Account._key=='".concat(_key, "'")
|
|
19584
|
+
};
|
|
19585
|
+
_context16.next = 7;
|
|
19586
|
+
return fetchData$3({
|
|
19587
|
+
body: JSON.stringify(body)
|
|
19588
|
+
}, __Soft_Delete__);
|
|
19589
|
+
|
|
19590
|
+
case 7:
|
|
19591
|
+
data = _context16.sent;
|
|
19592
|
+
return _context16.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19593
|
+
data: data
|
|
19594
|
+
}));
|
|
19595
|
+
|
|
19596
|
+
case 11:
|
|
19597
|
+
_context16.prev = 11;
|
|
19598
|
+
_context16.t0 = _context16["catch"](2);
|
|
19599
|
+
return _context16.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19600
|
+
message: _context16.t0.message
|
|
19601
|
+
})));
|
|
19602
|
+
|
|
19603
|
+
case 14:
|
|
19604
|
+
case "end":
|
|
19605
|
+
return _context16.stop();
|
|
19606
|
+
}
|
|
19607
|
+
}
|
|
19608
|
+
}, _callee16, null, [[2, 11]]);
|
|
19609
|
+
})));
|
|
19610
|
+
var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterHeader", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {
|
|
19611
|
+
var payload,
|
|
19612
|
+
_ref34,
|
|
19613
|
+
rejectWithValue,
|
|
19614
|
+
_payload$patientId3,
|
|
19615
|
+
patientId,
|
|
19616
|
+
encounterId,
|
|
19617
|
+
body,
|
|
19618
|
+
data,
|
|
19619
|
+
returnData,
|
|
19620
|
+
_args17 = arguments;
|
|
19621
|
+
|
|
19622
|
+
return regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
19623
|
+
while (1) {
|
|
19624
|
+
switch (_context17.prev = _context17.next) {
|
|
19625
|
+
case 0:
|
|
19626
|
+
payload = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
|
|
19627
|
+
_ref34 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref34.rejectWithValue;
|
|
19628
|
+
_context17.prev = 2;
|
|
19560
19629
|
_payload$patientId3 = payload.patientId, patientId = _payload$patientId3 === void 0 ? "" : _payload$patientId3, encounterId = payload.encounterId;
|
|
19561
19630
|
body = {
|
|
19562
19631
|
db_name: dbName,
|
|
@@ -19565,40 +19634,40 @@ var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice
|
|
|
19565
19634
|
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
19635
|
sort: "Encounter.encounterdate desc"
|
|
19567
19636
|
};
|
|
19568
|
-
|
|
19637
|
+
_context17.next = 7;
|
|
19569
19638
|
return fetchData$3({
|
|
19570
19639
|
body: JSON.stringify(body)
|
|
19571
19640
|
}, __readDocumentUrl__);
|
|
19572
19641
|
|
|
19573
19642
|
case 7:
|
|
19574
|
-
data =
|
|
19643
|
+
data = _context17.sent;
|
|
19575
19644
|
returnData = [];
|
|
19576
19645
|
|
|
19577
19646
|
if (Array.isArray(data.result)) {
|
|
19578
19647
|
returnData = data.result;
|
|
19579
19648
|
}
|
|
19580
19649
|
|
|
19581
|
-
return
|
|
19650
|
+
return _context17.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19582
19651
|
data: returnData
|
|
19583
19652
|
}));
|
|
19584
19653
|
|
|
19585
19654
|
case 13:
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
return
|
|
19589
|
-
message:
|
|
19655
|
+
_context17.prev = 13;
|
|
19656
|
+
_context17.t0 = _context17["catch"](2);
|
|
19657
|
+
return _context17.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19658
|
+
message: _context17.t0.message
|
|
19590
19659
|
})));
|
|
19591
19660
|
|
|
19592
19661
|
case 16:
|
|
19593
19662
|
case "end":
|
|
19594
|
-
return
|
|
19663
|
+
return _context17.stop();
|
|
19595
19664
|
}
|
|
19596
19665
|
}
|
|
19597
|
-
},
|
|
19666
|
+
}, _callee17, null, [[2, 13]]);
|
|
19598
19667
|
})));
|
|
19599
|
-
var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getreferral", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19668
|
+
var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getreferral", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
|
19600
19669
|
var payload,
|
|
19601
|
-
|
|
19670
|
+
_ref36,
|
|
19602
19671
|
rejectWithValue,
|
|
19603
19672
|
_payload$patientid,
|
|
19604
19673
|
patientid,
|
|
@@ -19638,15 +19707,15 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19638
19707
|
_returnData15,
|
|
19639
19708
|
_returnData15$,
|
|
19640
19709
|
info,
|
|
19641
|
-
|
|
19710
|
+
_args18 = arguments;
|
|
19642
19711
|
|
|
19643
|
-
return regeneratorRuntime.wrap(function
|
|
19712
|
+
return regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
19644
19713
|
while (1) {
|
|
19645
|
-
switch (
|
|
19714
|
+
switch (_context18.prev = _context18.next) {
|
|
19646
19715
|
case 0:
|
|
19647
|
-
payload =
|
|
19648
|
-
|
|
19649
|
-
|
|
19716
|
+
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
19717
|
+
_ref36 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref36.rejectWithValue;
|
|
19718
|
+
_context18.prev = 2;
|
|
19650
19719
|
_payload$patientid = payload.patientid, patientid = _payload$patientid === void 0 ? "" : _payload$patientid, _payload$reffId = payload.reffId, reffId = _payload$reffId === void 0 ? "" : _payload$reffId;
|
|
19651
19720
|
body = {
|
|
19652
19721
|
db_name: dbName,
|
|
@@ -19654,13 +19723,13 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19654
19723
|
filter: queries$b["codablemasterGetReferral"].query(patientid, reffId),
|
|
19655
19724
|
return_fields: queries$b["codablemasterGetReferral"].returnFields
|
|
19656
19725
|
};
|
|
19657
|
-
|
|
19726
|
+
_context18.next = 7;
|
|
19658
19727
|
return fetchData$3({
|
|
19659
19728
|
body: JSON.stringify(body)
|
|
19660
19729
|
}, __readDocumentUrl__);
|
|
19661
19730
|
|
|
19662
19731
|
case 7:
|
|
19663
|
-
data =
|
|
19732
|
+
data = _context18.sent;
|
|
19664
19733
|
returnData = [];
|
|
19665
19734
|
|
|
19666
19735
|
if (Array.isArray(data.result)) {
|
|
@@ -19693,42 +19762,42 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19693
19762
|
returnData[0] = _objectSpread2(_objectSpread2({}, returnData[0]), info);
|
|
19694
19763
|
}
|
|
19695
19764
|
|
|
19696
|
-
return
|
|
19765
|
+
return _context18.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19697
19766
|
data: returnData
|
|
19698
19767
|
}));
|
|
19699
19768
|
|
|
19700
19769
|
case 13:
|
|
19701
|
-
|
|
19702
|
-
|
|
19703
|
-
return
|
|
19704
|
-
message:
|
|
19770
|
+
_context18.prev = 13;
|
|
19771
|
+
_context18.t0 = _context18["catch"](2);
|
|
19772
|
+
return _context18.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19773
|
+
message: _context18.t0.message
|
|
19705
19774
|
})));
|
|
19706
19775
|
|
|
19707
19776
|
case 16:
|
|
19708
19777
|
case "end":
|
|
19709
|
-
return
|
|
19778
|
+
return _context18.stop();
|
|
19710
19779
|
}
|
|
19711
19780
|
}
|
|
19712
|
-
},
|
|
19781
|
+
}, _callee18, null, [[2, 13]]);
|
|
19713
19782
|
})));
|
|
19714
|
-
var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSlice/getappointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19783
|
+
var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSlice/getappointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
|
|
19715
19784
|
var payload,
|
|
19716
|
-
|
|
19785
|
+
_ref38,
|
|
19717
19786
|
rejectWithValue,
|
|
19718
19787
|
_payload$appointmentI,
|
|
19719
19788
|
appointmentId,
|
|
19720
19789
|
body,
|
|
19721
19790
|
data,
|
|
19722
19791
|
returnData,
|
|
19723
|
-
|
|
19792
|
+
_args19 = arguments;
|
|
19724
19793
|
|
|
19725
|
-
return regeneratorRuntime.wrap(function
|
|
19794
|
+
return regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
19726
19795
|
while (1) {
|
|
19727
|
-
switch (
|
|
19796
|
+
switch (_context19.prev = _context19.next) {
|
|
19728
19797
|
case 0:
|
|
19729
|
-
payload =
|
|
19730
|
-
|
|
19731
|
-
|
|
19798
|
+
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
19799
|
+
_ref38 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref38.rejectWithValue;
|
|
19800
|
+
_context19.prev = 2;
|
|
19732
19801
|
_payload$appointmentI = payload.appointmentId, appointmentId = _payload$appointmentI === void 0 ? "" : _payload$appointmentI;
|
|
19733
19802
|
body = {
|
|
19734
19803
|
db_name: dbName,
|
|
@@ -19736,40 +19805,40 @@ var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSl
|
|
|
19736
19805
|
filter: queries$b["codablemasterGetAppointment"].query(appointmentId),
|
|
19737
19806
|
return_fields: queries$b["codablemasterGetAppointment"].returnFields
|
|
19738
19807
|
};
|
|
19739
|
-
|
|
19808
|
+
_context19.next = 7;
|
|
19740
19809
|
return fetchData$3({
|
|
19741
19810
|
body: JSON.stringify(body)
|
|
19742
19811
|
}, __readDocumentUrl__);
|
|
19743
19812
|
|
|
19744
19813
|
case 7:
|
|
19745
|
-
data =
|
|
19814
|
+
data = _context19.sent;
|
|
19746
19815
|
returnData = [];
|
|
19747
19816
|
|
|
19748
19817
|
if (Array.isArray(data.result)) {
|
|
19749
19818
|
returnData = data.result;
|
|
19750
19819
|
}
|
|
19751
19820
|
|
|
19752
|
-
return
|
|
19821
|
+
return _context19.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19753
19822
|
data: returnData
|
|
19754
19823
|
}));
|
|
19755
19824
|
|
|
19756
19825
|
case 13:
|
|
19757
|
-
|
|
19758
|
-
|
|
19759
|
-
return
|
|
19760
|
-
message:
|
|
19826
|
+
_context19.prev = 13;
|
|
19827
|
+
_context19.t0 = _context19["catch"](2);
|
|
19828
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19829
|
+
message: _context19.t0.message
|
|
19761
19830
|
})));
|
|
19762
19831
|
|
|
19763
19832
|
case 16:
|
|
19764
19833
|
case "end":
|
|
19765
|
-
return
|
|
19834
|
+
return _context19.stop();
|
|
19766
19835
|
}
|
|
19767
19836
|
}
|
|
19768
|
-
},
|
|
19837
|
+
}, _callee19, null, [[2, 13]]);
|
|
19769
19838
|
})));
|
|
19770
|
-
var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatientname", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19839
|
+
var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatientname", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20() {
|
|
19771
19840
|
var payload,
|
|
19772
|
-
|
|
19841
|
+
_ref40,
|
|
19773
19842
|
rejectWithValue,
|
|
19774
19843
|
_patientName$split,
|
|
19775
19844
|
_patientName$split2,
|
|
@@ -19782,15 +19851,15 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19782
19851
|
body,
|
|
19783
19852
|
data,
|
|
19784
19853
|
returnData,
|
|
19785
|
-
|
|
19854
|
+
_args20 = arguments;
|
|
19786
19855
|
|
|
19787
|
-
return regeneratorRuntime.wrap(function
|
|
19856
|
+
return regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
19788
19857
|
while (1) {
|
|
19789
|
-
switch (
|
|
19858
|
+
switch (_context20.prev = _context20.next) {
|
|
19790
19859
|
case 0:
|
|
19791
|
-
payload =
|
|
19792
|
-
|
|
19793
|
-
|
|
19860
|
+
payload = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};
|
|
19861
|
+
_ref40 = _args20.length > 1 ? _args20[1] : undefined, rejectWithValue = _ref40.rejectWithValue;
|
|
19862
|
+
_context20.prev = 2;
|
|
19794
19863
|
_payload$patientName = payload.patientName, patientName = _payload$patientName === void 0 ? "" : _payload$patientName;
|
|
19795
19864
|
firstName = (_patientName$split = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 1)) !== null && _patientName$split !== void 0 ? _patientName$split : "";
|
|
19796
19865
|
secondName = (_patientName$split2 = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 2)) !== null && _patientName$split2 !== void 0 ? _patientName$split2 : "";
|
|
@@ -19806,40 +19875,40 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19806
19875
|
}),
|
|
19807
19876
|
return_fields: queries$b["codablemasterGetPatientname"].returnFields
|
|
19808
19877
|
};
|
|
19809
|
-
|
|
19878
|
+
_context20.next = 11;
|
|
19810
19879
|
return fetchData$3({
|
|
19811
19880
|
body: JSON.stringify(body)
|
|
19812
19881
|
}, __readDocumentUrl__);
|
|
19813
19882
|
|
|
19814
19883
|
case 11:
|
|
19815
|
-
data =
|
|
19884
|
+
data = _context20.sent;
|
|
19816
19885
|
returnData = [];
|
|
19817
19886
|
|
|
19818
19887
|
if (Array.isArray(data.result)) {
|
|
19819
19888
|
returnData = data.result;
|
|
19820
19889
|
}
|
|
19821
19890
|
|
|
19822
|
-
return
|
|
19891
|
+
return _context20.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19823
19892
|
data: returnData
|
|
19824
19893
|
}));
|
|
19825
19894
|
|
|
19826
19895
|
case 17:
|
|
19827
|
-
|
|
19828
|
-
|
|
19829
|
-
return
|
|
19830
|
-
message:
|
|
19896
|
+
_context20.prev = 17;
|
|
19897
|
+
_context20.t0 = _context20["catch"](2);
|
|
19898
|
+
return _context20.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19899
|
+
message: _context20.t0.message
|
|
19831
19900
|
})));
|
|
19832
19901
|
|
|
19833
19902
|
case 20:
|
|
19834
19903
|
case "end":
|
|
19835
|
-
return
|
|
19904
|
+
return _context20.stop();
|
|
19836
19905
|
}
|
|
19837
19906
|
}
|
|
19838
|
-
},
|
|
19907
|
+
}, _callee20, null, [[2, 17]]);
|
|
19839
19908
|
})));
|
|
19840
|
-
var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatienttypeid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19909
|
+
var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatienttypeid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee21() {
|
|
19841
19910
|
var payload,
|
|
19842
|
-
|
|
19911
|
+
_ref42,
|
|
19843
19912
|
rejectWithValue,
|
|
19844
19913
|
_payload$idnumber,
|
|
19845
19914
|
idnumber,
|
|
@@ -19847,88 +19916,89 @@ var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/g
|
|
|
19847
19916
|
idsourcecode,
|
|
19848
19917
|
body,
|
|
19849
19918
|
data,
|
|
19850
|
-
|
|
19919
|
+
_args21 = arguments;
|
|
19851
19920
|
|
|
19852
|
-
return regeneratorRuntime.wrap(function
|
|
19921
|
+
return regeneratorRuntime.wrap(function _callee21$(_context21) {
|
|
19853
19922
|
while (1) {
|
|
19854
|
-
switch (
|
|
19923
|
+
switch (_context21.prev = _context21.next) {
|
|
19855
19924
|
case 0:
|
|
19856
|
-
payload =
|
|
19857
|
-
|
|
19858
|
-
|
|
19925
|
+
payload = _args21.length > 0 && _args21[0] !== undefined ? _args21[0] : {};
|
|
19926
|
+
_ref42 = _args21.length > 1 ? _args21[1] : undefined, rejectWithValue = _ref42.rejectWithValue;
|
|
19927
|
+
_context21.prev = 2;
|
|
19859
19928
|
_payload$idnumber = payload.idnumber, idnumber = _payload$idnumber === void 0 ? "" : _payload$idnumber, _payload$idsourcecode = payload.idsourcecode, idsourcecode = _payload$idsourcecode === void 0 ? "" : _payload$idsourcecode;
|
|
19860
19929
|
body = {
|
|
19861
19930
|
db_name: dbName,
|
|
19862
19931
|
filter: JSON.parse("{\n \"idnumber\":\"".concat(idnumber, "\",\"idsourcecode\":\"").concat(idsourcecode, "\"\n }")),
|
|
19863
19932
|
queryid: "8ffac13e-b147-4568-a13e-ecf9c07c0d92"
|
|
19864
19933
|
};
|
|
19865
|
-
|
|
19934
|
+
_context21.next = 7;
|
|
19866
19935
|
return fetchData$3({
|
|
19867
19936
|
body: JSON.stringify(body)
|
|
19868
19937
|
}, __baseUrl__);
|
|
19869
19938
|
|
|
19870
19939
|
case 7:
|
|
19871
|
-
data =
|
|
19872
|
-
return
|
|
19940
|
+
data = _context21.sent;
|
|
19941
|
+
return _context21.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19873
19942
|
data: data
|
|
19874
19943
|
}));
|
|
19875
19944
|
|
|
19876
19945
|
case 11:
|
|
19877
|
-
|
|
19878
|
-
|
|
19879
|
-
return
|
|
19880
|
-
message:
|
|
19946
|
+
_context21.prev = 11;
|
|
19947
|
+
_context21.t0 = _context21["catch"](2);
|
|
19948
|
+
return _context21.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19949
|
+
message: _context21.t0.message
|
|
19881
19950
|
})));
|
|
19882
19951
|
|
|
19883
19952
|
case 14:
|
|
19884
19953
|
case "end":
|
|
19885
|
-
return
|
|
19954
|
+
return _context21.stop();
|
|
19886
19955
|
}
|
|
19887
19956
|
}
|
|
19888
|
-
},
|
|
19957
|
+
}, _callee21, null, [[2, 11]]);
|
|
19889
19958
|
})));
|
|
19890
|
-
var GET_ENCOUNTER_STATUS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19959
|
+
var GET_ENCOUNTER_STATUS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee22() {
|
|
19891
19960
|
var payload,
|
|
19892
|
-
|
|
19961
|
+
_ref44,
|
|
19893
19962
|
rejectWithValue,
|
|
19894
19963
|
data,
|
|
19895
|
-
|
|
19964
|
+
_args22 = arguments;
|
|
19896
19965
|
|
|
19897
|
-
return regeneratorRuntime.wrap(function
|
|
19966
|
+
return regeneratorRuntime.wrap(function _callee22$(_context22) {
|
|
19898
19967
|
while (1) {
|
|
19899
|
-
switch (
|
|
19968
|
+
switch (_context22.prev = _context22.next) {
|
|
19900
19969
|
case 0:
|
|
19901
|
-
payload =
|
|
19902
|
-
|
|
19903
|
-
|
|
19904
|
-
|
|
19970
|
+
payload = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};
|
|
19971
|
+
_ref44 = _args22.length > 1 ? _args22[1] : undefined, rejectWithValue = _ref44.rejectWithValue;
|
|
19972
|
+
_context22.prev = 2;
|
|
19973
|
+
_context22.next = 5;
|
|
19905
19974
|
return fetchData$3({
|
|
19906
19975
|
body: JSON.stringify(registerQuery.statusRead())
|
|
19907
19976
|
}, __readDocumentUrl__);
|
|
19908
19977
|
|
|
19909
19978
|
case 5:
|
|
19910
|
-
data =
|
|
19911
|
-
return
|
|
19979
|
+
data = _context22.sent;
|
|
19980
|
+
return _context22.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19912
19981
|
data: data.result
|
|
19913
19982
|
}));
|
|
19914
19983
|
|
|
19915
19984
|
case 9:
|
|
19916
|
-
|
|
19917
|
-
|
|
19918
|
-
return
|
|
19919
|
-
message:
|
|
19985
|
+
_context22.prev = 9;
|
|
19986
|
+
_context22.t0 = _context22["catch"](2);
|
|
19987
|
+
return _context22.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19988
|
+
message: _context22.t0.message
|
|
19920
19989
|
})));
|
|
19921
19990
|
|
|
19922
19991
|
case 12:
|
|
19923
19992
|
case "end":
|
|
19924
|
-
return
|
|
19993
|
+
return _context22.stop();
|
|
19925
19994
|
}
|
|
19926
19995
|
}
|
|
19927
|
-
},
|
|
19996
|
+
}, _callee22, null, [[2, 9]]);
|
|
19928
19997
|
})));
|
|
19929
19998
|
var OrganizationRegisterPatientApiSlice = createSlice({
|
|
19930
19999
|
name: "OrganizationRegisterPatientApiSlice",
|
|
19931
20000
|
initialState: {
|
|
20001
|
+
softDeleteFinancialPayer: _objectSpread2({}, defaultState.Info),
|
|
19932
20002
|
specilitytype: _objectSpread2({}, defaultState.Info),
|
|
19933
20003
|
specilityname: _objectSpread2({}, defaultState.Info),
|
|
19934
20004
|
oraganizationRegisterPatient: _objectSpread2({}, defaultState.Info),
|
|
@@ -19951,216 +20021,226 @@ var OrganizationRegisterPatientApiSlice = createSlice({
|
|
|
19951
20021
|
getPractitionerName: _objectSpread2({}, defaultState.Info),
|
|
19952
20022
|
getPatient_id: _objectSpread2({}, defaultState.Info)
|
|
19953
20023
|
},
|
|
19954
|
-
extraReducers: (_extraReducers$r = {}, _defineProperty(_extraReducers$r,
|
|
20024
|
+
extraReducers: (_extraReducers$r = {}, _defineProperty(_extraReducers$r, SOFT_DELETE_FINANCIAL_PAYER.fulfilled, function (state, action) {
|
|
19955
20025
|
var _action$payload;
|
|
19956
20026
|
|
|
19957
|
-
state.
|
|
20027
|
+
state.softDeleteFinancialPayer = (_action$payload = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload !== void 0 ? _action$payload : {};
|
|
20028
|
+
}), _defineProperty(_extraReducers$r, SOFT_DELETE_FINANCIAL_PAYER.pending, function (state, action) {
|
|
20029
|
+
state.softDeleteFinancialPayer.loading = true;
|
|
20030
|
+
}), _defineProperty(_extraReducers$r, SOFT_DELETE_FINANCIAL_PAYER.rejected, function (state, action) {
|
|
20031
|
+
var _action$payload2;
|
|
20032
|
+
|
|
20033
|
+
state.softDeleteFinancialPayer = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : {};
|
|
20034
|
+
}), _defineProperty(_extraReducers$r, GET_PATIENT__ID_BY_ID.fulfilled, function (state, action) {
|
|
20035
|
+
var _action$payload3;
|
|
20036
|
+
|
|
20037
|
+
state.getPatient_id = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : {};
|
|
19958
20038
|
}), _defineProperty(_extraReducers$r, GET_PATIENT__ID_BY_ID.pending, function (state, action) {
|
|
19959
20039
|
state.getPatient_id.loading = true;
|
|
19960
20040
|
}), _defineProperty(_extraReducers$r, GET_PATIENT__ID_BY_ID.rejected, function (state, action) {
|
|
19961
|
-
var _action$
|
|
20041
|
+
var _action$payload4;
|
|
19962
20042
|
|
|
19963
|
-
state.getPatient_id = (_action$
|
|
20043
|
+
state.getPatient_id = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : {};
|
|
19964
20044
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_TYPE.fulfilled, function (state, action) {
|
|
19965
|
-
var _action$
|
|
20045
|
+
var _action$payload5;
|
|
19966
20046
|
|
|
19967
|
-
state.getPractitionerType = (_action$
|
|
20047
|
+
state.getPractitionerType = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : {};
|
|
19968
20048
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_TYPE.pending, function (state, action) {
|
|
19969
20049
|
state.getPractitionerType.loading = true;
|
|
19970
20050
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_TYPE.rejected, function (state, action) {
|
|
19971
|
-
var _action$
|
|
20051
|
+
var _action$payload6;
|
|
19972
20052
|
|
|
19973
|
-
state.getPractitionerType = (_action$
|
|
20053
|
+
state.getPractitionerType = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : {};
|
|
19974
20054
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_NAME.fulfilled, function (state, action) {
|
|
19975
|
-
var _action$
|
|
20055
|
+
var _action$payload7;
|
|
19976
20056
|
|
|
19977
|
-
state.getPractitionerName = (_action$
|
|
20057
|
+
state.getPractitionerName = (_action$payload7 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload7 !== void 0 ? _action$payload7 : {};
|
|
19978
20058
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_NAME.pending, function (state, action) {
|
|
19979
20059
|
state.getPractitionerName.loading = true;
|
|
19980
20060
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_NAME.rejected, function (state, action) {
|
|
19981
|
-
var _action$
|
|
20061
|
+
var _action$payload8;
|
|
19982
20062
|
|
|
19983
|
-
state.getPractitionerName = (_action$
|
|
20063
|
+
state.getPractitionerName = (_action$payload8 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload8 !== void 0 ? _action$payload8 : {};
|
|
19984
20064
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_NAME.fulfilled, function (state, action) {
|
|
19985
|
-
var _action$
|
|
20065
|
+
var _action$payload9;
|
|
19986
20066
|
|
|
19987
|
-
state.getpatientname = (_action$
|
|
20067
|
+
state.getpatientname = (_action$payload9 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload9 !== void 0 ? _action$payload9 : {};
|
|
19988
20068
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_NAME.pending, function (state, action) {
|
|
19989
20069
|
state.getpatientname.loading = true;
|
|
19990
20070
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_NAME.rejected, function (state, action) {
|
|
19991
|
-
var _action$
|
|
20071
|
+
var _action$payload10;
|
|
19992
20072
|
|
|
19993
|
-
state.getpatientname = (_action$
|
|
20073
|
+
state.getpatientname = (_action$payload10 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload10 !== void 0 ? _action$payload10 : {};
|
|
19994
20074
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_APPOINTMENT.fulfilled, function (state, action) {
|
|
19995
|
-
var _action$
|
|
20075
|
+
var _action$payload11;
|
|
19996
20076
|
|
|
19997
|
-
state.getappointment = (_action$
|
|
20077
|
+
state.getappointment = (_action$payload11 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload11 !== void 0 ? _action$payload11 : {};
|
|
19998
20078
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_APPOINTMENT.pending, function (state, action) {
|
|
19999
20079
|
state.getappointment.loading = true;
|
|
20000
20080
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_APPOINTMENT.rejected, function (state, action) {
|
|
20001
|
-
var _action$
|
|
20081
|
+
var _action$payload12;
|
|
20002
20082
|
|
|
20003
|
-
state.getappointment = (_action$
|
|
20083
|
+
state.getappointment = (_action$payload12 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
|
|
20004
20084
|
}), _defineProperty(_extraReducers$r, GET_FERERRAL.fulfilled, function (state, action) {
|
|
20005
|
-
var _action$
|
|
20085
|
+
var _action$payload13;
|
|
20006
20086
|
|
|
20007
|
-
state.getreferral = (_action$
|
|
20087
|
+
state.getreferral = (_action$payload13 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload13 !== void 0 ? _action$payload13 : {};
|
|
20008
20088
|
}), _defineProperty(_extraReducers$r, GET_FERERRAL.pending, function (state, action) {
|
|
20009
20089
|
state.getreferral.loading = true;
|
|
20010
20090
|
}), _defineProperty(_extraReducers$r, GET_FERERRAL.rejected, function (state, action) {
|
|
20011
|
-
var _action$
|
|
20091
|
+
var _action$payload14;
|
|
20012
20092
|
|
|
20013
|
-
state.getreferral = (_action$
|
|
20093
|
+
state.getreferral = (_action$payload14 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload14 !== void 0 ? _action$payload14 : {};
|
|
20014
20094
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REGISTER_PATIENT.fulfilled, function (state, action) {
|
|
20015
|
-
var _action$
|
|
20095
|
+
var _action$payload15;
|
|
20016
20096
|
|
|
20017
|
-
state.oraganizationRegisterPatient = (_action$
|
|
20097
|
+
state.oraganizationRegisterPatient = (_action$payload15 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload15 !== void 0 ? _action$payload15 : {};
|
|
20018
20098
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REGISTER_PATIENT.pending, function (state, action) {
|
|
20019
20099
|
state.oraganizationRegisterPatient.loading = true;
|
|
20020
20100
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REGISTER_PATIENT.rejected, function (state, action) {
|
|
20021
|
-
var _action$
|
|
20101
|
+
var _action$payload16;
|
|
20022
20102
|
|
|
20023
|
-
state.oraganizationRegisterPatient = (_action$
|
|
20103
|
+
state.oraganizationRegisterPatient = (_action$payload16 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload16 !== void 0 ? _action$payload16 : {};
|
|
20024
20104
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_VISIT_REGISTRATION.fulfilled, function (state, action) {
|
|
20025
|
-
var _action$
|
|
20105
|
+
var _action$payload17;
|
|
20026
20106
|
|
|
20027
|
-
state.oraganizationvisitRegister = (_action$
|
|
20107
|
+
state.oraganizationvisitRegister = (_action$payload17 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload17 !== void 0 ? _action$payload17 : {};
|
|
20028
20108
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_VISIT_REGISTRATION.pending, function (state, action) {
|
|
20029
20109
|
state.oraganizationvisitRegister.loading = true;
|
|
20030
20110
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_VISIT_REGISTRATION.rejected, function (state, action) {
|
|
20031
|
-
var _action$
|
|
20111
|
+
var _action$payload18;
|
|
20032
20112
|
|
|
20033
|
-
state.oraganizationvisitRegister = (_action$
|
|
20113
|
+
state.oraganizationvisitRegister = (_action$payload18 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload18 !== void 0 ? _action$payload18 : {};
|
|
20034
20114
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REFERRAL_REGISTRATION.fulfilled, function (state, action) {
|
|
20035
|
-
var _action$
|
|
20115
|
+
var _action$payload19;
|
|
20036
20116
|
|
|
20037
|
-
state.oraganizationreferralRegister = (_action$
|
|
20117
|
+
state.oraganizationreferralRegister = (_action$payload19 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload19 !== void 0 ? _action$payload19 : {};
|
|
20038
20118
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REFERRAL_REGISTRATION.pending, function (state, action) {
|
|
20039
20119
|
state.oraganizationreferralRegister.loading = true;
|
|
20040
20120
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REFERRAL_REGISTRATION.rejected, function (state, action) {
|
|
20041
|
-
var _action$
|
|
20121
|
+
var _action$payload20;
|
|
20042
20122
|
|
|
20043
|
-
state.oraganizationreferralRegister = (_action$
|
|
20123
|
+
state.oraganizationreferralRegister = (_action$payload20 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload20 !== void 0 ? _action$payload20 : {};
|
|
20044
20124
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FILTER_BY_PATIENT.fulfilled, function (state, action) {
|
|
20045
|
-
var _action$
|
|
20125
|
+
var _action$payload21;
|
|
20046
20126
|
|
|
20047
|
-
state.oraganizationfilterbypatient = (_action$
|
|
20127
|
+
state.oraganizationfilterbypatient = (_action$payload21 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload21 !== void 0 ? _action$payload21 : {};
|
|
20048
20128
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FILTER_BY_PATIENT.pending, function (state, action) {
|
|
20049
20129
|
state.oraganizationfilterbypatient.loading = true;
|
|
20050
20130
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FILTER_BY_PATIENT.rejected, function (state, action) {
|
|
20051
|
-
var _action$
|
|
20131
|
+
var _action$payload22;
|
|
20052
20132
|
|
|
20053
|
-
state.oraganizationfilterbypatient = (_action$
|
|
20133
|
+
state.oraganizationfilterbypatient = (_action$payload22 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload22 !== void 0 ? _action$payload22 : {};
|
|
20054
20134
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FINANCIAL_REGISTRATION.fulfilled, function (state, action) {
|
|
20055
|
-
var _action$
|
|
20135
|
+
var _action$payload23;
|
|
20056
20136
|
|
|
20057
|
-
state.oraganizationfinancialregister = (_action$
|
|
20137
|
+
state.oraganizationfinancialregister = (_action$payload23 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload23 !== void 0 ? _action$payload23 : {};
|
|
20058
20138
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FINANCIAL_REGISTRATION.pending, function (state, action) {
|
|
20059
20139
|
state.oraganizationfinancialregister.loading = true;
|
|
20060
20140
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FINANCIAL_REGISTRATION.rejected, function (state, action) {
|
|
20061
|
-
var _action$
|
|
20141
|
+
var _action$payload24;
|
|
20062
20142
|
|
|
20063
|
-
state.oraganizationfinancialregister = (_action$
|
|
20143
|
+
state.oraganizationfinancialregister = (_action$payload24 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload24 !== void 0 ? _action$payload24 : {};
|
|
20064
20144
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_TYPE.fulfilled, function (state, action) {
|
|
20065
|
-
var _action$
|
|
20145
|
+
var _action$payload25;
|
|
20066
20146
|
|
|
20067
|
-
state.specilitytype = (_action$
|
|
20147
|
+
state.specilitytype = (_action$payload25 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload25 !== void 0 ? _action$payload25 : {};
|
|
20068
20148
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_TYPE.pending, function (state, action) {
|
|
20069
20149
|
state.specilitytype.loading = true;
|
|
20070
20150
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_TYPE.rejected, function (state, action) {
|
|
20071
|
-
var _action$
|
|
20151
|
+
var _action$payload26;
|
|
20072
20152
|
|
|
20073
|
-
state.specilitytype = (_action$
|
|
20153
|
+
state.specilitytype = (_action$payload26 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload26 !== void 0 ? _action$payload26 : {};
|
|
20074
20154
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_NAME.fulfilled, function (state, action) {
|
|
20075
|
-
var _action$
|
|
20155
|
+
var _action$payload27;
|
|
20076
20156
|
|
|
20077
|
-
state.specilityname = (_action$
|
|
20157
|
+
state.specilityname = (_action$payload27 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload27 !== void 0 ? _action$payload27 : {};
|
|
20078
20158
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_NAME.pending, function (state, action) {
|
|
20079
20159
|
state.specilityname.loading = true;
|
|
20080
20160
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_NAME.rejected, function (state, action) {
|
|
20081
|
-
var _action$
|
|
20161
|
+
var _action$payload28;
|
|
20082
20162
|
|
|
20083
|
-
state.specilityname = (_action$
|
|
20163
|
+
state.specilityname = (_action$payload28 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload28 !== void 0 ? _action$payload28 : {};
|
|
20084
20164
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER.fulfilled, function (state, action) {
|
|
20085
|
-
var _action$
|
|
20165
|
+
var _action$payload29;
|
|
20086
20166
|
|
|
20087
|
-
state.practitioner = (_action$
|
|
20167
|
+
state.practitioner = (_action$payload29 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload29 !== void 0 ? _action$payload29 : {};
|
|
20088
20168
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER.pending, function (state, action) {
|
|
20089
20169
|
state.practitioner.loading = true;
|
|
20090
20170
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER.rejected, function (state, action) {
|
|
20091
|
-
var _action$
|
|
20171
|
+
var _action$payload30;
|
|
20092
20172
|
|
|
20093
|
-
state.practitioner = (_action$
|
|
20173
|
+
state.practitioner = (_action$payload30 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload30 !== void 0 ? _action$payload30 : {};
|
|
20094
20174
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONERS.fulfilled, function (state, action) {
|
|
20095
|
-
var _action$
|
|
20175
|
+
var _action$payload31;
|
|
20096
20176
|
|
|
20097
|
-
state.practitioners = (_action$
|
|
20177
|
+
state.practitioners = (_action$payload31 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload31 !== void 0 ? _action$payload31 : {};
|
|
20098
20178
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONERS.pending, function (state, action) {
|
|
20099
20179
|
state.practitioners.loading = true;
|
|
20100
20180
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONERS.rejected, function (state, action) {
|
|
20101
|
-
var _action$
|
|
20181
|
+
var _action$payload32;
|
|
20102
20182
|
|
|
20103
|
-
state.practitioners = (_action$
|
|
20183
|
+
state.practitioners = (_action$payload32 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload32 !== void 0 ? _action$payload32 : {};
|
|
20104
20184
|
}), _defineProperty(_extraReducers$r, GET_SPECIALITY_DATA.fulfilled, function (state, action) {
|
|
20105
|
-
var _action$
|
|
20185
|
+
var _action$payload33;
|
|
20106
20186
|
|
|
20107
|
-
state.speciality = (_action$
|
|
20187
|
+
state.speciality = (_action$payload33 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload33 !== void 0 ? _action$payload33 : {};
|
|
20108
20188
|
}), _defineProperty(_extraReducers$r, GET_SPECIALITY_DATA.pending, function (state, action) {
|
|
20109
20189
|
state.speciality.loading = true;
|
|
20110
20190
|
}), _defineProperty(_extraReducers$r, GET_SPECIALITY_DATA.rejected, function (state, action) {
|
|
20111
|
-
var _action$
|
|
20191
|
+
var _action$payload34;
|
|
20112
20192
|
|
|
20113
|
-
state.speciality = (_action$
|
|
20193
|
+
state.speciality = (_action$payload34 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload34 !== void 0 ? _action$payload34 : {};
|
|
20114
20194
|
}), _defineProperty(_extraReducers$r, GET_FINANCIAL.fulfilled, function (state, action) {
|
|
20115
|
-
var _action$
|
|
20195
|
+
var _action$payload35;
|
|
20116
20196
|
|
|
20117
|
-
state.getfinancial = (_action$
|
|
20197
|
+
state.getfinancial = (_action$payload35 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload35 !== void 0 ? _action$payload35 : {};
|
|
20118
20198
|
}), _defineProperty(_extraReducers$r, GET_FINANCIAL.pending, function (state, action) {
|
|
20119
20199
|
state.getfinancial.loading = true;
|
|
20120
20200
|
}), _defineProperty(_extraReducers$r, GET_FINANCIAL.rejected, function (state, action) {
|
|
20121
|
-
var _action$
|
|
20201
|
+
var _action$payload36;
|
|
20122
20202
|
|
|
20123
|
-
state.getfinancial = (_action$
|
|
20203
|
+
state.getfinancial = (_action$payload36 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload36 !== void 0 ? _action$payload36 : {};
|
|
20124
20204
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_ROLE.fulfilled, function (state, action) {
|
|
20125
|
-
var _action$
|
|
20205
|
+
var _action$payload37;
|
|
20126
20206
|
|
|
20127
|
-
state.getpractitionerrole = (_action$
|
|
20207
|
+
state.getpractitionerrole = (_action$payload37 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload37 !== void 0 ? _action$payload37 : {};
|
|
20128
20208
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_ROLE.pending, function (state, action) {
|
|
20129
20209
|
state.getpractitionerrole.loading = true;
|
|
20130
20210
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_ROLE.rejected, function (state, action) {
|
|
20131
|
-
var _action$
|
|
20211
|
+
var _action$payload38;
|
|
20132
20212
|
|
|
20133
|
-
state.getpractitionerrole = (_action$
|
|
20213
|
+
state.getpractitionerrole = (_action$payload38 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload38 !== void 0 ? _action$payload38 : {};
|
|
20134
20214
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_TYPEID.fulfilled, function (state, action) {
|
|
20135
|
-
var _action$
|
|
20215
|
+
var _action$payload39;
|
|
20136
20216
|
|
|
20137
|
-
state.getpatientid = (_action$
|
|
20217
|
+
state.getpatientid = (_action$payload39 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload39 !== void 0 ? _action$payload39 : {};
|
|
20138
20218
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_TYPEID.pending, function (state, action) {
|
|
20139
20219
|
state.getpatientid.loading = true;
|
|
20140
20220
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_TYPEID.rejected, function (state, action) {
|
|
20141
|
-
var _action$
|
|
20221
|
+
var _action$payload40;
|
|
20142
20222
|
|
|
20143
|
-
state.getpatientid = (_action$
|
|
20223
|
+
state.getpatientid = (_action$payload40 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload40 !== void 0 ? _action$payload40 : {};
|
|
20144
20224
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_HEADER.fulfilled, function (state, action) {
|
|
20145
|
-
var _action$
|
|
20225
|
+
var _action$payload41;
|
|
20146
20226
|
|
|
20147
|
-
state.getEncounterHeader = (_action$
|
|
20227
|
+
state.getEncounterHeader = (_action$payload41 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload41 !== void 0 ? _action$payload41 : {};
|
|
20148
20228
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_HEADER.pending, function (state, action) {
|
|
20149
20229
|
state.getEncounterHeader.loading = true;
|
|
20150
20230
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_HEADER.rejected, function (state, action) {
|
|
20151
|
-
var _action$
|
|
20231
|
+
var _action$payload42;
|
|
20152
20232
|
|
|
20153
|
-
state.getEncounterHeader = (_action$
|
|
20233
|
+
state.getEncounterHeader = (_action$payload42 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload42 !== void 0 ? _action$payload42 : {};
|
|
20154
20234
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_STATUS.fulfilled, function (state, action) {
|
|
20155
|
-
var _action$
|
|
20235
|
+
var _action$payload43;
|
|
20156
20236
|
|
|
20157
|
-
state.getEncounterStatus = (_action$
|
|
20237
|
+
state.getEncounterStatus = (_action$payload43 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload43 !== void 0 ? _action$payload43 : {};
|
|
20158
20238
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_STATUS.pending, function (state, action) {
|
|
20159
20239
|
state.getEncounterStatus.loading = true;
|
|
20160
20240
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_STATUS.rejected, function (state, action) {
|
|
20161
|
-
var _action$
|
|
20241
|
+
var _action$payload44;
|
|
20162
20242
|
|
|
20163
|
-
state.getEncounterStatus = (_action$
|
|
20243
|
+
state.getEncounterStatus = (_action$payload44 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload44 !== void 0 ? _action$payload44 : {};
|
|
20164
20244
|
}), _extraReducers$r)
|
|
20165
20245
|
});
|
|
20166
20246
|
var oraganizationRegisterPatientActions = {
|
|
@@ -20184,7 +20264,8 @@ var oraganizationRegisterPatientActions = {
|
|
|
20184
20264
|
GET_ENCOUNTER_STATUS: GET_ENCOUNTER_STATUS,
|
|
20185
20265
|
GET_PRACTITIONER_TYPE: GET_PRACTITIONER_TYPE,
|
|
20186
20266
|
GET_PRACTITIONER_NAME: GET_PRACTITIONER_NAME,
|
|
20187
|
-
GET_PATIENT__ID_BY_ID: GET_PATIENT__ID_BY_ID
|
|
20267
|
+
GET_PATIENT__ID_BY_ID: GET_PATIENT__ID_BY_ID,
|
|
20268
|
+
SOFT_DELETE_FINANCIAL_PAYER: SOFT_DELETE_FINANCIAL_PAYER
|
|
20188
20269
|
};
|
|
20189
20270
|
var OrganizationRegisterPatientApiSlice$1 = OrganizationRegisterPatientApiSlice.reducer;
|
|
20190
20271
|
|
|
@@ -24268,7 +24349,8 @@ var queries$9 = {
|
|
|
24268
24349
|
return {
|
|
24269
24350
|
db_name: dbName,
|
|
24270
24351
|
entity: "Diagnosis",
|
|
24271
|
-
filter:
|
|
24352
|
+
//filter: `Diagnosis.icdname LIKE '%${input_text}%' && (round(DATE_TIMESTAMP(DATE_ADD(DATE_NOW(), -1, 'day'))/1000)<=Diagnosis.effTo || Diagnosis.effTo==null)`,
|
|
24353
|
+
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
24354
|
return_fields: "{_id:Diagnosis._id,icdcode:Diagnosis.icdcode,icdname:Diagnosis.icdname}",
|
|
24273
24355
|
sort: "Diagnosis.icdname"
|
|
24274
24356
|
};
|
|
@@ -24536,11 +24618,9 @@ var DIAGNOSIS_MASTERS = createAsyncThunk("DiagnosisMasterSlice/diagnosis", /*#__
|
|
|
24536
24618
|
data = _context.sent;
|
|
24537
24619
|
arr = [];
|
|
24538
24620
|
data.result.map(function (val) {
|
|
24539
|
-
var _val$icdname;
|
|
24540
|
-
|
|
24541
24621
|
arr.push({
|
|
24542
24622
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
24543
|
-
label: (
|
|
24623
|
+
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
24624
|
});
|
|
24545
24625
|
});
|
|
24546
24626
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -24588,11 +24668,11 @@ var DIAGNOSIS_MASTERS_VALUE = createAsyncThunk("DiagnosisMasterSlice/diagnosis_v
|
|
|
24588
24668
|
data = _context2.sent;
|
|
24589
24669
|
arr = [];
|
|
24590
24670
|
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$
|
|
24671
|
+
var _val$icdname;
|
|
24592
24672
|
|
|
24593
24673
|
arr.push({
|
|
24594
24674
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
24595
|
-
label: (_val$
|
|
24675
|
+
label: (_val$icdname = val === null || val === void 0 ? void 0 : val.icdname) !== null && _val$icdname !== void 0 ? _val$icdname : ""
|
|
24596
24676
|
});
|
|
24597
24677
|
});
|
|
24598
24678
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -45986,7 +46066,7 @@ var tableData = function tableData(patientId, encounterId) {
|
|
|
45986
46066
|
db_name: dbName,
|
|
45987
46067
|
entity: "RCM_PatientChargeTrx",
|
|
45988
46068
|
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})"
|
|
46069
|
+
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
46070
|
};
|
|
45991
46071
|
};
|
|
45992
46072
|
var searchCodeDesc = function searchCodeDesc(patientId, encounterId, search) {
|
|
@@ -45994,7 +46074,7 @@ var searchCodeDesc = function searchCodeDesc(patientId, encounterId, search) {
|
|
|
45994
46074
|
db_name: "primarycare",
|
|
45995
46075
|
entity: "RCM_PatientChargeTrx",
|
|
45996
46076
|
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,
|
|
46077
|
+
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
46078
|
};
|
|
45999
46079
|
};
|
|
46000
46080
|
var dropDown = {
|
|
@@ -46079,7 +46159,7 @@ var saveBill = {
|
|
|
46079
46159
|
totgrossamt: billHeaderSave.totgrossamt,
|
|
46080
46160
|
totdiscamt: billHeaderSave.totdiscamt,
|
|
46081
46161
|
totnetamt: billHeaderSave.totnetamt,
|
|
46082
|
-
totpatientshare: billHeaderSave.totpatientshare,
|
|
46162
|
+
totpatientshare: Number(billHeaderSave.totpatientshare),
|
|
46083
46163
|
totpayershare: billHeaderSave.totpayershare,
|
|
46084
46164
|
billhstatus: billHeaderSave.billhstatus,
|
|
46085
46165
|
payerid: billHeaderSave === null || billHeaderSave === void 0 ? void 0 : billHeaderSave.payerid
|
|
@@ -46110,8 +46190,8 @@ var saveBill = {
|
|
|
46110
46190
|
billhdrid: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.billhdrid,
|
|
46111
46191
|
receiptno: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.receiptno,
|
|
46112
46192
|
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,
|
|
46193
|
+
billamt: Number(paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.billamt),
|
|
46194
|
+
paidamt: Number(paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.paidamt),
|
|
46115
46195
|
balamt: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.balamt,
|
|
46116
46196
|
paymentdtls: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.paymentdtls,
|
|
46117
46197
|
settlenow: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.settlenow,
|
|
@@ -46138,6 +46218,14 @@ var saveBill = {
|
|
|
46138
46218
|
};
|
|
46139
46219
|
}
|
|
46140
46220
|
};
|
|
46221
|
+
var billRounding = function billRounding(orgId) {
|
|
46222
|
+
return {
|
|
46223
|
+
db_name: "primarycare",
|
|
46224
|
+
entity: "EntityParametersSetup",
|
|
46225
|
+
filter: "EntityParametersSetup.entityid=='".concat(orgId, "' && document(EntityParametersSetup.parameterid).code=='BILLROUNDDECVAL' && EntityParametersSetup.activestatus==true"),
|
|
46226
|
+
return_fields: "unset(EntityParametersSetup,'createdby','createddate','updatedby','updatedate')"
|
|
46227
|
+
};
|
|
46228
|
+
};
|
|
46141
46229
|
|
|
46142
46230
|
var makeName = function makeName() {
|
|
46143
46231
|
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 +46246,16 @@ var makeName = function makeName() {
|
|
|
46158
46246
|
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(family && family + " ").concat(suffixVal && suffixVal);
|
|
46159
46247
|
};
|
|
46160
46248
|
|
|
46161
|
-
var createDate = function createDate(date) {
|
|
46162
|
-
|
|
46249
|
+
var createDate = function createDate(date, format) {
|
|
46250
|
+
if (format) {
|
|
46251
|
+
return moment$1.unix(date).format("".concat(format));
|
|
46252
|
+
} else {
|
|
46253
|
+
return moment$1.unix(date).format("DD/MM/YYYY HH:mm");
|
|
46254
|
+
}
|
|
46163
46255
|
};
|
|
46164
46256
|
|
|
46165
46257
|
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$
|
|
46258
|
+
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
46259
|
|
|
46168
46260
|
debugger;
|
|
46169
46261
|
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 +46283,8 @@ var constructReciept = function constructReciept(data) {
|
|
|
46191
46283
|
billNo: data === null || data === void 0 ? void 0 : data.billno,
|
|
46192
46284
|
billdate: createDate(data === null || data === void 0 ? void 0 : data.billdate),
|
|
46193
46285
|
payerid: (_data$payerid = data === null || data === void 0 ? void 0 : data.payerid) !== null && _data$payerid !== void 0 ? _data$payerid : "-",
|
|
46286
|
+
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,
|
|
46287
|
+
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
46288
|
billDetails: data === null || data === void 0 ? void 0 : data.billdetails.map(function (val) {
|
|
46195
46289
|
var _val$patchargetrxid, _val$patchargetrxid2, _val$patchargetrxid2$, _val$patchargetrxid3, _val$grossamt, _val$discamt, _val$netamt, _val$patientshare, _val$payershare;
|
|
46196
46290
|
|
|
@@ -46205,14 +46299,15 @@ var constructReciept = function constructReciept(data) {
|
|
|
46205
46299
|
creditShare: val === null || val === void 0 ? void 0 : (_val$payershare = val.payershare) === null || _val$payershare === void 0 ? void 0 : _val$payershare.toFixed(2)
|
|
46206
46300
|
};
|
|
46207
46301
|
}),
|
|
46302
|
+
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
46303
|
totgrossamt: data === null || data === void 0 ? void 0 : (_data$totgrossamt = data.totgrossamt) === null || _data$totgrossamt === void 0 ? void 0 : _data$totgrossamt.toFixed(2),
|
|
46209
46304
|
totdiscamt: data === null || data === void 0 ? void 0 : (_data$totdiscamt = data.totdiscamt) === null || _data$totdiscamt === void 0 ? void 0 : _data$totdiscamt.toFixed(2),
|
|
46210
46305
|
totnetamt: data === null || data === void 0 ? void 0 : (_data$totnetamt = data.totnetamt) === null || _data$totnetamt === void 0 ? void 0 : _data$totnetamt.toFixed(2),
|
|
46211
46306
|
totpatientshare: data === null || data === void 0 ? void 0 : (_data$totpatientshare = data.totpatientshare) === null || _data$totpatientshare === void 0 ? void 0 : _data$totpatientshare.toFixed(2),
|
|
46212
46307
|
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$
|
|
46308
|
+
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),
|
|
46309
|
+
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),
|
|
46310
|
+
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
46311
|
glNo: (_data$glNo = data === null || data === void 0 ? void 0 : data.glNo) !== null && _data$glNo !== void 0 ? _data$glNo : "-",
|
|
46217
46312
|
glDate: (_data$glDate = data === null || data === void 0 ? void 0 : data.glDate) !== null && _data$glDate !== void 0 ? _data$glDate : "-",
|
|
46218
46313
|
guarantor: (_data$guarantor = data === null || data === void 0 ? void 0 : data.guarantor) !== null && _data$guarantor !== void 0 ? _data$guarantor : "-",
|
|
@@ -47034,6 +47129,47 @@ var BILL_RECEIPT_READ = createAsyncThunk("billSettlementSlice/billReceiptRead",
|
|
|
47034
47129
|
}
|
|
47035
47130
|
}, _callee18, null, [[3, 14]]);
|
|
47036
47131
|
})));
|
|
47132
|
+
var BILL_ROUND_OFF = createAsyncThunk("billSettlementSlice/billRoundOff", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
|
|
47133
|
+
var payload,
|
|
47134
|
+
_ref39,
|
|
47135
|
+
rejectWithValue,
|
|
47136
|
+
orgId,
|
|
47137
|
+
data,
|
|
47138
|
+
_args19 = arguments;
|
|
47139
|
+
|
|
47140
|
+
return regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
47141
|
+
while (1) {
|
|
47142
|
+
switch (_context19.prev = _context19.next) {
|
|
47143
|
+
case 0:
|
|
47144
|
+
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
47145
|
+
_ref39 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref39.rejectWithValue;
|
|
47146
|
+
_context19.prev = 2;
|
|
47147
|
+
orgId = payload.orgId;
|
|
47148
|
+
_context19.next = 6;
|
|
47149
|
+
return fetchData$3({
|
|
47150
|
+
body: JSON.stringify(billRounding(orgId))
|
|
47151
|
+
}, __readDocumentUrl__);
|
|
47152
|
+
|
|
47153
|
+
case 6:
|
|
47154
|
+
data = _context19.sent;
|
|
47155
|
+
return _context19.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
47156
|
+
data: data
|
|
47157
|
+
}));
|
|
47158
|
+
|
|
47159
|
+
case 10:
|
|
47160
|
+
_context19.prev = 10;
|
|
47161
|
+
_context19.t0 = _context19["catch"](2);
|
|
47162
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
47163
|
+
message: _context19.t0.message
|
|
47164
|
+
})));
|
|
47165
|
+
|
|
47166
|
+
case 13:
|
|
47167
|
+
case "end":
|
|
47168
|
+
return _context19.stop();
|
|
47169
|
+
}
|
|
47170
|
+
}
|
|
47171
|
+
}, _callee19, null, [[2, 10]]);
|
|
47172
|
+
})));
|
|
47037
47173
|
var billSettlementSlice = createSlice({
|
|
47038
47174
|
name: "billSettlementSlice",
|
|
47039
47175
|
initialState: {
|
|
@@ -47054,7 +47190,8 @@ var billSettlementSlice = createSlice({
|
|
|
47054
47190
|
payment_save: _objectSpread2({}, defaultState.Info),
|
|
47055
47191
|
payment_dropDown: _objectSpread2({}, defaultState.Info),
|
|
47056
47192
|
billing_status_save: _objectSpread2({}, defaultState.Info),
|
|
47057
|
-
bill_reciept_read: _objectSpread2({}, defaultState.Info)
|
|
47193
|
+
bill_reciept_read: _objectSpread2({}, defaultState.Info),
|
|
47194
|
+
bill_roundoff: _objectSpread2({}, defaultState.Info)
|
|
47058
47195
|
},
|
|
47059
47196
|
extraReducers: (_extraReducers$3 = {}, _defineProperty(_extraReducers$3, SEARCH_VIA_NAME.fulfilled, function (state, action) {
|
|
47060
47197
|
var _action$payload;
|
|
@@ -47236,6 +47373,16 @@ var billSettlementSlice = createSlice({
|
|
|
47236
47373
|
var _action$payload36;
|
|
47237
47374
|
|
|
47238
47375
|
state.bill_reciept_read = (_action$payload36 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload36 !== void 0 ? _action$payload36 : {};
|
|
47376
|
+
}), _defineProperty(_extraReducers$3, BILL_ROUND_OFF.fulfilled, function (state, action) {
|
|
47377
|
+
var _action$payload37;
|
|
47378
|
+
|
|
47379
|
+
state.bill_roundoff = (_action$payload37 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload37 !== void 0 ? _action$payload37 : {};
|
|
47380
|
+
}), _defineProperty(_extraReducers$3, BILL_ROUND_OFF.pending, function (state, action) {
|
|
47381
|
+
state.bill_roundoff.loading = true;
|
|
47382
|
+
}), _defineProperty(_extraReducers$3, BILL_ROUND_OFF.rejected, function (state, action) {
|
|
47383
|
+
var _action$payload38;
|
|
47384
|
+
|
|
47385
|
+
state.bill_roundoff = (_action$payload38 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload38 !== void 0 ? _action$payload38 : {};
|
|
47239
47386
|
}), _extraReducers$3)
|
|
47240
47387
|
});
|
|
47241
47388
|
var billSettlementActions = {
|
|
@@ -47256,7 +47403,8 @@ var billSettlementActions = {
|
|
|
47256
47403
|
PAYMENT_SAVE: PAYMENT_SAVE,
|
|
47257
47404
|
PAYMENT_DROPDOWN: PAYMENT_DROPDOWN,
|
|
47258
47405
|
BILL_STATUS_SAVE: BILL_STATUS_SAVE,
|
|
47259
|
-
BILL_RECEIPT_READ: BILL_RECEIPT_READ
|
|
47406
|
+
BILL_RECEIPT_READ: BILL_RECEIPT_READ,
|
|
47407
|
+
BILL_ROUND_OFF: BILL_ROUND_OFF
|
|
47260
47408
|
};
|
|
47261
47409
|
var billSettlementSlice$1 = billSettlementSlice.reducer;
|
|
47262
47410
|
|