primarycare-binder 1.1.113 → 1.1.116
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 +534 -287
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8146,6 +8146,18 @@ var queries$b = {
|
|
|
8146
8146
|
},
|
|
8147
8147
|
returnFields: "MERGE(Practitioner,{name:(for doc in HumanNameMaster filter doc._id in Practitioner.name return merge(doc,{use:document(doc.use),prefix:document(doc.prefix),suffix:document(doc.suffix)})),practitioner_type:document(document(Practitioner.practitioner_type).coding[0]).display})"
|
|
8148
8148
|
},
|
|
8149
|
+
codablemasterPractitionerType: {
|
|
8150
|
+
query: function query(OrgID) {
|
|
8151
|
+
return "(document(Practitioner.practitioner_role)[*].SpecialtyID any == '".concat(OrgID, "' || first(document(document(Practitioner.practitioner_role)[*].SpecialtyID)[*].coding) any == '").concat(OrgID, "' ) && Practitioner.activestatus==true && Practitioner.active == true");
|
|
8152
|
+
},
|
|
8153
|
+
returnFields: "distinct {practitioner_type:contains(Practitioner.practitioner_type,'CodeableConceptMaster')?document(document(Practitioner.practitioner_type).coding):document(Practitioner.practitioner_type)}"
|
|
8154
|
+
},
|
|
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");
|
|
8158
|
+
},
|
|
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
|
+
},
|
|
8149
8161
|
codablemasterGetFinancial: {
|
|
8150
8162
|
query: function query(patientId) {
|
|
8151
8163
|
return "Account.guarantor[0].patient_id==".concat(patientId);
|
|
@@ -8423,6 +8435,24 @@ var makeName = function makeName() {
|
|
|
8423
8435
|
var suffixVal = (suffix === null || suffix === void 0 ? void 0 : (_suffix$ = suffix[0]) === null || _suffix$ === void 0 ? void 0 : (_suffix$$coding = _suffix$.coding) === null || _suffix$$coding === void 0 ? void 0 : (_suffix$$coding$ = _suffix$$coding[0]) === null || _suffix$$coding$ === void 0 ? void 0 : _suffix$$coding$.display) || (suffix === null || suffix === void 0 ? void 0 : (_suffix$coding = suffix.coding) === null || _suffix$coding === void 0 ? void 0 : (_suffix$coding$ = _suffix$coding[0]) === null || _suffix$coding$ === void 0 ? void 0 : _suffix$coding$.display) || (suffix === null || suffix === void 0 ? void 0 : (_suffix$2 = suffix[0]) === null || _suffix$2 === void 0 ? void 0 : _suffix$2.display) || (suffix === null || suffix === void 0 ? void 0 : suffix.display) || "";
|
|
8424
8436
|
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(family && family + " ").concat(suffixVal && suffixVal);
|
|
8425
8437
|
};
|
|
8438
|
+
var makeName_ = function makeName_() {
|
|
8439
|
+
var _prefix$3, _prefix$3$coding, _prefix$3$coding$, _prefix$coding2, _prefix$coding2$, _prefix$4, _suffix$3, _suffix$3$coding, _suffix$3$coding$, _suffix$coding2, _suffix$coding2$, _suffix$4;
|
|
8440
|
+
|
|
8441
|
+
var nameObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8442
|
+
var _nameObj$prefix2 = nameObj.prefix,
|
|
8443
|
+
prefix = _nameObj$prefix2 === void 0 ? "" : _nameObj$prefix2,
|
|
8444
|
+
_nameObj$given2 = nameObj.given,
|
|
8445
|
+
given = _nameObj$given2 === void 0 ? "" : _nameObj$given2,
|
|
8446
|
+
_nameObj$text2 = nameObj.text,
|
|
8447
|
+
text = _nameObj$text2 === void 0 ? "" : _nameObj$text2,
|
|
8448
|
+
_nameObj$suffix2 = nameObj.suffix,
|
|
8449
|
+
suffix = _nameObj$suffix2 === void 0 ? "" : _nameObj$suffix2,
|
|
8450
|
+
_nameObj$family2 = nameObj.family,
|
|
8451
|
+
family = _nameObj$family2 === void 0 ? "" : _nameObj$family2;
|
|
8452
|
+
var prefixVal = (prefix === null || prefix === void 0 ? void 0 : (_prefix$3 = prefix[0]) === null || _prefix$3 === void 0 ? void 0 : (_prefix$3$coding = _prefix$3.coding) === null || _prefix$3$coding === void 0 ? void 0 : (_prefix$3$coding$ = _prefix$3$coding[0]) === null || _prefix$3$coding$ === void 0 ? void 0 : _prefix$3$coding$.display) || (prefix === null || prefix === void 0 ? void 0 : (_prefix$coding2 = prefix.coding) === null || _prefix$coding2 === void 0 ? void 0 : (_prefix$coding2$ = _prefix$coding2[0]) === null || _prefix$coding2$ === void 0 ? void 0 : _prefix$coding2$.display) || (prefix === null || prefix === void 0 ? void 0 : (_prefix$4 = prefix[0]) === null || _prefix$4 === void 0 ? void 0 : _prefix$4.display) || (prefix === null || prefix === void 0 ? void 0 : prefix.display) || "";
|
|
8453
|
+
var suffixVal = (suffix === null || suffix === void 0 ? void 0 : (_suffix$3 = suffix[0]) === null || _suffix$3 === void 0 ? void 0 : (_suffix$3$coding = _suffix$3.coding) === null || _suffix$3$coding === void 0 ? void 0 : (_suffix$3$coding$ = _suffix$3$coding[0]) === null || _suffix$3$coding$ === void 0 ? void 0 : _suffix$3$coding$.display) || (suffix === null || suffix === void 0 ? void 0 : (_suffix$coding2 = suffix.coding) === null || _suffix$coding2 === void 0 ? void 0 : (_suffix$coding2$ = _suffix$coding2[0]) === null || _suffix$coding2$ === void 0 ? void 0 : _suffix$coding2$.display) || (suffix === null || suffix === void 0 ? void 0 : (_suffix$4 = suffix[0]) === null || _suffix$4 === void 0 ? void 0 : _suffix$4.display) || (suffix === null || suffix === void 0 ? void 0 : suffix.display) || "";
|
|
8454
|
+
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(family && family + " ").concat(suffixVal && suffixVal);
|
|
8455
|
+
};
|
|
8426
8456
|
|
|
8427
8457
|
var fetchData$3 = /*#__PURE__*/function () {
|
|
8428
8458
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(input) {
|
|
@@ -18882,7 +18912,54 @@ var GET_FACILITY_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/ge
|
|
|
18882
18912
|
}
|
|
18883
18913
|
}, _callee7, null, [[2, 13]]);
|
|
18884
18914
|
})));
|
|
18885
|
-
|
|
18915
|
+
|
|
18916
|
+
var constructPractitonerType = function constructPractitonerType(data) {
|
|
18917
|
+
debugger;
|
|
18918
|
+
var arr = [];
|
|
18919
|
+
|
|
18920
|
+
if (Array.isArray(data) && (data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
18921
|
+
data.map(function (val) {
|
|
18922
|
+
if ((val === null || val === void 0 ? void 0 : val.practitioner_type) !== null) {
|
|
18923
|
+
var _val$practitioner_typ, _val$practitioner_typ2, _val$practitioner_typ3, _val$practitioner_typ4, _val$practitioner_typ5;
|
|
18924
|
+
|
|
18925
|
+
var obj = {
|
|
18926
|
+
label: val === null || val === void 0 ? void 0 : (_val$practitioner_typ = val.practitioner_type) === null || _val$practitioner_typ === void 0 ? void 0 : (_val$practitioner_typ2 = _val$practitioner_typ[0]) === null || _val$practitioner_typ2 === void 0 ? void 0 : _val$practitioner_typ2._id,
|
|
18927
|
+
value: (_val$practitioner_typ3 = val === null || val === void 0 ? void 0 : (_val$practitioner_typ4 = val.practitioner_type) === null || _val$practitioner_typ4 === void 0 ? void 0 : (_val$practitioner_typ5 = _val$practitioner_typ4[0]) === null || _val$practitioner_typ5 === void 0 ? void 0 : _val$practitioner_typ5.display) !== null && _val$practitioner_typ3 !== void 0 ? _val$practitioner_typ3 : ""
|
|
18928
|
+
};
|
|
18929
|
+
arr.push(obj);
|
|
18930
|
+
}
|
|
18931
|
+
});
|
|
18932
|
+
}
|
|
18933
|
+
|
|
18934
|
+
debugger;
|
|
18935
|
+
return arr;
|
|
18936
|
+
};
|
|
18937
|
+
|
|
18938
|
+
var constructPractitonerName = function constructPractitonerName(data) {
|
|
18939
|
+
debugger;
|
|
18940
|
+
var arr = [];
|
|
18941
|
+
|
|
18942
|
+
if (Array.isArray(data) && (data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
18943
|
+
data.map(function (val) {
|
|
18944
|
+
var _val$name;
|
|
18945
|
+
|
|
18946
|
+
if (Array.isArray(val === null || val === void 0 ? void 0 : val.name) && (val === null || val === void 0 ? void 0 : (_val$name = val.name) === null || _val$name === void 0 ? void 0 : _val$name.length) > 0) {
|
|
18947
|
+
var _val$name2, _val$name2$, _val$name3;
|
|
18948
|
+
|
|
18949
|
+
var obj = {
|
|
18950
|
+
label: val === null || val === void 0 ? void 0 : (_val$name2 = val.name) === null || _val$name2 === void 0 ? void 0 : (_val$name2$ = _val$name2[0]) === null || _val$name2$ === void 0 ? void 0 : _val$name2$._id,
|
|
18951
|
+
value: makeName_(val === null || val === void 0 ? void 0 : (_val$name3 = val.name) === null || _val$name3 === void 0 ? void 0 : _val$name3[0])
|
|
18952
|
+
};
|
|
18953
|
+
arr.push(obj);
|
|
18954
|
+
}
|
|
18955
|
+
});
|
|
18956
|
+
}
|
|
18957
|
+
|
|
18958
|
+
debugger;
|
|
18959
|
+
return arr;
|
|
18960
|
+
};
|
|
18961
|
+
|
|
18962
|
+
var GET_PRACTITIONER_TYPE = createAsyncThunk("OrganizationRegisterPatientApiSlice/getPractitionerType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
18886
18963
|
var payload,
|
|
18887
18964
|
_ref16,
|
|
18888
18965
|
rejectWithValue,
|
|
@@ -18903,9 +18980,9 @@ var GET_PRACTITIONER = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
18903
18980
|
_payload$OrgID = payload.OrgID, OrgID = _payload$OrgID === void 0 ? "" : _payload$OrgID;
|
|
18904
18981
|
body = {
|
|
18905
18982
|
db_name: dbName,
|
|
18906
|
-
entity: "Practitioner
|
|
18907
|
-
filter: queries$b["
|
|
18908
|
-
return_fields: queries$b["
|
|
18983
|
+
entity: "Practitioner",
|
|
18984
|
+
filter: queries$b["codablemasterPractitionerType"].query(OrgID),
|
|
18985
|
+
return_fields: queries$b["codablemasterPractitionerType"].returnFields
|
|
18909
18986
|
};
|
|
18910
18987
|
_context8.next = 7;
|
|
18911
18988
|
return fetchData$3({
|
|
@@ -18914,36 +18991,39 @@ var GET_PRACTITIONER = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
18914
18991
|
|
|
18915
18992
|
case 7:
|
|
18916
18993
|
data = _context8.sent;
|
|
18994
|
+
debugger;
|
|
18917
18995
|
returnData = [];
|
|
18918
18996
|
|
|
18919
18997
|
if (Array.isArray(data.result)) {
|
|
18920
|
-
returnData = data.result;
|
|
18998
|
+
returnData = constructPractitonerType(data.result);
|
|
18921
18999
|
}
|
|
18922
19000
|
|
|
18923
19001
|
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
18924
19002
|
data: returnData
|
|
18925
19003
|
}));
|
|
18926
19004
|
|
|
18927
|
-
case
|
|
18928
|
-
_context8.prev =
|
|
19005
|
+
case 14:
|
|
19006
|
+
_context8.prev = 14;
|
|
18929
19007
|
_context8.t0 = _context8["catch"](2);
|
|
18930
19008
|
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
18931
19009
|
message: _context8.t0.message
|
|
18932
19010
|
})));
|
|
18933
19011
|
|
|
18934
|
-
case
|
|
19012
|
+
case 17:
|
|
18935
19013
|
case "end":
|
|
18936
19014
|
return _context8.stop();
|
|
18937
19015
|
}
|
|
18938
19016
|
}
|
|
18939
|
-
}, _callee8, null, [[2,
|
|
19017
|
+
}, _callee8, null, [[2, 14]]);
|
|
18940
19018
|
})));
|
|
18941
|
-
var
|
|
19019
|
+
var GET_PRACTITIONER_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getPractitionerName", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
18942
19020
|
var payload,
|
|
18943
19021
|
_ref18,
|
|
18944
19022
|
rejectWithValue,
|
|
18945
|
-
_payload$
|
|
18946
|
-
|
|
19023
|
+
_payload$specialityID,
|
|
19024
|
+
specialityID,
|
|
19025
|
+
_payload$practitioner,
|
|
19026
|
+
practitionerType,
|
|
18947
19027
|
body,
|
|
18948
19028
|
data,
|
|
18949
19029
|
returnData,
|
|
@@ -18956,12 +19036,12 @@ var GET_PRACTITIONERS = createAsyncThunk("OrganizationRegisterPatientApiSlice/ge
|
|
|
18956
19036
|
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
18957
19037
|
_ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
|
|
18958
19038
|
_context9.prev = 2;
|
|
18959
|
-
_payload$
|
|
19039
|
+
_payload$specialityID = payload.specialityID, specialityID = _payload$specialityID === void 0 ? "" : _payload$specialityID, _payload$practitioner = payload.practitionerType, practitionerType = _payload$practitioner === void 0 ? "" : _payload$practitioner;
|
|
18960
19040
|
body = {
|
|
18961
19041
|
db_name: dbName,
|
|
18962
19042
|
entity: "Practitioner",
|
|
18963
|
-
filter: "
|
|
18964
|
-
return_fields: "
|
|
19043
|
+
filter: queries$b["codablemasterPractitionerName"].query(specialityID, practitionerType),
|
|
19044
|
+
return_fields: queries$b["codablemasterPractitionerName"].returnFields
|
|
18965
19045
|
};
|
|
18966
19046
|
_context9.next = 7;
|
|
18967
19047
|
return fetchData$3({
|
|
@@ -18970,35 +19050,36 @@ var GET_PRACTITIONERS = createAsyncThunk("OrganizationRegisterPatientApiSlice/ge
|
|
|
18970
19050
|
|
|
18971
19051
|
case 7:
|
|
18972
19052
|
data = _context9.sent;
|
|
19053
|
+
debugger;
|
|
18973
19054
|
returnData = [];
|
|
18974
19055
|
|
|
18975
19056
|
if (Array.isArray(data.result)) {
|
|
18976
|
-
returnData = data.result;
|
|
19057
|
+
returnData = constructPractitonerName(data.result);
|
|
18977
19058
|
}
|
|
18978
19059
|
|
|
18979
19060
|
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
18980
19061
|
data: returnData
|
|
18981
19062
|
}));
|
|
18982
19063
|
|
|
18983
|
-
case
|
|
18984
|
-
_context9.prev =
|
|
19064
|
+
case 14:
|
|
19065
|
+
_context9.prev = 14;
|
|
18985
19066
|
_context9.t0 = _context9["catch"](2);
|
|
18986
19067
|
return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
18987
19068
|
message: _context9.t0.message
|
|
18988
19069
|
})));
|
|
18989
19070
|
|
|
18990
|
-
case
|
|
19071
|
+
case 17:
|
|
18991
19072
|
case "end":
|
|
18992
19073
|
return _context9.stop();
|
|
18993
19074
|
}
|
|
18994
19075
|
}
|
|
18995
|
-
}, _callee9, null, [[2,
|
|
19076
|
+
}, _callee9, null, [[2, 14]]);
|
|
18996
19077
|
})));
|
|
18997
|
-
var
|
|
19078
|
+
var GET_PRACTITIONER = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpractitioner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
18998
19079
|
var payload,
|
|
18999
19080
|
_ref20,
|
|
19000
19081
|
rejectWithValue,
|
|
19001
|
-
_payload$
|
|
19082
|
+
_payload$OrgID2,
|
|
19002
19083
|
OrgID,
|
|
19003
19084
|
body,
|
|
19004
19085
|
data,
|
|
@@ -19012,12 +19093,12 @@ var GET_PRACTITIONER_ROLE = createAsyncThunk("OrganizationRegisterPatientApiSlic
|
|
|
19012
19093
|
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
19013
19094
|
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
19014
19095
|
_context10.prev = 2;
|
|
19015
|
-
_payload$
|
|
19096
|
+
_payload$OrgID2 = payload.OrgID, OrgID = _payload$OrgID2 === void 0 ? "" : _payload$OrgID2;
|
|
19016
19097
|
body = {
|
|
19017
19098
|
db_name: dbName,
|
|
19018
|
-
entity: "Practitioner,PractitionerRole
|
|
19019
|
-
filter: queries$b["
|
|
19020
|
-
return_fields: queries$b["
|
|
19099
|
+
entity: "Practitioner,PractitionerRole",
|
|
19100
|
+
filter: queries$b["codablemasterPractitioner"].query(OrgID),
|
|
19101
|
+
return_fields: queries$b["codablemasterPractitioner"].returnFields
|
|
19021
19102
|
};
|
|
19022
19103
|
_context10.next = 7;
|
|
19023
19104
|
return fetchData$3({
|
|
@@ -19050,18 +19131,15 @@ var GET_PRACTITIONER_ROLE = createAsyncThunk("OrganizationRegisterPatientApiSlic
|
|
|
19050
19131
|
}
|
|
19051
19132
|
}, _callee10, null, [[2, 13]]);
|
|
19052
19133
|
})));
|
|
19053
|
-
var
|
|
19134
|
+
var GET_PRACTITIONERS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpractitioners", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
19054
19135
|
var payload,
|
|
19055
19136
|
_ref22,
|
|
19056
19137
|
rejectWithValue,
|
|
19057
|
-
_payload$
|
|
19058
|
-
|
|
19138
|
+
_payload$OrgID3,
|
|
19139
|
+
OrgID,
|
|
19059
19140
|
body,
|
|
19060
19141
|
data,
|
|
19061
19142
|
returnData,
|
|
19062
|
-
_data$result$0$specia,
|
|
19063
|
-
_data$result,
|
|
19064
|
-
_data$result$,
|
|
19065
19143
|
_args11 = arguments;
|
|
19066
19144
|
|
|
19067
19145
|
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
@@ -19071,12 +19149,12 @@ var GET_SPECIALITY_DATA = createAsyncThunk("OrganizationRegisterPatientApiSlice/
|
|
|
19071
19149
|
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
19072
19150
|
_ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
19073
19151
|
_context11.prev = 2;
|
|
19074
|
-
_payload$
|
|
19152
|
+
_payload$OrgID3 = payload.OrgID, OrgID = _payload$OrgID3 === void 0 ? "" : _payload$OrgID3;
|
|
19075
19153
|
body = {
|
|
19076
19154
|
db_name: dbName,
|
|
19077
|
-
entity: "
|
|
19078
|
-
filter: "
|
|
19079
|
-
return_fields: "{
|
|
19155
|
+
entity: "Practitioner",
|
|
19156
|
+
filter: "document(Practitioner.practitioner_role)[*].SpecialtyID any == '" + OrgID + "'",
|
|
19157
|
+
return_fields: "merge(Practitioner,{name:(let n = document(Practitioner.name)[0] return merge(n, { prefix: (for p in CodeableConceptMaster filter p._id == n.prefix return Document(p.coding)[0])[0], suffix: (for s in CodeableConceptMaster filter s._id == n.suffix return Document(s.coding)[0])[0] }))},{practitioner_role:(for PractitionerRole in PractitionerRole filter Practitioner.practitioner_role any == PractitionerRole._id return merge(PractitionerRole,{role:(for CodeableConceptMaster in CodeableConceptMaster filter CodeableConceptMaster._id == PractitionerRole.role return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}))}, {SpecialtyID:(for CodeableConceptMaster in CodeableConceptMaster filter PractitionerRole.SpecialtyID == CodeableConceptMaster._id return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}) ) } ) )}, {practitioner_type:(for CodeableConceptMaster in CodeableConceptMaster filter CodeableConceptMaster._id == Practitioner.practitioner_type return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}))})"
|
|
19080
19158
|
};
|
|
19081
19159
|
_context11.next = 7;
|
|
19082
19160
|
return fetchData$3({
|
|
@@ -19088,7 +19166,7 @@ var GET_SPECIALITY_DATA = createAsyncThunk("OrganizationRegisterPatientApiSlice/
|
|
|
19088
19166
|
returnData = [];
|
|
19089
19167
|
|
|
19090
19168
|
if (Array.isArray(data.result)) {
|
|
19091
|
-
returnData =
|
|
19169
|
+
returnData = data.result;
|
|
19092
19170
|
}
|
|
19093
19171
|
|
|
19094
19172
|
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
@@ -19109,12 +19187,12 @@ var GET_SPECIALITY_DATA = createAsyncThunk("OrganizationRegisterPatientApiSlice/
|
|
|
19109
19187
|
}
|
|
19110
19188
|
}, _callee11, null, [[2, 13]]);
|
|
19111
19189
|
})));
|
|
19112
|
-
var
|
|
19190
|
+
var GET_PRACTITIONER_ROLE = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpractitionerRole", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
|
19113
19191
|
var payload,
|
|
19114
19192
|
_ref24,
|
|
19115
19193
|
rejectWithValue,
|
|
19116
|
-
_payload$
|
|
19117
|
-
|
|
19194
|
+
_payload$OrgID4,
|
|
19195
|
+
OrgID,
|
|
19118
19196
|
body,
|
|
19119
19197
|
data,
|
|
19120
19198
|
returnData,
|
|
@@ -19127,12 +19205,12 @@ var GET_FINANCIAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getfin
|
|
|
19127
19205
|
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
19128
19206
|
_ref24 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
|
|
19129
19207
|
_context12.prev = 2;
|
|
19130
|
-
_payload$
|
|
19208
|
+
_payload$OrgID4 = payload.OrgID, OrgID = _payload$OrgID4 === void 0 ? "" : _payload$OrgID4;
|
|
19131
19209
|
body = {
|
|
19132
19210
|
db_name: dbName,
|
|
19133
|
-
entity: "
|
|
19134
|
-
filter: queries$b["
|
|
19135
|
-
return_fields: queries$b["
|
|
19211
|
+
entity: "Practitioner,PractitionerRole,CodeableConceptMaster",
|
|
19212
|
+
filter: queries$b["codablemasterPractitionerRole"].query(OrgID),
|
|
19213
|
+
return_fields: queries$b["codablemasterPractitionerRole"].returnFields
|
|
19136
19214
|
};
|
|
19137
19215
|
_context12.next = 7;
|
|
19138
19216
|
return fetchData$3({
|
|
@@ -19165,16 +19243,18 @@ var GET_FINANCIAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getfin
|
|
|
19165
19243
|
}
|
|
19166
19244
|
}, _callee12, null, [[2, 13]]);
|
|
19167
19245
|
})));
|
|
19168
|
-
var
|
|
19246
|
+
var GET_SPECIALITY_DATA = createAsyncThunk("OrganizationRegisterPatientApiSlice/getspeciality", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
|
|
19169
19247
|
var payload,
|
|
19170
19248
|
_ref26,
|
|
19171
19249
|
rejectWithValue,
|
|
19172
|
-
_payload$
|
|
19173
|
-
|
|
19174
|
-
encounterId,
|
|
19250
|
+
_payload$id,
|
|
19251
|
+
id,
|
|
19175
19252
|
body,
|
|
19176
19253
|
data,
|
|
19177
19254
|
returnData,
|
|
19255
|
+
_data$result$0$specia,
|
|
19256
|
+
_data$result,
|
|
19257
|
+
_data$result$,
|
|
19178
19258
|
_args13 = arguments;
|
|
19179
19259
|
|
|
19180
19260
|
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
@@ -19184,13 +19264,12 @@ var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice
|
|
|
19184
19264
|
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
|
19185
19265
|
_ref26 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
|
|
19186
19266
|
_context13.prev = 2;
|
|
19187
|
-
_payload$
|
|
19267
|
+
_payload$id = payload.id, id = _payload$id === void 0 ? "" : _payload$id;
|
|
19188
19268
|
body = {
|
|
19189
19269
|
db_name: dbName,
|
|
19190
|
-
entity: "
|
|
19191
|
-
filter: "
|
|
19192
|
-
return_fields: "
|
|
19193
|
-
sort: "Encounter.encounterdate desc"
|
|
19270
|
+
entity: "Organization",
|
|
19271
|
+
filter: "Organization.id==".concat(id, " && Organization.activestatus==true"),
|
|
19272
|
+
return_fields: "{specialty:DOCUMENT(Organization.specialtyDetails[*].specialty)}"
|
|
19194
19273
|
};
|
|
19195
19274
|
_context13.next = 7;
|
|
19196
19275
|
return fetchData$3({
|
|
@@ -19202,7 +19281,7 @@ var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice
|
|
|
19202
19281
|
returnData = [];
|
|
19203
19282
|
|
|
19204
19283
|
if (Array.isArray(data.result)) {
|
|
19205
|
-
returnData = data.result;
|
|
19284
|
+
returnData = (_data$result$0$specia = (_data$result = data.result) === null || _data$result === void 0 ? void 0 : (_data$result$ = _data$result[0]) === null || _data$result$ === void 0 ? void 0 : _data$result$.specialty) !== null && _data$result$0$specia !== void 0 ? _data$result$0$specia : [];
|
|
19206
19285
|
}
|
|
19207
19286
|
|
|
19208
19287
|
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
@@ -19223,10 +19302,124 @@ var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice
|
|
|
19223
19302
|
}
|
|
19224
19303
|
}, _callee13, null, [[2, 13]]);
|
|
19225
19304
|
})));
|
|
19226
|
-
var
|
|
19305
|
+
var GET_FINANCIAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getfinancial", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
|
|
19227
19306
|
var payload,
|
|
19228
19307
|
_ref28,
|
|
19229
19308
|
rejectWithValue,
|
|
19309
|
+
_payload$patientId2,
|
|
19310
|
+
patientId,
|
|
19311
|
+
body,
|
|
19312
|
+
data,
|
|
19313
|
+
returnData,
|
|
19314
|
+
_args14 = arguments;
|
|
19315
|
+
|
|
19316
|
+
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
19317
|
+
while (1) {
|
|
19318
|
+
switch (_context14.prev = _context14.next) {
|
|
19319
|
+
case 0:
|
|
19320
|
+
payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
|
|
19321
|
+
_ref28 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
|
|
19322
|
+
_context14.prev = 2;
|
|
19323
|
+
_payload$patientId2 = payload.patientId, patientId = _payload$patientId2 === void 0 ? "" : _payload$patientId2;
|
|
19324
|
+
body = {
|
|
19325
|
+
db_name: dbName,
|
|
19326
|
+
entity: "Account",
|
|
19327
|
+
filter: queries$b["codablemasterGetFinancial"].query(patientId),
|
|
19328
|
+
return_fields: queries$b["codablemasterGetFinancial"].returnFields
|
|
19329
|
+
};
|
|
19330
|
+
_context14.next = 7;
|
|
19331
|
+
return fetchData$3({
|
|
19332
|
+
body: JSON.stringify(body)
|
|
19333
|
+
}, __readDocumentUrl__);
|
|
19334
|
+
|
|
19335
|
+
case 7:
|
|
19336
|
+
data = _context14.sent;
|
|
19337
|
+
returnData = [];
|
|
19338
|
+
|
|
19339
|
+
if (Array.isArray(data.result)) {
|
|
19340
|
+
returnData = data.result;
|
|
19341
|
+
}
|
|
19342
|
+
|
|
19343
|
+
return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19344
|
+
data: returnData
|
|
19345
|
+
}));
|
|
19346
|
+
|
|
19347
|
+
case 13:
|
|
19348
|
+
_context14.prev = 13;
|
|
19349
|
+
_context14.t0 = _context14["catch"](2);
|
|
19350
|
+
return _context14.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19351
|
+
message: _context14.t0.message
|
|
19352
|
+
})));
|
|
19353
|
+
|
|
19354
|
+
case 16:
|
|
19355
|
+
case "end":
|
|
19356
|
+
return _context14.stop();
|
|
19357
|
+
}
|
|
19358
|
+
}
|
|
19359
|
+
}, _callee14, null, [[2, 13]]);
|
|
19360
|
+
})));
|
|
19361
|
+
var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterHeader", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15() {
|
|
19362
|
+
var payload,
|
|
19363
|
+
_ref30,
|
|
19364
|
+
rejectWithValue,
|
|
19365
|
+
_payload$patientId3,
|
|
19366
|
+
patientId,
|
|
19367
|
+
encounterId,
|
|
19368
|
+
body,
|
|
19369
|
+
data,
|
|
19370
|
+
returnData,
|
|
19371
|
+
_args15 = arguments;
|
|
19372
|
+
|
|
19373
|
+
return regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
19374
|
+
while (1) {
|
|
19375
|
+
switch (_context15.prev = _context15.next) {
|
|
19376
|
+
case 0:
|
|
19377
|
+
payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
|
|
19378
|
+
_ref30 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
19379
|
+
_context15.prev = 2;
|
|
19380
|
+
_payload$patientId3 = payload.patientId, patientId = _payload$patientId3 === void 0 ? "" : _payload$patientId3, encounterId = payload.encounterId;
|
|
19381
|
+
body = {
|
|
19382
|
+
db_name: dbName,
|
|
19383
|
+
entity: "Encounter",
|
|
19384
|
+
filter: "Encounter.patient_id == ".concat(patientId, " && Encounter.id==").concat(encounterId, " && Encounter.activestatus == true"),
|
|
19385
|
+
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) )})",
|
|
19386
|
+
sort: "Encounter.encounterdate desc"
|
|
19387
|
+
};
|
|
19388
|
+
_context15.next = 7;
|
|
19389
|
+
return fetchData$3({
|
|
19390
|
+
body: JSON.stringify(body)
|
|
19391
|
+
}, __readDocumentUrl__);
|
|
19392
|
+
|
|
19393
|
+
case 7:
|
|
19394
|
+
data = _context15.sent;
|
|
19395
|
+
returnData = [];
|
|
19396
|
+
|
|
19397
|
+
if (Array.isArray(data.result)) {
|
|
19398
|
+
returnData = data.result;
|
|
19399
|
+
}
|
|
19400
|
+
|
|
19401
|
+
return _context15.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19402
|
+
data: returnData
|
|
19403
|
+
}));
|
|
19404
|
+
|
|
19405
|
+
case 13:
|
|
19406
|
+
_context15.prev = 13;
|
|
19407
|
+
_context15.t0 = _context15["catch"](2);
|
|
19408
|
+
return _context15.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19409
|
+
message: _context15.t0.message
|
|
19410
|
+
})));
|
|
19411
|
+
|
|
19412
|
+
case 16:
|
|
19413
|
+
case "end":
|
|
19414
|
+
return _context15.stop();
|
|
19415
|
+
}
|
|
19416
|
+
}
|
|
19417
|
+
}, _callee15, null, [[2, 13]]);
|
|
19418
|
+
})));
|
|
19419
|
+
var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getreferral", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
|
|
19420
|
+
var payload,
|
|
19421
|
+
_ref32,
|
|
19422
|
+
rejectWithValue,
|
|
19230
19423
|
_payload$patientid,
|
|
19231
19424
|
patientid,
|
|
19232
19425
|
_payload$reffId,
|
|
@@ -19265,15 +19458,15 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19265
19458
|
_returnData15,
|
|
19266
19459
|
_returnData15$,
|
|
19267
19460
|
info,
|
|
19268
|
-
|
|
19461
|
+
_args16 = arguments;
|
|
19269
19462
|
|
|
19270
|
-
return regeneratorRuntime.wrap(function
|
|
19463
|
+
return regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
19271
19464
|
while (1) {
|
|
19272
|
-
switch (
|
|
19465
|
+
switch (_context16.prev = _context16.next) {
|
|
19273
19466
|
case 0:
|
|
19274
|
-
payload =
|
|
19275
|
-
|
|
19276
|
-
|
|
19467
|
+
payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
|
|
19468
|
+
_ref32 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
19469
|
+
_context16.prev = 2;
|
|
19277
19470
|
_payload$patientid = payload.patientid, patientid = _payload$patientid === void 0 ? "" : _payload$patientid, _payload$reffId = payload.reffId, reffId = _payload$reffId === void 0 ? "" : _payload$reffId;
|
|
19278
19471
|
body = {
|
|
19279
19472
|
db_name: dbName,
|
|
@@ -19281,13 +19474,13 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19281
19474
|
filter: queries$b["codablemasterGetReferral"].query(patientid, reffId),
|
|
19282
19475
|
return_fields: queries$b["codablemasterGetReferral"].returnFields
|
|
19283
19476
|
};
|
|
19284
|
-
|
|
19477
|
+
_context16.next = 7;
|
|
19285
19478
|
return fetchData$3({
|
|
19286
19479
|
body: JSON.stringify(body)
|
|
19287
19480
|
}, __readDocumentUrl__);
|
|
19288
19481
|
|
|
19289
19482
|
case 7:
|
|
19290
|
-
data =
|
|
19483
|
+
data = _context16.sent;
|
|
19291
19484
|
returnData = [];
|
|
19292
19485
|
|
|
19293
19486
|
if (Array.isArray(data.result)) {
|
|
@@ -19320,42 +19513,42 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19320
19513
|
returnData[0] = _objectSpread2(_objectSpread2({}, returnData[0]), info);
|
|
19321
19514
|
}
|
|
19322
19515
|
|
|
19323
|
-
return
|
|
19516
|
+
return _context16.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19324
19517
|
data: returnData
|
|
19325
19518
|
}));
|
|
19326
19519
|
|
|
19327
19520
|
case 13:
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
return
|
|
19331
|
-
message:
|
|
19521
|
+
_context16.prev = 13;
|
|
19522
|
+
_context16.t0 = _context16["catch"](2);
|
|
19523
|
+
return _context16.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19524
|
+
message: _context16.t0.message
|
|
19332
19525
|
})));
|
|
19333
19526
|
|
|
19334
19527
|
case 16:
|
|
19335
19528
|
case "end":
|
|
19336
|
-
return
|
|
19529
|
+
return _context16.stop();
|
|
19337
19530
|
}
|
|
19338
19531
|
}
|
|
19339
|
-
},
|
|
19532
|
+
}, _callee16, null, [[2, 13]]);
|
|
19340
19533
|
})));
|
|
19341
|
-
var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSlice/getappointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19534
|
+
var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSlice/getappointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {
|
|
19342
19535
|
var payload,
|
|
19343
|
-
|
|
19536
|
+
_ref34,
|
|
19344
19537
|
rejectWithValue,
|
|
19345
19538
|
_payload$appointmentI,
|
|
19346
19539
|
appointmentId,
|
|
19347
19540
|
body,
|
|
19348
19541
|
data,
|
|
19349
19542
|
returnData,
|
|
19350
|
-
|
|
19543
|
+
_args17 = arguments;
|
|
19351
19544
|
|
|
19352
|
-
return regeneratorRuntime.wrap(function
|
|
19545
|
+
return regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
19353
19546
|
while (1) {
|
|
19354
|
-
switch (
|
|
19547
|
+
switch (_context17.prev = _context17.next) {
|
|
19355
19548
|
case 0:
|
|
19356
|
-
payload =
|
|
19357
|
-
|
|
19358
|
-
|
|
19549
|
+
payload = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
|
|
19550
|
+
_ref34 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref34.rejectWithValue;
|
|
19551
|
+
_context17.prev = 2;
|
|
19359
19552
|
_payload$appointmentI = payload.appointmentId, appointmentId = _payload$appointmentI === void 0 ? "" : _payload$appointmentI;
|
|
19360
19553
|
body = {
|
|
19361
19554
|
db_name: dbName,
|
|
@@ -19363,40 +19556,40 @@ var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSl
|
|
|
19363
19556
|
filter: queries$b["codablemasterGetAppointment"].query(appointmentId),
|
|
19364
19557
|
return_fields: queries$b["codablemasterGetAppointment"].returnFields
|
|
19365
19558
|
};
|
|
19366
|
-
|
|
19559
|
+
_context17.next = 7;
|
|
19367
19560
|
return fetchData$3({
|
|
19368
19561
|
body: JSON.stringify(body)
|
|
19369
19562
|
}, __readDocumentUrl__);
|
|
19370
19563
|
|
|
19371
19564
|
case 7:
|
|
19372
|
-
data =
|
|
19565
|
+
data = _context17.sent;
|
|
19373
19566
|
returnData = [];
|
|
19374
19567
|
|
|
19375
19568
|
if (Array.isArray(data.result)) {
|
|
19376
19569
|
returnData = data.result;
|
|
19377
19570
|
}
|
|
19378
19571
|
|
|
19379
|
-
return
|
|
19572
|
+
return _context17.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19380
19573
|
data: returnData
|
|
19381
19574
|
}));
|
|
19382
19575
|
|
|
19383
19576
|
case 13:
|
|
19384
|
-
|
|
19385
|
-
|
|
19386
|
-
return
|
|
19387
|
-
message:
|
|
19577
|
+
_context17.prev = 13;
|
|
19578
|
+
_context17.t0 = _context17["catch"](2);
|
|
19579
|
+
return _context17.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19580
|
+
message: _context17.t0.message
|
|
19388
19581
|
})));
|
|
19389
19582
|
|
|
19390
19583
|
case 16:
|
|
19391
19584
|
case "end":
|
|
19392
|
-
return
|
|
19585
|
+
return _context17.stop();
|
|
19393
19586
|
}
|
|
19394
19587
|
}
|
|
19395
|
-
},
|
|
19588
|
+
}, _callee17, null, [[2, 13]]);
|
|
19396
19589
|
})));
|
|
19397
|
-
var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatientname", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19590
|
+
var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatientname", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
|
19398
19591
|
var payload,
|
|
19399
|
-
|
|
19592
|
+
_ref36,
|
|
19400
19593
|
rejectWithValue,
|
|
19401
19594
|
_patientName$split,
|
|
19402
19595
|
_patientName$split2,
|
|
@@ -19409,15 +19602,15 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19409
19602
|
body,
|
|
19410
19603
|
data,
|
|
19411
19604
|
returnData,
|
|
19412
|
-
|
|
19605
|
+
_args18 = arguments;
|
|
19413
19606
|
|
|
19414
|
-
return regeneratorRuntime.wrap(function
|
|
19607
|
+
return regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
19415
19608
|
while (1) {
|
|
19416
|
-
switch (
|
|
19609
|
+
switch (_context18.prev = _context18.next) {
|
|
19417
19610
|
case 0:
|
|
19418
|
-
payload =
|
|
19419
|
-
|
|
19420
|
-
|
|
19611
|
+
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
19612
|
+
_ref36 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref36.rejectWithValue;
|
|
19613
|
+
_context18.prev = 2;
|
|
19421
19614
|
_payload$patientName = payload.patientName, patientName = _payload$patientName === void 0 ? "" : _payload$patientName;
|
|
19422
19615
|
firstName = (_patientName$split = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 1)) !== null && _patientName$split !== void 0 ? _patientName$split : "";
|
|
19423
19616
|
secondName = (_patientName$split2 = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 2)) !== null && _patientName$split2 !== void 0 ? _patientName$split2 : "";
|
|
@@ -19433,40 +19626,40 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19433
19626
|
}),
|
|
19434
19627
|
return_fields: queries$b["codablemasterGetPatientname"].returnFields
|
|
19435
19628
|
};
|
|
19436
|
-
|
|
19629
|
+
_context18.next = 11;
|
|
19437
19630
|
return fetchData$3({
|
|
19438
19631
|
body: JSON.stringify(body)
|
|
19439
19632
|
}, __readDocumentUrl__);
|
|
19440
19633
|
|
|
19441
19634
|
case 11:
|
|
19442
|
-
data =
|
|
19635
|
+
data = _context18.sent;
|
|
19443
19636
|
returnData = [];
|
|
19444
19637
|
|
|
19445
19638
|
if (Array.isArray(data.result)) {
|
|
19446
19639
|
returnData = data.result;
|
|
19447
19640
|
}
|
|
19448
19641
|
|
|
19449
|
-
return
|
|
19642
|
+
return _context18.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19450
19643
|
data: returnData
|
|
19451
19644
|
}));
|
|
19452
19645
|
|
|
19453
19646
|
case 17:
|
|
19454
|
-
|
|
19455
|
-
|
|
19456
|
-
return
|
|
19457
|
-
message:
|
|
19647
|
+
_context18.prev = 17;
|
|
19648
|
+
_context18.t0 = _context18["catch"](2);
|
|
19649
|
+
return _context18.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19650
|
+
message: _context18.t0.message
|
|
19458
19651
|
})));
|
|
19459
19652
|
|
|
19460
19653
|
case 20:
|
|
19461
19654
|
case "end":
|
|
19462
|
-
return
|
|
19655
|
+
return _context18.stop();
|
|
19463
19656
|
}
|
|
19464
19657
|
}
|
|
19465
|
-
},
|
|
19658
|
+
}, _callee18, null, [[2, 17]]);
|
|
19466
19659
|
})));
|
|
19467
|
-
var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatienttypeid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19660
|
+
var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatienttypeid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
|
|
19468
19661
|
var payload,
|
|
19469
|
-
|
|
19662
|
+
_ref38,
|
|
19470
19663
|
rejectWithValue,
|
|
19471
19664
|
_payload$idnumber,
|
|
19472
19665
|
idnumber,
|
|
@@ -19474,84 +19667,84 @@ var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/g
|
|
|
19474
19667
|
idsourcecode,
|
|
19475
19668
|
body,
|
|
19476
19669
|
data,
|
|
19477
|
-
|
|
19670
|
+
_args19 = arguments;
|
|
19478
19671
|
|
|
19479
|
-
return regeneratorRuntime.wrap(function
|
|
19672
|
+
return regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
19480
19673
|
while (1) {
|
|
19481
|
-
switch (
|
|
19674
|
+
switch (_context19.prev = _context19.next) {
|
|
19482
19675
|
case 0:
|
|
19483
|
-
payload =
|
|
19484
|
-
|
|
19485
|
-
|
|
19676
|
+
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
19677
|
+
_ref38 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref38.rejectWithValue;
|
|
19678
|
+
_context19.prev = 2;
|
|
19486
19679
|
_payload$idnumber = payload.idnumber, idnumber = _payload$idnumber === void 0 ? "" : _payload$idnumber, _payload$idsourcecode = payload.idsourcecode, idsourcecode = _payload$idsourcecode === void 0 ? "" : _payload$idsourcecode;
|
|
19487
19680
|
body = {
|
|
19488
19681
|
db_name: dbName,
|
|
19489
19682
|
filter: JSON.parse("{\n \"idnumber\":\"".concat(idnumber, "\",\"idsourcecode\":\"").concat(idsourcecode, "\"\n }")),
|
|
19490
19683
|
queryid: "8ffac13e-b147-4568-a13e-ecf9c07c0d92"
|
|
19491
19684
|
};
|
|
19492
|
-
|
|
19685
|
+
_context19.next = 7;
|
|
19493
19686
|
return fetchData$3({
|
|
19494
19687
|
body: JSON.stringify(body)
|
|
19495
19688
|
}, __baseUrl__);
|
|
19496
19689
|
|
|
19497
19690
|
case 7:
|
|
19498
|
-
data =
|
|
19499
|
-
return
|
|
19691
|
+
data = _context19.sent;
|
|
19692
|
+
return _context19.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19500
19693
|
data: data
|
|
19501
19694
|
}));
|
|
19502
19695
|
|
|
19503
19696
|
case 11:
|
|
19504
|
-
|
|
19505
|
-
|
|
19506
|
-
return
|
|
19507
|
-
message:
|
|
19697
|
+
_context19.prev = 11;
|
|
19698
|
+
_context19.t0 = _context19["catch"](2);
|
|
19699
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19700
|
+
message: _context19.t0.message
|
|
19508
19701
|
})));
|
|
19509
19702
|
|
|
19510
19703
|
case 14:
|
|
19511
19704
|
case "end":
|
|
19512
|
-
return
|
|
19705
|
+
return _context19.stop();
|
|
19513
19706
|
}
|
|
19514
19707
|
}
|
|
19515
|
-
},
|
|
19708
|
+
}, _callee19, null, [[2, 11]]);
|
|
19516
19709
|
})));
|
|
19517
|
-
var GET_ENCOUNTER_STATUS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19710
|
+
var GET_ENCOUNTER_STATUS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20() {
|
|
19518
19711
|
var payload,
|
|
19519
|
-
|
|
19712
|
+
_ref40,
|
|
19520
19713
|
rejectWithValue,
|
|
19521
19714
|
data,
|
|
19522
|
-
|
|
19715
|
+
_args20 = arguments;
|
|
19523
19716
|
|
|
19524
|
-
return regeneratorRuntime.wrap(function
|
|
19717
|
+
return regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
19525
19718
|
while (1) {
|
|
19526
|
-
switch (
|
|
19719
|
+
switch (_context20.prev = _context20.next) {
|
|
19527
19720
|
case 0:
|
|
19528
|
-
payload =
|
|
19529
|
-
|
|
19530
|
-
|
|
19531
|
-
|
|
19721
|
+
payload = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};
|
|
19722
|
+
_ref40 = _args20.length > 1 ? _args20[1] : undefined, rejectWithValue = _ref40.rejectWithValue;
|
|
19723
|
+
_context20.prev = 2;
|
|
19724
|
+
_context20.next = 5;
|
|
19532
19725
|
return fetchData$3({
|
|
19533
19726
|
body: JSON.stringify(registerQuery.statusRead())
|
|
19534
19727
|
}, __readDocumentUrl__);
|
|
19535
19728
|
|
|
19536
19729
|
case 5:
|
|
19537
|
-
data =
|
|
19538
|
-
return
|
|
19730
|
+
data = _context20.sent;
|
|
19731
|
+
return _context20.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19539
19732
|
data: data.result
|
|
19540
19733
|
}));
|
|
19541
19734
|
|
|
19542
19735
|
case 9:
|
|
19543
|
-
|
|
19544
|
-
|
|
19545
|
-
return
|
|
19546
|
-
message:
|
|
19736
|
+
_context20.prev = 9;
|
|
19737
|
+
_context20.t0 = _context20["catch"](2);
|
|
19738
|
+
return _context20.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19739
|
+
message: _context20.t0.message
|
|
19547
19740
|
})));
|
|
19548
19741
|
|
|
19549
19742
|
case 12:
|
|
19550
19743
|
case "end":
|
|
19551
|
-
return
|
|
19744
|
+
return _context20.stop();
|
|
19552
19745
|
}
|
|
19553
19746
|
}
|
|
19554
|
-
},
|
|
19747
|
+
}, _callee20, null, [[2, 9]]);
|
|
19555
19748
|
})));
|
|
19556
19749
|
var OrganizationRegisterPatientApiSlice = createSlice({
|
|
19557
19750
|
name: "OrganizationRegisterPatientApiSlice",
|
|
@@ -19573,188 +19766,210 @@ var OrganizationRegisterPatientApiSlice = createSlice({
|
|
|
19573
19766
|
getpatientname: _objectSpread2({}, defaultState.Info),
|
|
19574
19767
|
getpatientid: _objectSpread2({}, defaultState.Info),
|
|
19575
19768
|
getEncounterHeader: _objectSpread2({}, defaultState.Info),
|
|
19576
|
-
getEncounterStatus: _objectSpread2({}, defaultState.Info)
|
|
19769
|
+
getEncounterStatus: _objectSpread2({}, defaultState.Info),
|
|
19770
|
+
getPractitionerType: _objectSpread2({}, defaultState.Info),
|
|
19771
|
+
getPractitionerName: _objectSpread2({}, defaultState.Info)
|
|
19577
19772
|
},
|
|
19578
|
-
extraReducers: (_extraReducers$q = {}, _defineProperty(_extraReducers$q,
|
|
19773
|
+
extraReducers: (_extraReducers$q = {}, _defineProperty(_extraReducers$q, GET_PRACTITIONER_TYPE.fulfilled, function (state, action) {
|
|
19579
19774
|
var _action$payload;
|
|
19580
19775
|
|
|
19581
|
-
state.
|
|
19776
|
+
state.getPractitionerType = (_action$payload = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload !== void 0 ? _action$payload : {};
|
|
19777
|
+
}), _defineProperty(_extraReducers$q, GET_PRACTITIONER_TYPE.pending, function (state, action) {
|
|
19778
|
+
state.getPractitionerType.loading = true;
|
|
19779
|
+
}), _defineProperty(_extraReducers$q, GET_PRACTITIONER_TYPE.rejected, function (state, action) {
|
|
19780
|
+
var _action$payload2;
|
|
19781
|
+
|
|
19782
|
+
state.getPractitionerType = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : {};
|
|
19783
|
+
}), _defineProperty(_extraReducers$q, GET_PRACTITIONER_NAME.fulfilled, function (state, action) {
|
|
19784
|
+
var _action$payload3;
|
|
19785
|
+
|
|
19786
|
+
state.getPractitionerName = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : {};
|
|
19787
|
+
}), _defineProperty(_extraReducers$q, GET_PRACTITIONER_NAME.pending, function (state, action) {
|
|
19788
|
+
state.getPractitionerName.loading = true;
|
|
19789
|
+
}), _defineProperty(_extraReducers$q, GET_PRACTITIONER_NAME.rejected, function (state, action) {
|
|
19790
|
+
var _action$payload4;
|
|
19791
|
+
|
|
19792
|
+
state.getPractitionerName = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : {};
|
|
19793
|
+
}), _defineProperty(_extraReducers$q, GET_PATIENT_NAME.fulfilled, function (state, action) {
|
|
19794
|
+
var _action$payload5;
|
|
19795
|
+
|
|
19796
|
+
state.getpatientname = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : {};
|
|
19582
19797
|
}), _defineProperty(_extraReducers$q, GET_PATIENT_NAME.pending, function (state, action) {
|
|
19583
19798
|
state.getpatientname.loading = true;
|
|
19584
19799
|
}), _defineProperty(_extraReducers$q, GET_PATIENT_NAME.rejected, function (state, action) {
|
|
19585
|
-
var _action$
|
|
19800
|
+
var _action$payload6;
|
|
19586
19801
|
|
|
19587
|
-
state.getpatientname = (_action$
|
|
19802
|
+
state.getpatientname = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : {};
|
|
19588
19803
|
}), _defineProperty(_extraReducers$q, GET_PATIENT_APPOINTMENT.fulfilled, function (state, action) {
|
|
19589
|
-
var _action$
|
|
19804
|
+
var _action$payload7;
|
|
19590
19805
|
|
|
19591
|
-
state.getappointment = (_action$
|
|
19806
|
+
state.getappointment = (_action$payload7 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload7 !== void 0 ? _action$payload7 : {};
|
|
19592
19807
|
}), _defineProperty(_extraReducers$q, GET_PATIENT_APPOINTMENT.pending, function (state, action) {
|
|
19593
19808
|
state.getappointment.loading = true;
|
|
19594
19809
|
}), _defineProperty(_extraReducers$q, GET_PATIENT_APPOINTMENT.rejected, function (state, action) {
|
|
19595
|
-
var _action$
|
|
19810
|
+
var _action$payload8;
|
|
19596
19811
|
|
|
19597
|
-
state.getappointment = (_action$
|
|
19812
|
+
state.getappointment = (_action$payload8 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload8 !== void 0 ? _action$payload8 : {};
|
|
19598
19813
|
}), _defineProperty(_extraReducers$q, GET_FERERRAL.fulfilled, function (state, action) {
|
|
19599
|
-
var _action$
|
|
19814
|
+
var _action$payload9;
|
|
19600
19815
|
|
|
19601
|
-
state.getreferral = (_action$
|
|
19816
|
+
state.getreferral = (_action$payload9 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload9 !== void 0 ? _action$payload9 : {};
|
|
19602
19817
|
}), _defineProperty(_extraReducers$q, GET_FERERRAL.pending, function (state, action) {
|
|
19603
19818
|
state.getreferral.loading = true;
|
|
19604
19819
|
}), _defineProperty(_extraReducers$q, GET_FERERRAL.rejected, function (state, action) {
|
|
19605
|
-
var _action$
|
|
19820
|
+
var _action$payload10;
|
|
19606
19821
|
|
|
19607
|
-
state.getreferral = (_action$
|
|
19822
|
+
state.getreferral = (_action$payload10 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload10 !== void 0 ? _action$payload10 : {};
|
|
19608
19823
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_REGISTER_PATIENT.fulfilled, function (state, action) {
|
|
19609
|
-
var _action$
|
|
19824
|
+
var _action$payload11;
|
|
19610
19825
|
|
|
19611
|
-
state.oraganizationRegisterPatient = (_action$
|
|
19826
|
+
state.oraganizationRegisterPatient = (_action$payload11 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload11 !== void 0 ? _action$payload11 : {};
|
|
19612
19827
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_REGISTER_PATIENT.pending, function (state, action) {
|
|
19613
19828
|
state.oraganizationRegisterPatient.loading = true;
|
|
19614
19829
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_REGISTER_PATIENT.rejected, function (state, action) {
|
|
19615
|
-
var _action$
|
|
19830
|
+
var _action$payload12;
|
|
19616
19831
|
|
|
19617
|
-
state.oraganizationRegisterPatient = (_action$
|
|
19832
|
+
state.oraganizationRegisterPatient = (_action$payload12 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
|
|
19618
19833
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_VISIT_REGISTRATION.fulfilled, function (state, action) {
|
|
19619
|
-
var _action$
|
|
19834
|
+
var _action$payload13;
|
|
19620
19835
|
|
|
19621
|
-
state.oraganizationvisitRegister = (_action$
|
|
19836
|
+
state.oraganizationvisitRegister = (_action$payload13 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload13 !== void 0 ? _action$payload13 : {};
|
|
19622
19837
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_VISIT_REGISTRATION.pending, function (state, action) {
|
|
19623
19838
|
state.oraganizationvisitRegister.loading = true;
|
|
19624
19839
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_VISIT_REGISTRATION.rejected, function (state, action) {
|
|
19625
|
-
var _action$
|
|
19840
|
+
var _action$payload14;
|
|
19626
19841
|
|
|
19627
|
-
state.oraganizationvisitRegister = (_action$
|
|
19842
|
+
state.oraganizationvisitRegister = (_action$payload14 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload14 !== void 0 ? _action$payload14 : {};
|
|
19628
19843
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_REFERRAL_REGISTRATION.fulfilled, function (state, action) {
|
|
19629
|
-
var _action$
|
|
19844
|
+
var _action$payload15;
|
|
19630
19845
|
|
|
19631
|
-
state.oraganizationreferralRegister = (_action$
|
|
19846
|
+
state.oraganizationreferralRegister = (_action$payload15 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload15 !== void 0 ? _action$payload15 : {};
|
|
19632
19847
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_REFERRAL_REGISTRATION.pending, function (state, action) {
|
|
19633
19848
|
state.oraganizationreferralRegister.loading = true;
|
|
19634
19849
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_REFERRAL_REGISTRATION.rejected, function (state, action) {
|
|
19635
|
-
var _action$
|
|
19850
|
+
var _action$payload16;
|
|
19636
19851
|
|
|
19637
|
-
state.oraganizationreferralRegister = (_action$
|
|
19852
|
+
state.oraganizationreferralRegister = (_action$payload16 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload16 !== void 0 ? _action$payload16 : {};
|
|
19638
19853
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_FILTER_BY_PATIENT.fulfilled, function (state, action) {
|
|
19639
|
-
var _action$
|
|
19854
|
+
var _action$payload17;
|
|
19640
19855
|
|
|
19641
|
-
state.oraganizationfilterbypatient = (_action$
|
|
19856
|
+
state.oraganizationfilterbypatient = (_action$payload17 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload17 !== void 0 ? _action$payload17 : {};
|
|
19642
19857
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_FILTER_BY_PATIENT.pending, function (state, action) {
|
|
19643
19858
|
state.oraganizationfilterbypatient.loading = true;
|
|
19644
19859
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_FILTER_BY_PATIENT.rejected, function (state, action) {
|
|
19645
|
-
var _action$
|
|
19860
|
+
var _action$payload18;
|
|
19646
19861
|
|
|
19647
|
-
state.oraganizationfilterbypatient = (_action$
|
|
19862
|
+
state.oraganizationfilterbypatient = (_action$payload18 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload18 !== void 0 ? _action$payload18 : {};
|
|
19648
19863
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_FINANCIAL_REGISTRATION.fulfilled, function (state, action) {
|
|
19649
|
-
var _action$
|
|
19864
|
+
var _action$payload19;
|
|
19650
19865
|
|
|
19651
|
-
state.oraganizationfinancialregister = (_action$
|
|
19866
|
+
state.oraganizationfinancialregister = (_action$payload19 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload19 !== void 0 ? _action$payload19 : {};
|
|
19652
19867
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_FINANCIAL_REGISTRATION.pending, function (state, action) {
|
|
19653
19868
|
state.oraganizationfinancialregister.loading = true;
|
|
19654
19869
|
}), _defineProperty(_extraReducers$q, ORGANIZATION_FINANCIAL_REGISTRATION.rejected, function (state, action) {
|
|
19655
|
-
var _action$
|
|
19870
|
+
var _action$payload20;
|
|
19656
19871
|
|
|
19657
|
-
state.oraganizationfinancialregister = (_action$
|
|
19872
|
+
state.oraganizationfinancialregister = (_action$payload20 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload20 !== void 0 ? _action$payload20 : {};
|
|
19658
19873
|
}), _defineProperty(_extraReducers$q, GET_FACILITY_TYPE.fulfilled, function (state, action) {
|
|
19659
|
-
var _action$
|
|
19874
|
+
var _action$payload21;
|
|
19660
19875
|
|
|
19661
|
-
state.specilitytype = (_action$
|
|
19876
|
+
state.specilitytype = (_action$payload21 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload21 !== void 0 ? _action$payload21 : {};
|
|
19662
19877
|
}), _defineProperty(_extraReducers$q, GET_FACILITY_TYPE.pending, function (state, action) {
|
|
19663
19878
|
state.specilitytype.loading = true;
|
|
19664
19879
|
}), _defineProperty(_extraReducers$q, GET_FACILITY_TYPE.rejected, function (state, action) {
|
|
19665
|
-
var _action$
|
|
19880
|
+
var _action$payload22;
|
|
19666
19881
|
|
|
19667
|
-
state.specilitytype = (_action$
|
|
19882
|
+
state.specilitytype = (_action$payload22 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload22 !== void 0 ? _action$payload22 : {};
|
|
19668
19883
|
}), _defineProperty(_extraReducers$q, GET_FACILITY_NAME.fulfilled, function (state, action) {
|
|
19669
|
-
var _action$
|
|
19884
|
+
var _action$payload23;
|
|
19670
19885
|
|
|
19671
|
-
state.specilityname = (_action$
|
|
19886
|
+
state.specilityname = (_action$payload23 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload23 !== void 0 ? _action$payload23 : {};
|
|
19672
19887
|
}), _defineProperty(_extraReducers$q, GET_FACILITY_NAME.pending, function (state, action) {
|
|
19673
19888
|
state.specilityname.loading = true;
|
|
19674
19889
|
}), _defineProperty(_extraReducers$q, GET_FACILITY_NAME.rejected, function (state, action) {
|
|
19675
|
-
var _action$
|
|
19890
|
+
var _action$payload24;
|
|
19676
19891
|
|
|
19677
|
-
state.specilityname = (_action$
|
|
19892
|
+
state.specilityname = (_action$payload24 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload24 !== void 0 ? _action$payload24 : {};
|
|
19678
19893
|
}), _defineProperty(_extraReducers$q, GET_PRACTITIONER.fulfilled, function (state, action) {
|
|
19679
|
-
var _action$
|
|
19894
|
+
var _action$payload25;
|
|
19680
19895
|
|
|
19681
|
-
state.practitioner = (_action$
|
|
19896
|
+
state.practitioner = (_action$payload25 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload25 !== void 0 ? _action$payload25 : {};
|
|
19682
19897
|
}), _defineProperty(_extraReducers$q, GET_PRACTITIONER.pending, function (state, action) {
|
|
19683
19898
|
state.practitioner.loading = true;
|
|
19684
19899
|
}), _defineProperty(_extraReducers$q, GET_PRACTITIONER.rejected, function (state, action) {
|
|
19685
|
-
var _action$
|
|
19900
|
+
var _action$payload26;
|
|
19686
19901
|
|
|
19687
|
-
state.practitioner = (_action$
|
|
19902
|
+
state.practitioner = (_action$payload26 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload26 !== void 0 ? _action$payload26 : {};
|
|
19688
19903
|
}), _defineProperty(_extraReducers$q, GET_PRACTITIONERS.fulfilled, function (state, action) {
|
|
19689
|
-
var _action$
|
|
19904
|
+
var _action$payload27;
|
|
19690
19905
|
|
|
19691
|
-
state.practitioners = (_action$
|
|
19906
|
+
state.practitioners = (_action$payload27 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload27 !== void 0 ? _action$payload27 : {};
|
|
19692
19907
|
}), _defineProperty(_extraReducers$q, GET_PRACTITIONERS.pending, function (state, action) {
|
|
19693
19908
|
state.practitioners.loading = true;
|
|
19694
19909
|
}), _defineProperty(_extraReducers$q, GET_PRACTITIONERS.rejected, function (state, action) {
|
|
19695
|
-
var _action$
|
|
19910
|
+
var _action$payload28;
|
|
19696
19911
|
|
|
19697
|
-
state.practitioners = (_action$
|
|
19912
|
+
state.practitioners = (_action$payload28 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload28 !== void 0 ? _action$payload28 : {};
|
|
19698
19913
|
}), _defineProperty(_extraReducers$q, GET_SPECIALITY_DATA.fulfilled, function (state, action) {
|
|
19699
|
-
var _action$
|
|
19914
|
+
var _action$payload29;
|
|
19700
19915
|
|
|
19701
|
-
state.speciality = (_action$
|
|
19916
|
+
state.speciality = (_action$payload29 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload29 !== void 0 ? _action$payload29 : {};
|
|
19702
19917
|
}), _defineProperty(_extraReducers$q, GET_SPECIALITY_DATA.pending, function (state, action) {
|
|
19703
19918
|
state.speciality.loading = true;
|
|
19704
19919
|
}), _defineProperty(_extraReducers$q, GET_SPECIALITY_DATA.rejected, function (state, action) {
|
|
19705
|
-
var _action$
|
|
19920
|
+
var _action$payload30;
|
|
19706
19921
|
|
|
19707
|
-
state.speciality = (_action$
|
|
19922
|
+
state.speciality = (_action$payload30 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload30 !== void 0 ? _action$payload30 : {};
|
|
19708
19923
|
}), _defineProperty(_extraReducers$q, GET_FINANCIAL.fulfilled, function (state, action) {
|
|
19709
|
-
var _action$
|
|
19924
|
+
var _action$payload31;
|
|
19710
19925
|
|
|
19711
|
-
state.getfinancial = (_action$
|
|
19926
|
+
state.getfinancial = (_action$payload31 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload31 !== void 0 ? _action$payload31 : {};
|
|
19712
19927
|
}), _defineProperty(_extraReducers$q, GET_FINANCIAL.pending, function (state, action) {
|
|
19713
19928
|
state.getfinancial.loading = true;
|
|
19714
19929
|
}), _defineProperty(_extraReducers$q, GET_FINANCIAL.rejected, function (state, action) {
|
|
19715
|
-
var _action$
|
|
19930
|
+
var _action$payload32;
|
|
19716
19931
|
|
|
19717
|
-
state.getfinancial = (_action$
|
|
19932
|
+
state.getfinancial = (_action$payload32 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload32 !== void 0 ? _action$payload32 : {};
|
|
19718
19933
|
}), _defineProperty(_extraReducers$q, GET_PRACTITIONER_ROLE.fulfilled, function (state, action) {
|
|
19719
|
-
var _action$
|
|
19934
|
+
var _action$payload33;
|
|
19720
19935
|
|
|
19721
|
-
state.getpractitionerrole = (_action$
|
|
19936
|
+
state.getpractitionerrole = (_action$payload33 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload33 !== void 0 ? _action$payload33 : {};
|
|
19722
19937
|
}), _defineProperty(_extraReducers$q, GET_PRACTITIONER_ROLE.pending, function (state, action) {
|
|
19723
19938
|
state.getpractitionerrole.loading = true;
|
|
19724
19939
|
}), _defineProperty(_extraReducers$q, GET_PRACTITIONER_ROLE.rejected, function (state, action) {
|
|
19725
|
-
var _action$
|
|
19940
|
+
var _action$payload34;
|
|
19726
19941
|
|
|
19727
|
-
state.getpractitionerrole = (_action$
|
|
19942
|
+
state.getpractitionerrole = (_action$payload34 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload34 !== void 0 ? _action$payload34 : {};
|
|
19728
19943
|
}), _defineProperty(_extraReducers$q, GET_PATIENT_TYPEID.fulfilled, function (state, action) {
|
|
19729
|
-
var _action$
|
|
19944
|
+
var _action$payload35;
|
|
19730
19945
|
|
|
19731
|
-
state.getpatientid = (_action$
|
|
19946
|
+
state.getpatientid = (_action$payload35 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload35 !== void 0 ? _action$payload35 : {};
|
|
19732
19947
|
}), _defineProperty(_extraReducers$q, GET_PATIENT_TYPEID.pending, function (state, action) {
|
|
19733
19948
|
state.getpatientid.loading = true;
|
|
19734
19949
|
}), _defineProperty(_extraReducers$q, GET_PATIENT_TYPEID.rejected, function (state, action) {
|
|
19735
|
-
var _action$
|
|
19950
|
+
var _action$payload36;
|
|
19736
19951
|
|
|
19737
|
-
state.getpatientid = (_action$
|
|
19952
|
+
state.getpatientid = (_action$payload36 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload36 !== void 0 ? _action$payload36 : {};
|
|
19738
19953
|
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_HEADER.fulfilled, function (state, action) {
|
|
19739
|
-
var _action$
|
|
19954
|
+
var _action$payload37;
|
|
19740
19955
|
|
|
19741
|
-
state.getEncounterHeader = (_action$
|
|
19956
|
+
state.getEncounterHeader = (_action$payload37 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload37 !== void 0 ? _action$payload37 : {};
|
|
19742
19957
|
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_HEADER.pending, function (state, action) {
|
|
19743
19958
|
state.getEncounterHeader.loading = true;
|
|
19744
19959
|
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_HEADER.rejected, function (state, action) {
|
|
19745
|
-
var _action$
|
|
19960
|
+
var _action$payload38;
|
|
19746
19961
|
|
|
19747
|
-
state.getEncounterHeader = (_action$
|
|
19962
|
+
state.getEncounterHeader = (_action$payload38 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload38 !== void 0 ? _action$payload38 : {};
|
|
19748
19963
|
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_STATUS.fulfilled, function (state, action) {
|
|
19749
|
-
var _action$
|
|
19964
|
+
var _action$payload39;
|
|
19750
19965
|
|
|
19751
|
-
state.getEncounterStatus = (_action$
|
|
19966
|
+
state.getEncounterStatus = (_action$payload39 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload39 !== void 0 ? _action$payload39 : {};
|
|
19752
19967
|
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_STATUS.pending, function (state, action) {
|
|
19753
19968
|
state.getEncounterStatus.loading = true;
|
|
19754
19969
|
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_STATUS.rejected, function (state, action) {
|
|
19755
|
-
var _action$
|
|
19970
|
+
var _action$payload40;
|
|
19756
19971
|
|
|
19757
|
-
state.getEncounterStatus = (_action$
|
|
19972
|
+
state.getEncounterStatus = (_action$payload40 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload40 !== void 0 ? _action$payload40 : {};
|
|
19758
19973
|
}), _extraReducers$q)
|
|
19759
19974
|
});
|
|
19760
19975
|
var oraganizationRegisterPatientActions = {
|
|
@@ -19775,7 +19990,9 @@ var oraganizationRegisterPatientActions = {
|
|
|
19775
19990
|
GET_PATIENT_TYPEID: GET_PATIENT_TYPEID,
|
|
19776
19991
|
GET_PRACTITIONERS: GET_PRACTITIONERS,
|
|
19777
19992
|
GET_ENCOUNTER_HEADER: GET_ENCOUNTER_HEADER,
|
|
19778
|
-
GET_ENCOUNTER_STATUS: GET_ENCOUNTER_STATUS
|
|
19993
|
+
GET_ENCOUNTER_STATUS: GET_ENCOUNTER_STATUS,
|
|
19994
|
+
GET_PRACTITIONER_TYPE: GET_PRACTITIONER_TYPE,
|
|
19995
|
+
GET_PRACTITIONER_NAME: GET_PRACTITIONER_NAME
|
|
19779
19996
|
};
|
|
19780
19997
|
var OrganizationRegisterPatientApiSlice$1 = OrganizationRegisterPatientApiSlice.reducer;
|
|
19781
19998
|
|
|
@@ -20225,7 +20442,7 @@ var dashboardQuery = {
|
|
|
20225
20442
|
}
|
|
20226
20443
|
}];
|
|
20227
20444
|
},
|
|
20228
|
-
closeConsultationUpdate: function closeConsultationUpdate(data, status) {
|
|
20445
|
+
closeConsultationUpdate: function closeConsultationUpdate(data, status, statushistory_) {
|
|
20229
20446
|
return [{
|
|
20230
20447
|
db_name: dbName,
|
|
20231
20448
|
entity: "Encounter",
|
|
@@ -20242,11 +20459,7 @@ var dashboardQuery = {
|
|
|
20242
20459
|
followupReqd: data === null || data === void 0 ? void 0 : data.followupReqd,
|
|
20243
20460
|
encounterenddate: (data === null || data === void 0 ? void 0 : data.encounterenddate) ? getUtcTime(data === null || data === void 0 ? void 0 : data.encounterenddate) : null,
|
|
20244
20461
|
status: status,
|
|
20245
|
-
statushistory:
|
|
20246
|
-
status: status,
|
|
20247
|
-
period: data === null || data === void 0 ? void 0 : data.period,
|
|
20248
|
-
reasoncode: ""
|
|
20249
|
-
}] //referralOutRequired: data?.referralOutRequired,
|
|
20462
|
+
statushistory: statushistory_ //referralOutRequired: data?.referralOutRequired,
|
|
20250
20463
|
|
|
20251
20464
|
}
|
|
20252
20465
|
}];
|
|
@@ -21719,7 +21932,7 @@ var generateReadJSON_Reassign = function generateReadJSON_Reassign(data) {
|
|
|
21719
21932
|
};
|
|
21720
21933
|
|
|
21721
21934
|
var generateReadJSON_colseConsultation = function generateReadJSON_colseConsultation(data) {
|
|
21722
|
-
var _data$visit_type, _data$reasonReference, _data$reasonReference2, _data$appointmentId, _data$appointmentId2, _data$appointmentId$c, _data$appointmentId3, _data$appointmentId4, _data$appointmentId4$, _data$appointmentId5, _data$appointmentId6, _data$appointmentId6$, _data$patient_id$0$ph, _data$patient_id, _data$patient_id$, _data$patient_id$$pho, _data$patient_id2, _data$patient_id2$0$n, _data$patient_id$0$ag, _data$patient_id3, _data$patient_id3$, _data$patient_id4, _data$patient_id4$, _data$patient_id4$$ge, _data$patient_id4$$ge2, _data$patient_id5, _data$patient_id5$, _data$patient_id5$$ge, _data$patient_id5$$ge2, _data$patient_id6, _data$patient_id6$, _data$patient_id6$$ge, _data$patient_id6$$ge2, _data$patient_id$0$al, _data$patient_id7, _data$patient_id7$, _data$patient_id$0$te, _data$patient_id8, _data$patient_id8$, _data$patient_id8$$te, _data$patient_id8$$te2, _data$practitioner_de, _data$practitioner_de2, _data$practitioner_de3, _data$practitioner_de4, _data$practitioner_de5, _data$practitioner_de6, _data$practitioner_de7, _data$practitioner_de8, _data$practitioner_de9, _data$practitioner_de10, _data$practitioner_de11, _data$practitioner_de12, _data$practitioner_de13, _data$practitioner_de14, _data$patient_id9, _data$patient_id9$, _data$appointmentId7;
|
|
21935
|
+
var _data$visit_type, _data$reasonReference, _data$reasonReference2, _data$appointmentId, _data$appointmentId2, _data$appointmentId$c, _data$appointmentId3, _data$appointmentId4, _data$appointmentId4$, _data$appointmentId5, _data$appointmentId6, _data$appointmentId6$, _data$patient_id$0$ph, _data$patient_id, _data$patient_id$, _data$patient_id$$pho, _data$patient_id2, _data$patient_id2$0$n, _data$patient_id$0$ag, _data$patient_id3, _data$patient_id3$, _data$patient_id4, _data$patient_id4$, _data$patient_id4$$ge, _data$patient_id4$$ge2, _data$patient_id5, _data$patient_id5$, _data$patient_id5$$ge, _data$patient_id5$$ge2, _data$patient_id6, _data$patient_id6$, _data$patient_id6$$ge, _data$patient_id6$$ge2, _data$patient_id$0$al, _data$patient_id7, _data$patient_id7$, _data$patient_id$0$te, _data$patient_id8, _data$patient_id8$, _data$patient_id8$$te, _data$patient_id8$$te2, _data$practitioner_de, _data$practitioner_de2, _data$practitioner_de3, _data$practitioner_de4, _data$practitioner_de5, _data$practitioner_de6, _data$practitioner_de7, _data$practitioner_de8, _data$practitioner_de9, _data$practitioner_de10, _data$practitioner_de11, _data$practitioner_de12, _data$practitioner_de13, _data$practitioner_de14, _data$patient_id9, _data$patient_id9$, _data$appointmentId7, _data$statushistory;
|
|
21723
21936
|
|
|
21724
21937
|
var json = {
|
|
21725
21938
|
visitType: (_data$visit_type = data === null || data === void 0 ? void 0 : data.visit_type) !== null && _data$visit_type !== void 0 ? _data$visit_type : "",
|
|
@@ -21748,11 +21961,31 @@ var generateReadJSON_colseConsultation = function generateReadJSON_colseConsulta
|
|
|
21748
21961
|
patientId: data === null || data === void 0 ? void 0 : (_data$patient_id9 = data.patient_id) === null || _data$patient_id9 === void 0 ? void 0 : (_data$patient_id9$ = _data$patient_id9[0]) === null || _data$patient_id9$ === void 0 ? void 0 : _data$patient_id9$._id,
|
|
21749
21962
|
appointmentId: data === null || data === void 0 ? void 0 : (_data$appointmentId7 = data.appointmentId) === null || _data$appointmentId7 === void 0 ? void 0 : _data$appointmentId7.id,
|
|
21750
21963
|
followupReqd: (data === null || data === void 0 ? void 0 : data.followupReqd) ? data === null || data === void 0 ? void 0 : data.followupReqd : false,
|
|
21751
|
-
encounterCloseTime: data === null || data === void 0 ? void 0 : data.statushistoryExp
|
|
21964
|
+
encounterCloseTime: data === null || data === void 0 ? void 0 : data.statushistoryExp,
|
|
21965
|
+
statushistory: constructStatusHis((_data$statushistory = data === null || data === void 0 ? void 0 : data.statushistory) !== null && _data$statushistory !== void 0 ? _data$statushistory : [])
|
|
21752
21966
|
};
|
|
21753
21967
|
return json;
|
|
21754
21968
|
};
|
|
21755
21969
|
|
|
21970
|
+
var constructStatusHis = function constructStatusHis(data) {
|
|
21971
|
+
var arr = [];
|
|
21972
|
+
|
|
21973
|
+
if (Array.isArray(data) && data.length > 0) {
|
|
21974
|
+
data.map(function (val) {
|
|
21975
|
+
var _val$period, _val$period$;
|
|
21976
|
+
|
|
21977
|
+
arr.push({
|
|
21978
|
+
period: [{
|
|
21979
|
+
"key": val === null || val === void 0 ? void 0 : (_val$period = val.period) === null || _val$period === void 0 ? void 0 : (_val$period$ = _val$period[0]) === null || _val$period$ === void 0 ? void 0 : _val$period$._key
|
|
21980
|
+
}],
|
|
21981
|
+
status: val === null || val === void 0 ? void 0 : val.status
|
|
21982
|
+
});
|
|
21983
|
+
});
|
|
21984
|
+
}
|
|
21985
|
+
|
|
21986
|
+
return arr;
|
|
21987
|
+
};
|
|
21988
|
+
|
|
21756
21989
|
var constructCloseConsultationParticipantHistory = function constructCloseConsultationParticipantHistory(data) {
|
|
21757
21990
|
var arr = [];
|
|
21758
21991
|
|
|
@@ -22041,7 +22274,19 @@ var REASSIGN_PRACTITIONER_UPDATE = createAsyncThunk("dashboardApiSlice/reassignP
|
|
|
22041
22274
|
}
|
|
22042
22275
|
}
|
|
22043
22276
|
}, _callee27, null, [[2, 10]]);
|
|
22044
|
-
})));
|
|
22277
|
+
})));
|
|
22278
|
+
|
|
22279
|
+
var constructStatusHistory = function constructStatusHistory(data, status) {
|
|
22280
|
+
var statushistory_ = Array.isArray(data === null || data === void 0 ? void 0 : data.statushistory) ? JSON.parse(JSON.stringify(data === null || data === void 0 ? void 0 : data.statushistory)) : [];
|
|
22281
|
+
var obj = {
|
|
22282
|
+
status: status,
|
|
22283
|
+
period: data === null || data === void 0 ? void 0 : data.period_,
|
|
22284
|
+
reasoncode: ""
|
|
22285
|
+
};
|
|
22286
|
+
statushistory_.push(obj);
|
|
22287
|
+
return statushistory_;
|
|
22288
|
+
}; //CLOSE_CONSULTATION_UPDATE
|
|
22289
|
+
|
|
22045
22290
|
|
|
22046
22291
|
var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsultationUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee28() {
|
|
22047
22292
|
var payload,
|
|
@@ -22053,6 +22298,7 @@ var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsult
|
|
|
22053
22298
|
data,
|
|
22054
22299
|
encounterCode,
|
|
22055
22300
|
encounterStatus,
|
|
22301
|
+
statusHistor,
|
|
22056
22302
|
data_,
|
|
22057
22303
|
_args28 = arguments;
|
|
22058
22304
|
|
|
@@ -22077,31 +22323,32 @@ var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsult
|
|
|
22077
22323
|
case 6:
|
|
22078
22324
|
encounterCode = _context28.sent;
|
|
22079
22325
|
encounterStatus = (_encounterCode$result = encounterCode === null || encounterCode === void 0 ? void 0 : (_encounterCode$result2 = encounterCode.result) === null || _encounterCode$result2 === void 0 ? void 0 : (_encounterCode$result3 = _encounterCode$result2[0]) === null || _encounterCode$result3 === void 0 ? void 0 : _encounterCode$result3._id) !== null && _encounterCode$result !== void 0 ? _encounterCode$result : "";
|
|
22080
|
-
|
|
22326
|
+
statusHistor = constructStatusHistory(data, encounterStatus);
|
|
22327
|
+
_context28.next = 11;
|
|
22081
22328
|
return fetchData$3({
|
|
22082
|
-
body: JSON.stringify(dashboardQuery.closeConsultationUpdate(data, encounterStatus))
|
|
22329
|
+
body: JSON.stringify(dashboardQuery.closeConsultationUpdate(data, encounterStatus, statusHistor))
|
|
22083
22330
|
}, __uspsertUrl__);
|
|
22084
22331
|
|
|
22085
|
-
case
|
|
22332
|
+
case 11:
|
|
22086
22333
|
data_ = _context28.sent;
|
|
22087
22334
|
return _context28.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
22088
22335
|
data: data_
|
|
22089
22336
|
}));
|
|
22090
22337
|
|
|
22091
|
-
case
|
|
22092
|
-
_context28.prev =
|
|
22338
|
+
case 15:
|
|
22339
|
+
_context28.prev = 15;
|
|
22093
22340
|
_context28.t0 = _context28["catch"](2);
|
|
22094
22341
|
alert("error");
|
|
22095
22342
|
return _context28.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
22096
22343
|
message: _context28.t0.message
|
|
22097
22344
|
})));
|
|
22098
22345
|
|
|
22099
|
-
case
|
|
22346
|
+
case 19:
|
|
22100
22347
|
case "end":
|
|
22101
22348
|
return _context28.stop();
|
|
22102
22349
|
}
|
|
22103
22350
|
}
|
|
22104
|
-
}, _callee28, null, [[2,
|
|
22351
|
+
}, _callee28, null, [[2, 15]]);
|
|
22105
22352
|
})));
|
|
22106
22353
|
var dashboardApiSlice = createSlice({
|
|
22107
22354
|
name: "dashboardApiSlice",
|
|
@@ -31698,7 +31945,7 @@ var queries$5 = {
|
|
|
31698
31945
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Organization\",\n \"filter\": \"Organization.id == ").concat(id, "\",\n \"return_fields\": \"Organization._id\"\n }");
|
|
31699
31946
|
},
|
|
31700
31947
|
strength: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"RoutedDoseFormStrGen_Drug_Master\",\n \"return_fields\": \"RoutedDoseFormStrGen_Drug_Master\"\n }"),
|
|
31701
|
-
strengthUom: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\":\"DrugUOM.IsDosageStrengthUOM==true\",\n \"return_fields\": \"DrugUOM\"\n }"),
|
|
31948
|
+
strengthUom: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\":\"DrugUOM.IsDosageStrengthUOM==true && DrugUOM.status==true\",\n \"return_fields\": \"DrugUOM\"\n }"),
|
|
31702
31949
|
strengthVolumn: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"RoutedDoseFormStrGen_Drug_Master\",\n \"return_fields\": \"RoutedDoseFormStrGen_Drug_Master\"\n }"),
|
|
31703
31950
|
strengthVolumnUom: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\":\"DrugUOM.IsDosageStrengthUOM==true\",\n \"return_fields\": \"DrugUOM\"\n }"),
|
|
31704
31951
|
DosageTypeIndicator: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='DOSAGETYPEINDICATOR'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
@@ -38825,7 +39072,8 @@ var queries$2 = {
|
|
|
38825
39072
|
db_name: dbName,
|
|
38826
39073
|
entity: "CAPatientClinicalDocs",
|
|
38827
39074
|
filter: "CAPatientClinicalDocs.patientid =='".concat(patient_id, "' && CAPatientClinicalDocs.activestatus ==true"),
|
|
38828
|
-
return_fields: "MERGE(CAPatientClinicalDocs, {organizationid:document(CAPatientClinicalDocs.organizationid)},{doccategory:(document(CAPatientClinicalDocs.doccategory))}, {patientid:document(CAPatientClinicalDocs.patientid)},{practitionerid:document(CAPatientClinicalDocs.practitionerid)},{encounterid:document(CAPatientClinicalDocs.encounterid),doctype:(document(CAPatientClinicalDocs.doctype)),reason:(document(CAPatientClinicalDocs.reason)),encountertype:(document(CAPatientClinicalDocs.encountertype)),specialty:(document(CAPatientClinicalDocs.specialty))})"
|
|
39075
|
+
return_fields: "MERGE(CAPatientClinicalDocs, {organizationid:document(CAPatientClinicalDocs.organizationid)},{doccategory:(document(CAPatientClinicalDocs.doccategory))}, {patientid:document(CAPatientClinicalDocs.patientid)},{practitionerid:document(CAPatientClinicalDocs.practitionerid)},{encounterid:document(CAPatientClinicalDocs.encounterid),doctype:(document(CAPatientClinicalDocs.doctype)),reason:(document(CAPatientClinicalDocs.reason)),encountertype:(document(CAPatientClinicalDocs.encountertype)),specialty:(document(CAPatientClinicalDocs.specialty))})",
|
|
39076
|
+
sort: "CAPatientClinicalDocs.updatedate desc"
|
|
38829
39077
|
};
|
|
38830
39078
|
} // `{
|
|
38831
39079
|
// "db_name": "${dbName}",
|
|
@@ -38843,13 +39091,14 @@ var queries$2 = {
|
|
|
38843
39091
|
};
|
|
38844
39092
|
},
|
|
38845
39093
|
doc_agnst_category: function doc_agnst_category(category, speciality, encoumter, practitioner, patient_id) {
|
|
38846
|
-
|
|
38847
|
-
|
|
38848
|
-
return _ref = {
|
|
39094
|
+
return {
|
|
38849
39095
|
db_name: dbName,
|
|
38850
39096
|
entity: "CAPatientClinicalDocs",
|
|
38851
|
-
filter:
|
|
38852
|
-
|
|
39097
|
+
// filter: `CAPatientClinicalDocs.activestatus ==true && CAPatientClinicalDocs.doccategory=='${category}' || CAPatientClinicalDocs.specialty=='${speciality}' || CAPatientClinicalDocs.encounterid=='${encoumter}' || CAPatientClinicalDocs.practitionerid=='${practitioner}'`,
|
|
39098
|
+
filter: "CAPatientClinicalDocs.patientid =='".concat(patient_id, "' && CAPatientClinicalDocs.activestatus ==true && (CAPatientClinicalDocs.doccategory=='").concat(category, "' || CAPatientClinicalDocs.specialty=='").concat(speciality, "' || CAPatientClinicalDocs.encounterid=='").concat(encoumter, "' || CAPatientClinicalDocs.practitionerid=='").concat(practitioner, "')"),
|
|
39099
|
+
return_fields: "MERGE(CAPatientClinicalDocs, {organizationid:document(CAPatientClinicalDocs.organizationid)},{doccategory:(document(CAPatientClinicalDocs.doccategory))}, {patientid:document(CAPatientClinicalDocs.patientid)},{practitionerid:(for pract in Practitioner filter pract._id == CAPatientClinicalDocs.practitionerid return merge(pract,{name:(for doc in HumanNameMaster filter doc._id in pract.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))})) ,practitioner_role:(FOR practrole IN TO_ARRAY(pract.practitioner_role) RETURN MERGE(DOCUMENT(practrole),{'role':MERGE(DOCUMENT(DOCUMENT(practrole).role),{coding:(FOR cod IN TO_ARRAY(DOCUMENT(DOCUMENT(practrole).role).coding) RETURN DOCUMENT(cod) )}) }) ) }))},{encounterid:document(CAPatientClinicalDocs.encounterid),doctype:(document(CAPatientClinicalDocs.doctype)),reason:(document(CAPatientClinicalDocs.reason)),encountertype:(document(CAPatientClinicalDocs.encountertype)),specialty:(document(CAPatientClinicalDocs.specialty))})",
|
|
39100
|
+
sort: "CAPatientClinicalDocs.updatedate desc"
|
|
39101
|
+
};
|
|
38853
39102
|
},
|
|
38854
39103
|
//....not used....//
|
|
38855
39104
|
doc_agnst_encounter: function doc_agnst_encounter(patient_id, encounter_id) {
|
|
@@ -39002,9 +39251,7 @@ var generatesingleRead = function generatesingleRead(val, state) {
|
|
|
39002
39251
|
}; //generate doc against category
|
|
39003
39252
|
|
|
39004
39253
|
var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
39005
|
-
var orderedData = data
|
|
39006
|
-
return (b === null || b === void 0 ? void 0 : b.createddate) - (a === null || a === void 0 ? void 0 : a.createddate);
|
|
39007
|
-
});
|
|
39254
|
+
var orderedData = data;
|
|
39008
39255
|
var obj = {};
|
|
39009
39256
|
orderedData.forEach(function (element) {
|
|
39010
39257
|
var _element$doccategory3;
|
|
@@ -39022,7 +39269,7 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
39022
39269
|
var userObj = _objectSpread2({
|
|
39023
39270
|
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$practitioner = element.practitionerid[0]) === null || _element$practitioner === void 0 ? void 0 : (_element$practitioner2 = _element$practitioner.practitioner_role) === null || _element$practitioner2 === void 0 ? void 0 : (_element$practitioner3 = _element$practitioner2[0]) === null || _element$practitioner3 === void 0 ? void 0 : (_element$practitioner4 = _element$practitioner3.role) === null || _element$practitioner4 === void 0 ? void 0 : (_element$practitioner5 = _element$practitioner4.coding[0]) === null || _element$practitioner5 === void 0 ? void 0 : _element$practitioner5.display : "",
|
|
39024
39271
|
//title: "Role",
|
|
39025
|
-
date: utcTOLocal$1(element.
|
|
39272
|
+
date: utcTOLocal$1(element.updatedate, "MMMM Do h:mm a"),
|
|
39026
39273
|
name: element.practitionerid.length > 0 ? makeName(((_element$practitioner6 = element.practitionerid[0]) === null || _element$practitioner6 === void 0 ? void 0 : _element$practitioner6.name[0]) || {}) : "Dummy"
|
|
39027
39274
|
}, element);
|
|
39028
39275
|
|
|
@@ -39050,7 +39297,7 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
39050
39297
|
|
|
39051
39298
|
var _userObj = _objectSpread2({
|
|
39052
39299
|
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$practitioner7 = element.practitionerid[0]) === null || _element$practitioner7 === void 0 ? void 0 : (_element$practitioner8 = _element$practitioner7.practitioner_role) === null || _element$practitioner8 === void 0 ? void 0 : (_element$practitioner9 = _element$practitioner8[0]) === null || _element$practitioner9 === void 0 ? void 0 : (_element$practitioner10 = _element$practitioner9.role) === null || _element$practitioner10 === void 0 ? void 0 : (_element$practitioner11 = _element$practitioner10.coding[0]) === null || _element$practitioner11 === void 0 ? void 0 : _element$practitioner11.display : "",
|
|
39053
|
-
date: utcTOLocal$1(element.
|
|
39300
|
+
date: utcTOLocal$1(element.updatedate, "MMMM Do h:mm:ss a"),
|
|
39054
39301
|
name: element.practitionerid.length > 0 ? makeName(((_element$practitioner12 = element.practitionerid[0]) === null || _element$practitioner12 === void 0 ? void 0 : _element$practitioner12.name[0]) || {}) : "Dummy"
|
|
39055
39302
|
}, element);
|
|
39056
39303
|
|
|
@@ -39067,7 +39314,7 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
39067
39314
|
};
|
|
39068
39315
|
var generatePractitoner = function generatePractitoner(data) {
|
|
39069
39316
|
var orderedData = data.sort(function (a, b) {
|
|
39070
|
-
return (b === null || b === void 0 ? void 0 : b.
|
|
39317
|
+
return (b === null || b === void 0 ? void 0 : b.updatedate) - (a === null || a === void 0 ? void 0 : a.updatedate);
|
|
39071
39318
|
});
|
|
39072
39319
|
var arr = [];
|
|
39073
39320
|
orderedData.forEach(function (element) {
|
|
@@ -39075,7 +39322,7 @@ var generatePractitoner = function generatePractitoner(data) {
|
|
|
39075
39322
|
|
|
39076
39323
|
var userObj = _objectSpread2({
|
|
39077
39324
|
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$practitioner13 = element.practitionerid[0]) === null || _element$practitioner13 === void 0 ? void 0 : (_element$practitioner14 = _element$practitioner13.practitioner_role[0]) === null || _element$practitioner14 === void 0 ? void 0 : (_element$practitioner15 = _element$practitioner14.role) === null || _element$practitioner15 === void 0 ? void 0 : (_element$practitioner16 = _element$practitioner15.coding[0]) === null || _element$practitioner16 === void 0 ? void 0 : _element$practitioner16.display : "",
|
|
39078
|
-
date: utcTOLocal$1(element.
|
|
39325
|
+
date: utcTOLocal$1(element.updatedate, "MMMM Do h:mm a"),
|
|
39079
39326
|
name: element.practitionerid.length > 0 ? makeName(((_element$practitioner17 = element.practitionerid[0]) === null || _element$practitioner17 === void 0 ? void 0 : _element$practitioner17.name[0]) || {}) : "Dummy"
|
|
39080
39327
|
}, element);
|
|
39081
39328
|
|
|
@@ -40680,7 +40927,7 @@ var query$4 = {
|
|
|
40680
40927
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
40681
40928
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('First Visit')"
|
|
40682
40929
|
},
|
|
40683
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
40930
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:CONTAINS(prac.speciality,'CodeableConceptMaster')?(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding)):(for cod in CodingMaster filter cod._id==prac.speciality return cod)}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
40684
40931
|
};
|
|
40685
40932
|
},
|
|
40686
40933
|
getNewPatientsDoctor: function getNewPatientsDoctor(data) {
|
|
@@ -40691,7 +40938,7 @@ var query$4 = {
|
|
|
40691
40938
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
40692
40939
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('New Patient')"
|
|
40693
40940
|
},
|
|
40694
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
40941
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:CONTAINS(prac.speciality,'CodeableConceptMaster')?(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding)):(for cod in CodingMaster filter cod._id==prac.speciality return cod)}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
40695
40942
|
};
|
|
40696
40943
|
},
|
|
40697
40944
|
getOtherVisitsDoctor: function getOtherVisitsDoctor(data) {
|
|
@@ -40702,7 +40949,7 @@ var query$4 = {
|
|
|
40702
40949
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
40703
40950
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Other Visits')"
|
|
40704
40951
|
},
|
|
40705
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
40952
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:CONTAINS(prac.speciality,'CodeableConceptMaster')?(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding)):(for cod in CodingMaster filter cod._id==prac.speciality return cod)}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
40706
40953
|
};
|
|
40707
40954
|
},
|
|
40708
40955
|
getTodayVisitsDoctor: function getTodayVisitsDoctor(data) {
|
|
@@ -40713,7 +40960,7 @@ var query$4 = {
|
|
|
40713
40960
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "' "),
|
|
40714
40961
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
40715
40962
|
},
|
|
40716
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
40963
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:CONTAINS(prac.speciality,'CodeableConceptMaster')?(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding)):(for cod in CodingMaster filter cod._id==prac.speciality return cod)}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
40717
40964
|
};
|
|
40718
40965
|
},
|
|
40719
40966
|
getWalkInsDoctor: function getWalkInsDoctor(data) {
|
|
@@ -40724,7 +40971,7 @@ var query$4 = {
|
|
|
40724
40971
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
40725
40972
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Walkin')"
|
|
40726
40973
|
},
|
|
40727
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
40974
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:CONTAINS(prac.speciality,'CodeableConceptMaster')?(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding)):(for cod in CodingMaster filter cod._id==prac.speciality return cod)}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
40728
40975
|
};
|
|
40729
40976
|
}
|
|
40730
40977
|
};
|
|
@@ -41986,7 +42233,7 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
41986
42233
|
data = _context13.sent;
|
|
41987
42234
|
debugger;
|
|
41988
42235
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result13 = data.result) === null || _data$result13 === void 0 ? void 0 : _data$result13.map(function (_) {
|
|
41989
|
-
var _$Appointment62, _$Appointment62$Perso, _$Appointment62$Perso2, _$Appointment62$Perso3, _$Appointment63, _$Appointment63$Perso, _$Appointment63$Perso2, _$Appointment63$Perso3, _$Appointment64, _$Appointment64$Perso, _$Appointment64$Perso2, _$
|
|
42236
|
+
var _$Appointment62, _$Appointment62$Perso, _$Appointment62$Perso2, _$Appointment62$Perso3, _$Appointment63, _$Appointment63$Perso, _$Appointment63$Perso2, _$Appointment63$Perso3, _$Appointment64, _$Appointment64$Perso, _$Appointment64$Perso2, _$Appointment65, _$Appointment65$Perso, _$Appointment65$Perso2, _$Appointment65$Perso3, _$Appointment65$Perso4, _$Appointment66, _$Appointment66$Perso, _$Appointment66$Perso2, _$Appointment66$Perso3, _$Appointment66$Perso4, _$Appointment67, _$Appointment68, _$Appointment69, _$Appointment70, _$Appointment71, _$Encounter$0$visit_t2, _$Encounter37, _$Encounter37$, _$Appointment72, _$Appointment72$resou, _$Appointment73, _$Appointment73$Speci, _$Appointment73$Speci2, _$Appointment73$Speci3, _$Appointment73$Speci4, _$Appointment74, _$Appointment74$orgid, _$Appointment75;
|
|
41990
42237
|
|
|
41991
42238
|
return {
|
|
41992
42239
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -42004,9 +42251,9 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
42004
42251
|
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment62 = _.Appointment) === null || _$Appointment62 === void 0 ? void 0 : (_$Appointment62$Perso = _$Appointment62.PersonID) === null || _$Appointment62$Perso === void 0 ? void 0 : (_$Appointment62$Perso2 = _$Appointment62$Perso[0]) === null || _$Appointment62$Perso2 === void 0 ? void 0 : (_$Appointment62$Perso3 = _$Appointment62$Perso2.name) === null || _$Appointment62$Perso3 === void 0 ? void 0 : _$Appointment62$Perso3[0]) || {}),
|
|
42005
42252
|
mrn: ((_$Appointment63 = _.Appointment) === null || _$Appointment63 === void 0 ? void 0 : (_$Appointment63$Perso = _$Appointment63.PersonID) === null || _$Appointment63$Perso === void 0 ? void 0 : (_$Appointment63$Perso2 = _$Appointment63$Perso[0]) === null || _$Appointment63$Perso2 === void 0 ? void 0 : (_$Appointment63$Perso3 = _$Appointment63$Perso2.MRN) === null || _$Appointment63$Perso3 === void 0 ? void 0 : _$Appointment63$Perso3[0]) || "",
|
|
42006
42253
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment64 = _.Appointment) === null || _$Appointment64 === void 0 ? void 0 : (_$Appointment64$Perso = _$Appointment64.PersonID) === null || _$Appointment64$Perso === void 0 ? void 0 : (_$Appointment64$Perso2 = _$Appointment64$Perso[0]) === null || _$Appointment64$Perso2 === void 0 ? void 0 : _$Appointment64$Perso2.birthDay),
|
|
42007
|
-
contact: (_
|
|
42008
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42009
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
42254
|
+
contact: (_ === null || _ === void 0 ? void 0 : (_$Appointment65 = _.Appointment) === null || _$Appointment65 === void 0 ? void 0 : (_$Appointment65$Perso = _$Appointment65.PersonID) === null || _$Appointment65$Perso === void 0 ? void 0 : (_$Appointment65$Perso2 = _$Appointment65$Perso[0]) === null || _$Appointment65$Perso2 === void 0 ? void 0 : (_$Appointment65$Perso3 = _$Appointment65$Perso2.telecom) === null || _$Appointment65$Perso3 === void 0 ? void 0 : (_$Appointment65$Perso4 = _$Appointment65$Perso3[0]) === null || _$Appointment65$Perso4 === void 0 ? void 0 : _$Appointment65$Perso4.value) ? JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$Appointment66 = _.Appointment) === null || _$Appointment66 === void 0 ? void 0 : (_$Appointment66$Perso = _$Appointment66.PersonID) === null || _$Appointment66$Perso === void 0 ? void 0 : (_$Appointment66$Perso2 = _$Appointment66$Perso[0]) === null || _$Appointment66$Perso2 === void 0 ? void 0 : (_$Appointment66$Perso3 = _$Appointment66$Perso2.telecom) === null || _$Appointment66$Perso3 === void 0 ? void 0 : (_$Appointment66$Perso4 = _$Appointment66$Perso3[0]) === null || _$Appointment66$Perso4 === void 0 ? void 0 : _$Appointment66$Perso4.value) : "",
|
|
42255
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment67 = _.Appointment) === null || _$Appointment67 === void 0 ? void 0 : _$Appointment67.appno) || "",
|
|
42256
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment68 = _.Appointment) === null || _$Appointment68 === void 0 ? void 0 : _$Appointment68.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment69 = _.Appointment) === null || _$Appointment69 === void 0 ? void 0 : _$Appointment69.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment70 = _.Appointment) === null || _$Appointment70 === void 0 ? void 0 : _$Appointment70.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment71 = _.Appointment) === null || _$Appointment71 === void 0 ? void 0 : _$Appointment71.start, "hh:mm A") : ""),
|
|
42010
42257
|
//encounterNo : _?.Encounter?.[0]?.encounter_no ?? "",
|
|
42011
42258
|
visitType: (_$Encounter$0$visit_t2 = _ === null || _ === void 0 ? void 0 : (_$Encounter37 = _.Encounter) === null || _$Encounter37 === void 0 ? void 0 : (_$Encounter37$ = _$Encounter37[0]) === null || _$Encounter37$ === void 0 ? void 0 : _$Encounter37$.visit_type) !== null && _$Encounter$0$visit_t2 !== void 0 ? _$Encounter$0$visit_t2 : "",
|
|
42012
42259
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
@@ -42026,10 +42273,10 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
42026
42273
|
// }).join(", ") ?? "",
|
|
42027
42274
|
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
42028
42275
|
// }),
|
|
42029
|
-
practitionerName: makeName(_ === null || _ === void 0 ? void 0 : (_$
|
|
42030
|
-
speciality: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42031
|
-
clinic: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42032
|
-
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42276
|
+
practitionerName: makeName(_ === null || _ === void 0 ? void 0 : (_$Appointment72 = _.Appointment) === null || _$Appointment72 === void 0 ? void 0 : (_$Appointment72$resou = _$Appointment72.resourcecode) === null || _$Appointment72$resou === void 0 ? void 0 : _$Appointment72$resou.name),
|
|
42277
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$Appointment73 = _.Appointment) === null || _$Appointment73 === void 0 ? void 0 : (_$Appointment73$Speci = _$Appointment73.SpecialtyID) === null || _$Appointment73$Speci === void 0 ? void 0 : (_$Appointment73$Speci2 = _$Appointment73$Speci[0]) === null || _$Appointment73$Speci2 === void 0 ? void 0 : (_$Appointment73$Speci3 = _$Appointment73$Speci2.coding) === null || _$Appointment73$Speci3 === void 0 ? void 0 : (_$Appointment73$Speci4 = _$Appointment73$Speci3[0]) === null || _$Appointment73$Speci4 === void 0 ? void 0 : _$Appointment73$Speci4.display) || "",
|
|
42278
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$Appointment74 = _.Appointment) === null || _$Appointment74 === void 0 ? void 0 : (_$Appointment74$orgid = _$Appointment74.orgid) === null || _$Appointment74$orgid === void 0 ? void 0 : _$Appointment74$orgid.name) || "",
|
|
42279
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment75 = _.Appointment) === null || _$Appointment75 === void 0 ? void 0 : _$Appointment75.appstatus) || "",
|
|
42033
42280
|
// "View Patient": true,
|
|
42034
42281
|
// Attend: true,
|
|
42035
42282
|
// type: "OP",
|
|
@@ -42085,7 +42332,7 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
42085
42332
|
case 5:
|
|
42086
42333
|
data = _context14.sent;
|
|
42087
42334
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result14 = data.result) === null || _data$result14 === void 0 ? void 0 : _data$result14.map(function (_) {
|
|
42088
|
-
var _$patient_id19, _$patient_id19$, _$patient_id19$$name, _$patient_id20, _$patient_id20$, _$appointmentId36, _$appointmentId36$, _$appointmentId36$$Pe, _$appointmentId36$$Pe2, _$
|
|
42335
|
+
var _$patient_id19, _$patient_id19$, _$patient_id19$$name, _$patient_id20, _$patient_id20$, _$appointmentId36, _$appointmentId36$, _$appointmentId36$$Pe, _$appointmentId36$$Pe2, _$patient_id21, _$patient_id21$, _$patient_id21$$telec, _$patient_id21$$telec2, _$patient_id22, _$patient_id22$, _$patient_id22$$telec, _$patient_id22$$telec2, _$appointmentId37, _$appointmentId37$, _$appointmentId38, _$appointmentId38$, _$appointmentId39, _$appointmentId39$, _$appointmentId40, _$appointmentId40$, _$appointmentId41, _$appointmentId41$, _$visit_type6, _$practitioner_detail26, _$practitioner_detail27, _$practitioner_detail28, _$practitioner_detail29, _$practitioner_detail30, _$practitioner_detail31, _$practitioner_detail32, _$practitioner_detail33, _$practitioner_detail34, _$status6;
|
|
42089
42336
|
|
|
42090
42337
|
return {
|
|
42091
42338
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -42128,7 +42375,7 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
42128
42375
|
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id19 = _.patient_id) === null || _$patient_id19 === void 0 ? void 0 : (_$patient_id19$ = _$patient_id19[0]) === null || _$patient_id19$ === void 0 ? void 0 : (_$patient_id19$$name = _$patient_id19$.name) === null || _$patient_id19$$name === void 0 ? void 0 : _$patient_id19$$name[0]) || {}),
|
|
42129
42376
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id20 = _.patient_id) === null || _$patient_id20 === void 0 ? void 0 : (_$patient_id20$ = _$patient_id20[0]) === null || _$patient_id20$ === void 0 ? void 0 : _$patient_id20$.MRN) || "",
|
|
42130
42377
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId36 = _.appointmentId) === null || _$appointmentId36 === void 0 ? void 0 : (_$appointmentId36$ = _$appointmentId36[0]) === null || _$appointmentId36$ === void 0 ? void 0 : (_$appointmentId36$$Pe = _$appointmentId36$.PersonID) === null || _$appointmentId36$$Pe === void 0 ? void 0 : (_$appointmentId36$$Pe2 = _$appointmentId36$$Pe[0]) === null || _$appointmentId36$$Pe2 === void 0 ? void 0 : _$appointmentId36$$Pe2.birthDay),
|
|
42131
|
-
contact: (_
|
|
42378
|
+
contact: (_ === null || _ === void 0 ? void 0 : (_$patient_id21 = _.patient_id) === null || _$patient_id21 === void 0 ? void 0 : (_$patient_id21$ = _$patient_id21[0]) === null || _$patient_id21$ === void 0 ? void 0 : (_$patient_id21$$telec = _$patient_id21$.telecom) === null || _$patient_id21$$telec === void 0 ? void 0 : (_$patient_id21$$telec2 = _$patient_id21$$telec[0]) === null || _$patient_id21$$telec2 === void 0 ? void 0 : _$patient_id21$$telec2.value) ? JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id22 = _.patient_id) === null || _$patient_id22 === void 0 ? void 0 : (_$patient_id22$ = _$patient_id22[0]) === null || _$patient_id22$ === void 0 ? void 0 : (_$patient_id22$$telec = _$patient_id22$.telecom) === null || _$patient_id22$$telec === void 0 ? void 0 : (_$patient_id22$$telec2 = _$patient_id22$$telec[0]) === null || _$patient_id22$$telec2 === void 0 ? void 0 : _$patient_id22$$telec2.value) : "",
|
|
42132
42379
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId37 = _.appointmentId) === null || _$appointmentId37 === void 0 ? void 0 : (_$appointmentId37$ = _$appointmentId37[0]) === null || _$appointmentId37$ === void 0 ? void 0 : _$appointmentId37$.appno) || "",
|
|
42133
42380
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId38 = _.appointmentId) === null || _$appointmentId38 === void 0 ? void 0 : (_$appointmentId38$ = _$appointmentId38[0]) === null || _$appointmentId38$ === void 0 ? void 0 : _$appointmentId38$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId39 = _.appointmentId) === null || _$appointmentId39 === void 0 ? void 0 : (_$appointmentId39$ = _$appointmentId39[0]) === null || _$appointmentId39$ === void 0 ? void 0 : _$appointmentId39$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId40 = _.appointmentId) === null || _$appointmentId40 === void 0 ? void 0 : (_$appointmentId40$ = _$appointmentId40[0]) === null || _$appointmentId40$ === void 0 ? void 0 : _$appointmentId40$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId41 = _.appointmentId) === null || _$appointmentId41 === void 0 ? void 0 : (_$appointmentId41$ = _$appointmentId41[0]) === null || _$appointmentId41$ === void 0 ? void 0 : _$appointmentId41$.start, "hh:mm A") : ""),
|
|
42134
42381
|
// date: JSON.stringify({
|
|
@@ -42148,8 +42395,8 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
42148
42395
|
//encounterNo : _?.Appointment?.appointmentType ?? "en no",
|
|
42149
42396
|
visitType: (_$visit_type6 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type6 !== void 0 ? _$visit_type6 : "",
|
|
42150
42397
|
practitionerName: (_$practitioner_detail26 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail27 = _.practitioner_details) === null || _$practitioner_detail27 === void 0 ? void 0 : (_$practitioner_detail28 = _$practitioner_detail27[0]) === null || _$practitioner_detail28 === void 0 ? void 0 : _$practitioner_detail28.id_name) !== null && _$practitioner_detail26 !== void 0 ? _$practitioner_detail26 : "",
|
|
42151
|
-
speciality: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail29 = _.practitioner_details) === null || _$practitioner_detail29 === void 0 ? void 0 : (_$practitioner_detail30 = _$practitioner_detail29[0]) === null || _$practitioner_detail30 === void 0 ? void 0 : (_$practitioner_detail31 = _$practitioner_detail30.speciality) === null || _$practitioner_detail31 === void 0 ? void 0 : (_$practitioner_detail32 = _$practitioner_detail31[0]) === null || _$practitioner_detail32 === void 0 ? void 0 :
|
|
42152
|
-
clinic: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42398
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail29 = _.practitioner_details) === null || _$practitioner_detail29 === void 0 ? void 0 : (_$practitioner_detail30 = _$practitioner_detail29[0]) === null || _$practitioner_detail30 === void 0 ? void 0 : (_$practitioner_detail31 = _$practitioner_detail30.speciality) === null || _$practitioner_detail31 === void 0 ? void 0 : (_$practitioner_detail32 = _$practitioner_detail31[0]) === null || _$practitioner_detail32 === void 0 ? void 0 : _$practitioner_detail32.display) || "",
|
|
42399
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail33 = _.practitioner_details) === null || _$practitioner_detail33 === void 0 ? void 0 : (_$practitioner_detail34 = _$practitioner_detail33[0]) === null || _$practitioner_detail34 === void 0 ? void 0 : _$practitioner_detail34.clinic) || "",
|
|
42153
42400
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status6 = _.status) === null || _$status6 === void 0 ? void 0 : _$status6.display) || "",
|
|
42154
42401
|
action: true
|
|
42155
42402
|
};
|
|
@@ -42196,7 +42443,7 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
42196
42443
|
case 5:
|
|
42197
42444
|
data = _context15.sent;
|
|
42198
42445
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result15 = data.result) === null || _data$result15 === void 0 ? void 0 : _data$result15.map(function (_) {
|
|
42199
|
-
var _$
|
|
42446
|
+
var _$patient_id23, _$patient_id23$, _$patient_id23$$name, _$patient_id24, _$patient_id24$, _$appointmentId42, _$appointmentId42$, _$appointmentId42$$Pe, _$appointmentId42$$Pe2, _$patient_id25, _$patient_id25$, _$patient_id25$$telec, _$patient_id25$$telec2, _$patient_id26, _$patient_id26$, _$patient_id26$$telec, _$patient_id26$$telec2, _$appointmentId43, _$appointmentId43$, _$appointmentId44, _$appointmentId44$, _$appointmentId45, _$appointmentId45$, _$appointmentId46, _$appointmentId46$, _$appointmentId47, _$appointmentId47$, _$visit_type7, _$practitioner_detail35, _$practitioner_detail36, _$practitioner_detail37, _$practitioner_detail38, _$practitioner_detail39, _$practitioner_detail40, _$practitioner_detail41, _$practitioner_detail42, _$practitioner_detail43, _$status7;
|
|
42200
42447
|
|
|
42201
42448
|
return {
|
|
42202
42449
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -42236,10 +42483,10 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
42236
42483
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
42237
42484
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
42238
42485
|
// }),
|
|
42239
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
42240
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42486
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id23 = _.patient_id) === null || _$patient_id23 === void 0 ? void 0 : (_$patient_id23$ = _$patient_id23[0]) === null || _$patient_id23$ === void 0 ? void 0 : (_$patient_id23$$name = _$patient_id23$.name) === null || _$patient_id23$$name === void 0 ? void 0 : _$patient_id23$$name[0]) || {}),
|
|
42487
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id24 = _.patient_id) === null || _$patient_id24 === void 0 ? void 0 : (_$patient_id24$ = _$patient_id24[0]) === null || _$patient_id24$ === void 0 ? void 0 : _$patient_id24$.MRN) || "",
|
|
42241
42488
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId42 = _.appointmentId) === null || _$appointmentId42 === void 0 ? void 0 : (_$appointmentId42$ = _$appointmentId42[0]) === null || _$appointmentId42$ === void 0 ? void 0 : (_$appointmentId42$$Pe = _$appointmentId42$.PersonID) === null || _$appointmentId42$$Pe === void 0 ? void 0 : (_$appointmentId42$$Pe2 = _$appointmentId42$$Pe[0]) === null || _$appointmentId42$$Pe2 === void 0 ? void 0 : _$appointmentId42$$Pe2.birthDay),
|
|
42242
|
-
contact: (_
|
|
42489
|
+
contact: (_ === null || _ === void 0 ? void 0 : (_$patient_id25 = _.patient_id) === null || _$patient_id25 === void 0 ? void 0 : (_$patient_id25$ = _$patient_id25[0]) === null || _$patient_id25$ === void 0 ? void 0 : (_$patient_id25$$telec = _$patient_id25$.telecom) === null || _$patient_id25$$telec === void 0 ? void 0 : (_$patient_id25$$telec2 = _$patient_id25$$telec[0]) === null || _$patient_id25$$telec2 === void 0 ? void 0 : _$patient_id25$$telec2.value) ? JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id26 = _.patient_id) === null || _$patient_id26 === void 0 ? void 0 : (_$patient_id26$ = _$patient_id26[0]) === null || _$patient_id26$ === void 0 ? void 0 : (_$patient_id26$$telec = _$patient_id26$.telecom) === null || _$patient_id26$$telec === void 0 ? void 0 : (_$patient_id26$$telec2 = _$patient_id26$$telec[0]) === null || _$patient_id26$$telec2 === void 0 ? void 0 : _$patient_id26$$telec2.value) : "",
|
|
42243
42490
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId43 = _.appointmentId) === null || _$appointmentId43 === void 0 ? void 0 : (_$appointmentId43$ = _$appointmentId43[0]) === null || _$appointmentId43$ === void 0 ? void 0 : _$appointmentId43$.appno) || "",
|
|
42244
42491
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId44 = _.appointmentId) === null || _$appointmentId44 === void 0 ? void 0 : (_$appointmentId44$ = _$appointmentId44[0]) === null || _$appointmentId44$ === void 0 ? void 0 : _$appointmentId44$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId45 = _.appointmentId) === null || _$appointmentId45 === void 0 ? void 0 : (_$appointmentId45$ = _$appointmentId45[0]) === null || _$appointmentId45$ === void 0 ? void 0 : _$appointmentId45$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId46 = _.appointmentId) === null || _$appointmentId46 === void 0 ? void 0 : (_$appointmentId46$ = _$appointmentId46[0]) === null || _$appointmentId46$ === void 0 ? void 0 : _$appointmentId46$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId47 = _.appointmentId) === null || _$appointmentId47 === void 0 ? void 0 : (_$appointmentId47$ = _$appointmentId47[0]) === null || _$appointmentId47$ === void 0 ? void 0 : _$appointmentId47$.start, "hh:mm A") : ""),
|
|
42245
42492
|
// date: JSON.stringify({
|
|
@@ -42257,9 +42504,9 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
42257
42504
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
42258
42505
|
// }),
|
|
42259
42506
|
visitType: (_$visit_type7 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type7 !== void 0 ? _$visit_type7 : "",
|
|
42260
|
-
practitionerName: (_$
|
|
42261
|
-
speciality: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42262
|
-
clinic: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42507
|
+
practitionerName: (_$practitioner_detail35 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail36 = _.practitioner_details) === null || _$practitioner_detail36 === void 0 ? void 0 : (_$practitioner_detail37 = _$practitioner_detail36[0]) === null || _$practitioner_detail37 === void 0 ? void 0 : _$practitioner_detail37.id_name) !== null && _$practitioner_detail35 !== void 0 ? _$practitioner_detail35 : "",
|
|
42508
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail38 = _.practitioner_details) === null || _$practitioner_detail38 === void 0 ? void 0 : (_$practitioner_detail39 = _$practitioner_detail38[0]) === null || _$practitioner_detail39 === void 0 ? void 0 : (_$practitioner_detail40 = _$practitioner_detail39.speciality) === null || _$practitioner_detail40 === void 0 ? void 0 : (_$practitioner_detail41 = _$practitioner_detail40[0]) === null || _$practitioner_detail41 === void 0 ? void 0 : _$practitioner_detail41.display) || "",
|
|
42509
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail42 = _.practitioner_details) === null || _$practitioner_detail42 === void 0 ? void 0 : (_$practitioner_detail43 = _$practitioner_detail42[0]) === null || _$practitioner_detail43 === void 0 ? void 0 : _$practitioner_detail43.clinic) || "",
|
|
42263
42510
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status7 = _.status) === null || _$status7 === void 0 ? void 0 : _$status7.display) || "",
|
|
42264
42511
|
action: true
|
|
42265
42512
|
};
|
|
@@ -42306,7 +42553,7 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
42306
42553
|
case 5:
|
|
42307
42554
|
data = _context16.sent;
|
|
42308
42555
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result16 = data.result) === null || _data$result16 === void 0 ? void 0 : _data$result16.map(function (_) {
|
|
42309
|
-
var _$
|
|
42556
|
+
var _$patient_id27, _$patient_id27$, _$patient_id27$$name, _$patient_id28, _$patient_id28$, _$appointmentId48, _$appointmentId48$, _$appointmentId48$$Pe, _$appointmentId48$$Pe2, _$patient_id29, _$patient_id29$, _$patient_id29$$telec, _$patient_id29$$telec2, _$patient_id30, _$patient_id30$, _$patient_id30$$telec, _$patient_id30$$telec2, _$appointmentId49, _$appointmentId49$, _$appointmentId50, _$appointmentId50$, _$appointmentId51, _$appointmentId51$, _$appointmentId52, _$appointmentId52$, _$appointmentId53, _$appointmentId53$, _$visit_type8, _$practitioner_detail44, _$practitioner_detail45, _$practitioner_detail46, _$practitioner_detail47, _$practitioner_detail48, _$practitioner_detail49, _$practitioner_detail50, _$practitioner_detail51, _$practitioner_detail52, _$status8;
|
|
42310
42557
|
|
|
42311
42558
|
return {
|
|
42312
42559
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -42346,10 +42593,10 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
42346
42593
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
42347
42594
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
42348
42595
|
// }),
|
|
42349
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
42350
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42596
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id27 = _.patient_id) === null || _$patient_id27 === void 0 ? void 0 : (_$patient_id27$ = _$patient_id27[0]) === null || _$patient_id27$ === void 0 ? void 0 : (_$patient_id27$$name = _$patient_id27$.name) === null || _$patient_id27$$name === void 0 ? void 0 : _$patient_id27$$name[0]) || {}),
|
|
42597
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id28 = _.patient_id) === null || _$patient_id28 === void 0 ? void 0 : (_$patient_id28$ = _$patient_id28[0]) === null || _$patient_id28$ === void 0 ? void 0 : _$patient_id28$.MRN) || "",
|
|
42351
42598
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId48 = _.appointmentId) === null || _$appointmentId48 === void 0 ? void 0 : (_$appointmentId48$ = _$appointmentId48[0]) === null || _$appointmentId48$ === void 0 ? void 0 : (_$appointmentId48$$Pe = _$appointmentId48$.PersonID) === null || _$appointmentId48$$Pe === void 0 ? void 0 : (_$appointmentId48$$Pe2 = _$appointmentId48$$Pe[0]) === null || _$appointmentId48$$Pe2 === void 0 ? void 0 : _$appointmentId48$$Pe2.birthDay),
|
|
42352
|
-
contact: (_
|
|
42599
|
+
contact: (_ === null || _ === void 0 ? void 0 : (_$patient_id29 = _.patient_id) === null || _$patient_id29 === void 0 ? void 0 : (_$patient_id29$ = _$patient_id29[0]) === null || _$patient_id29$ === void 0 ? void 0 : (_$patient_id29$$telec = _$patient_id29$.telecom) === null || _$patient_id29$$telec === void 0 ? void 0 : (_$patient_id29$$telec2 = _$patient_id29$$telec[0]) === null || _$patient_id29$$telec2 === void 0 ? void 0 : _$patient_id29$$telec2.value) ? JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id30 = _.patient_id) === null || _$patient_id30 === void 0 ? void 0 : (_$patient_id30$ = _$patient_id30[0]) === null || _$patient_id30$ === void 0 ? void 0 : (_$patient_id30$$telec = _$patient_id30$.telecom) === null || _$patient_id30$$telec === void 0 ? void 0 : (_$patient_id30$$telec2 = _$patient_id30$$telec[0]) === null || _$patient_id30$$telec2 === void 0 ? void 0 : _$patient_id30$$telec2.value) : "",
|
|
42353
42600
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId49 = _.appointmentId) === null || _$appointmentId49 === void 0 ? void 0 : (_$appointmentId49$ = _$appointmentId49[0]) === null || _$appointmentId49$ === void 0 ? void 0 : _$appointmentId49$.appno) || "",
|
|
42354
42601
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId50 = _.appointmentId) === null || _$appointmentId50 === void 0 ? void 0 : (_$appointmentId50$ = _$appointmentId50[0]) === null || _$appointmentId50$ === void 0 ? void 0 : _$appointmentId50$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId51 = _.appointmentId) === null || _$appointmentId51 === void 0 ? void 0 : (_$appointmentId51$ = _$appointmentId51[0]) === null || _$appointmentId51$ === void 0 ? void 0 : _$appointmentId51$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId52 = _.appointmentId) === null || _$appointmentId52 === void 0 ? void 0 : (_$appointmentId52$ = _$appointmentId52[0]) === null || _$appointmentId52$ === void 0 ? void 0 : _$appointmentId52$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId53 = _.appointmentId) === null || _$appointmentId53 === void 0 ? void 0 : (_$appointmentId53$ = _$appointmentId53[0]) === null || _$appointmentId53$ === void 0 ? void 0 : _$appointmentId53$.start, "hh:mm A") : ""),
|
|
42355
42602
|
// date: JSON.stringify({
|
|
@@ -42367,9 +42614,9 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
42367
42614
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
42368
42615
|
// }),
|
|
42369
42616
|
visitType: (_$visit_type8 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type8 !== void 0 ? _$visit_type8 : "",
|
|
42370
|
-
practitionerName: (_$
|
|
42371
|
-
speciality: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42372
|
-
clinic: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42617
|
+
practitionerName: (_$practitioner_detail44 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail45 = _.practitioner_details) === null || _$practitioner_detail45 === void 0 ? void 0 : (_$practitioner_detail46 = _$practitioner_detail45[0]) === null || _$practitioner_detail46 === void 0 ? void 0 : _$practitioner_detail46.id_name) !== null && _$practitioner_detail44 !== void 0 ? _$practitioner_detail44 : "",
|
|
42618
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail47 = _.practitioner_details) === null || _$practitioner_detail47 === void 0 ? void 0 : (_$practitioner_detail48 = _$practitioner_detail47[0]) === null || _$practitioner_detail48 === void 0 ? void 0 : (_$practitioner_detail49 = _$practitioner_detail48.speciality) === null || _$practitioner_detail49 === void 0 ? void 0 : (_$practitioner_detail50 = _$practitioner_detail49[0]) === null || _$practitioner_detail50 === void 0 ? void 0 : _$practitioner_detail50.display) || "",
|
|
42619
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail51 = _.practitioner_details) === null || _$practitioner_detail51 === void 0 ? void 0 : (_$practitioner_detail52 = _$practitioner_detail51[0]) === null || _$practitioner_detail52 === void 0 ? void 0 : _$practitioner_detail52.clinic) || "",
|
|
42373
42620
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status8 = _.status) === null || _$status8 === void 0 ? void 0 : _$status8.display) || "",
|
|
42374
42621
|
action: true
|
|
42375
42622
|
};
|
|
@@ -42416,7 +42663,7 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
42416
42663
|
case 5:
|
|
42417
42664
|
data = _context17.sent;
|
|
42418
42665
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result17 = data.result) === null || _data$result17 === void 0 ? void 0 : _data$result17.map(function (_) {
|
|
42419
|
-
var _$
|
|
42666
|
+
var _$patient_id31, _$patient_id31$, _$patient_id31$$name, _$patient_id32, _$patient_id32$, _$appointmentId54, _$appointmentId54$, _$appointmentId54$$Pe, _$appointmentId54$$Pe2, _$patient_id33, _$patient_id33$, _$patient_id33$$telec, _$patient_id33$$telec2, _$patient_id34, _$patient_id34$, _$patient_id34$$telec, _$patient_id34$$telec2, _$appointmentId55, _$appointmentId55$, _$appointmentId56, _$appointmentId56$, _$appointmentId57, _$appointmentId57$, _$appointmentId58, _$appointmentId58$, _$appointmentId59, _$appointmentId59$, _$visit_type9, _$practitioner_detail53, _$practitioner_detail54, _$practitioner_detail55, _$practitioner_detail56, _$practitioner_detail57, _$practitioner_detail58, _$practitioner_detail59, _$practitioner_detail60, _$practitioner_detail61, _$status9;
|
|
42420
42667
|
|
|
42421
42668
|
return {
|
|
42422
42669
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -42456,10 +42703,10 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
42456
42703
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
42457
42704
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
42458
42705
|
// }),
|
|
42459
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
42460
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42706
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id31 = _.patient_id) === null || _$patient_id31 === void 0 ? void 0 : (_$patient_id31$ = _$patient_id31[0]) === null || _$patient_id31$ === void 0 ? void 0 : (_$patient_id31$$name = _$patient_id31$.name) === null || _$patient_id31$$name === void 0 ? void 0 : _$patient_id31$$name[0]) || {}),
|
|
42707
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id32 = _.patient_id) === null || _$patient_id32 === void 0 ? void 0 : (_$patient_id32$ = _$patient_id32[0]) === null || _$patient_id32$ === void 0 ? void 0 : _$patient_id32$.MRN) || "",
|
|
42461
42708
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId54 = _.appointmentId) === null || _$appointmentId54 === void 0 ? void 0 : (_$appointmentId54$ = _$appointmentId54[0]) === null || _$appointmentId54$ === void 0 ? void 0 : (_$appointmentId54$$Pe = _$appointmentId54$.PersonID) === null || _$appointmentId54$$Pe === void 0 ? void 0 : (_$appointmentId54$$Pe2 = _$appointmentId54$$Pe[0]) === null || _$appointmentId54$$Pe2 === void 0 ? void 0 : _$appointmentId54$$Pe2.birthDay),
|
|
42462
|
-
contact: (_
|
|
42709
|
+
contact: (_ === null || _ === void 0 ? void 0 : (_$patient_id33 = _.patient_id) === null || _$patient_id33 === void 0 ? void 0 : (_$patient_id33$ = _$patient_id33[0]) === null || _$patient_id33$ === void 0 ? void 0 : (_$patient_id33$$telec = _$patient_id33$.telecom) === null || _$patient_id33$$telec === void 0 ? void 0 : (_$patient_id33$$telec2 = _$patient_id33$$telec[0]) === null || _$patient_id33$$telec2 === void 0 ? void 0 : _$patient_id33$$telec2.value) ? JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id34 = _.patient_id) === null || _$patient_id34 === void 0 ? void 0 : (_$patient_id34$ = _$patient_id34[0]) === null || _$patient_id34$ === void 0 ? void 0 : (_$patient_id34$$telec = _$patient_id34$.telecom) === null || _$patient_id34$$telec === void 0 ? void 0 : (_$patient_id34$$telec2 = _$patient_id34$$telec[0]) === null || _$patient_id34$$telec2 === void 0 ? void 0 : _$patient_id34$$telec2.value) : "",
|
|
42463
42710
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId55 = _.appointmentId) === null || _$appointmentId55 === void 0 ? void 0 : (_$appointmentId55$ = _$appointmentId55[0]) === null || _$appointmentId55$ === void 0 ? void 0 : _$appointmentId55$.appno) || "",
|
|
42464
42711
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId56 = _.appointmentId) === null || _$appointmentId56 === void 0 ? void 0 : (_$appointmentId56$ = _$appointmentId56[0]) === null || _$appointmentId56$ === void 0 ? void 0 : _$appointmentId56$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId57 = _.appointmentId) === null || _$appointmentId57 === void 0 ? void 0 : (_$appointmentId57$ = _$appointmentId57[0]) === null || _$appointmentId57$ === void 0 ? void 0 : _$appointmentId57$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId58 = _.appointmentId) === null || _$appointmentId58 === void 0 ? void 0 : (_$appointmentId58$ = _$appointmentId58[0]) === null || _$appointmentId58$ === void 0 ? void 0 : _$appointmentId58$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId59 = _.appointmentId) === null || _$appointmentId59 === void 0 ? void 0 : (_$appointmentId59$ = _$appointmentId59[0]) === null || _$appointmentId59$ === void 0 ? void 0 : _$appointmentId59$.start, "hh:mm A") : ""),
|
|
42465
42712
|
// date: JSON.stringify({
|
|
@@ -42477,9 +42724,9 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
42477
42724
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
42478
42725
|
// }),
|
|
42479
42726
|
visitType: (_$visit_type9 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type9 !== void 0 ? _$visit_type9 : "",
|
|
42480
|
-
practitionerName: (_$
|
|
42481
|
-
speciality: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42482
|
-
clinic: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42727
|
+
practitionerName: (_$practitioner_detail53 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail54 = _.practitioner_details) === null || _$practitioner_detail54 === void 0 ? void 0 : (_$practitioner_detail55 = _$practitioner_detail54[0]) === null || _$practitioner_detail55 === void 0 ? void 0 : _$practitioner_detail55.id_name) !== null && _$practitioner_detail53 !== void 0 ? _$practitioner_detail53 : "",
|
|
42728
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail56 = _.practitioner_details) === null || _$practitioner_detail56 === void 0 ? void 0 : (_$practitioner_detail57 = _$practitioner_detail56[0]) === null || _$practitioner_detail57 === void 0 ? void 0 : (_$practitioner_detail58 = _$practitioner_detail57.speciality) === null || _$practitioner_detail58 === void 0 ? void 0 : (_$practitioner_detail59 = _$practitioner_detail58[0]) === null || _$practitioner_detail59 === void 0 ? void 0 : _$practitioner_detail59.display) || "",
|
|
42729
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail60 = _.practitioner_details) === null || _$practitioner_detail60 === void 0 ? void 0 : (_$practitioner_detail61 = _$practitioner_detail60[0]) === null || _$practitioner_detail61 === void 0 ? void 0 : _$practitioner_detail61.clinic) || "",
|
|
42483
42730
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status9 = _.status) === null || _$status9 === void 0 ? void 0 : _$status9.display) || "",
|
|
42484
42731
|
action: true
|
|
42485
42732
|
};
|
|
@@ -42526,7 +42773,7 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
42526
42773
|
case 5:
|
|
42527
42774
|
data = _context18.sent;
|
|
42528
42775
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result18 = data.result) === null || _data$result18 === void 0 ? void 0 : _data$result18.map(function (_) {
|
|
42529
|
-
var _$
|
|
42776
|
+
var _$patient_id35, _$patient_id35$, _$patient_id35$$name, _$patient_id36, _$patient_id36$, _$appointmentId60, _$appointmentId60$, _$appointmentId60$$Pe, _$appointmentId60$$Pe2, _$patient_id37, _$patient_id37$, _$patient_id37$$telec, _$patient_id37$$telec2, _$patient_id38, _$patient_id38$, _$patient_id38$$telec, _$patient_id38$$telec2, _$appointmentId61, _$appointmentId61$, _$appointmentId62, _$appointmentId62$, _$appointmentId63, _$appointmentId63$, _$appointmentId64, _$appointmentId64$, _$appointmentId65, _$appointmentId65$, _$visit_type10, _$practitioner_detail62, _$practitioner_detail63, _$practitioner_detail64, _$practitioner_detail65, _$practitioner_detail66, _$practitioner_detail67, _$practitioner_detail68, _$practitioner_detail69, _$practitioner_detail70, _$status10;
|
|
42530
42777
|
|
|
42531
42778
|
return {
|
|
42532
42779
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -42566,10 +42813,10 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
42566
42813
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
42567
42814
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
42568
42815
|
// }),
|
|
42569
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
42570
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42816
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id35 = _.patient_id) === null || _$patient_id35 === void 0 ? void 0 : (_$patient_id35$ = _$patient_id35[0]) === null || _$patient_id35$ === void 0 ? void 0 : (_$patient_id35$$name = _$patient_id35$.name) === null || _$patient_id35$$name === void 0 ? void 0 : _$patient_id35$$name[0]) || {}),
|
|
42817
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id36 = _.patient_id) === null || _$patient_id36 === void 0 ? void 0 : (_$patient_id36$ = _$patient_id36[0]) === null || _$patient_id36$ === void 0 ? void 0 : _$patient_id36$.MRN) || "",
|
|
42571
42818
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId60 = _.appointmentId) === null || _$appointmentId60 === void 0 ? void 0 : (_$appointmentId60$ = _$appointmentId60[0]) === null || _$appointmentId60$ === void 0 ? void 0 : (_$appointmentId60$$Pe = _$appointmentId60$.PersonID) === null || _$appointmentId60$$Pe === void 0 ? void 0 : (_$appointmentId60$$Pe2 = _$appointmentId60$$Pe[0]) === null || _$appointmentId60$$Pe2 === void 0 ? void 0 : _$appointmentId60$$Pe2.birthDay),
|
|
42572
|
-
contact: (_
|
|
42819
|
+
contact: (_ === null || _ === void 0 ? void 0 : (_$patient_id37 = _.patient_id) === null || _$patient_id37 === void 0 ? void 0 : (_$patient_id37$ = _$patient_id37[0]) === null || _$patient_id37$ === void 0 ? void 0 : (_$patient_id37$$telec = _$patient_id37$.telecom) === null || _$patient_id37$$telec === void 0 ? void 0 : (_$patient_id37$$telec2 = _$patient_id37$$telec[0]) === null || _$patient_id37$$telec2 === void 0 ? void 0 : _$patient_id37$$telec2.value) ? JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id38 = _.patient_id) === null || _$patient_id38 === void 0 ? void 0 : (_$patient_id38$ = _$patient_id38[0]) === null || _$patient_id38$ === void 0 ? void 0 : (_$patient_id38$$telec = _$patient_id38$.telecom) === null || _$patient_id38$$telec === void 0 ? void 0 : (_$patient_id38$$telec2 = _$patient_id38$$telec[0]) === null || _$patient_id38$$telec2 === void 0 ? void 0 : _$patient_id38$$telec2.value) : "",
|
|
42573
42820
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId61 = _.appointmentId) === null || _$appointmentId61 === void 0 ? void 0 : (_$appointmentId61$ = _$appointmentId61[0]) === null || _$appointmentId61$ === void 0 ? void 0 : _$appointmentId61$.appno) || "",
|
|
42574
42821
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId62 = _.appointmentId) === null || _$appointmentId62 === void 0 ? void 0 : (_$appointmentId62$ = _$appointmentId62[0]) === null || _$appointmentId62$ === void 0 ? void 0 : _$appointmentId62$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId63 = _.appointmentId) === null || _$appointmentId63 === void 0 ? void 0 : (_$appointmentId63$ = _$appointmentId63[0]) === null || _$appointmentId63$ === void 0 ? void 0 : _$appointmentId63$.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$appointmentId64 = _.appointmentId) === null || _$appointmentId64 === void 0 ? void 0 : (_$appointmentId64$ = _$appointmentId64[0]) === null || _$appointmentId64$ === void 0 ? void 0 : _$appointmentId64$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId65 = _.appointmentId) === null || _$appointmentId65 === void 0 ? void 0 : (_$appointmentId65$ = _$appointmentId65[0]) === null || _$appointmentId65$ === void 0 ? void 0 : _$appointmentId65$.start, "hh:mm A") : ""),
|
|
42575
42822
|
// date: JSON.stringify({
|
|
@@ -42587,9 +42834,9 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
42587
42834
|
// clinic: _?.practitioner_details?.[0]?.clinic || ""
|
|
42588
42835
|
// }),
|
|
42589
42836
|
visitType: (_$visit_type10 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type10 !== void 0 ? _$visit_type10 : "",
|
|
42590
|
-
practitionerName: (_$
|
|
42591
|
-
speciality: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42592
|
-
clinic: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42837
|
+
practitionerName: (_$practitioner_detail62 = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail63 = _.practitioner_details) === null || _$practitioner_detail63 === void 0 ? void 0 : (_$practitioner_detail64 = _$practitioner_detail63[0]) === null || _$practitioner_detail64 === void 0 ? void 0 : _$practitioner_detail64.id_name) !== null && _$practitioner_detail62 !== void 0 ? _$practitioner_detail62 : "",
|
|
42838
|
+
speciality: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail65 = _.practitioner_details) === null || _$practitioner_detail65 === void 0 ? void 0 : (_$practitioner_detail66 = _$practitioner_detail65[0]) === null || _$practitioner_detail66 === void 0 ? void 0 : (_$practitioner_detail67 = _$practitioner_detail66.speciality) === null || _$practitioner_detail67 === void 0 ? void 0 : (_$practitioner_detail68 = _$practitioner_detail67[0]) === null || _$practitioner_detail68 === void 0 ? void 0 : _$practitioner_detail68.display) || "",
|
|
42839
|
+
clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail69 = _.practitioner_details) === null || _$practitioner_detail69 === void 0 ? void 0 : (_$practitioner_detail70 = _$practitioner_detail69[0]) === null || _$practitioner_detail70 === void 0 ? void 0 : _$practitioner_detail70.clinic) || "",
|
|
42593
42840
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status10 = _.status) === null || _$status10 === void 0 ? void 0 : _$status10.display) || "",
|
|
42594
42841
|
action: true
|
|
42595
42842
|
};
|