primarycare-binder 1.1.121 → 1.1.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1408 -631
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8130,7 +8130,7 @@ var queries$b = {
|
|
|
8130
8130
|
return "'".concat(name, "' IN Organization.OrgType");
|
|
8131
8131
|
},
|
|
8132
8132
|
// "filter": "'Hospital' IN Organization.OrgType",
|
|
8133
|
-
returnFields: "{OrgID:Organization.id,name:Organization.name}"
|
|
8133
|
+
returnFields: "{OrgID:Organization.id,name:Organization.name, _id:Organization._id }"
|
|
8134
8134
|
},
|
|
8135
8135
|
codablemasterSpeciality: {
|
|
8136
8136
|
query: function query(id) {
|
|
@@ -8153,15 +8153,16 @@ var queries$b = {
|
|
|
8153
8153
|
returnFields: "distinct {practitioner_type:contains(Practitioner.practitioner_type,'CodeableConceptMaster')?document(document(Practitioner.practitioner_type).coding):document(Practitioner.practitioner_type)}"
|
|
8154
8154
|
},
|
|
8155
8155
|
codablemasterPractitionerName: {
|
|
8156
|
-
query: function query(specialityID, practitionerType) {
|
|
8157
|
-
return "(document(Practitioner.practitioner_role)[*].SpecialtyID any == '".concat(specialityID, "' || first(document(document(Practitioner.practitioner_role)[*].SpecialtyID)[*].coding) any == '").concat(specialityID, "' ) && (document(Practitioner.practitioner_type).coding any=='").concat(practitionerType, "' || Practitioner.practitioner_type=='").concat(practitionerType, "') && Practitioner.activestatus==true && Practitioner.active == true");
|
|
8156
|
+
query: function query(specialityID, practitionerType, facilityId) {
|
|
8157
|
+
return "(document(Practitioner.practitioner_role)[*].SpecialtyID any == '".concat(specialityID, "' || first(document(document(Practitioner.practitioner_role)[*].SpecialtyID)[*].coding) any == '").concat(specialityID, "' ) && (document(Practitioner.practitioner_type).coding any=='").concat(practitionerType, "' || Practitioner.practitioner_type=='").concat(practitionerType, "') && document(Practitioner.practitioner_role)[*].OrgID any=='").concat(facilityId, "' && Practitioner.activestatus==true && Practitioner.active == true");
|
|
8158
8158
|
},
|
|
8159
8159
|
returnFields: "merge(Practitioner,{name:(for hm in HumanNameMaster filter hm._id in Practitioner.name return merge(hm,{use:(for cod in CodeableConceptMaster filter cod._id== hm.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == hm.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == hm.suffix return document(cod.coding))}))})"
|
|
8160
8160
|
},
|
|
8161
8161
|
codablemasterGetFinancial: {
|
|
8162
8162
|
query: function query(patientId) {
|
|
8163
|
-
return "Account.
|
|
8163
|
+
return "document(Account.linkidenvalue).id == ".concat(patientId, " && Account.activestatus==true");
|
|
8164
8164
|
},
|
|
8165
|
+
// `Account.guarantor[0].patient_id==${patientId}`,
|
|
8165
8166
|
// "filter": "Account.patient_id==@patient_id",
|
|
8166
8167
|
returnFields: "Account"
|
|
8167
8168
|
},
|
|
@@ -8359,6 +8360,10 @@ var __update__ = "".concat(process.env.REACT_APP_BASE_URL_PROTOCAL, "://").conca
|
|
|
8359
8360
|
var __readDocumentUrl__ = "".concat(process.env.REACT_APP_BASE_URL_PROTOCAL, "://").concat(process.env.REACT_APP_BASE_URL_HOST, ":").concat(process.env.REACT_APP_BASE_URL_PORT, "/api/read_documents");
|
|
8360
8361
|
var __deleteUrl__ = "".concat(process.env.REACT_APP_BASE_URL_PROTOCAL, "://").concat(process.env.REACT_APP_BASE_URL_HOST, ":").concat(process.env.REACT_APP_BASE_URL_PORT, "/api/delete_document");
|
|
8361
8362
|
var __ruleBuilderUrl__ = "".concat(process.env.REACT_APP_RULE_BUILDER_URL, "/multi/rule-validate");
|
|
8363
|
+
var __OrderlinewithQueue__ = "".concat(process.env.REACT_APP_NIFI_CLMM_API, "/api/v1/upsert/OrderlinewithQueue");
|
|
8364
|
+
var __GetOrderStartDate__ = "".concat(process.env.REACT_APP_CLMM_NIFI_API, "/api/ScheduleGeneration/GetOrderStartDate"); // export const __GetOrderStartDate__ = `https://apiclmm.dev.ainqaplatform.in/api/ScheduleGeneration/GetOrderStartDate`;
|
|
8365
|
+
|
|
8366
|
+
var __Soft_Delete__ = "".concat(process.env.REACT_APP_SOFT_DELETE, "/api/soft_delete"); // export const __ruleBuilderUrl__ = `http://164.52.210.54:9090/multi/rule-validate`;
|
|
8362
8367
|
|
|
8363
8368
|
var __seqNoGenerator__ = "".concat(process.env.REACT_APP_BASE_URL_PROTOCAL, "://").concat(process.env.REACT_APP_BASE_URL_HOST, ":").concat(process.env.REACT_APP_BASE_URL_PORT, "/api/generate_sequence");
|
|
8364
8369
|
var __insertRCMurl__ = "".concat(process.env.REACT_APP_BASE_URL_PROTOCAL, "://").concat(process.env.REACT_APP_AUTH_URL_HOST, "/api/v1/insertCAOrderInRCMPatTrx");
|
|
@@ -8420,7 +8425,7 @@ var urls = (_urls = {
|
|
|
8420
8425
|
get_hospitals_locality: "/api/v1/getHospitalBasedonLocality"
|
|
8421
8426
|
}, _defineProperty(_urls, "get_cities", "/api/v1/getCityFromHospital"), _defineProperty(_urls, "get_symptoms", "/api/v1/getSymptoms"), _defineProperty(_urls, "get_speciality", "/api/v1/getSpeciality"), _defineProperty(_urls, "upsert_service", "/api/v1/upsertService"), _defineProperty(_urls, "read_service", "/api/v1/readService"), _defineProperty(_urls, "delete_service", "/api/v1/deleteService"), _defineProperty(_urls, "upsert_slot", "/api/v1/upsertSlot"), _defineProperty(_urls, "read_slot", "api/v1/readSlot"), _defineProperty(_urls, "delete_slot", "api/v1/deleteSlot"), _defineProperty(_urls, "slot_availability", "api/v1/readAvailibalityChecking"), _defineProperty(_urls, "upsert_task", "api/v1/upsertTask"), _defineProperty(_urls, "read_task", "api/v1/readTask"), _defineProperty(_urls, "delete_task", "api/v1/deleteTask"), _defineProperty(_urls, "upsert_schedule", "api/v1/upsertSchedule"), _defineProperty(_urls, "read_schedule", "api/v1/readSchedule"), _defineProperty(_urls, "delete_schedule", "api/v1/deleteSchedule"), _defineProperty(_urls, "upsert_person", "api/v1/upsertPerson"), _defineProperty(_urls, "read_person", "api/v1/readPerson"), _defineProperty(_urls, "delete_person", "api/v1/deletePerson"), _defineProperty(_urls, "upsert_practitioner_role", "api/v1/upsertPractitionerRole"), _defineProperty(_urls, "read_practitioner_role", "api/v1/readPractitionerRole"), _defineProperty(_urls, "delete_practitioner_role", "api/v1/deletePractitionerRole"), _defineProperty(_urls, "get_user_info", "api/v1/getUserInfo"), _defineProperty(_urls, "oraganization_registration", "api/v1/orgUserRegistration"), _defineProperty(_urls, "oraganization_siginIn", "".concat(__keyClockLogin__, "/api/v1/orgUserSignIn")), _defineProperty(_urls, "oraganization_registet_patient", "api/v1/upsert_document"), _urls);
|
|
8422
8427
|
|
|
8423
|
-
var makeName = function makeName() {
|
|
8428
|
+
var makeName$1 = function makeName() {
|
|
8424
8429
|
var _prefix$, _prefix$$coding, _prefix$$coding$, _prefix$coding, _prefix$coding$, _prefix$2, _suffix$, _suffix$$coding, _suffix$$coding$, _suffix$coding, _suffix$coding$, _suffix$2;
|
|
8425
8430
|
|
|
8426
8431
|
var nameObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -10983,8 +10988,8 @@ var PATIENT_CITY_READ = createAsyncThunk("patientReducer/readPatientCity", /*#__
|
|
|
10983
10988
|
var _val$name, _val$name2, _val$_id7;
|
|
10984
10989
|
|
|
10985
10990
|
arr4.push({
|
|
10986
|
-
label: makeName((_val$name = val === null || val === void 0 ? void 0 : val.name) !== null && _val$name !== void 0 ? _val$name : {}),
|
|
10987
|
-
value: makeName((_val$name2 = val === null || val === void 0 ? void 0 : val.name) !== null && _val$name2 !== void 0 ? _val$name2 : {}),
|
|
10991
|
+
label: makeName$1((_val$name = val === null || val === void 0 ? void 0 : val.name) !== null && _val$name !== void 0 ? _val$name : {}),
|
|
10992
|
+
value: makeName$1((_val$name2 = val === null || val === void 0 ? void 0 : val.name) !== null && _val$name2 !== void 0 ? _val$name2 : {}),
|
|
10988
10993
|
_id: (_val$_id7 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id7 !== void 0 ? _val$_id7 : ""
|
|
10989
10994
|
});
|
|
10990
10995
|
});
|
|
@@ -11861,7 +11866,7 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
11861
11866
|
info["hospitalName"] = ((_practData$28 = practData[0]) === null || _practData$28 === void 0 ? void 0 : (_practData$28$practit = _practData$28.practitioner_role) === null || _practData$28$practit === void 0 ? void 0 : (_practData$28$practit2 = _practData$28$practit[0]) === null || _practData$28$practit2 === void 0 ? void 0 : (_practData$28$practit3 = _practData$28$practit2.OrgID) === null || _practData$28$practit3 === void 0 ? void 0 : _practData$28$practit3.name) || "";
|
|
11862
11867
|
info["hospitalLocation"] = ((_practData$29 = practData[0]) === null || _practData$29 === void 0 ? void 0 : (_practData$29$address = _practData$29.address) === null || _practData$29$address === void 0 ? void 0 : (_practData$29$address2 = _practData$29$address[0]) === null || _practData$29$address2 === void 0 ? void 0 : _practData$29$address2.line) || "";
|
|
11863
11868
|
nameObj = ((_practData$30 = practData[0]) === null || _practData$30 === void 0 ? void 0 : (_practData$30$name = _practData$30.name) === null || _practData$30$name === void 0 ? void 0 : _practData$30$name[0]) || {};
|
|
11864
|
-
info["name"] = makeName(nameObj);
|
|
11869
|
+
info["name"] = makeName$1(nameObj);
|
|
11865
11870
|
info["kms"] = kms;
|
|
11866
11871
|
info["orgType"] = (_practData$31 = practData[0]) === null || _practData$31 === void 0 ? void 0 : (_practData$31$practit = _practData$31.practitioner_role) === null || _practData$31$practit === void 0 ? void 0 : (_practData$31$practit2 = _practData$31$practit[0]) === null || _practData$31$practit2 === void 0 ? void 0 : (_practData$31$practit3 = _practData$31$practit2.OrgID) === null || _practData$31$practit3 === void 0 ? void 0 : (_practData$31$practit4 = _practData$31$practit3.OrgType) === null || _practData$31$practit4 === void 0 ? void 0 : _practData$31$practit4[0];
|
|
11867
11872
|
info["org_Id"] = (_practData$0$practiti = (_practData$32 = practData[0]) === null || _practData$32 === void 0 ? void 0 : (_practData$32$practit = _practData$32.practitioner_role) === null || _practData$32$practit === void 0 ? void 0 : (_practData$32$practit2 = _practData$32$practit[0]) === null || _practData$32$practit2 === void 0 ? void 0 : (_practData$32$practit3 = _practData$32$practit2.OrgID) === null || _practData$32$practit3 === void 0 ? void 0 : _practData$32$practit3._id) !== null && _practData$0$practiti !== void 0 ? _practData$0$practiti : (_practData$33 = practData[0]) === null || _practData$33 === void 0 ? void 0 : (_practData$33$practit = _practData$33.practitioner_role) === null || _practData$33$practit === void 0 ? void 0 : (_practData$33$practit2 = _practData$33$practit[0]) === null || _practData$33$practit2 === void 0 ? void 0 : _practData$33$practit2.EntityName;
|
|
@@ -14922,7 +14927,7 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
14922
14927
|
info["hospitalName"] = (restData === null || restData === void 0 ? void 0 : (_restData$hospital8 = restData.hospital) === null || _restData$hospital8 === void 0 ? void 0 : _restData$hospital8.name) || "";
|
|
14923
14928
|
info["hospitalLocation"] = (restData === null || restData === void 0 ? void 0 : (_restData$hospital9 = restData.hospital) === null || _restData$hospital9 === void 0 ? void 0 : (_restData$hospital9$a = _restData$hospital9.address) === null || _restData$hospital9$a === void 0 ? void 0 : (_restData$hospital9$a2 = _restData$hospital9$a.city) === null || _restData$hospital9$a2 === void 0 ? void 0 : _restData$hospital9$a2.geogLevelName) || "";
|
|
14924
14929
|
var nameObj = (restData === null || restData === void 0 ? void 0 : (_restData$name = restData.name) === null || _restData$name === void 0 ? void 0 : _restData$name[0]) || {};
|
|
14925
|
-
info["name"] = makeName(nameObj);
|
|
14930
|
+
info["name"] = makeName$1(nameObj);
|
|
14926
14931
|
info["img"] = getImgUrl(restData === null || restData === void 0 ? void 0 : (_restData$photo = restData.photo) === null || _restData$photo === void 0 ? void 0 : (_restData$photo$ = _restData$photo[0]) === null || _restData$photo$ === void 0 ? void 0 : _restData$photo$.fileid);
|
|
14927
14932
|
info["kms"] = (restData === null || restData === void 0 ? void 0 : (_restData$address4 = restData.address) === null || _restData$address4 === void 0 ? void 0 : (_restData$address4$ = _restData$address4[0]) === null || _restData$address4$ === void 0 ? void 0 : _restData$address4$.distance) ? "".concat(restData.address[0].distance) : "0";
|
|
14928
14933
|
info["key"] = restData === null || restData === void 0 ? void 0 : restData._key;
|
|
@@ -16026,7 +16031,7 @@ var SPECIALITY_AGAINST_PRACTITIONER = createAsyncThunk("searhcApiSlice/specialit
|
|
|
16026
16031
|
var _spec$name, _spec$SPECIALTY, _spec$SPECIALTY$, _spec$SPECIALTY$$codi, _spec$SPECIALTY$$codi2;
|
|
16027
16032
|
|
|
16028
16033
|
returnData.push({
|
|
16029
|
-
label: makeName((_spec$name = spec.name) === null || _spec$name === void 0 ? void 0 : _spec$name[0]),
|
|
16034
|
+
label: makeName$1((_spec$name = spec.name) === null || _spec$name === void 0 ? void 0 : _spec$name[0]),
|
|
16030
16035
|
value: spec.id,
|
|
16031
16036
|
type: "Doctor",
|
|
16032
16037
|
speciality: spec === null || spec === void 0 ? void 0 : (_spec$SPECIALTY = spec.SPECIALTY) === null || _spec$SPECIALTY === void 0 ? void 0 : (_spec$SPECIALTY$ = _spec$SPECIALTY[0]) === null || _spec$SPECIALTY$ === void 0 ? void 0 : (_spec$SPECIALTY$$codi = _spec$SPECIALTY$.coding) === null || _spec$SPECIALTY$$codi === void 0 ? void 0 : (_spec$SPECIALTY$$codi2 = _spec$SPECIALTY$$codi[0]) === null || _spec$SPECIALTY$$codi2 === void 0 ? void 0 : _spec$SPECIALTY$$codi2.display
|
|
@@ -17727,7 +17732,7 @@ var READ_PERSON = createAsyncThunk("personApiSlice/readPerson", /*#__PURE__*/_as
|
|
|
17727
17732
|
id: (data === null || data === void 0 ? void 0 : (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : (_data$$ = _data$[0]) === null || _data$$ === void 0 ? void 0 : _data$$.Id) || 0,
|
|
17728
17733
|
birthDay: (data === null || data === void 0 ? void 0 : (_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$ = _data$2[0]) === null || _data$2$ === void 0 ? void 0 : _data$2$.birthDay) || "",
|
|
17729
17734
|
gender: (data === null || data === void 0 ? void 0 : (_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : (_data$3$ = _data$3[0]) === null || _data$3$ === void 0 ? void 0 : _data$3$.gender) || "",
|
|
17730
|
-
name: makeName(data === null || data === void 0 ? void 0 : (_data$4 = data[0]) === null || _data$4 === void 0 ? void 0 : (_data$4$ = _data$4[0]) === null || _data$4$ === void 0 ? void 0 : (_data$4$$names = _data$4$.names) === null || _data$4$$names === void 0 ? void 0 : _data$4$$names[0]) || "",
|
|
17735
|
+
name: makeName$1(data === null || data === void 0 ? void 0 : (_data$4 = data[0]) === null || _data$4 === void 0 ? void 0 : (_data$4$ = _data$4[0]) === null || _data$4$ === void 0 ? void 0 : (_data$4$$names = _data$4$.names) === null || _data$4$$names === void 0 ? void 0 : _data$4$$names[0]) || "",
|
|
17731
17736
|
pid: (data === null || data === void 0 ? void 0 : (_data$5 = data[0]) === null || _data$5 === void 0 ? void 0 : (_data$5$ = _data$5[0]) === null || _data$5$ === void 0 ? void 0 : (_data$5$$Patientname = _data$5$.Patientname) === null || _data$5$$Patientname === void 0 ? void 0 : (_data$5$$Patientname$ = _data$5$$Patientname[0]) === null || _data$5$$Patientname$ === void 0 ? void 0 : _data$5$$Patientname$._id) || "",
|
|
17732
17737
|
mrn: (data === null || data === void 0 ? void 0 : (_data$6 = data[0]) === null || _data$6 === void 0 ? void 0 : (_data$6$ = _data$6[0]) === null || _data$6$ === void 0 ? void 0 : (_data$6$$Patientname = _data$6$.Patientname) === null || _data$6$$Patientname === void 0 ? void 0 : (_data$6$$Patientname$ = _data$6$$Patientname[0]) === null || _data$6$$Patientname$ === void 0 ? void 0 : _data$6$$Patientname$.alias) || "",
|
|
17733
17738
|
username: phone,
|
|
@@ -18895,13 +18900,26 @@ var ORGANIZATION_FINANCIAL_REGISTRATION = createAsyncThunk("OrganizationRegister
|
|
|
18895
18900
|
case 7:
|
|
18896
18901
|
Del_data = _context5.sent;
|
|
18897
18902
|
body = payloaddata.map(function (val, i) {
|
|
18898
|
-
|
|
18899
|
-
|
|
18900
|
-
|
|
18901
|
-
|
|
18902
|
-
|
|
18903
|
-
|
|
18904
|
-
|
|
18903
|
+
if (val === null || val === void 0 ? void 0 : val._key) {
|
|
18904
|
+
return {
|
|
18905
|
+
db_name: dbName,
|
|
18906
|
+
entity: "Account",
|
|
18907
|
+
is_metadata: true,
|
|
18908
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
18909
|
+
doc: val,
|
|
18910
|
+
filter: {
|
|
18911
|
+
_key: val === null || val === void 0 ? void 0 : val._key
|
|
18912
|
+
}
|
|
18913
|
+
};
|
|
18914
|
+
} else {
|
|
18915
|
+
return {
|
|
18916
|
+
db_name: dbName,
|
|
18917
|
+
entity: "Account",
|
|
18918
|
+
is_metadata: true,
|
|
18919
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
18920
|
+
doc: val
|
|
18921
|
+
};
|
|
18922
|
+
}
|
|
18905
18923
|
});
|
|
18906
18924
|
_context5.next = 11;
|
|
18907
18925
|
return fetchData$3({
|
|
@@ -18928,15 +18946,13 @@ var ORGANIZATION_FINANCIAL_REGISTRATION = createAsyncThunk("OrganizationRegister
|
|
|
18928
18946
|
}
|
|
18929
18947
|
}, _callee5, null, [[2, 15]]);
|
|
18930
18948
|
})));
|
|
18931
|
-
var
|
|
18949
|
+
var GET_PATIENT__ID_BY_ID = createAsyncThunk("OrganizationRegisterPatientApiSlice/getPatient_id", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
18932
18950
|
var payload,
|
|
18933
18951
|
_ref12,
|
|
18934
18952
|
rejectWithValue,
|
|
18935
|
-
|
|
18936
|
-
type,
|
|
18953
|
+
patient_id,
|
|
18937
18954
|
body,
|
|
18938
18955
|
data,
|
|
18939
|
-
returnData,
|
|
18940
18956
|
_args6 = arguments;
|
|
18941
18957
|
|
|
18942
18958
|
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
@@ -18946,12 +18962,12 @@ var GET_FACILITY_TYPE = createAsyncThunk("OrganizationRegisterPatientApiSlice/ge
|
|
|
18946
18962
|
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
18947
18963
|
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
18948
18964
|
_context6.prev = 2;
|
|
18949
|
-
|
|
18965
|
+
patient_id = payload.patient_id;
|
|
18950
18966
|
body = {
|
|
18951
|
-
db_name: dbName,
|
|
18952
|
-
entity: "
|
|
18953
|
-
filter:
|
|
18954
|
-
return_fields:
|
|
18967
|
+
"db_name": dbName,
|
|
18968
|
+
"entity": "Patient",
|
|
18969
|
+
"filter": "Patient.id==".concat(patient_id, " && Patient.activestatus==true"),
|
|
18970
|
+
"return_fields": "Patient"
|
|
18955
18971
|
};
|
|
18956
18972
|
_context6.next = 7;
|
|
18957
18973
|
return fetchData$3({
|
|
@@ -18960,36 +18976,30 @@ var GET_FACILITY_TYPE = createAsyncThunk("OrganizationRegisterPatientApiSlice/ge
|
|
|
18960
18976
|
|
|
18961
18977
|
case 7:
|
|
18962
18978
|
data = _context6.sent;
|
|
18963
|
-
|
|
18964
|
-
|
|
18965
|
-
if (Array.isArray(data.result)) {
|
|
18966
|
-
returnData = data.result;
|
|
18967
|
-
}
|
|
18968
|
-
|
|
18969
|
-
return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
18970
|
-
data: returnData
|
|
18979
|
+
return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
18980
|
+
data: data
|
|
18971
18981
|
}));
|
|
18972
18982
|
|
|
18973
|
-
case
|
|
18974
|
-
_context6.prev =
|
|
18983
|
+
case 11:
|
|
18984
|
+
_context6.prev = 11;
|
|
18975
18985
|
_context6.t0 = _context6["catch"](2);
|
|
18976
18986
|
return _context6.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
18977
18987
|
message: _context6.t0.message
|
|
18978
18988
|
})));
|
|
18979
18989
|
|
|
18980
|
-
case
|
|
18990
|
+
case 14:
|
|
18981
18991
|
case "end":
|
|
18982
18992
|
return _context6.stop();
|
|
18983
18993
|
}
|
|
18984
18994
|
}
|
|
18985
|
-
}, _callee6, null, [[2,
|
|
18995
|
+
}, _callee6, null, [[2, 11]]);
|
|
18986
18996
|
})));
|
|
18987
|
-
var
|
|
18997
|
+
var GET_FACILITY_TYPE = createAsyncThunk("OrganizationRegisterPatientApiSlice/getfacility", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
18988
18998
|
var payload,
|
|
18989
18999
|
_ref14,
|
|
18990
19000
|
rejectWithValue,
|
|
18991
|
-
_payload$
|
|
18992
|
-
|
|
19001
|
+
_payload$type,
|
|
19002
|
+
type,
|
|
18993
19003
|
body,
|
|
18994
19004
|
data,
|
|
18995
19005
|
returnData,
|
|
@@ -19002,12 +19012,12 @@ var GET_FACILITY_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/ge
|
|
|
19002
19012
|
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
19003
19013
|
_ref14 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
|
|
19004
19014
|
_context7.prev = 2;
|
|
19005
|
-
_payload$
|
|
19015
|
+
_payload$type = payload.type, type = _payload$type === void 0 ? "ORGTYPE" : _payload$type;
|
|
19006
19016
|
body = {
|
|
19007
19017
|
db_name: dbName,
|
|
19008
|
-
entity: "
|
|
19009
|
-
filter: queries$b["
|
|
19010
|
-
return_fields: queries$b["
|
|
19018
|
+
entity: "CodeableConceptMaster",
|
|
19019
|
+
filter: queries$b["codablemasterType"].query(type),
|
|
19020
|
+
return_fields: queries$b["codablemasterType"].returnFields
|
|
19011
19021
|
};
|
|
19012
19022
|
_context7.next = 7;
|
|
19013
19023
|
return fetchData$3({
|
|
@@ -19040,6 +19050,62 @@ var GET_FACILITY_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/ge
|
|
|
19040
19050
|
}
|
|
19041
19051
|
}, _callee7, null, [[2, 13]]);
|
|
19042
19052
|
})));
|
|
19053
|
+
var GET_FACILITY_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getfacilitytype", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
19054
|
+
var payload,
|
|
19055
|
+
_ref16,
|
|
19056
|
+
rejectWithValue,
|
|
19057
|
+
_payload$name,
|
|
19058
|
+
name,
|
|
19059
|
+
body,
|
|
19060
|
+
data,
|
|
19061
|
+
returnData,
|
|
19062
|
+
_args8 = arguments;
|
|
19063
|
+
|
|
19064
|
+
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
19065
|
+
while (1) {
|
|
19066
|
+
switch (_context8.prev = _context8.next) {
|
|
19067
|
+
case 0:
|
|
19068
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
19069
|
+
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
|
|
19070
|
+
_context8.prev = 2;
|
|
19071
|
+
_payload$name = payload.name, name = _payload$name === void 0 ? "Hospital" : _payload$name;
|
|
19072
|
+
body = {
|
|
19073
|
+
db_name: dbName,
|
|
19074
|
+
entity: "Organization",
|
|
19075
|
+
filter: queries$b["codablemasterName"].query(name),
|
|
19076
|
+
return_fields: queries$b["codablemasterName"].returnFields
|
|
19077
|
+
};
|
|
19078
|
+
_context8.next = 7;
|
|
19079
|
+
return fetchData$3({
|
|
19080
|
+
body: JSON.stringify(body)
|
|
19081
|
+
}, __readDocumentUrl__);
|
|
19082
|
+
|
|
19083
|
+
case 7:
|
|
19084
|
+
data = _context8.sent;
|
|
19085
|
+
returnData = [];
|
|
19086
|
+
|
|
19087
|
+
if (Array.isArray(data.result)) {
|
|
19088
|
+
returnData = data.result;
|
|
19089
|
+
}
|
|
19090
|
+
|
|
19091
|
+
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19092
|
+
data: returnData
|
|
19093
|
+
}));
|
|
19094
|
+
|
|
19095
|
+
case 13:
|
|
19096
|
+
_context8.prev = 13;
|
|
19097
|
+
_context8.t0 = _context8["catch"](2);
|
|
19098
|
+
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19099
|
+
message: _context8.t0.message
|
|
19100
|
+
})));
|
|
19101
|
+
|
|
19102
|
+
case 16:
|
|
19103
|
+
case "end":
|
|
19104
|
+
return _context8.stop();
|
|
19105
|
+
}
|
|
19106
|
+
}
|
|
19107
|
+
}, _callee8, null, [[2, 13]]);
|
|
19108
|
+
})));
|
|
19043
19109
|
|
|
19044
19110
|
var constructPractitonerType = function constructPractitonerType(data) {
|
|
19045
19111
|
debugger;
|
|
@@ -19087,74 +19153,15 @@ var constructPractitonerName = function constructPractitonerName(data) {
|
|
|
19087
19153
|
return arr;
|
|
19088
19154
|
};
|
|
19089
19155
|
|
|
19090
|
-
var GET_PRACTITIONER_TYPE = createAsyncThunk("OrganizationRegisterPatientApiSlice/getPractitionerType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19156
|
+
var GET_PRACTITIONER_TYPE = createAsyncThunk("OrganizationRegisterPatientApiSlice/getPractitionerType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
19091
19157
|
var payload,
|
|
19092
|
-
|
|
19158
|
+
_ref18,
|
|
19093
19159
|
rejectWithValue,
|
|
19094
19160
|
_payload$OrgID,
|
|
19095
19161
|
OrgID,
|
|
19096
19162
|
body,
|
|
19097
19163
|
data,
|
|
19098
19164
|
returnData,
|
|
19099
|
-
_args8 = arguments;
|
|
19100
|
-
|
|
19101
|
-
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
19102
|
-
while (1) {
|
|
19103
|
-
switch (_context8.prev = _context8.next) {
|
|
19104
|
-
case 0:
|
|
19105
|
-
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
19106
|
-
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
|
|
19107
|
-
_context8.prev = 2;
|
|
19108
|
-
_payload$OrgID = payload.OrgID, OrgID = _payload$OrgID === void 0 ? "" : _payload$OrgID;
|
|
19109
|
-
body = {
|
|
19110
|
-
db_name: dbName,
|
|
19111
|
-
entity: "Practitioner",
|
|
19112
|
-
filter: queries$b["codablemasterPractitionerType"].query(OrgID),
|
|
19113
|
-
return_fields: queries$b["codablemasterPractitionerType"].returnFields
|
|
19114
|
-
};
|
|
19115
|
-
_context8.next = 7;
|
|
19116
|
-
return fetchData$3({
|
|
19117
|
-
body: JSON.stringify(body)
|
|
19118
|
-
}, __readDocumentUrl__);
|
|
19119
|
-
|
|
19120
|
-
case 7:
|
|
19121
|
-
data = _context8.sent;
|
|
19122
|
-
debugger;
|
|
19123
|
-
returnData = [];
|
|
19124
|
-
|
|
19125
|
-
if (Array.isArray(data.result)) {
|
|
19126
|
-
returnData = constructPractitonerType(data.result);
|
|
19127
|
-
}
|
|
19128
|
-
|
|
19129
|
-
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19130
|
-
data: returnData
|
|
19131
|
-
}));
|
|
19132
|
-
|
|
19133
|
-
case 14:
|
|
19134
|
-
_context8.prev = 14;
|
|
19135
|
-
_context8.t0 = _context8["catch"](2);
|
|
19136
|
-
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19137
|
-
message: _context8.t0.message
|
|
19138
|
-
})));
|
|
19139
|
-
|
|
19140
|
-
case 17:
|
|
19141
|
-
case "end":
|
|
19142
|
-
return _context8.stop();
|
|
19143
|
-
}
|
|
19144
|
-
}
|
|
19145
|
-
}, _callee8, null, [[2, 14]]);
|
|
19146
|
-
})));
|
|
19147
|
-
var GET_PRACTITIONER_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getPractitionerName", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
19148
|
-
var payload,
|
|
19149
|
-
_ref18,
|
|
19150
|
-
rejectWithValue,
|
|
19151
|
-
_payload$specialityID,
|
|
19152
|
-
specialityID,
|
|
19153
|
-
_payload$practitioner,
|
|
19154
|
-
practitionerType,
|
|
19155
|
-
body,
|
|
19156
|
-
data,
|
|
19157
|
-
returnData,
|
|
19158
19165
|
_args9 = arguments;
|
|
19159
19166
|
|
|
19160
19167
|
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
@@ -19164,12 +19171,12 @@ var GET_PRACTITIONER_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlic
|
|
|
19164
19171
|
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
19165
19172
|
_ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
|
|
19166
19173
|
_context9.prev = 2;
|
|
19167
|
-
_payload$
|
|
19174
|
+
_payload$OrgID = payload.OrgID, OrgID = _payload$OrgID === void 0 ? "" : _payload$OrgID;
|
|
19168
19175
|
body = {
|
|
19169
19176
|
db_name: dbName,
|
|
19170
19177
|
entity: "Practitioner",
|
|
19171
|
-
filter: queries$b["
|
|
19172
|
-
return_fields: queries$b["
|
|
19178
|
+
filter: queries$b["codablemasterPractitionerType"].query(OrgID),
|
|
19179
|
+
return_fields: queries$b["codablemasterPractitionerType"].returnFields
|
|
19173
19180
|
};
|
|
19174
19181
|
_context9.next = 7;
|
|
19175
19182
|
return fetchData$3({
|
|
@@ -19182,7 +19189,7 @@ var GET_PRACTITIONER_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlic
|
|
|
19182
19189
|
returnData = [];
|
|
19183
19190
|
|
|
19184
19191
|
if (Array.isArray(data.result)) {
|
|
19185
|
-
returnData =
|
|
19192
|
+
returnData = constructPractitonerType(data.result);
|
|
19186
19193
|
}
|
|
19187
19194
|
|
|
19188
19195
|
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
@@ -19203,12 +19210,16 @@ var GET_PRACTITIONER_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlic
|
|
|
19203
19210
|
}
|
|
19204
19211
|
}, _callee9, null, [[2, 14]]);
|
|
19205
19212
|
})));
|
|
19206
|
-
var
|
|
19213
|
+
var GET_PRACTITIONER_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getPractitionerName", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
19207
19214
|
var payload,
|
|
19208
19215
|
_ref20,
|
|
19209
19216
|
rejectWithValue,
|
|
19210
|
-
_payload$
|
|
19211
|
-
|
|
19217
|
+
_payload$facilityId,
|
|
19218
|
+
facilityId,
|
|
19219
|
+
_payload$specialityID,
|
|
19220
|
+
specialityID,
|
|
19221
|
+
_payload$practitioner,
|
|
19222
|
+
practitionerType,
|
|
19212
19223
|
body,
|
|
19213
19224
|
data,
|
|
19214
19225
|
returnData,
|
|
@@ -19221,12 +19232,12 @@ var GET_PRACTITIONER = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19221
19232
|
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
19222
19233
|
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
19223
19234
|
_context10.prev = 2;
|
|
19224
|
-
_payload$
|
|
19235
|
+
_payload$facilityId = payload.facilityId, facilityId = _payload$facilityId === void 0 ? "" : _payload$facilityId, _payload$specialityID = payload.specialityID, specialityID = _payload$specialityID === void 0 ? "" : _payload$specialityID, _payload$practitioner = payload.practitionerType, practitionerType = _payload$practitioner === void 0 ? "" : _payload$practitioner;
|
|
19225
19236
|
body = {
|
|
19226
19237
|
db_name: dbName,
|
|
19227
|
-
entity: "Practitioner
|
|
19228
|
-
filter: queries$b["
|
|
19229
|
-
return_fields: queries$b["
|
|
19238
|
+
entity: "Practitioner",
|
|
19239
|
+
filter: queries$b["codablemasterPractitionerName"].query(specialityID, practitionerType, facilityId),
|
|
19240
|
+
return_fields: queries$b["codablemasterPractitionerName"].returnFields
|
|
19230
19241
|
};
|
|
19231
19242
|
_context10.next = 7;
|
|
19232
19243
|
return fetchData$3({
|
|
@@ -19235,35 +19246,36 @@ var GET_PRACTITIONER = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19235
19246
|
|
|
19236
19247
|
case 7:
|
|
19237
19248
|
data = _context10.sent;
|
|
19249
|
+
debugger;
|
|
19238
19250
|
returnData = [];
|
|
19239
19251
|
|
|
19240
19252
|
if (Array.isArray(data.result)) {
|
|
19241
|
-
returnData = data.result;
|
|
19253
|
+
returnData = constructPractitonerName(data.result);
|
|
19242
19254
|
}
|
|
19243
19255
|
|
|
19244
19256
|
return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19245
19257
|
data: returnData
|
|
19246
19258
|
}));
|
|
19247
19259
|
|
|
19248
|
-
case
|
|
19249
|
-
_context10.prev =
|
|
19260
|
+
case 14:
|
|
19261
|
+
_context10.prev = 14;
|
|
19250
19262
|
_context10.t0 = _context10["catch"](2);
|
|
19251
19263
|
return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19252
19264
|
message: _context10.t0.message
|
|
19253
19265
|
})));
|
|
19254
19266
|
|
|
19255
|
-
case
|
|
19267
|
+
case 17:
|
|
19256
19268
|
case "end":
|
|
19257
19269
|
return _context10.stop();
|
|
19258
19270
|
}
|
|
19259
19271
|
}
|
|
19260
|
-
}, _callee10, null, [[2,
|
|
19272
|
+
}, _callee10, null, [[2, 14]]);
|
|
19261
19273
|
})));
|
|
19262
|
-
var
|
|
19274
|
+
var GET_PRACTITIONER = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpractitioner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
19263
19275
|
var payload,
|
|
19264
19276
|
_ref22,
|
|
19265
19277
|
rejectWithValue,
|
|
19266
|
-
_payload$
|
|
19278
|
+
_payload$OrgID2,
|
|
19267
19279
|
OrgID,
|
|
19268
19280
|
body,
|
|
19269
19281
|
data,
|
|
@@ -19277,12 +19289,12 @@ var GET_PRACTITIONERS = createAsyncThunk("OrganizationRegisterPatientApiSlice/ge
|
|
|
19277
19289
|
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
19278
19290
|
_ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
19279
19291
|
_context11.prev = 2;
|
|
19280
|
-
_payload$
|
|
19292
|
+
_payload$OrgID2 = payload.OrgID, OrgID = _payload$OrgID2 === void 0 ? "" : _payload$OrgID2;
|
|
19281
19293
|
body = {
|
|
19282
19294
|
db_name: dbName,
|
|
19283
|
-
entity: "Practitioner",
|
|
19284
|
-
filter: "
|
|
19285
|
-
return_fields: "
|
|
19295
|
+
entity: "Practitioner,PractitionerRole",
|
|
19296
|
+
filter: queries$b["codablemasterPractitioner"].query(OrgID),
|
|
19297
|
+
return_fields: queries$b["codablemasterPractitioner"].returnFields
|
|
19286
19298
|
};
|
|
19287
19299
|
_context11.next = 7;
|
|
19288
19300
|
return fetchData$3({
|
|
@@ -19315,11 +19327,11 @@ var GET_PRACTITIONERS = createAsyncThunk("OrganizationRegisterPatientApiSlice/ge
|
|
|
19315
19327
|
}
|
|
19316
19328
|
}, _callee11, null, [[2, 13]]);
|
|
19317
19329
|
})));
|
|
19318
|
-
var
|
|
19330
|
+
var GET_PRACTITIONERS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpractitioners", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
|
19319
19331
|
var payload,
|
|
19320
19332
|
_ref24,
|
|
19321
19333
|
rejectWithValue,
|
|
19322
|
-
_payload$
|
|
19334
|
+
_payload$OrgID3,
|
|
19323
19335
|
OrgID,
|
|
19324
19336
|
body,
|
|
19325
19337
|
data,
|
|
@@ -19333,12 +19345,12 @@ var GET_PRACTITIONER_ROLE = createAsyncThunk("OrganizationRegisterPatientApiSlic
|
|
|
19333
19345
|
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
19334
19346
|
_ref24 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
|
|
19335
19347
|
_context12.prev = 2;
|
|
19336
|
-
_payload$
|
|
19348
|
+
_payload$OrgID3 = payload.OrgID, OrgID = _payload$OrgID3 === void 0 ? "" : _payload$OrgID3;
|
|
19337
19349
|
body = {
|
|
19338
19350
|
db_name: dbName,
|
|
19339
|
-
entity: "Practitioner
|
|
19340
|
-
filter:
|
|
19341
|
-
return_fields:
|
|
19351
|
+
entity: "Practitioner",
|
|
19352
|
+
filter: "document(Practitioner.practitioner_role)[*].SpecialtyID any == '" + OrgID + "'",
|
|
19353
|
+
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)}))})"
|
|
19342
19354
|
};
|
|
19343
19355
|
_context12.next = 7;
|
|
19344
19356
|
return fetchData$3({
|
|
@@ -19371,18 +19383,15 @@ var GET_PRACTITIONER_ROLE = createAsyncThunk("OrganizationRegisterPatientApiSlic
|
|
|
19371
19383
|
}
|
|
19372
19384
|
}, _callee12, null, [[2, 13]]);
|
|
19373
19385
|
})));
|
|
19374
|
-
var
|
|
19386
|
+
var GET_PRACTITIONER_ROLE = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpractitionerRole", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
|
|
19375
19387
|
var payload,
|
|
19376
19388
|
_ref26,
|
|
19377
19389
|
rejectWithValue,
|
|
19378
|
-
_payload$
|
|
19379
|
-
|
|
19390
|
+
_payload$OrgID4,
|
|
19391
|
+
OrgID,
|
|
19380
19392
|
body,
|
|
19381
19393
|
data,
|
|
19382
19394
|
returnData,
|
|
19383
|
-
_data$result$0$specia,
|
|
19384
|
-
_data$result,
|
|
19385
|
-
_data$result$,
|
|
19386
19395
|
_args13 = arguments;
|
|
19387
19396
|
|
|
19388
19397
|
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
@@ -19392,12 +19401,12 @@ var GET_SPECIALITY_DATA = createAsyncThunk("OrganizationRegisterPatientApiSlice/
|
|
|
19392
19401
|
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
|
19393
19402
|
_ref26 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
|
|
19394
19403
|
_context13.prev = 2;
|
|
19395
|
-
_payload$
|
|
19404
|
+
_payload$OrgID4 = payload.OrgID, OrgID = _payload$OrgID4 === void 0 ? "" : _payload$OrgID4;
|
|
19396
19405
|
body = {
|
|
19397
19406
|
db_name: dbName,
|
|
19398
|
-
entity: "
|
|
19399
|
-
filter: "
|
|
19400
|
-
return_fields: "
|
|
19407
|
+
entity: "Practitioner,PractitionerRole,CodeableConceptMaster",
|
|
19408
|
+
filter: queries$b["codablemasterPractitionerRole"].query(OrgID),
|
|
19409
|
+
return_fields: queries$b["codablemasterPractitionerRole"].returnFields
|
|
19401
19410
|
};
|
|
19402
19411
|
_context13.next = 7;
|
|
19403
19412
|
return fetchData$3({
|
|
@@ -19409,7 +19418,7 @@ var GET_SPECIALITY_DATA = createAsyncThunk("OrganizationRegisterPatientApiSlice/
|
|
|
19409
19418
|
returnData = [];
|
|
19410
19419
|
|
|
19411
19420
|
if (Array.isArray(data.result)) {
|
|
19412
|
-
returnData =
|
|
19421
|
+
returnData = data.result;
|
|
19413
19422
|
}
|
|
19414
19423
|
|
|
19415
19424
|
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
@@ -19430,15 +19439,18 @@ var GET_SPECIALITY_DATA = createAsyncThunk("OrganizationRegisterPatientApiSlice/
|
|
|
19430
19439
|
}
|
|
19431
19440
|
}, _callee13, null, [[2, 13]]);
|
|
19432
19441
|
})));
|
|
19433
|
-
var
|
|
19442
|
+
var GET_SPECIALITY_DATA = createAsyncThunk("OrganizationRegisterPatientApiSlice/getspeciality", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
|
|
19434
19443
|
var payload,
|
|
19435
19444
|
_ref28,
|
|
19436
19445
|
rejectWithValue,
|
|
19437
|
-
_payload$
|
|
19438
|
-
|
|
19446
|
+
_payload$id,
|
|
19447
|
+
id,
|
|
19439
19448
|
body,
|
|
19440
19449
|
data,
|
|
19441
19450
|
returnData,
|
|
19451
|
+
_data$result$0$specia,
|
|
19452
|
+
_data$result,
|
|
19453
|
+
_data$result$,
|
|
19442
19454
|
_args14 = arguments;
|
|
19443
19455
|
|
|
19444
19456
|
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
@@ -19448,12 +19460,12 @@ var GET_FINANCIAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getfin
|
|
|
19448
19460
|
payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
|
|
19449
19461
|
_ref28 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
|
|
19450
19462
|
_context14.prev = 2;
|
|
19451
|
-
_payload$
|
|
19463
|
+
_payload$id = payload.id, id = _payload$id === void 0 ? "" : _payload$id;
|
|
19452
19464
|
body = {
|
|
19453
19465
|
db_name: dbName,
|
|
19454
|
-
entity: "
|
|
19455
|
-
filter:
|
|
19456
|
-
return_fields:
|
|
19466
|
+
entity: "Organization",
|
|
19467
|
+
filter: "Organization.id==".concat(id, " && Organization.activestatus==true"),
|
|
19468
|
+
return_fields: "{specialty:DOCUMENT(Organization.specialtyDetails[*].specialty)}"
|
|
19457
19469
|
};
|
|
19458
19470
|
_context14.next = 7;
|
|
19459
19471
|
return fetchData$3({
|
|
@@ -19465,7 +19477,7 @@ var GET_FINANCIAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getfin
|
|
|
19465
19477
|
returnData = [];
|
|
19466
19478
|
|
|
19467
19479
|
if (Array.isArray(data.result)) {
|
|
19468
|
-
returnData = data.result;
|
|
19480
|
+
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 : [];
|
|
19469
19481
|
}
|
|
19470
19482
|
|
|
19471
19483
|
return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
@@ -19486,13 +19498,12 @@ var GET_FINANCIAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getfin
|
|
|
19486
19498
|
}
|
|
19487
19499
|
}, _callee14, null, [[2, 13]]);
|
|
19488
19500
|
})));
|
|
19489
|
-
var
|
|
19501
|
+
var GET_FINANCIAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getfinancial", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15() {
|
|
19490
19502
|
var payload,
|
|
19491
19503
|
_ref30,
|
|
19492
19504
|
rejectWithValue,
|
|
19493
|
-
_payload$
|
|
19505
|
+
_payload$patientId2,
|
|
19494
19506
|
patientId,
|
|
19495
|
-
encounterId,
|
|
19496
19507
|
body,
|
|
19497
19508
|
data,
|
|
19498
19509
|
returnData,
|
|
@@ -19505,13 +19516,12 @@ var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice
|
|
|
19505
19516
|
payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
|
|
19506
19517
|
_ref30 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
19507
19518
|
_context15.prev = 2;
|
|
19508
|
-
_payload$
|
|
19519
|
+
_payload$patientId2 = payload.patientId, patientId = _payload$patientId2 === void 0 ? "" : _payload$patientId2;
|
|
19509
19520
|
body = {
|
|
19510
19521
|
db_name: dbName,
|
|
19511
|
-
entity: "
|
|
19512
|
-
filter: "
|
|
19513
|
-
return_fields: "
|
|
19514
|
-
sort: "Encounter.encounterdate desc"
|
|
19522
|
+
entity: "Account",
|
|
19523
|
+
filter: queries$b["codablemasterGetFinancial"].query(patientId),
|
|
19524
|
+
return_fields: queries$b["codablemasterGetFinancial"].returnFields
|
|
19515
19525
|
};
|
|
19516
19526
|
_context15.next = 7;
|
|
19517
19527
|
return fetchData$3({
|
|
@@ -19544,10 +19554,116 @@ var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice
|
|
|
19544
19554
|
}
|
|
19545
19555
|
}, _callee15, null, [[2, 13]]);
|
|
19546
19556
|
})));
|
|
19547
|
-
var
|
|
19557
|
+
var SOFT_DELETE_FINANCIAL_PAYER = createAsyncThunk("OrganizationRegisterPatientApiSlice/softDeleteFinancialPayer", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
|
|
19548
19558
|
var payload,
|
|
19549
19559
|
_ref32,
|
|
19550
19560
|
rejectWithValue,
|
|
19561
|
+
_payload$_key,
|
|
19562
|
+
_key,
|
|
19563
|
+
body,
|
|
19564
|
+
data,
|
|
19565
|
+
_args16 = arguments;
|
|
19566
|
+
|
|
19567
|
+
return regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
19568
|
+
while (1) {
|
|
19569
|
+
switch (_context16.prev = _context16.next) {
|
|
19570
|
+
case 0:
|
|
19571
|
+
payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
|
|
19572
|
+
_ref32 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
19573
|
+
_context16.prev = 2;
|
|
19574
|
+
_payload$_key = payload._key, _key = _payload$_key === void 0 ? "" : _payload$_key;
|
|
19575
|
+
body = {
|
|
19576
|
+
db_name: dbName,
|
|
19577
|
+
entity: "Account",
|
|
19578
|
+
filter: "Account._key=='".concat(_key, "'")
|
|
19579
|
+
};
|
|
19580
|
+
_context16.next = 7;
|
|
19581
|
+
return fetchData$3({
|
|
19582
|
+
body: JSON.stringify(body)
|
|
19583
|
+
}, __Soft_Delete__);
|
|
19584
|
+
|
|
19585
|
+
case 7:
|
|
19586
|
+
data = _context16.sent;
|
|
19587
|
+
return _context16.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19588
|
+
data: data
|
|
19589
|
+
}));
|
|
19590
|
+
|
|
19591
|
+
case 11:
|
|
19592
|
+
_context16.prev = 11;
|
|
19593
|
+
_context16.t0 = _context16["catch"](2);
|
|
19594
|
+
return _context16.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19595
|
+
message: _context16.t0.message
|
|
19596
|
+
})));
|
|
19597
|
+
|
|
19598
|
+
case 14:
|
|
19599
|
+
case "end":
|
|
19600
|
+
return _context16.stop();
|
|
19601
|
+
}
|
|
19602
|
+
}
|
|
19603
|
+
}, _callee16, null, [[2, 11]]);
|
|
19604
|
+
})));
|
|
19605
|
+
var GET_ENCOUNTER_HEADER = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterHeader", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {
|
|
19606
|
+
var payload,
|
|
19607
|
+
_ref34,
|
|
19608
|
+
rejectWithValue,
|
|
19609
|
+
_payload$patientId3,
|
|
19610
|
+
patientId,
|
|
19611
|
+
encounterId,
|
|
19612
|
+
body,
|
|
19613
|
+
data,
|
|
19614
|
+
returnData,
|
|
19615
|
+
_args17 = arguments;
|
|
19616
|
+
|
|
19617
|
+
return regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
19618
|
+
while (1) {
|
|
19619
|
+
switch (_context17.prev = _context17.next) {
|
|
19620
|
+
case 0:
|
|
19621
|
+
payload = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
|
|
19622
|
+
_ref34 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref34.rejectWithValue;
|
|
19623
|
+
_context17.prev = 2;
|
|
19624
|
+
_payload$patientId3 = payload.patientId, patientId = _payload$patientId3 === void 0 ? "" : _payload$patientId3, encounterId = payload.encounterId;
|
|
19625
|
+
body = {
|
|
19626
|
+
db_name: dbName,
|
|
19627
|
+
entity: "Encounter",
|
|
19628
|
+
filter: "Encounter.patient_id == ".concat(patientId, " && Encounter.id==").concat(encounterId, " && Encounter.activestatus == true"),
|
|
19629
|
+
return_fields: "merge({id:adqolcEncounter.id},{_id:adqolcEncounter._id},{_key:adqolcEncounter._key},{encounterdate:adqolcEncounter.encounterdate},{encounter_no:adqolcEncounter.encounter_no},{type:document(adqolcEncounter.type)[*].display},{visit_type:adqolcEncounter.visit_type},{location:(for doc in adqolcEncounter.location for loc in LocationMaster filter loc._id == doc.location_id return document(document(loc.locationType).coding))},{Practitioner_id:(for part in adqolcEncounter.participant for practId in Practitioner filter practId.id == part.Practitioner_id return {name:(for doc in HumanNameMaster filter doc._id in practId.name return merge(doc,{use:(document(document(doc.use).coding)),prefix:(document(document(doc.prefix).coding)),suffix:(document(document(doc.suffix).coding))})),communication:document(practId.communication)[*]} )},{PractitionerRole_id:(for part in adqolcEncounter.participant for practRole in PractitionerRole filter practRole.id == part.PractitionerRole_id return document(document(practRole.role).coding) )})",
|
|
19630
|
+
sort: "Encounter.encounterdate desc"
|
|
19631
|
+
};
|
|
19632
|
+
_context17.next = 7;
|
|
19633
|
+
return fetchData$3({
|
|
19634
|
+
body: JSON.stringify(body)
|
|
19635
|
+
}, __readDocumentUrl__);
|
|
19636
|
+
|
|
19637
|
+
case 7:
|
|
19638
|
+
data = _context17.sent;
|
|
19639
|
+
returnData = [];
|
|
19640
|
+
|
|
19641
|
+
if (Array.isArray(data.result)) {
|
|
19642
|
+
returnData = data.result;
|
|
19643
|
+
}
|
|
19644
|
+
|
|
19645
|
+
return _context17.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19646
|
+
data: returnData
|
|
19647
|
+
}));
|
|
19648
|
+
|
|
19649
|
+
case 13:
|
|
19650
|
+
_context17.prev = 13;
|
|
19651
|
+
_context17.t0 = _context17["catch"](2);
|
|
19652
|
+
return _context17.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19653
|
+
message: _context17.t0.message
|
|
19654
|
+
})));
|
|
19655
|
+
|
|
19656
|
+
case 16:
|
|
19657
|
+
case "end":
|
|
19658
|
+
return _context17.stop();
|
|
19659
|
+
}
|
|
19660
|
+
}
|
|
19661
|
+
}, _callee17, null, [[2, 13]]);
|
|
19662
|
+
})));
|
|
19663
|
+
var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getreferral", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
|
19664
|
+
var payload,
|
|
19665
|
+
_ref36,
|
|
19666
|
+
rejectWithValue,
|
|
19551
19667
|
_payload$patientid,
|
|
19552
19668
|
patientid,
|
|
19553
19669
|
_payload$reffId,
|
|
@@ -19586,15 +19702,15 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19586
19702
|
_returnData15,
|
|
19587
19703
|
_returnData15$,
|
|
19588
19704
|
info,
|
|
19589
|
-
|
|
19705
|
+
_args18 = arguments;
|
|
19590
19706
|
|
|
19591
|
-
return regeneratorRuntime.wrap(function
|
|
19707
|
+
return regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
19592
19708
|
while (1) {
|
|
19593
|
-
switch (
|
|
19709
|
+
switch (_context18.prev = _context18.next) {
|
|
19594
19710
|
case 0:
|
|
19595
|
-
payload =
|
|
19596
|
-
|
|
19597
|
-
|
|
19711
|
+
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
19712
|
+
_ref36 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref36.rejectWithValue;
|
|
19713
|
+
_context18.prev = 2;
|
|
19598
19714
|
_payload$patientid = payload.patientid, patientid = _payload$patientid === void 0 ? "" : _payload$patientid, _payload$reffId = payload.reffId, reffId = _payload$reffId === void 0 ? "" : _payload$reffId;
|
|
19599
19715
|
body = {
|
|
19600
19716
|
db_name: dbName,
|
|
@@ -19602,13 +19718,13 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19602
19718
|
filter: queries$b["codablemasterGetReferral"].query(patientid, reffId),
|
|
19603
19719
|
return_fields: queries$b["codablemasterGetReferral"].returnFields
|
|
19604
19720
|
};
|
|
19605
|
-
|
|
19721
|
+
_context18.next = 7;
|
|
19606
19722
|
return fetchData$3({
|
|
19607
19723
|
body: JSON.stringify(body)
|
|
19608
19724
|
}, __readDocumentUrl__);
|
|
19609
19725
|
|
|
19610
19726
|
case 7:
|
|
19611
|
-
data =
|
|
19727
|
+
data = _context18.sent;
|
|
19612
19728
|
returnData = [];
|
|
19613
19729
|
|
|
19614
19730
|
if (Array.isArray(data.result)) {
|
|
@@ -19641,42 +19757,42 @@ var GET_FERERRAL = createAsyncThunk("OrganizationRegisterPatientApiSlice/getrefe
|
|
|
19641
19757
|
returnData[0] = _objectSpread2(_objectSpread2({}, returnData[0]), info);
|
|
19642
19758
|
}
|
|
19643
19759
|
|
|
19644
|
-
return
|
|
19760
|
+
return _context18.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19645
19761
|
data: returnData
|
|
19646
19762
|
}));
|
|
19647
19763
|
|
|
19648
19764
|
case 13:
|
|
19649
|
-
|
|
19650
|
-
|
|
19651
|
-
return
|
|
19652
|
-
message:
|
|
19765
|
+
_context18.prev = 13;
|
|
19766
|
+
_context18.t0 = _context18["catch"](2);
|
|
19767
|
+
return _context18.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19768
|
+
message: _context18.t0.message
|
|
19653
19769
|
})));
|
|
19654
19770
|
|
|
19655
19771
|
case 16:
|
|
19656
19772
|
case "end":
|
|
19657
|
-
return
|
|
19773
|
+
return _context18.stop();
|
|
19658
19774
|
}
|
|
19659
19775
|
}
|
|
19660
|
-
},
|
|
19776
|
+
}, _callee18, null, [[2, 13]]);
|
|
19661
19777
|
})));
|
|
19662
|
-
var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSlice/getappointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19778
|
+
var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSlice/getappointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
|
|
19663
19779
|
var payload,
|
|
19664
|
-
|
|
19780
|
+
_ref38,
|
|
19665
19781
|
rejectWithValue,
|
|
19666
19782
|
_payload$appointmentI,
|
|
19667
19783
|
appointmentId,
|
|
19668
19784
|
body,
|
|
19669
19785
|
data,
|
|
19670
19786
|
returnData,
|
|
19671
|
-
|
|
19787
|
+
_args19 = arguments;
|
|
19672
19788
|
|
|
19673
|
-
return regeneratorRuntime.wrap(function
|
|
19789
|
+
return regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
19674
19790
|
while (1) {
|
|
19675
|
-
switch (
|
|
19791
|
+
switch (_context19.prev = _context19.next) {
|
|
19676
19792
|
case 0:
|
|
19677
|
-
payload =
|
|
19678
|
-
|
|
19679
|
-
|
|
19793
|
+
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
19794
|
+
_ref38 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref38.rejectWithValue;
|
|
19795
|
+
_context19.prev = 2;
|
|
19680
19796
|
_payload$appointmentI = payload.appointmentId, appointmentId = _payload$appointmentI === void 0 ? "" : _payload$appointmentI;
|
|
19681
19797
|
body = {
|
|
19682
19798
|
db_name: dbName,
|
|
@@ -19684,40 +19800,40 @@ var GET_PATIENT_APPOINTMENT = createAsyncThunk("OrganizationRegisterPatientApiSl
|
|
|
19684
19800
|
filter: queries$b["codablemasterGetAppointment"].query(appointmentId),
|
|
19685
19801
|
return_fields: queries$b["codablemasterGetAppointment"].returnFields
|
|
19686
19802
|
};
|
|
19687
|
-
|
|
19803
|
+
_context19.next = 7;
|
|
19688
19804
|
return fetchData$3({
|
|
19689
19805
|
body: JSON.stringify(body)
|
|
19690
19806
|
}, __readDocumentUrl__);
|
|
19691
19807
|
|
|
19692
19808
|
case 7:
|
|
19693
|
-
data =
|
|
19809
|
+
data = _context19.sent;
|
|
19694
19810
|
returnData = [];
|
|
19695
19811
|
|
|
19696
19812
|
if (Array.isArray(data.result)) {
|
|
19697
19813
|
returnData = data.result;
|
|
19698
19814
|
}
|
|
19699
19815
|
|
|
19700
|
-
return
|
|
19816
|
+
return _context19.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19701
19817
|
data: returnData
|
|
19702
19818
|
}));
|
|
19703
19819
|
|
|
19704
19820
|
case 13:
|
|
19705
|
-
|
|
19706
|
-
|
|
19707
|
-
return
|
|
19708
|
-
message:
|
|
19821
|
+
_context19.prev = 13;
|
|
19822
|
+
_context19.t0 = _context19["catch"](2);
|
|
19823
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19824
|
+
message: _context19.t0.message
|
|
19709
19825
|
})));
|
|
19710
19826
|
|
|
19711
19827
|
case 16:
|
|
19712
19828
|
case "end":
|
|
19713
|
-
return
|
|
19829
|
+
return _context19.stop();
|
|
19714
19830
|
}
|
|
19715
19831
|
}
|
|
19716
|
-
},
|
|
19832
|
+
}, _callee19, null, [[2, 13]]);
|
|
19717
19833
|
})));
|
|
19718
|
-
var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatientname", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19834
|
+
var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatientname", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20() {
|
|
19719
19835
|
var payload,
|
|
19720
|
-
|
|
19836
|
+
_ref40,
|
|
19721
19837
|
rejectWithValue,
|
|
19722
19838
|
_patientName$split,
|
|
19723
19839
|
_patientName$split2,
|
|
@@ -19730,15 +19846,15 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19730
19846
|
body,
|
|
19731
19847
|
data,
|
|
19732
19848
|
returnData,
|
|
19733
|
-
|
|
19849
|
+
_args20 = arguments;
|
|
19734
19850
|
|
|
19735
|
-
return regeneratorRuntime.wrap(function
|
|
19851
|
+
return regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
19736
19852
|
while (1) {
|
|
19737
|
-
switch (
|
|
19853
|
+
switch (_context20.prev = _context20.next) {
|
|
19738
19854
|
case 0:
|
|
19739
|
-
payload =
|
|
19740
|
-
|
|
19741
|
-
|
|
19855
|
+
payload = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};
|
|
19856
|
+
_ref40 = _args20.length > 1 ? _args20[1] : undefined, rejectWithValue = _ref40.rejectWithValue;
|
|
19857
|
+
_context20.prev = 2;
|
|
19742
19858
|
_payload$patientName = payload.patientName, patientName = _payload$patientName === void 0 ? "" : _payload$patientName;
|
|
19743
19859
|
firstName = (_patientName$split = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 1)) !== null && _patientName$split !== void 0 ? _patientName$split : "";
|
|
19744
19860
|
secondName = (_patientName$split2 = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 2)) !== null && _patientName$split2 !== void 0 ? _patientName$split2 : "";
|
|
@@ -19754,40 +19870,40 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19754
19870
|
}),
|
|
19755
19871
|
return_fields: queries$b["codablemasterGetPatientname"].returnFields
|
|
19756
19872
|
};
|
|
19757
|
-
|
|
19873
|
+
_context20.next = 11;
|
|
19758
19874
|
return fetchData$3({
|
|
19759
19875
|
body: JSON.stringify(body)
|
|
19760
19876
|
}, __readDocumentUrl__);
|
|
19761
19877
|
|
|
19762
19878
|
case 11:
|
|
19763
|
-
data =
|
|
19879
|
+
data = _context20.sent;
|
|
19764
19880
|
returnData = [];
|
|
19765
19881
|
|
|
19766
19882
|
if (Array.isArray(data.result)) {
|
|
19767
19883
|
returnData = data.result;
|
|
19768
19884
|
}
|
|
19769
19885
|
|
|
19770
|
-
return
|
|
19886
|
+
return _context20.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19771
19887
|
data: returnData
|
|
19772
19888
|
}));
|
|
19773
19889
|
|
|
19774
19890
|
case 17:
|
|
19775
|
-
|
|
19776
|
-
|
|
19777
|
-
return
|
|
19778
|
-
message:
|
|
19891
|
+
_context20.prev = 17;
|
|
19892
|
+
_context20.t0 = _context20["catch"](2);
|
|
19893
|
+
return _context20.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19894
|
+
message: _context20.t0.message
|
|
19779
19895
|
})));
|
|
19780
19896
|
|
|
19781
19897
|
case 20:
|
|
19782
19898
|
case "end":
|
|
19783
|
-
return
|
|
19899
|
+
return _context20.stop();
|
|
19784
19900
|
}
|
|
19785
19901
|
}
|
|
19786
|
-
},
|
|
19902
|
+
}, _callee20, null, [[2, 17]]);
|
|
19787
19903
|
})));
|
|
19788
|
-
var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatienttypeid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19904
|
+
var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatienttypeid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee21() {
|
|
19789
19905
|
var payload,
|
|
19790
|
-
|
|
19906
|
+
_ref42,
|
|
19791
19907
|
rejectWithValue,
|
|
19792
19908
|
_payload$idnumber,
|
|
19793
19909
|
idnumber,
|
|
@@ -19795,88 +19911,89 @@ var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/g
|
|
|
19795
19911
|
idsourcecode,
|
|
19796
19912
|
body,
|
|
19797
19913
|
data,
|
|
19798
|
-
|
|
19914
|
+
_args21 = arguments;
|
|
19799
19915
|
|
|
19800
|
-
return regeneratorRuntime.wrap(function
|
|
19916
|
+
return regeneratorRuntime.wrap(function _callee21$(_context21) {
|
|
19801
19917
|
while (1) {
|
|
19802
|
-
switch (
|
|
19918
|
+
switch (_context21.prev = _context21.next) {
|
|
19803
19919
|
case 0:
|
|
19804
|
-
payload =
|
|
19805
|
-
|
|
19806
|
-
|
|
19920
|
+
payload = _args21.length > 0 && _args21[0] !== undefined ? _args21[0] : {};
|
|
19921
|
+
_ref42 = _args21.length > 1 ? _args21[1] : undefined, rejectWithValue = _ref42.rejectWithValue;
|
|
19922
|
+
_context21.prev = 2;
|
|
19807
19923
|
_payload$idnumber = payload.idnumber, idnumber = _payload$idnumber === void 0 ? "" : _payload$idnumber, _payload$idsourcecode = payload.idsourcecode, idsourcecode = _payload$idsourcecode === void 0 ? "" : _payload$idsourcecode;
|
|
19808
19924
|
body = {
|
|
19809
19925
|
db_name: dbName,
|
|
19810
19926
|
filter: JSON.parse("{\n \"idnumber\":\"".concat(idnumber, "\",\"idsourcecode\":\"").concat(idsourcecode, "\"\n }")),
|
|
19811
19927
|
queryid: "8ffac13e-b147-4568-a13e-ecf9c07c0d92"
|
|
19812
19928
|
};
|
|
19813
|
-
|
|
19929
|
+
_context21.next = 7;
|
|
19814
19930
|
return fetchData$3({
|
|
19815
19931
|
body: JSON.stringify(body)
|
|
19816
19932
|
}, __baseUrl__);
|
|
19817
19933
|
|
|
19818
19934
|
case 7:
|
|
19819
|
-
data =
|
|
19820
|
-
return
|
|
19935
|
+
data = _context21.sent;
|
|
19936
|
+
return _context21.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19821
19937
|
data: data
|
|
19822
19938
|
}));
|
|
19823
19939
|
|
|
19824
19940
|
case 11:
|
|
19825
|
-
|
|
19826
|
-
|
|
19827
|
-
return
|
|
19828
|
-
message:
|
|
19941
|
+
_context21.prev = 11;
|
|
19942
|
+
_context21.t0 = _context21["catch"](2);
|
|
19943
|
+
return _context21.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19944
|
+
message: _context21.t0.message
|
|
19829
19945
|
})));
|
|
19830
19946
|
|
|
19831
19947
|
case 14:
|
|
19832
19948
|
case "end":
|
|
19833
|
-
return
|
|
19949
|
+
return _context21.stop();
|
|
19834
19950
|
}
|
|
19835
19951
|
}
|
|
19836
|
-
},
|
|
19952
|
+
}, _callee21, null, [[2, 11]]);
|
|
19837
19953
|
})));
|
|
19838
|
-
var GET_ENCOUNTER_STATUS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
19954
|
+
var GET_ENCOUNTER_STATUS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee22() {
|
|
19839
19955
|
var payload,
|
|
19840
|
-
|
|
19956
|
+
_ref44,
|
|
19841
19957
|
rejectWithValue,
|
|
19842
19958
|
data,
|
|
19843
|
-
|
|
19959
|
+
_args22 = arguments;
|
|
19844
19960
|
|
|
19845
|
-
return regeneratorRuntime.wrap(function
|
|
19961
|
+
return regeneratorRuntime.wrap(function _callee22$(_context22) {
|
|
19846
19962
|
while (1) {
|
|
19847
|
-
switch (
|
|
19963
|
+
switch (_context22.prev = _context22.next) {
|
|
19848
19964
|
case 0:
|
|
19849
|
-
payload =
|
|
19850
|
-
|
|
19851
|
-
|
|
19852
|
-
|
|
19965
|
+
payload = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};
|
|
19966
|
+
_ref44 = _args22.length > 1 ? _args22[1] : undefined, rejectWithValue = _ref44.rejectWithValue;
|
|
19967
|
+
_context22.prev = 2;
|
|
19968
|
+
_context22.next = 5;
|
|
19853
19969
|
return fetchData$3({
|
|
19854
19970
|
body: JSON.stringify(registerQuery.statusRead())
|
|
19855
19971
|
}, __readDocumentUrl__);
|
|
19856
19972
|
|
|
19857
19973
|
case 5:
|
|
19858
|
-
data =
|
|
19859
|
-
return
|
|
19974
|
+
data = _context22.sent;
|
|
19975
|
+
return _context22.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19860
19976
|
data: data.result
|
|
19861
19977
|
}));
|
|
19862
19978
|
|
|
19863
19979
|
case 9:
|
|
19864
|
-
|
|
19865
|
-
|
|
19866
|
-
return
|
|
19867
|
-
message:
|
|
19980
|
+
_context22.prev = 9;
|
|
19981
|
+
_context22.t0 = _context22["catch"](2);
|
|
19982
|
+
return _context22.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19983
|
+
message: _context22.t0.message
|
|
19868
19984
|
})));
|
|
19869
19985
|
|
|
19870
19986
|
case 12:
|
|
19871
19987
|
case "end":
|
|
19872
|
-
return
|
|
19988
|
+
return _context22.stop();
|
|
19873
19989
|
}
|
|
19874
19990
|
}
|
|
19875
|
-
},
|
|
19991
|
+
}, _callee22, null, [[2, 9]]);
|
|
19876
19992
|
})));
|
|
19877
19993
|
var OrganizationRegisterPatientApiSlice = createSlice({
|
|
19878
19994
|
name: "OrganizationRegisterPatientApiSlice",
|
|
19879
19995
|
initialState: {
|
|
19996
|
+
softDeleteFinancialPayer: _objectSpread2({}, defaultState.Info),
|
|
19880
19997
|
specilitytype: _objectSpread2({}, defaultState.Info),
|
|
19881
19998
|
specilityname: _objectSpread2({}, defaultState.Info),
|
|
19882
19999
|
oraganizationRegisterPatient: _objectSpread2({}, defaultState.Info),
|
|
@@ -19896,208 +20013,229 @@ var OrganizationRegisterPatientApiSlice = createSlice({
|
|
|
19896
20013
|
getEncounterHeader: _objectSpread2({}, defaultState.Info),
|
|
19897
20014
|
getEncounterStatus: _objectSpread2({}, defaultState.Info),
|
|
19898
20015
|
getPractitionerType: _objectSpread2({}, defaultState.Info),
|
|
19899
|
-
getPractitionerName: _objectSpread2({}, defaultState.Info)
|
|
20016
|
+
getPractitionerName: _objectSpread2({}, defaultState.Info),
|
|
20017
|
+
getPatient_id: _objectSpread2({}, defaultState.Info)
|
|
19900
20018
|
},
|
|
19901
|
-
extraReducers: (_extraReducers$r = {}, _defineProperty(_extraReducers$r,
|
|
20019
|
+
extraReducers: (_extraReducers$r = {}, _defineProperty(_extraReducers$r, SOFT_DELETE_FINANCIAL_PAYER.fulfilled, function (state, action) {
|
|
19902
20020
|
var _action$payload;
|
|
19903
20021
|
|
|
19904
|
-
state.
|
|
20022
|
+
state.softDeleteFinancialPayer = (_action$payload = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload !== void 0 ? _action$payload : {};
|
|
20023
|
+
}), _defineProperty(_extraReducers$r, SOFT_DELETE_FINANCIAL_PAYER.pending, function (state, action) {
|
|
20024
|
+
state.softDeleteFinancialPayer.loading = true;
|
|
20025
|
+
}), _defineProperty(_extraReducers$r, SOFT_DELETE_FINANCIAL_PAYER.rejected, function (state, action) {
|
|
20026
|
+
var _action$payload2;
|
|
20027
|
+
|
|
20028
|
+
state.softDeleteFinancialPayer = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : {};
|
|
20029
|
+
}), _defineProperty(_extraReducers$r, GET_PATIENT__ID_BY_ID.fulfilled, function (state, action) {
|
|
20030
|
+
var _action$payload3;
|
|
20031
|
+
|
|
20032
|
+
state.getPatient_id = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : {};
|
|
20033
|
+
}), _defineProperty(_extraReducers$r, GET_PATIENT__ID_BY_ID.pending, function (state, action) {
|
|
20034
|
+
state.getPatient_id.loading = true;
|
|
20035
|
+
}), _defineProperty(_extraReducers$r, GET_PATIENT__ID_BY_ID.rejected, function (state, action) {
|
|
20036
|
+
var _action$payload4;
|
|
20037
|
+
|
|
20038
|
+
state.getPatient_id = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : {};
|
|
20039
|
+
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_TYPE.fulfilled, function (state, action) {
|
|
20040
|
+
var _action$payload5;
|
|
20041
|
+
|
|
20042
|
+
state.getPractitionerType = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : {};
|
|
19905
20043
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_TYPE.pending, function (state, action) {
|
|
19906
20044
|
state.getPractitionerType.loading = true;
|
|
19907
20045
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_TYPE.rejected, function (state, action) {
|
|
19908
|
-
var _action$
|
|
20046
|
+
var _action$payload6;
|
|
19909
20047
|
|
|
19910
|
-
state.getPractitionerType = (_action$
|
|
20048
|
+
state.getPractitionerType = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : {};
|
|
19911
20049
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_NAME.fulfilled, function (state, action) {
|
|
19912
|
-
var _action$
|
|
20050
|
+
var _action$payload7;
|
|
19913
20051
|
|
|
19914
|
-
state.getPractitionerName = (_action$
|
|
20052
|
+
state.getPractitionerName = (_action$payload7 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload7 !== void 0 ? _action$payload7 : {};
|
|
19915
20053
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_NAME.pending, function (state, action) {
|
|
19916
20054
|
state.getPractitionerName.loading = true;
|
|
19917
20055
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_NAME.rejected, function (state, action) {
|
|
19918
|
-
var _action$
|
|
20056
|
+
var _action$payload8;
|
|
19919
20057
|
|
|
19920
|
-
state.getPractitionerName = (_action$
|
|
20058
|
+
state.getPractitionerName = (_action$payload8 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload8 !== void 0 ? _action$payload8 : {};
|
|
19921
20059
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_NAME.fulfilled, function (state, action) {
|
|
19922
|
-
var _action$
|
|
20060
|
+
var _action$payload9;
|
|
19923
20061
|
|
|
19924
|
-
state.getpatientname = (_action$
|
|
20062
|
+
state.getpatientname = (_action$payload9 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload9 !== void 0 ? _action$payload9 : {};
|
|
19925
20063
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_NAME.pending, function (state, action) {
|
|
19926
20064
|
state.getpatientname.loading = true;
|
|
19927
20065
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_NAME.rejected, function (state, action) {
|
|
19928
|
-
var _action$
|
|
20066
|
+
var _action$payload10;
|
|
19929
20067
|
|
|
19930
|
-
state.getpatientname = (_action$
|
|
20068
|
+
state.getpatientname = (_action$payload10 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload10 !== void 0 ? _action$payload10 : {};
|
|
19931
20069
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_APPOINTMENT.fulfilled, function (state, action) {
|
|
19932
|
-
var _action$
|
|
20070
|
+
var _action$payload11;
|
|
19933
20071
|
|
|
19934
|
-
state.getappointment = (_action$
|
|
20072
|
+
state.getappointment = (_action$payload11 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload11 !== void 0 ? _action$payload11 : {};
|
|
19935
20073
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_APPOINTMENT.pending, function (state, action) {
|
|
19936
20074
|
state.getappointment.loading = true;
|
|
19937
20075
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_APPOINTMENT.rejected, function (state, action) {
|
|
19938
|
-
var _action$
|
|
20076
|
+
var _action$payload12;
|
|
19939
20077
|
|
|
19940
|
-
state.getappointment = (_action$
|
|
20078
|
+
state.getappointment = (_action$payload12 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
|
|
19941
20079
|
}), _defineProperty(_extraReducers$r, GET_FERERRAL.fulfilled, function (state, action) {
|
|
19942
|
-
var _action$
|
|
20080
|
+
var _action$payload13;
|
|
19943
20081
|
|
|
19944
|
-
state.getreferral = (_action$
|
|
20082
|
+
state.getreferral = (_action$payload13 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload13 !== void 0 ? _action$payload13 : {};
|
|
19945
20083
|
}), _defineProperty(_extraReducers$r, GET_FERERRAL.pending, function (state, action) {
|
|
19946
20084
|
state.getreferral.loading = true;
|
|
19947
20085
|
}), _defineProperty(_extraReducers$r, GET_FERERRAL.rejected, function (state, action) {
|
|
19948
|
-
var _action$
|
|
20086
|
+
var _action$payload14;
|
|
19949
20087
|
|
|
19950
|
-
state.getreferral = (_action$
|
|
20088
|
+
state.getreferral = (_action$payload14 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload14 !== void 0 ? _action$payload14 : {};
|
|
19951
20089
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REGISTER_PATIENT.fulfilled, function (state, action) {
|
|
19952
|
-
var _action$
|
|
20090
|
+
var _action$payload15;
|
|
19953
20091
|
|
|
19954
|
-
state.oraganizationRegisterPatient = (_action$
|
|
20092
|
+
state.oraganizationRegisterPatient = (_action$payload15 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload15 !== void 0 ? _action$payload15 : {};
|
|
19955
20093
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REGISTER_PATIENT.pending, function (state, action) {
|
|
19956
20094
|
state.oraganizationRegisterPatient.loading = true;
|
|
19957
20095
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REGISTER_PATIENT.rejected, function (state, action) {
|
|
19958
|
-
var _action$
|
|
20096
|
+
var _action$payload16;
|
|
19959
20097
|
|
|
19960
|
-
state.oraganizationRegisterPatient = (_action$
|
|
20098
|
+
state.oraganizationRegisterPatient = (_action$payload16 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload16 !== void 0 ? _action$payload16 : {};
|
|
19961
20099
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_VISIT_REGISTRATION.fulfilled, function (state, action) {
|
|
19962
|
-
var _action$
|
|
20100
|
+
var _action$payload17;
|
|
19963
20101
|
|
|
19964
|
-
state.oraganizationvisitRegister = (_action$
|
|
20102
|
+
state.oraganizationvisitRegister = (_action$payload17 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload17 !== void 0 ? _action$payload17 : {};
|
|
19965
20103
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_VISIT_REGISTRATION.pending, function (state, action) {
|
|
19966
20104
|
state.oraganizationvisitRegister.loading = true;
|
|
19967
20105
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_VISIT_REGISTRATION.rejected, function (state, action) {
|
|
19968
|
-
var _action$
|
|
20106
|
+
var _action$payload18;
|
|
19969
20107
|
|
|
19970
|
-
state.oraganizationvisitRegister = (_action$
|
|
20108
|
+
state.oraganizationvisitRegister = (_action$payload18 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload18 !== void 0 ? _action$payload18 : {};
|
|
19971
20109
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REFERRAL_REGISTRATION.fulfilled, function (state, action) {
|
|
19972
|
-
var _action$
|
|
20110
|
+
var _action$payload19;
|
|
19973
20111
|
|
|
19974
|
-
state.oraganizationreferralRegister = (_action$
|
|
20112
|
+
state.oraganizationreferralRegister = (_action$payload19 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload19 !== void 0 ? _action$payload19 : {};
|
|
19975
20113
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REFERRAL_REGISTRATION.pending, function (state, action) {
|
|
19976
20114
|
state.oraganizationreferralRegister.loading = true;
|
|
19977
20115
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_REFERRAL_REGISTRATION.rejected, function (state, action) {
|
|
19978
|
-
var _action$
|
|
20116
|
+
var _action$payload20;
|
|
19979
20117
|
|
|
19980
|
-
state.oraganizationreferralRegister = (_action$
|
|
20118
|
+
state.oraganizationreferralRegister = (_action$payload20 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload20 !== void 0 ? _action$payload20 : {};
|
|
19981
20119
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FILTER_BY_PATIENT.fulfilled, function (state, action) {
|
|
19982
|
-
var _action$
|
|
20120
|
+
var _action$payload21;
|
|
19983
20121
|
|
|
19984
|
-
state.oraganizationfilterbypatient = (_action$
|
|
20122
|
+
state.oraganizationfilterbypatient = (_action$payload21 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload21 !== void 0 ? _action$payload21 : {};
|
|
19985
20123
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FILTER_BY_PATIENT.pending, function (state, action) {
|
|
19986
20124
|
state.oraganizationfilterbypatient.loading = true;
|
|
19987
20125
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FILTER_BY_PATIENT.rejected, function (state, action) {
|
|
19988
|
-
var _action$
|
|
20126
|
+
var _action$payload22;
|
|
19989
20127
|
|
|
19990
|
-
state.oraganizationfilterbypatient = (_action$
|
|
20128
|
+
state.oraganizationfilterbypatient = (_action$payload22 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload22 !== void 0 ? _action$payload22 : {};
|
|
19991
20129
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FINANCIAL_REGISTRATION.fulfilled, function (state, action) {
|
|
19992
|
-
var _action$
|
|
20130
|
+
var _action$payload23;
|
|
19993
20131
|
|
|
19994
|
-
state.oraganizationfinancialregister = (_action$
|
|
20132
|
+
state.oraganizationfinancialregister = (_action$payload23 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload23 !== void 0 ? _action$payload23 : {};
|
|
19995
20133
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FINANCIAL_REGISTRATION.pending, function (state, action) {
|
|
19996
20134
|
state.oraganizationfinancialregister.loading = true;
|
|
19997
20135
|
}), _defineProperty(_extraReducers$r, ORGANIZATION_FINANCIAL_REGISTRATION.rejected, function (state, action) {
|
|
19998
|
-
var _action$
|
|
20136
|
+
var _action$payload24;
|
|
19999
20137
|
|
|
20000
|
-
state.oraganizationfinancialregister = (_action$
|
|
20138
|
+
state.oraganizationfinancialregister = (_action$payload24 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload24 !== void 0 ? _action$payload24 : {};
|
|
20001
20139
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_TYPE.fulfilled, function (state, action) {
|
|
20002
|
-
var _action$
|
|
20140
|
+
var _action$payload25;
|
|
20003
20141
|
|
|
20004
|
-
state.specilitytype = (_action$
|
|
20142
|
+
state.specilitytype = (_action$payload25 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload25 !== void 0 ? _action$payload25 : {};
|
|
20005
20143
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_TYPE.pending, function (state, action) {
|
|
20006
20144
|
state.specilitytype.loading = true;
|
|
20007
20145
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_TYPE.rejected, function (state, action) {
|
|
20008
|
-
var _action$
|
|
20146
|
+
var _action$payload26;
|
|
20009
20147
|
|
|
20010
|
-
state.specilitytype = (_action$
|
|
20148
|
+
state.specilitytype = (_action$payload26 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload26 !== void 0 ? _action$payload26 : {};
|
|
20011
20149
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_NAME.fulfilled, function (state, action) {
|
|
20012
|
-
var _action$
|
|
20150
|
+
var _action$payload27;
|
|
20013
20151
|
|
|
20014
|
-
state.specilityname = (_action$
|
|
20152
|
+
state.specilityname = (_action$payload27 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload27 !== void 0 ? _action$payload27 : {};
|
|
20015
20153
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_NAME.pending, function (state, action) {
|
|
20016
20154
|
state.specilityname.loading = true;
|
|
20017
20155
|
}), _defineProperty(_extraReducers$r, GET_FACILITY_NAME.rejected, function (state, action) {
|
|
20018
|
-
var _action$
|
|
20156
|
+
var _action$payload28;
|
|
20019
20157
|
|
|
20020
|
-
state.specilityname = (_action$
|
|
20158
|
+
state.specilityname = (_action$payload28 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload28 !== void 0 ? _action$payload28 : {};
|
|
20021
20159
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER.fulfilled, function (state, action) {
|
|
20022
|
-
var _action$
|
|
20160
|
+
var _action$payload29;
|
|
20023
20161
|
|
|
20024
|
-
state.practitioner = (_action$
|
|
20162
|
+
state.practitioner = (_action$payload29 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload29 !== void 0 ? _action$payload29 : {};
|
|
20025
20163
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER.pending, function (state, action) {
|
|
20026
20164
|
state.practitioner.loading = true;
|
|
20027
20165
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER.rejected, function (state, action) {
|
|
20028
|
-
var _action$
|
|
20166
|
+
var _action$payload30;
|
|
20029
20167
|
|
|
20030
|
-
state.practitioner = (_action$
|
|
20168
|
+
state.practitioner = (_action$payload30 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload30 !== void 0 ? _action$payload30 : {};
|
|
20031
20169
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONERS.fulfilled, function (state, action) {
|
|
20032
|
-
var _action$
|
|
20170
|
+
var _action$payload31;
|
|
20033
20171
|
|
|
20034
|
-
state.practitioners = (_action$
|
|
20172
|
+
state.practitioners = (_action$payload31 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload31 !== void 0 ? _action$payload31 : {};
|
|
20035
20173
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONERS.pending, function (state, action) {
|
|
20036
20174
|
state.practitioners.loading = true;
|
|
20037
20175
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONERS.rejected, function (state, action) {
|
|
20038
|
-
var _action$
|
|
20176
|
+
var _action$payload32;
|
|
20039
20177
|
|
|
20040
|
-
state.practitioners = (_action$
|
|
20178
|
+
state.practitioners = (_action$payload32 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload32 !== void 0 ? _action$payload32 : {};
|
|
20041
20179
|
}), _defineProperty(_extraReducers$r, GET_SPECIALITY_DATA.fulfilled, function (state, action) {
|
|
20042
|
-
var _action$
|
|
20180
|
+
var _action$payload33;
|
|
20043
20181
|
|
|
20044
|
-
state.speciality = (_action$
|
|
20182
|
+
state.speciality = (_action$payload33 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload33 !== void 0 ? _action$payload33 : {};
|
|
20045
20183
|
}), _defineProperty(_extraReducers$r, GET_SPECIALITY_DATA.pending, function (state, action) {
|
|
20046
20184
|
state.speciality.loading = true;
|
|
20047
20185
|
}), _defineProperty(_extraReducers$r, GET_SPECIALITY_DATA.rejected, function (state, action) {
|
|
20048
|
-
var _action$
|
|
20186
|
+
var _action$payload34;
|
|
20049
20187
|
|
|
20050
|
-
state.speciality = (_action$
|
|
20188
|
+
state.speciality = (_action$payload34 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload34 !== void 0 ? _action$payload34 : {};
|
|
20051
20189
|
}), _defineProperty(_extraReducers$r, GET_FINANCIAL.fulfilled, function (state, action) {
|
|
20052
|
-
var _action$
|
|
20190
|
+
var _action$payload35;
|
|
20053
20191
|
|
|
20054
|
-
state.getfinancial = (_action$
|
|
20192
|
+
state.getfinancial = (_action$payload35 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload35 !== void 0 ? _action$payload35 : {};
|
|
20055
20193
|
}), _defineProperty(_extraReducers$r, GET_FINANCIAL.pending, function (state, action) {
|
|
20056
20194
|
state.getfinancial.loading = true;
|
|
20057
20195
|
}), _defineProperty(_extraReducers$r, GET_FINANCIAL.rejected, function (state, action) {
|
|
20058
|
-
var _action$
|
|
20196
|
+
var _action$payload36;
|
|
20059
20197
|
|
|
20060
|
-
state.getfinancial = (_action$
|
|
20198
|
+
state.getfinancial = (_action$payload36 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload36 !== void 0 ? _action$payload36 : {};
|
|
20061
20199
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_ROLE.fulfilled, function (state, action) {
|
|
20062
|
-
var _action$
|
|
20200
|
+
var _action$payload37;
|
|
20063
20201
|
|
|
20064
|
-
state.getpractitionerrole = (_action$
|
|
20202
|
+
state.getpractitionerrole = (_action$payload37 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload37 !== void 0 ? _action$payload37 : {};
|
|
20065
20203
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_ROLE.pending, function (state, action) {
|
|
20066
20204
|
state.getpractitionerrole.loading = true;
|
|
20067
20205
|
}), _defineProperty(_extraReducers$r, GET_PRACTITIONER_ROLE.rejected, function (state, action) {
|
|
20068
|
-
var _action$
|
|
20206
|
+
var _action$payload38;
|
|
20069
20207
|
|
|
20070
|
-
state.getpractitionerrole = (_action$
|
|
20208
|
+
state.getpractitionerrole = (_action$payload38 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload38 !== void 0 ? _action$payload38 : {};
|
|
20071
20209
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_TYPEID.fulfilled, function (state, action) {
|
|
20072
|
-
var _action$
|
|
20210
|
+
var _action$payload39;
|
|
20073
20211
|
|
|
20074
|
-
state.getpatientid = (_action$
|
|
20212
|
+
state.getpatientid = (_action$payload39 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload39 !== void 0 ? _action$payload39 : {};
|
|
20075
20213
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_TYPEID.pending, function (state, action) {
|
|
20076
20214
|
state.getpatientid.loading = true;
|
|
20077
20215
|
}), _defineProperty(_extraReducers$r, GET_PATIENT_TYPEID.rejected, function (state, action) {
|
|
20078
|
-
var _action$
|
|
20216
|
+
var _action$payload40;
|
|
20079
20217
|
|
|
20080
|
-
state.getpatientid = (_action$
|
|
20218
|
+
state.getpatientid = (_action$payload40 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload40 !== void 0 ? _action$payload40 : {};
|
|
20081
20219
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_HEADER.fulfilled, function (state, action) {
|
|
20082
|
-
var _action$
|
|
20220
|
+
var _action$payload41;
|
|
20083
20221
|
|
|
20084
|
-
state.getEncounterHeader = (_action$
|
|
20222
|
+
state.getEncounterHeader = (_action$payload41 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload41 !== void 0 ? _action$payload41 : {};
|
|
20085
20223
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_HEADER.pending, function (state, action) {
|
|
20086
20224
|
state.getEncounterHeader.loading = true;
|
|
20087
20225
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_HEADER.rejected, function (state, action) {
|
|
20088
|
-
var _action$
|
|
20226
|
+
var _action$payload42;
|
|
20089
20227
|
|
|
20090
|
-
state.getEncounterHeader = (_action$
|
|
20228
|
+
state.getEncounterHeader = (_action$payload42 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload42 !== void 0 ? _action$payload42 : {};
|
|
20091
20229
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_STATUS.fulfilled, function (state, action) {
|
|
20092
|
-
var _action$
|
|
20230
|
+
var _action$payload43;
|
|
20093
20231
|
|
|
20094
|
-
state.getEncounterStatus = (_action$
|
|
20232
|
+
state.getEncounterStatus = (_action$payload43 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload43 !== void 0 ? _action$payload43 : {};
|
|
20095
20233
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_STATUS.pending, function (state, action) {
|
|
20096
20234
|
state.getEncounterStatus.loading = true;
|
|
20097
20235
|
}), _defineProperty(_extraReducers$r, GET_ENCOUNTER_STATUS.rejected, function (state, action) {
|
|
20098
|
-
var _action$
|
|
20236
|
+
var _action$payload44;
|
|
20099
20237
|
|
|
20100
|
-
state.getEncounterStatus = (_action$
|
|
20238
|
+
state.getEncounterStatus = (_action$payload44 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload44 !== void 0 ? _action$payload44 : {};
|
|
20101
20239
|
}), _extraReducers$r)
|
|
20102
20240
|
});
|
|
20103
20241
|
var oraganizationRegisterPatientActions = {
|
|
@@ -20120,7 +20258,9 @@ var oraganizationRegisterPatientActions = {
|
|
|
20120
20258
|
GET_ENCOUNTER_HEADER: GET_ENCOUNTER_HEADER,
|
|
20121
20259
|
GET_ENCOUNTER_STATUS: GET_ENCOUNTER_STATUS,
|
|
20122
20260
|
GET_PRACTITIONER_TYPE: GET_PRACTITIONER_TYPE,
|
|
20123
|
-
GET_PRACTITIONER_NAME: GET_PRACTITIONER_NAME
|
|
20261
|
+
GET_PRACTITIONER_NAME: GET_PRACTITIONER_NAME,
|
|
20262
|
+
GET_PATIENT__ID_BY_ID: GET_PATIENT__ID_BY_ID,
|
|
20263
|
+
SOFT_DELETE_FINANCIAL_PAYER: SOFT_DELETE_FINANCIAL_PAYER
|
|
20124
20264
|
};
|
|
20125
20265
|
var OrganizationRegisterPatientApiSlice$1 = OrganizationRegisterPatientApiSlice.reducer;
|
|
20126
20266
|
|
|
@@ -21524,7 +21664,7 @@ var HIGH_PRIORITY_PATIENT = createAsyncThunk("dashboardApiSlice/highPriorityPati
|
|
|
21524
21664
|
|
|
21525
21665
|
arr.push(_objectSpread2({
|
|
21526
21666
|
profile_pic: item === null || item === void 0 ? void 0 : (_item$patient_id$ = item.patient_id[0]) === null || _item$patient_id$ === void 0 ? void 0 : (_item$patient_id$$pho = _item$patient_id$.photo[0]) === null || _item$patient_id$$pho === void 0 ? void 0 : _item$patient_id$$pho.url,
|
|
21527
|
-
name: makeName((item === null || item === void 0 ? void 0 : (_item$patient_id = item.patient_id) === null || _item$patient_id === void 0 ? void 0 : (_item$patient_id$2 = _item$patient_id[0]) === null || _item$patient_id$2 === void 0 ? void 0 : (_item$patient_id$2$na = _item$patient_id$2.name) === null || _item$patient_id$2$na === void 0 ? void 0 : _item$patient_id$2$na[0]) || {}),
|
|
21667
|
+
name: makeName$1((item === null || item === void 0 ? void 0 : (_item$patient_id = item.patient_id) === null || _item$patient_id === void 0 ? void 0 : (_item$patient_id$2 = _item$patient_id[0]) === null || _item$patient_id$2 === void 0 ? void 0 : (_item$patient_id$2$na = _item$patient_id$2.name) === null || _item$patient_id$2$na === void 0 ? void 0 : _item$patient_id$2$na[0]) || {}),
|
|
21528
21668
|
reasonValue: item === null || item === void 0 ? void 0 : (_item$priorityreason = item.priorityreason) === null || _item$priorityreason === void 0 ? void 0 : _item$priorityreason.ReasonDesc,
|
|
21529
21669
|
isEmergency: true,
|
|
21530
21670
|
patientPriority: {
|
|
@@ -21963,7 +22103,7 @@ var generateReadJSON = function generateReadJSON(data) {
|
|
|
21963
22103
|
}) : "",
|
|
21964
22104
|
//PATIENT DEATAIL
|
|
21965
22105
|
patientPhoto: (_data$Encounter$patie = data === null || data === void 0 ? void 0 : (_data$Encounter5 = data.Encounter) === null || _data$Encounter5 === void 0 ? void 0 : (_data$Encounter5$pati = _data$Encounter5.patient_id) === null || _data$Encounter5$pati === void 0 ? void 0 : (_data$Encounter5$pati2 = _data$Encounter5$pati[0]) === null || _data$Encounter5$pati2 === void 0 ? void 0 : (_data$Encounter5$pati3 = _data$Encounter5$pati2.photo) === null || _data$Encounter5$pati3 === void 0 ? void 0 : _data$Encounter5$pati3[0]) !== null && _data$Encounter$patie !== void 0 ? _data$Encounter$patie : "",
|
|
21966
|
-
patientName: makeName(data === null || data === void 0 ? void 0 : (_data$Encounter6 = data.Encounter) === null || _data$Encounter6 === void 0 ? void 0 : (_data$Encounter6$pati = _data$Encounter6.patient_id) === null || _data$Encounter6$pati === void 0 ? void 0 : (_data$Encounter6$pati2 = _data$Encounter6$pati[0].name) === null || _data$Encounter6$pati2 === void 0 ? void 0 : _data$Encounter6$pati2[0]) || "",
|
|
22106
|
+
patientName: makeName$1(data === null || data === void 0 ? void 0 : (_data$Encounter6 = data.Encounter) === null || _data$Encounter6 === void 0 ? void 0 : (_data$Encounter6$pati = _data$Encounter6.patient_id) === null || _data$Encounter6$pati === void 0 ? void 0 : (_data$Encounter6$pati2 = _data$Encounter6$pati[0].name) === null || _data$Encounter6$pati2 === void 0 ? void 0 : _data$Encounter6$pati2[0]) || "",
|
|
21967
22107
|
patientAge: (_data$Encounter$patie2 = data === null || data === void 0 ? void 0 : (_data$Encounter7 = data.Encounter) === null || _data$Encounter7 === void 0 ? void 0 : (_data$Encounter7$pati = _data$Encounter7.patient_id) === null || _data$Encounter7$pati === void 0 ? void 0 : (_data$Encounter7$pati2 = _data$Encounter7$pati[0]) === null || _data$Encounter7$pati2 === void 0 ? void 0 : _data$Encounter7$pati2.age) !== null && _data$Encounter$patie2 !== void 0 ? _data$Encounter$patie2 : "",
|
|
21968
22108
|
patientGender: (data === null || data === void 0 ? void 0 : (_data$Encounter8 = data.Encounter) === null || _data$Encounter8 === void 0 ? void 0 : (_data$Encounter8$pati = _data$Encounter8.patient_id) === null || _data$Encounter8$pati === void 0 ? void 0 : (_data$Encounter8$pati2 = _data$Encounter8$pati[0]) === null || _data$Encounter8$pati2 === void 0 ? void 0 : (_data$Encounter8$pati3 = _data$Encounter8$pati2.gender) === null || _data$Encounter8$pati3 === void 0 ? void 0 : (_data$Encounter8$pati4 = _data$Encounter8$pati3.display) === null || _data$Encounter8$pati4 === void 0 ? void 0 : _data$Encounter8$pati4.toLowerCase()) === "male" ? "M" : (data === null || data === void 0 ? void 0 : (_data$Encounter9 = data.Encounter) === null || _data$Encounter9 === void 0 ? void 0 : (_data$Encounter9$pati = _data$Encounter9.patient_id) === null || _data$Encounter9$pati === void 0 ? void 0 : (_data$Encounter9$pati2 = _data$Encounter9$pati[0]) === null || _data$Encounter9$pati2 === void 0 ? void 0 : (_data$Encounter9$pati3 = _data$Encounter9$pati2.gender) === null || _data$Encounter9$pati3 === void 0 ? void 0 : (_data$Encounter9$pati4 = _data$Encounter9$pati3.display) === null || _data$Encounter9$pati4 === void 0 ? void 0 : _data$Encounter9$pati4.toLowerCase()) === "other" ? "O" : (data === null || data === void 0 ? void 0 : (_data$Encounter10 = data.Encounter) === null || _data$Encounter10 === void 0 ? void 0 : (_data$Encounter10$pat = _data$Encounter10.patient_id) === null || _data$Encounter10$pat === void 0 ? void 0 : (_data$Encounter10$pat2 = _data$Encounter10$pat[0]) === null || _data$Encounter10$pat2 === void 0 ? void 0 : (_data$Encounter10$pat3 = _data$Encounter10$pat2.gender) === null || _data$Encounter10$pat3 === void 0 ? void 0 : (_data$Encounter10$pat4 = _data$Encounter10$pat3.display) === null || _data$Encounter10$pat4 === void 0 ? void 0 : _data$Encounter10$pat4.toLowerCase()) === "female" ? "F" : "",
|
|
21969
22109
|
patientMRN: (_data$Encounter$patie3 = data === null || data === void 0 ? void 0 : (_data$Encounter11 = data.Encounter) === null || _data$Encounter11 === void 0 ? void 0 : (_data$Encounter11$pat = _data$Encounter11.patient_id) === null || _data$Encounter11$pat === void 0 ? void 0 : (_data$Encounter11$pat2 = _data$Encounter11$pat[0]) === null || _data$Encounter11$pat2 === void 0 ? void 0 : _data$Encounter11$pat2.MRN) !== null && _data$Encounter$patie3 !== void 0 ? _data$Encounter$patie3 : "",
|
|
@@ -21974,7 +22114,7 @@ var generateReadJSON = function generateReadJSON(data) {
|
|
|
21974
22114
|
practitionerType: // data?.Encounter?.participant?.[0]?.type?.[0]?.display ?? "",
|
|
21975
22115
|
(_data$Encounter$pract2 = data === null || data === void 0 ? void 0 : (_data$Encounter16 = data.Encounter) === null || _data$Encounter16 === void 0 ? void 0 : (_data$Encounter16$pra = _data$Encounter16.practitioner_details) === null || _data$Encounter16$pra === void 0 ? void 0 : (_data$Encounter16$pra2 = _data$Encounter16$pra[0]) === null || _data$Encounter16$pra2 === void 0 ? void 0 : _data$Encounter16$pra2.type) !== null && _data$Encounter$pract2 !== void 0 ? _data$Encounter$pract2 : "",
|
|
21976
22116
|
practitionerRole: (_data$Encounter$parti = data === null || data === void 0 ? void 0 : (_data$Encounter17 = data.Encounter) === null || _data$Encounter17 === void 0 ? void 0 : (_data$Encounter17$par = _data$Encounter17.participant) === null || _data$Encounter17$par === void 0 ? void 0 : (_data$Encounter17$par2 = _data$Encounter17$par[0]) === null || _data$Encounter17$par2 === void 0 ? void 0 : (_data$Encounter17$par3 = _data$Encounter17$par2.Practitioner_id) === null || _data$Encounter17$par3 === void 0 ? void 0 : (_data$Encounter17$par4 = _data$Encounter17$par3[0]) === null || _data$Encounter17$par4 === void 0 ? void 0 : (_data$Encounter17$par5 = _data$Encounter17$par4.practitioner_role) === null || _data$Encounter17$par5 === void 0 ? void 0 : (_data$Encounter17$par6 = _data$Encounter17$par5[0]) === null || _data$Encounter17$par6 === void 0 ? void 0 : (_data$Encounter17$par7 = _data$Encounter17$par6.role) === null || _data$Encounter17$par7 === void 0 ? void 0 : (_data$Encounter17$par8 = _data$Encounter17$par7[0].coding) === null || _data$Encounter17$par8 === void 0 ? void 0 : (_data$Encounter17$par9 = _data$Encounter17$par8[0]) === null || _data$Encounter17$par9 === void 0 ? void 0 : _data$Encounter17$par9.display) !== null && _data$Encounter$parti !== void 0 ? _data$Encounter$parti : "",
|
|
21977
|
-
practitioner: makeName(data === null || data === void 0 ? void 0 : (_data$Encounter18 = data.Encounter) === null || _data$Encounter18 === void 0 ? void 0 : (_data$Encounter18$par = _data$Encounter18.participant) === null || _data$Encounter18$par === void 0 ? void 0 : (_data$Encounter18$par2 = _data$Encounter18$par[0]) === null || _data$Encounter18$par2 === void 0 ? void 0 : (_data$Encounter18$par3 = _data$Encounter18$par2.Practitioner_id) === null || _data$Encounter18$par3 === void 0 ? void 0 : (_data$Encounter18$par4 = _data$Encounter18$par3[0]) === null || _data$Encounter18$par4 === void 0 ? void 0 : (_data$Encounter18$par5 = _data$Encounter18$par4.name) === null || _data$Encounter18$par5 === void 0 ? void 0 : _data$Encounter18$par5[0]) || "",
|
|
22117
|
+
practitioner: makeName$1(data === null || data === void 0 ? void 0 : (_data$Encounter18 = data.Encounter) === null || _data$Encounter18 === void 0 ? void 0 : (_data$Encounter18$par = _data$Encounter18.participant) === null || _data$Encounter18$par === void 0 ? void 0 : (_data$Encounter18$par2 = _data$Encounter18$par[0]) === null || _data$Encounter18$par2 === void 0 ? void 0 : (_data$Encounter18$par3 = _data$Encounter18$par2.Practitioner_id) === null || _data$Encounter18$par3 === void 0 ? void 0 : (_data$Encounter18$par4 = _data$Encounter18$par3[0]) === null || _data$Encounter18$par4 === void 0 ? void 0 : (_data$Encounter18$par5 = _data$Encounter18$par4.name) === null || _data$Encounter18$par5 === void 0 ? void 0 : _data$Encounter18$par5[0]) || "",
|
|
21978
22118
|
//FOR ASSIGN QUERY
|
|
21979
22119
|
practroleId: (_data$Encounter$parti2 = data === null || data === void 0 ? void 0 : (_data$Encounter19 = data.Encounter) === null || _data$Encounter19 === void 0 ? void 0 : (_data$Encounter19$par = _data$Encounter19.participant) === null || _data$Encounter19$par === void 0 ? void 0 : (_data$Encounter19$par2 = _data$Encounter19$par[0]) === null || _data$Encounter19$par2 === void 0 ? void 0 : (_data$Encounter19$par3 = _data$Encounter19$par2.Practitioner_id) === null || _data$Encounter19$par3 === void 0 ? void 0 : (_data$Encounter19$par4 = _data$Encounter19$par3[0]) === null || _data$Encounter19$par4 === void 0 ? void 0 : (_data$Encounter19$par5 = _data$Encounter19$par4.practitioner_role) === null || _data$Encounter19$par5 === void 0 ? void 0 : (_data$Encounter19$par6 = _data$Encounter19$par5[0]) === null || _data$Encounter19$par6 === void 0 ? void 0 : _data$Encounter19$par6._id) !== null && _data$Encounter$parti2 !== void 0 ? _data$Encounter$parti2 : "",
|
|
21980
22120
|
practitionerId: (_data$Encounter$parti3 = data === null || data === void 0 ? void 0 : (_data$Encounter20 = data.Encounter) === null || _data$Encounter20 === void 0 ? void 0 : (_data$Encounter20$par = _data$Encounter20.participant) === null || _data$Encounter20$par === void 0 ? void 0 : (_data$Encounter20$par2 = _data$Encounter20$par[0]) === null || _data$Encounter20$par2 === void 0 ? void 0 : (_data$Encounter20$par3 = _data$Encounter20$par2.Practitioner_id) === null || _data$Encounter20$par3 === void 0 ? void 0 : _data$Encounter20$par3[0]._id) !== null && _data$Encounter$parti3 !== void 0 ? _data$Encounter$parti3 : "",
|
|
@@ -22053,7 +22193,7 @@ var generateReadJSON_Reassign = function generateReadJSON_Reassign(data) {
|
|
|
22053
22193
|
}) : "",
|
|
22054
22194
|
//PATIENT DEATAIL
|
|
22055
22195
|
patientPhoto: (_data$Encounter$patie5 = data === null || data === void 0 ? void 0 : (_data$Encounter26 = data.Encounter) === null || _data$Encounter26 === void 0 ? void 0 : (_data$Encounter26$pat = _data$Encounter26.patient_id) === null || _data$Encounter26$pat === void 0 ? void 0 : (_data$Encounter26$pat2 = _data$Encounter26$pat[0]) === null || _data$Encounter26$pat2 === void 0 ? void 0 : (_data$Encounter26$pat3 = _data$Encounter26$pat2.photo) === null || _data$Encounter26$pat3 === void 0 ? void 0 : _data$Encounter26$pat3[0]) !== null && _data$Encounter$patie5 !== void 0 ? _data$Encounter$patie5 : "",
|
|
22056
|
-
patientName: makeName(data === null || data === void 0 ? void 0 : (_data$Encounter27 = data.Encounter) === null || _data$Encounter27 === void 0 ? void 0 : (_data$Encounter27$pat = _data$Encounter27.patient_id) === null || _data$Encounter27$pat === void 0 ? void 0 : (_data$Encounter27$pat2 = _data$Encounter27$pat[0].name) === null || _data$Encounter27$pat2 === void 0 ? void 0 : _data$Encounter27$pat2[0]) || "",
|
|
22196
|
+
patientName: makeName$1(data === null || data === void 0 ? void 0 : (_data$Encounter27 = data.Encounter) === null || _data$Encounter27 === void 0 ? void 0 : (_data$Encounter27$pat = _data$Encounter27.patient_id) === null || _data$Encounter27$pat === void 0 ? void 0 : (_data$Encounter27$pat2 = _data$Encounter27$pat[0].name) === null || _data$Encounter27$pat2 === void 0 ? void 0 : _data$Encounter27$pat2[0]) || "",
|
|
22057
22197
|
patientAge: (_data$Encounter$patie6 = data === null || data === void 0 ? void 0 : (_data$Encounter28 = data.Encounter) === null || _data$Encounter28 === void 0 ? void 0 : (_data$Encounter28$pat = _data$Encounter28.patient_id) === null || _data$Encounter28$pat === void 0 ? void 0 : (_data$Encounter28$pat2 = _data$Encounter28$pat[0]) === null || _data$Encounter28$pat2 === void 0 ? void 0 : _data$Encounter28$pat2.age) !== null && _data$Encounter$patie6 !== void 0 ? _data$Encounter$patie6 : "",
|
|
22058
22198
|
patientGender: (data === null || data === void 0 ? void 0 : (_data$Encounter29 = data.Encounter) === null || _data$Encounter29 === void 0 ? void 0 : (_data$Encounter29$pat = _data$Encounter29.patient_id) === null || _data$Encounter29$pat === void 0 ? void 0 : (_data$Encounter29$pat2 = _data$Encounter29$pat[0]) === null || _data$Encounter29$pat2 === void 0 ? void 0 : (_data$Encounter29$pat3 = _data$Encounter29$pat2.gender) === null || _data$Encounter29$pat3 === void 0 ? void 0 : (_data$Encounter29$pat4 = _data$Encounter29$pat3.display) === null || _data$Encounter29$pat4 === void 0 ? void 0 : _data$Encounter29$pat4.toLowerCase()) === "male" ? "M" : (data === null || data === void 0 ? void 0 : (_data$Encounter30 = data.Encounter) === null || _data$Encounter30 === void 0 ? void 0 : (_data$Encounter30$pat = _data$Encounter30.patient_id) === null || _data$Encounter30$pat === void 0 ? void 0 : (_data$Encounter30$pat2 = _data$Encounter30$pat[0]) === null || _data$Encounter30$pat2 === void 0 ? void 0 : (_data$Encounter30$pat3 = _data$Encounter30$pat2.gender) === null || _data$Encounter30$pat3 === void 0 ? void 0 : (_data$Encounter30$pat4 = _data$Encounter30$pat3.display) === null || _data$Encounter30$pat4 === void 0 ? void 0 : _data$Encounter30$pat4.toLowerCase()) === "other" ? "O" : (data === null || data === void 0 ? void 0 : (_data$Encounter31 = data.Encounter) === null || _data$Encounter31 === void 0 ? void 0 : (_data$Encounter31$pat = _data$Encounter31.patient_id) === null || _data$Encounter31$pat === void 0 ? void 0 : (_data$Encounter31$pat2 = _data$Encounter31$pat[0]) === null || _data$Encounter31$pat2 === void 0 ? void 0 : (_data$Encounter31$pat3 = _data$Encounter31$pat2.gender) === null || _data$Encounter31$pat3 === void 0 ? void 0 : (_data$Encounter31$pat4 = _data$Encounter31$pat3.display) === null || _data$Encounter31$pat4 === void 0 ? void 0 : _data$Encounter31$pat4.toLowerCase()) === "female" ? "F" : "",
|
|
22059
22199
|
patientMRN: (_data$Encounter$patie7 = data === null || data === void 0 ? void 0 : (_data$Encounter32 = data.Encounter) === null || _data$Encounter32 === void 0 ? void 0 : (_data$Encounter32$pat = _data$Encounter32.patient_id) === null || _data$Encounter32$pat === void 0 ? void 0 : (_data$Encounter32$pat2 = _data$Encounter32$pat[0]) === null || _data$Encounter32$pat2 === void 0 ? void 0 : _data$Encounter32$pat2.MRN) !== null && _data$Encounter$patie7 !== void 0 ? _data$Encounter$patie7 : "",
|
|
@@ -22064,7 +22204,7 @@ var generateReadJSON_Reassign = function generateReadJSON_Reassign(data) {
|
|
|
22064
22204
|
practitionerType: // data?.Encounter?.participant?.[0]?.type?.[0]?.display ?? "",
|
|
22065
22205
|
(_data$Encounter$pract5 = data === null || data === void 0 ? void 0 : (_data$Encounter37 = data.Encounter) === null || _data$Encounter37 === void 0 ? void 0 : (_data$Encounter37$pra = _data$Encounter37.practitioner_details) === null || _data$Encounter37$pra === void 0 ? void 0 : (_data$Encounter37$pra2 = _data$Encounter37$pra[0]) === null || _data$Encounter37$pra2 === void 0 ? void 0 : _data$Encounter37$pra2.type) !== null && _data$Encounter$pract5 !== void 0 ? _data$Encounter$pract5 : "",
|
|
22066
22206
|
practitionerRole: (_data$Encounter$parti4 = data === null || data === void 0 ? void 0 : (_data$Encounter38 = data.Encounter) === null || _data$Encounter38 === void 0 ? void 0 : (_data$Encounter38$par = _data$Encounter38.participant) === null || _data$Encounter38$par === void 0 ? void 0 : (_data$Encounter38$par2 = _data$Encounter38$par[0]) === null || _data$Encounter38$par2 === void 0 ? void 0 : (_data$Encounter38$par3 = _data$Encounter38$par2.Practitioner_id) === null || _data$Encounter38$par3 === void 0 ? void 0 : (_data$Encounter38$par4 = _data$Encounter38$par3[0]) === null || _data$Encounter38$par4 === void 0 ? void 0 : (_data$Encounter38$par5 = _data$Encounter38$par4.practitioner_role) === null || _data$Encounter38$par5 === void 0 ? void 0 : (_data$Encounter38$par6 = _data$Encounter38$par5[0]) === null || _data$Encounter38$par6 === void 0 ? void 0 : (_data$Encounter38$par7 = _data$Encounter38$par6.role) === null || _data$Encounter38$par7 === void 0 ? void 0 : (_data$Encounter38$par8 = _data$Encounter38$par7[0]) === null || _data$Encounter38$par8 === void 0 ? void 0 : (_data$Encounter38$par9 = _data$Encounter38$par8.coding) === null || _data$Encounter38$par9 === void 0 ? void 0 : (_data$Encounter38$par10 = _data$Encounter38$par9[0]) === null || _data$Encounter38$par10 === void 0 ? void 0 : _data$Encounter38$par10.display) !== null && _data$Encounter$parti4 !== void 0 ? _data$Encounter$parti4 : "",
|
|
22067
|
-
practitioner: makeName(data === null || data === void 0 ? void 0 : (_data$Encounter39 = data.Encounter) === null || _data$Encounter39 === void 0 ? void 0 : (_data$Encounter39$par = _data$Encounter39.participant) === null || _data$Encounter39$par === void 0 ? void 0 : (_data$Encounter39$par2 = _data$Encounter39$par[0]) === null || _data$Encounter39$par2 === void 0 ? void 0 : (_data$Encounter39$par3 = _data$Encounter39$par2.Practitioner_id) === null || _data$Encounter39$par3 === void 0 ? void 0 : (_data$Encounter39$par4 = _data$Encounter39$par3[0]) === null || _data$Encounter39$par4 === void 0 ? void 0 : (_data$Encounter39$par5 = _data$Encounter39$par4.name) === null || _data$Encounter39$par5 === void 0 ? void 0 : _data$Encounter39$par5[0]) || "",
|
|
22207
|
+
practitioner: makeName$1(data === null || data === void 0 ? void 0 : (_data$Encounter39 = data.Encounter) === null || _data$Encounter39 === void 0 ? void 0 : (_data$Encounter39$par = _data$Encounter39.participant) === null || _data$Encounter39$par === void 0 ? void 0 : (_data$Encounter39$par2 = _data$Encounter39$par[0]) === null || _data$Encounter39$par2 === void 0 ? void 0 : (_data$Encounter39$par3 = _data$Encounter39$par2.Practitioner_id) === null || _data$Encounter39$par3 === void 0 ? void 0 : (_data$Encounter39$par4 = _data$Encounter39$par3[0]) === null || _data$Encounter39$par4 === void 0 ? void 0 : (_data$Encounter39$par5 = _data$Encounter39$par4.name) === null || _data$Encounter39$par5 === void 0 ? void 0 : _data$Encounter39$par5[0]) || "",
|
|
22068
22208
|
//FOR ASSIGN QUERY
|
|
22069
22209
|
practroleId: (_data$Encounter$parti5 = data === null || data === void 0 ? void 0 : (_data$Encounter40 = data.Encounter) === null || _data$Encounter40 === void 0 ? void 0 : (_data$Encounter40$par = _data$Encounter40.participant) === null || _data$Encounter40$par === void 0 ? void 0 : (_data$Encounter40$par2 = _data$Encounter40$par[0]) === null || _data$Encounter40$par2 === void 0 ? void 0 : (_data$Encounter40$par3 = _data$Encounter40$par2.Practitioner_id) === null || _data$Encounter40$par3 === void 0 ? void 0 : (_data$Encounter40$par4 = _data$Encounter40$par3[0]) === null || _data$Encounter40$par4 === void 0 ? void 0 : (_data$Encounter40$par5 = _data$Encounter40$par4.practitioner_role) === null || _data$Encounter40$par5 === void 0 ? void 0 : (_data$Encounter40$par6 = _data$Encounter40$par5[0]) === null || _data$Encounter40$par6 === void 0 ? void 0 : _data$Encounter40$par6._id) !== null && _data$Encounter$parti5 !== void 0 ? _data$Encounter$parti5 : "",
|
|
22070
22210
|
practitionerId: (_data$Encounter$parti6 = data === null || data === void 0 ? void 0 : (_data$Encounter41 = data.Encounter) === null || _data$Encounter41 === void 0 ? void 0 : (_data$Encounter41$par = _data$Encounter41.participant) === null || _data$Encounter41$par === void 0 ? void 0 : (_data$Encounter41$par2 = _data$Encounter41$par[0]) === null || _data$Encounter41$par2 === void 0 ? void 0 : (_data$Encounter41$par3 = _data$Encounter41$par2.Practitioner_id) === null || _data$Encounter41$par3 === void 0 ? void 0 : _data$Encounter41$par3[0]._id) !== null && _data$Encounter$parti6 !== void 0 ? _data$Encounter$parti6 : "",
|
|
@@ -22090,7 +22230,7 @@ var generateReadJSON_colseConsultation = function generateReadJSON_colseConsulta
|
|
|
22090
22230
|
//PATIENT DEATAIL
|
|
22091
22231
|
patientPhoto: (_data$patient_id$0$ph = data === null || data === void 0 ? void 0 : (_data$patient_id = data.patient_id) === null || _data$patient_id === void 0 ? void 0 : (_data$patient_id$ = _data$patient_id[0]) === null || _data$patient_id$ === void 0 ? void 0 : (_data$patient_id$$pho = _data$patient_id$.photo) === null || _data$patient_id$$pho === void 0 ? void 0 : _data$patient_id$$pho[0]) !== null && _data$patient_id$0$ph !== void 0 ? _data$patient_id$0$ph : "",
|
|
22092
22232
|
// need to expand
|
|
22093
|
-
patientName: makeName(data === null || data === void 0 ? void 0 : (_data$patient_id2 = data.patient_id) === null || _data$patient_id2 === void 0 ? void 0 : (_data$patient_id2$0$n = _data$patient_id2[0].name) === null || _data$patient_id2$0$n === void 0 ? void 0 : _data$patient_id2$0$n[0]) || "",
|
|
22233
|
+
patientName: makeName$1(data === null || data === void 0 ? void 0 : (_data$patient_id2 = data.patient_id) === null || _data$patient_id2 === void 0 ? void 0 : (_data$patient_id2$0$n = _data$patient_id2[0].name) === null || _data$patient_id2$0$n === void 0 ? void 0 : _data$patient_id2$0$n[0]) || "",
|
|
22094
22234
|
patientAge: (_data$patient_id$0$ag = data === null || data === void 0 ? void 0 : (_data$patient_id3 = data.patient_id) === null || _data$patient_id3 === void 0 ? void 0 : (_data$patient_id3$ = _data$patient_id3[0]) === null || _data$patient_id3$ === void 0 ? void 0 : _data$patient_id3$.age) !== null && _data$patient_id$0$ag !== void 0 ? _data$patient_id$0$ag : "",
|
|
22095
22235
|
patientGender: (data === null || data === void 0 ? void 0 : (_data$patient_id4 = data.patient_id) === null || _data$patient_id4 === void 0 ? void 0 : (_data$patient_id4$ = _data$patient_id4[0]) === null || _data$patient_id4$ === void 0 ? void 0 : (_data$patient_id4$$ge = _data$patient_id4$.gender) === null || _data$patient_id4$$ge === void 0 ? void 0 : (_data$patient_id4$$ge2 = _data$patient_id4$$ge.display) === null || _data$patient_id4$$ge2 === void 0 ? void 0 : _data$patient_id4$$ge2.toLowerCase()) === "male" ? "M" : (data === null || data === void 0 ? void 0 : (_data$patient_id5 = data.patient_id) === null || _data$patient_id5 === void 0 ? void 0 : (_data$patient_id5$ = _data$patient_id5[0]) === null || _data$patient_id5$ === void 0 ? void 0 : (_data$patient_id5$$ge = _data$patient_id5$.gender) === null || _data$patient_id5$$ge === void 0 ? void 0 : (_data$patient_id5$$ge2 = _data$patient_id5$$ge.display) === null || _data$patient_id5$$ge2 === void 0 ? void 0 : _data$patient_id5$$ge2.toLowerCase()) === "other" ? "O" : (data === null || data === void 0 ? void 0 : (_data$patient_id6 = data.patient_id) === null || _data$patient_id6 === void 0 ? void 0 : (_data$patient_id6$ = _data$patient_id6[0]) === null || _data$patient_id6$ === void 0 ? void 0 : (_data$patient_id6$$ge = _data$patient_id6$.gender) === null || _data$patient_id6$$ge === void 0 ? void 0 : (_data$patient_id6$$ge2 = _data$patient_id6$$ge.display) === null || _data$patient_id6$$ge2 === void 0 ? void 0 : _data$patient_id6$$ge2.toLowerCase()) === "female" ? "F" : "",
|
|
22096
22236
|
patientMRN: (_data$patient_id$0$al = data === null || data === void 0 ? void 0 : (_data$patient_id7 = data.patient_id) === null || _data$patient_id7 === void 0 ? void 0 : (_data$patient_id7$ = _data$patient_id7[0]) === null || _data$patient_id7$ === void 0 ? void 0 : _data$patient_id7$.alias) !== null && _data$patient_id$0$al !== void 0 ? _data$patient_id$0$al : "",
|
|
@@ -22304,7 +22444,7 @@ var ASSIGN_PRACTITIONER_LIST = createAsyncThunk("dashboardApiSlice/assignPractit
|
|
|
22304
22444
|
var _makeName, _val$name, _val$photo$, _val$photo, _val$_id6, _val$_key, _val$id, _val$assignedpatient, _val$id2, _val$practitioner_rol, _val$practitioner_rol2, _val$practitioner_rol3, _val$_id7, _val$practitioner_rol4, _val$practitioner_rol5, _val$practitioner_rol6;
|
|
22305
22445
|
|
|
22306
22446
|
arry.push({
|
|
22307
|
-
name: (_makeName = makeName(val === null || val === void 0 ? void 0 : (_val$name = val.name) === null || _val$name === void 0 ? void 0 : _val$name[0])) !== null && _makeName !== void 0 ? _makeName : "",
|
|
22447
|
+
name: (_makeName = makeName$1(val === null || val === void 0 ? void 0 : (_val$name = val.name) === null || _val$name === void 0 ? void 0 : _val$name[0])) !== null && _makeName !== void 0 ? _makeName : "",
|
|
22308
22448
|
photo: (_val$photo$ = val === null || val === void 0 ? void 0 : (_val$photo = val.photo) === null || _val$photo === void 0 ? void 0 : _val$photo[0]) !== null && _val$photo$ !== void 0 ? _val$photo$ : "",
|
|
22309
22449
|
_id: (_val$_id6 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id6 !== void 0 ? _val$_id6 : "",
|
|
22310
22450
|
_key: (_val$_key = val === null || val === void 0 ? void 0 : val._key) !== null && _val$_key !== void 0 ? _val$_key : "",
|
|
@@ -23997,6 +24137,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
23997
24137
|
|
|
23998
24138
|
case 6:
|
|
23999
24139
|
data = _context12.sent;
|
|
24140
|
+
debugger;
|
|
24000
24141
|
arr = [];
|
|
24001
24142
|
data.result.map(function (val) {
|
|
24002
24143
|
var _val$Patient, _val$Patient$, _val$Patient$$communi, _val$_id, _val$_id$split, _val$practitioner_det, _val$practitioner_det2, _val$practitioner_det3, _val$practitioner_det4, _val$practitioner_det5, _val$Patient2, _val$Patient2$, _val$Patient2$$name, _val$Patient3, _val$Patient3$, _val$Patient4, _val$Patient4$, _val$Patient5, _val$Patient5$, _val$Patient6, _val$Patient6$, _val$Patient6$$gender, _val$Patient7, _val$Patient7$, _val$Patient$0$pident, _val$Patient8, _val$Patient8$, _val$Patient8$$pident, _val$Patient8$$pident2, _lang, _val$Patient9, _val$Patient9$, _val$Patient9$$person, _val$Patient9$$person2, _val$Patient9$$person3, _val$Patient9$$person4, _val$Patient10, _val$Patient10$, _val$Patient10$$photo, _val$Patient10$$photo2, _val$practitioner_det6, _val$practitioner_det7, _val$practitioner_det8;
|
|
@@ -24005,7 +24146,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
24005
24146
|
return val.display;
|
|
24006
24147
|
});
|
|
24007
24148
|
lang = lang ? lang : null;
|
|
24008
|
-
arr.push({
|
|
24149
|
+
arr.push(_objectSpread2(_objectSpread2({}, val), {}, {
|
|
24009
24150
|
Organization_id: val.Organization_id,
|
|
24010
24151
|
id: "EN-" + (val === null || val === void 0 ? void 0 : (_val$_id = val._id) === null || _val$_id === void 0 ? void 0 : (_val$_id$split = _val$_id.split("/")) === null || _val$_id$split === void 0 ? void 0 : _val$_id$split[1]),
|
|
24011
24152
|
eId: val === null || val === void 0 ? void 0 : val._id,
|
|
@@ -24013,7 +24154,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
24013
24154
|
speciality: ((_val$practitioner_det = val.practitioner_details) === null || _val$practitioner_det === void 0 ? void 0 : (_val$practitioner_det2 = _val$practitioner_det[0]) === null || _val$practitioner_det2 === void 0 ? void 0 : (_val$practitioner_det3 = _val$practitioner_det2.speciality) === null || _val$practitioner_det3 === void 0 ? void 0 : (_val$practitioner_det4 = _val$practitioner_det3.coding) === null || _val$practitioner_det4 === void 0 ? void 0 : (_val$practitioner_det5 = _val$practitioner_det4[0]) === null || _val$practitioner_det5 === void 0 ? void 0 : _val$practitioner_det5.display) || "",
|
|
24014
24155
|
createdAt: val.createddate,
|
|
24015
24156
|
// name: val?.Patient?.[0]?.name?.[0]?.text ?? "",
|
|
24016
|
-
name: makeName(val === null || val === void 0 ? void 0 : (_val$Patient2 = val.Patient) === null || _val$Patient2 === void 0 ? void 0 : (_val$Patient2$ = _val$Patient2[0]) === null || _val$Patient2$ === void 0 ? void 0 : (_val$Patient2$$name = _val$Patient2$.name) === null || _val$Patient2$$name === void 0 ? void 0 : _val$Patient2$$name[0]),
|
|
24157
|
+
name: makeName$1(val === null || val === void 0 ? void 0 : (_val$Patient2 = val.Patient) === null || _val$Patient2 === void 0 ? void 0 : (_val$Patient2$ = _val$Patient2[0]) === null || _val$Patient2$ === void 0 ? void 0 : (_val$Patient2$$name = _val$Patient2$.name) === null || _val$Patient2$$name === void 0 ? void 0 : _val$Patient2$$name[0]),
|
|
24017
24158
|
pID: val === null || val === void 0 ? void 0 : (_val$Patient3 = val.Patient) === null || _val$Patient3 === void 0 ? void 0 : (_val$Patient3$ = _val$Patient3[0]) === null || _val$Patient3$ === void 0 ? void 0 : _val$Patient3$._id,
|
|
24018
24159
|
patientid: val === null || val === void 0 ? void 0 : (_val$Patient4 = val.Patient) === null || _val$Patient4 === void 0 ? void 0 : (_val$Patient4$ = _val$Patient4[0]) === null || _val$Patient4$ === void 0 ? void 0 : _val$Patient4$.id,
|
|
24019
24160
|
mrn: val === null || val === void 0 ? void 0 : (_val$Patient5 = val.Patient) === null || _val$Patient5 === void 0 ? void 0 : (_val$Patient5$ = _val$Patient5[0]) === null || _val$Patient5$ === void 0 ? void 0 : _val$Patient5$.alias,
|
|
@@ -24023,26 +24164,26 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
24023
24164
|
lang: (_lang = lang) === null || _lang === void 0 ? void 0 : _lang.join(", "),
|
|
24024
24165
|
img: getImgUrl(val === null || val === void 0 ? void 0 : (_val$Patient9 = val.Patient) === null || _val$Patient9 === void 0 ? void 0 : (_val$Patient9$ = _val$Patient9[0]) === null || _val$Patient9$ === void 0 ? void 0 : (_val$Patient9$$person = _val$Patient9$.personInfo) === null || _val$Patient9$$person === void 0 ? void 0 : (_val$Patient9$$person2 = _val$Patient9$$person[0]) === null || _val$Patient9$$person2 === void 0 ? void 0 : (_val$Patient9$$person3 = _val$Patient9$$person2.photo) === null || _val$Patient9$$person3 === void 0 ? void 0 : (_val$Patient9$$person4 = _val$Patient9$$person3[0]) === null || _val$Patient9$$person4 === void 0 ? void 0 : _val$Patient9$$person4.fileid) || getImgUrl(val === null || val === void 0 ? void 0 : (_val$Patient10 = val.Patient) === null || _val$Patient10 === void 0 ? void 0 : (_val$Patient10$ = _val$Patient10[0]) === null || _val$Patient10$ === void 0 ? void 0 : (_val$Patient10$$photo = _val$Patient10$.photo) === null || _val$Patient10$$photo === void 0 ? void 0 : (_val$Patient10$$photo2 = _val$Patient10$$photo[0]) === null || _val$Patient10$$photo2 === void 0 ? void 0 : _val$Patient10$$photo2.fileid),
|
|
24025
24166
|
facilityName: (_val$practitioner_det6 = (_val$practitioner_det7 = val.practitioner_details) === null || _val$practitioner_det7 === void 0 ? void 0 : (_val$practitioner_det8 = _val$practitioner_det7[0]) === null || _val$practitioner_det8 === void 0 ? void 0 : _val$practitioner_det8.clinic) !== null && _val$practitioner_det6 !== void 0 ? _val$practitioner_det6 : ""
|
|
24026
|
-
});
|
|
24167
|
+
}));
|
|
24027
24168
|
});
|
|
24028
24169
|
return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
24029
24170
|
data: (_arr$ = arr[0]) !== null && _arr$ !== void 0 ? _arr$ : {}
|
|
24030
24171
|
}));
|
|
24031
24172
|
|
|
24032
|
-
case
|
|
24033
|
-
_context12.prev =
|
|
24173
|
+
case 13:
|
|
24174
|
+
_context12.prev = 13;
|
|
24034
24175
|
_context12.t0 = _context12["catch"](2);
|
|
24035
24176
|
alert(_context12.t0.message);
|
|
24036
24177
|
return _context12.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
24037
24178
|
message: _context12.t0.message
|
|
24038
24179
|
})));
|
|
24039
24180
|
|
|
24040
|
-
case
|
|
24181
|
+
case 17:
|
|
24041
24182
|
case "end":
|
|
24042
24183
|
return _context12.stop();
|
|
24043
24184
|
}
|
|
24044
24185
|
}
|
|
24045
|
-
}, _callee12, null, [[2,
|
|
24186
|
+
}, _callee12, null, [[2, 13]]);
|
|
24046
24187
|
})));
|
|
24047
24188
|
var chiefCompilenceMastersSlice = createSlice({
|
|
24048
24189
|
name: "chiefCompilenceMastersApiSlice",
|
|
@@ -24203,7 +24344,8 @@ var queries$9 = {
|
|
|
24203
24344
|
return {
|
|
24204
24345
|
db_name: dbName,
|
|
24205
24346
|
entity: "Diagnosis",
|
|
24206
|
-
filter:
|
|
24347
|
+
//filter: `Diagnosis.icdname LIKE '%${input_text}%' && (round(DATE_TIMESTAMP(DATE_ADD(DATE_NOW(), -1, 'day'))/1000)<=Diagnosis.effTo || Diagnosis.effTo==null)`,
|
|
24348
|
+
filter: "(like(Diagnosis.icdname,'%".concat(input_text, "%',true) || like(Diagnosis.icdcode,'%").concat(input_text, "%',true)) && (round(DATE_TIMESTAMP(DATE_ADD(DATE_NOW(), -1, 'day'))/1000)<=Diagnosis.effTo || Diagnosis.effTo==null) && Diagnosis.activestatus==true"),
|
|
24207
24349
|
return_fields: "{_id:Diagnosis._id,icdcode:Diagnosis.icdcode,icdname:Diagnosis.icdname}",
|
|
24208
24350
|
sort: "Diagnosis.icdname"
|
|
24209
24351
|
};
|
|
@@ -24471,11 +24613,9 @@ var DIAGNOSIS_MASTERS = createAsyncThunk("DiagnosisMasterSlice/diagnosis", /*#__
|
|
|
24471
24613
|
data = _context.sent;
|
|
24472
24614
|
arr = [];
|
|
24473
24615
|
data.result.map(function (val) {
|
|
24474
|
-
var _val$icdname;
|
|
24475
|
-
|
|
24476
24616
|
arr.push({
|
|
24477
24617
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
24478
|
-
label: (
|
|
24618
|
+
label: (val === null || val === void 0 ? void 0 : val.icdcode) && (val === null || val === void 0 ? void 0 : val.icdname) ? (val === null || val === void 0 ? void 0 : val.icdcode) + " - " + (val === null || val === void 0 ? void 0 : val.icdname) : ""
|
|
24479
24619
|
});
|
|
24480
24620
|
});
|
|
24481
24621
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -24523,11 +24663,11 @@ var DIAGNOSIS_MASTERS_VALUE = createAsyncThunk("DiagnosisMasterSlice/diagnosis_v
|
|
|
24523
24663
|
data = _context2.sent;
|
|
24524
24664
|
arr = [];
|
|
24525
24665
|
data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (val) {
|
|
24526
|
-
var _val$
|
|
24666
|
+
var _val$icdname;
|
|
24527
24667
|
|
|
24528
24668
|
arr.push({
|
|
24529
24669
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
24530
|
-
label: (_val$
|
|
24670
|
+
label: (_val$icdname = val === null || val === void 0 ? void 0 : val.icdname) !== null && _val$icdname !== void 0 ? _val$icdname : ""
|
|
24531
24671
|
});
|
|
24532
24672
|
});
|
|
24533
24673
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -25649,7 +25789,7 @@ var radOrderActions = _objectSpread2({}, actionInfo$3);
|
|
|
25649
25789
|
var radOrderSlice$1 = radOrderSlice.reducer;
|
|
25650
25790
|
|
|
25651
25791
|
var generateJSON$6 = function generateJSON(payload, orgId) {
|
|
25652
|
-
var _payload$patientid, _payload$encountertyp, _payload$encounterid, _payload$prescription, _payload$Prescription, _payload$name$drugTyp, _payload$name, _payload$presNature$v, _payload$presNature, _payload$presMode$val, _payload$presMode, _payload$priority$val, _payload$priority, _payload$status, _payload$statusreason, _payload$intent, _payload$orderPrivile, _payload$privilegeAle, _payload$workFlowStat, _payload$name$value, _payload$name2, _payload$formCode, _payload$DefaultRoute, _payload$DefaultRoute2, _payload$dosageTypeIn, _payload$unitValue$va, _payload$unitValue, _payload$drug_categor, _payload$drug_categor2, _payload$dispensing_p, _payload$dispensing_p2, _payload$IVDosageDura, _payload$IVDosageDura2, _payload$unitsTypes$v, _payload$unitsTypes, _payload$ivInfusionRa, _payload$ivInfusionRa2, _payload$doseOption$v, _payload$doseOption, _payload$occurStartDa, _payload$occurEndDate, _payload$totPresQtyUO, _payload$totPresQtyUO2, _payload$totDispQty, _payload$totDispQtyUO, _payload$totBilledQty, _payload$totBilledQty2, _payload$totReturnedQ, _payload$PRNYN, _payload$prnComment, _payload$direction, _payload$diagnosis, _payload$reasonCode, _payload$indication$v, _payload$indication, _payload$patientInstr, _payload$patientInstr2, _payload$patientInstr3, _payload$notes, _payload$parentPresId, _payload$presGroupRef, _payload$noofRefillsA, _payload$initialDispe, _payload$refillDispen, _payload$maxRefillDis, _payload$pendingRefil, _payload$prescription2, _payload$substitution, _payload$substitution2, _payload$substituteRe, _payload$broughtFromH, _payload$IVIngredient, _payload$createdby, _payload$updatedby, _payload$statushistor, _payload$statusperiod;
|
|
25792
|
+
var _payload$patientid, _payload$encountertyp, _payload$encounterid, _payload$prescription, _payload$Prescription, _payload$name$drugTyp, _payload$name, _payload$presNature$v, _payload$presNature, _payload$presMode$val, _payload$presMode, _payload$priority$val, _payload$priority, _payload$status, _payload$statusreason, _payload$intent, _payload$orderPrivile, _payload$privilegeAle, _payload$workFlowStat, _payload$name$value, _payload$name2, _payload$formCode, _payload$DefaultRoute, _payload$DefaultRoute2, _payload$dosageTypeIn, _payload$unitValue$va, _payload$unitValue, _payload$drug_categor, _payload$drug_categor2, _payload$dispensing_p, _payload$dispensing_p2, _payload$IVDosageDura, _payload$IVDosageDura2, _payload$unitsTypes$v, _payload$unitsTypes, _payload$ivInfusionRa, _payload$ivInfusionRa2, _payload$doseOption$v, _payload$doseOption, _payload$occurStartDa, _payload$occurEndDate, _payload$totPresQtyUO, _payload$totPresQtyUO2, _payload$totDispQty, _payload$totDispQtyUO, _payload$totBilledQty, _payload$totBilledQty2, _payload$totReturnedQ, _payload$PRNYN, _payload$prnComment, _payload$direction, _payload$diagnosis, _payload$reasonCode, _payload$indication$v, _payload$indication, _payload$patientInstr, _payload$patientInstr2, _payload$patientInstr3, _payload$notes, _payload$parentPresId, _payload$presGroupRef, _payload$noofRefillsA, _payload$initialDispe, _payload$refillDispen, _payload$maxRefillDis, _payload$pendingRefil, _payload$prescription2, _payload$substitution, _payload$substitution2, _payload$substituteRe, _payload$broughtFromH, _payload$IVIngredient, _payload$createdby, _payload$updatedby, _payload$statushistor, _payload$statusperiod, _payload$name$nameLab, _payload$name3;
|
|
25653
25793
|
|
|
25654
25794
|
var filter = {};
|
|
25655
25795
|
|
|
@@ -25742,10 +25882,157 @@ var generateJSON$6 = function generateJSON(payload, orgId) {
|
|
|
25742
25882
|
"updatedby": (_payload$updatedby = payload.updatedby) !== null && _payload$updatedby !== void 0 ? _payload$updatedby : "",
|
|
25743
25883
|
"statushistory": (_payload$statushistor = payload.statushistory) !== null && _payload$statushistor !== void 0 ? _payload$statushistor : [],
|
|
25744
25884
|
"statusperiod": (_payload$statusperiod = payload.statusperiod) !== null && _payload$statusperiod !== void 0 ? _payload$statusperiod : 0,
|
|
25745
|
-
"components": payload.additiveDetails ? getComponent$1(payload.additiveDetails) : []
|
|
25885
|
+
"components": payload.additiveDetails ? getComponent$1(payload.additiveDetails) : [],
|
|
25886
|
+
//new key
|
|
25887
|
+
"isfirststatorder": false,
|
|
25888
|
+
"SlidingScaleDose": "",
|
|
25889
|
+
"addtictive": [],
|
|
25890
|
+
"id": 0,
|
|
25891
|
+
"orgEntityType": "",
|
|
25892
|
+
"prescriptionType": "",
|
|
25893
|
+
"orderdescription": (_payload$name$nameLab = (_payload$name3 = payload.name) === null || _payload$name3 === void 0 ? void 0 : _payload$name3.nameLabel) !== null && _payload$name$nameLab !== void 0 ? _payload$name$nameLab : "",
|
|
25894
|
+
"ivInfusionTime": 0,
|
|
25895
|
+
"ivInfusionTimeUom": "",
|
|
25896
|
+
"FreqDetls": []
|
|
25746
25897
|
}
|
|
25747
25898
|
})];
|
|
25748
25899
|
};
|
|
25900
|
+
var generate_NIFI_JSON = function generate_NIFI_JSON(payload) {
|
|
25901
|
+
var _payload$ORGID, _payload$patientid2, _payload$encountertyp2, _payload$encounterid2, _payload$prescription3, _payload$Prescription2, _payload$name$drugTyp2, _payload$name4, _payload$presNature$v2, _payload$presNature2, _payload$presMode$val2, _payload$presMode2, _payload$priority$val2, _payload$priority2, _payload$status2, _payload$statusreason2, _payload$intent2, _payload$orderPrivile2, _payload$privilegeAle2, _payload$workFlowStat2, _payload$name$value2, _payload$name5, _payload$formCode2, _payload$DefaultRoute3, _payload$DefaultRoute4, _payload$dosageTypeIn2, _payload$unitValue$va2, _payload$unitValue2, _payload$drug_categor3, _payload$drug_categor4, _payload$dispensing_p3, _payload$dispensing_p4, _payload$IVDosageDura3, _payload$IVDosageDura4, _payload$unitsTypes$v2, _payload$unitsTypes2, _payload$ivInfusionRa3, _payload$ivInfusionRa4, _payload$doseOption$v2, _payload$doseOption2, _payload$name$nameLab2, _payload$name6, _payload$orderStartDa, _payload$orderEndDate, _payload$indication$v2, _payload$indication2, _payload$patientInstr4, _payload$patientInstr5, _payload$patientInstr6, _payload$notes2, _payload$parentPresId2, _payload$presGroupRef2, _payload$noofRefillsA2, _payload$initialDispe2, _payload$refillDispen2, _payload$maxRefillDis2, _payload$pendingRefil2, _payload$prescription4, _payload$substitution3, _payload$substitution4, _payload$substituteRe2, _payload$broughtFromH2, _payload$IVIngredient2, _payload$statusperiod2, _payload$unitsTypes$F, _payload$unitsTypes3;
|
|
25902
|
+
|
|
25903
|
+
debugger;
|
|
25904
|
+
return [{
|
|
25905
|
+
"db_name": dbName,
|
|
25906
|
+
"entity": "PH_OrderLine",
|
|
25907
|
+
"is_metadata": true,
|
|
25908
|
+
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
25909
|
+
"doc": {
|
|
25910
|
+
"isfirststatorder": false,
|
|
25911
|
+
"SlidingScaleDose": "",
|
|
25912
|
+
"org_Id": (_payload$ORGID = payload === null || payload === void 0 ? void 0 : payload.ORGID) !== null && _payload$ORGID !== void 0 ? _payload$ORGID : "",
|
|
25913
|
+
"addtictive": [],
|
|
25914
|
+
"id": 0,
|
|
25915
|
+
"orgEntityType": "",
|
|
25916
|
+
"patient_Id": (_payload$patientid2 = payload === null || payload === void 0 ? void 0 : payload.patientid) !== null && _payload$patientid2 !== void 0 ? _payload$patientid2 : "",
|
|
25917
|
+
"encountertype": (_payload$encountertyp2 = payload === null || payload === void 0 ? void 0 : payload.encountertype) !== null && _payload$encountertyp2 !== void 0 ? _payload$encountertyp2 : "",
|
|
25918
|
+
"encounter_Id": (_payload$encounterid2 = payload === null || payload === void 0 ? void 0 : payload.encounterid) !== null && _payload$encounterid2 !== void 0 ? _payload$encounterid2 : "",
|
|
25919
|
+
"prescriptionType": "",
|
|
25920
|
+
//"CodingMaster/11035"
|
|
25921
|
+
"prescriptionId": (_payload$prescription3 = payload === null || payload === void 0 ? void 0 : payload.prescriptionId) !== null && _payload$prescription3 !== void 0 ? _payload$prescription3 : "",
|
|
25922
|
+
"PrescriptionDate": (_payload$Prescription2 = payload === null || payload === void 0 ? void 0 : payload.PrescriptionDate) !== null && _payload$Prescription2 !== void 0 ? _payload$Prescription2 : 0,
|
|
25923
|
+
"drugType": (_payload$name$drugTyp2 = payload === null || payload === void 0 ? void 0 : (_payload$name4 = payload.name) === null || _payload$name4 === void 0 ? void 0 : _payload$name4.drugTypeId) !== null && _payload$name$drugTyp2 !== void 0 ? _payload$name$drugTyp2 : "",
|
|
25924
|
+
"presNature": (_payload$presNature$v2 = payload === null || payload === void 0 ? void 0 : (_payload$presNature2 = payload.presNature) === null || _payload$presNature2 === void 0 ? void 0 : _payload$presNature2.value) !== null && _payload$presNature$v2 !== void 0 ? _payload$presNature$v2 : "",
|
|
25925
|
+
"presMode": (_payload$presMode$val2 = payload === null || payload === void 0 ? void 0 : (_payload$presMode2 = payload.presMode) === null || _payload$presMode2 === void 0 ? void 0 : _payload$presMode2.value) !== null && _payload$presMode$val2 !== void 0 ? _payload$presMode$val2 : "",
|
|
25926
|
+
"priority": (_payload$priority$val2 = payload === null || payload === void 0 ? void 0 : (_payload$priority2 = payload.priority) === null || _payload$priority2 === void 0 ? void 0 : _payload$priority2.value) !== null && _payload$priority$val2 !== void 0 ? _payload$priority$val2 : "",
|
|
25927
|
+
"status": (_payload$status2 = payload === null || payload === void 0 ? void 0 : payload.status) !== null && _payload$status2 !== void 0 ? _payload$status2 : "",
|
|
25928
|
+
"statusreason": (_payload$statusreason2 = payload === null || payload === void 0 ? void 0 : payload.statusreason) !== null && _payload$statusreason2 !== void 0 ? _payload$statusreason2 : "",
|
|
25929
|
+
"intent": (_payload$intent2 = payload === null || payload === void 0 ? void 0 : payload.intent) !== null && _payload$intent2 !== void 0 ? _payload$intent2 : "",
|
|
25930
|
+
"orderPrivilegeLevel": (_payload$orderPrivile2 = payload === null || payload === void 0 ? void 0 : payload.orderPrivilegeLevel) !== null && _payload$orderPrivile2 !== void 0 ? _payload$orderPrivile2 : "",
|
|
25931
|
+
"privilegeAlertMessageTxt": (_payload$privilegeAle2 = payload === null || payload === void 0 ? void 0 : payload.privilegeAlertMessageTxt) !== null && _payload$privilegeAle2 !== void 0 ? _payload$privilegeAle2 : "",
|
|
25932
|
+
"workFlowStatus": (_payload$workFlowStat2 = payload === null || payload === void 0 ? void 0 : payload.workFlowStatus) !== null && _payload$workFlowStat2 !== void 0 ? _payload$workFlowStat2 : "",
|
|
25933
|
+
"drugCode": (_payload$name$value2 = payload === null || payload === void 0 ? void 0 : (_payload$name5 = payload.name) === null || _payload$name5 === void 0 ? void 0 : _payload$name5.value) !== null && _payload$name$value2 !== void 0 ? _payload$name$value2 : "",
|
|
25934
|
+
"formCode": (_payload$formCode2 = payload === null || payload === void 0 ? void 0 : payload.formCode) !== null && _payload$formCode2 !== void 0 ? _payload$formCode2 : "",
|
|
25935
|
+
"routeCode": (_payload$DefaultRoute3 = payload === null || payload === void 0 ? void 0 : (_payload$DefaultRoute4 = payload.DefaultRouteCode) === null || _payload$DefaultRoute4 === void 0 ? void 0 : _payload$DefaultRoute4.value) !== null && _payload$DefaultRoute3 !== void 0 ? _payload$DefaultRoute3 : "",
|
|
25936
|
+
"dosageTypeIndicator": (_payload$dosageTypeIn2 = payload === null || payload === void 0 ? void 0 : payload.dosageTypeIndicator) !== null && _payload$dosageTypeIn2 !== void 0 ? _payload$dosageTypeIn2 : "",
|
|
25937
|
+
"dosageValue": (payload === null || payload === void 0 ? void 0 : payload.doseMeasurementValue) ? parseInt(payload === null || payload === void 0 ? void 0 : payload.doseMeasurementValue) : 0,
|
|
25938
|
+
"dosageUOM": (_payload$unitValue$va2 = payload === null || payload === void 0 ? void 0 : (_payload$unitValue2 = payload.unitValue) === null || _payload$unitValue2 === void 0 ? void 0 : _payload$unitValue2.value) !== null && _payload$unitValue$va2 !== void 0 ? _payload$unitValue$va2 : "",
|
|
25939
|
+
"drug_category": (_payload$drug_categor3 = payload === null || payload === void 0 ? void 0 : (_payload$drug_categor4 = payload.drug_category) === null || _payload$drug_categor4 === void 0 ? void 0 : _payload$drug_categor4.value) !== null && _payload$drug_categor3 !== void 0 ? _payload$drug_categor3 : "",
|
|
25940
|
+
"dispensing_pharmacy": (_payload$dispensing_p3 = payload === null || payload === void 0 ? void 0 : (_payload$dispensing_p4 = payload.dispensing_pharmacy) === null || _payload$dispensing_p4 === void 0 ? void 0 : _payload$dispensing_p4.value) !== null && _payload$dispensing_p3 !== void 0 ? _payload$dispensing_p3 : "",
|
|
25941
|
+
"IVDosageDurationValue": (payload === null || payload === void 0 ? void 0 : payload.IVDosageDurationValue) ? parseInt(payload === null || payload === void 0 ? void 0 : payload.IVDosageDurationValue) : 0,
|
|
25942
|
+
"IVDosageDurationUOM": (_payload$IVDosageDura3 = payload === null || payload === void 0 ? void 0 : (_payload$IVDosageDura4 = payload.IVDosageDurationUOM) === null || _payload$IVDosageDura4 === void 0 ? void 0 : _payload$IVDosageDura4.value) !== null && _payload$IVDosageDura3 !== void 0 ? _payload$IVDosageDura3 : "",
|
|
25943
|
+
"dosageFreqCode": (_payload$unitsTypes$v2 = payload === null || payload === void 0 ? void 0 : (_payload$unitsTypes2 = payload.unitsTypes) === null || _payload$unitsTypes2 === void 0 ? void 0 : _payload$unitsTypes2.value) !== null && _payload$unitsTypes$v2 !== void 0 ? _payload$unitsTypes$v2 : "",
|
|
25944
|
+
"ivInfusionRateValue": (payload === null || payload === void 0 ? void 0 : payload.ivInfusionRateValue) ? parseInt(payload === null || payload === void 0 ? void 0 : payload.ivInfusionRateValue) : 0,
|
|
25945
|
+
"ivInfusionRateUOM": (_payload$ivInfusionRa3 = payload === null || payload === void 0 ? void 0 : (_payload$ivInfusionRa4 = payload.ivInfusionRateUOM) === null || _payload$ivInfusionRa4 === void 0 ? void 0 : _payload$ivInfusionRa4.value) !== null && _payload$ivInfusionRa3 !== void 0 ? _payload$ivInfusionRa3 : "",
|
|
25946
|
+
"dosageDurationValue": (payload === null || payload === void 0 ? void 0 : payload.dosetime) ? parseInt(payload === null || payload === void 0 ? void 0 : payload.dosetime) : 0,
|
|
25947
|
+
"dosageDurationUOM": (_payload$doseOption$v2 = payload === null || payload === void 0 ? void 0 : (_payload$doseOption2 = payload.doseOption) === null || _payload$doseOption2 === void 0 ? void 0 : _payload$doseOption2.value) !== null && _payload$doseOption$v2 !== void 0 ? _payload$doseOption$v2 : "",
|
|
25948
|
+
"orderdescription": (_payload$name$nameLab2 = payload === null || payload === void 0 ? void 0 : (_payload$name6 = payload.name) === null || _payload$name6 === void 0 ? void 0 : _payload$name6.nameLabel) !== null && _payload$name$nameLab2 !== void 0 ? _payload$name$nameLab2 : "",
|
|
25949
|
+
"ivInfusionTime": 0,
|
|
25950
|
+
"ivInfusionTimeUom": "",
|
|
25951
|
+
"useAsSlidingScaleDose": [],
|
|
25952
|
+
"occurStartDateTime": (_payload$orderStartDa = payload === null || payload === void 0 ? void 0 : payload.orderStartDate) !== null && _payload$orderStartDa !== void 0 ? _payload$orderStartDa : 0,
|
|
25953
|
+
"occurEndDateTime": (_payload$orderEndDate = payload === null || payload === void 0 ? void 0 : payload.orderEndDate) !== null && _payload$orderEndDate !== void 0 ? _payload$orderEndDate : 0,
|
|
25954
|
+
"totPresQty": 0,
|
|
25955
|
+
"totPresQtyUOM": "",
|
|
25956
|
+
"totDispQty": 0,
|
|
25957
|
+
"totDispQtyUOM": "",
|
|
25958
|
+
"totBilledQty": 0,
|
|
25959
|
+
"totBilledQtyUOM": "",
|
|
25960
|
+
"totReturnedQty": 0,
|
|
25961
|
+
"PRNYN": false,
|
|
25962
|
+
"prnComment": "",
|
|
25963
|
+
"direction": "",
|
|
25964
|
+
"diagnosis": [],
|
|
25965
|
+
"reasonCode": "",
|
|
25966
|
+
"indication": (_payload$indication$v2 = payload === null || payload === void 0 ? void 0 : (_payload$indication2 = payload.indication) === null || _payload$indication2 === void 0 ? void 0 : _payload$indication2.value) !== null && _payload$indication$v2 !== void 0 ? _payload$indication$v2 : "",
|
|
25967
|
+
//"CodingMaster/10794",
|
|
25968
|
+
"patientInstruction": (_payload$patientInstr4 = payload === null || payload === void 0 ? void 0 : (_payload$patientInstr5 = payload.patientInstruction) === null || _payload$patientInstr5 === void 0 ? void 0 : _payload$patientInstr5.value) !== null && _payload$patientInstr4 !== void 0 ? _payload$patientInstr4 : "",
|
|
25969
|
+
//"CodingMaster/10700"
|
|
25970
|
+
"patientInstructiondesc": (_payload$patientInstr6 = payload === null || payload === void 0 ? void 0 : payload.patientInstructiondesc) !== null && _payload$patientInstr6 !== void 0 ? _payload$patientInstr6 : "",
|
|
25971
|
+
"notes": (_payload$notes2 = payload === null || payload === void 0 ? void 0 : payload.notes) !== null && _payload$notes2 !== void 0 ? _payload$notes2 : "",
|
|
25972
|
+
"parentPresId": (_payload$parentPresId2 = payload === null || payload === void 0 ? void 0 : payload.parentPresId) !== null && _payload$parentPresId2 !== void 0 ? _payload$parentPresId2 : "",
|
|
25973
|
+
"presGroupRefId": (_payload$presGroupRef2 = payload === null || payload === void 0 ? void 0 : payload.presGroupRefId) !== null && _payload$presGroupRef2 !== void 0 ? _payload$presGroupRef2 : "",
|
|
25974
|
+
"requestor": (payload === null || payload === void 0 ? void 0 : payload.requestor) ? getrequestor$1(payload === null || payload === void 0 ? void 0 : payload.requestor) : [],
|
|
25975
|
+
"performer": (payload === null || payload === void 0 ? void 0 : payload.performer) ? getPerformer$1(payload === null || payload === void 0 ? void 0 : payload.performer) : [],
|
|
25976
|
+
"noofRefillsAllowed": (_payload$noofRefillsA2 = payload === null || payload === void 0 ? void 0 : payload.noofRefillsAllowed) !== null && _payload$noofRefillsA2 !== void 0 ? _payload$noofRefillsA2 : 0,
|
|
25977
|
+
"initialDispenseDurn": (_payload$initialDispe2 = payload === null || payload === void 0 ? void 0 : payload.initialDispenseDurn) !== null && _payload$initialDispe2 !== void 0 ? _payload$initialDispe2 : 0,
|
|
25978
|
+
"refillDispenseIntervalDays": (_payload$refillDispen2 = payload === null || payload === void 0 ? void 0 : payload.refillDispenseIntervalDays) !== null && _payload$refillDispen2 !== void 0 ? _payload$refillDispen2 : 0,
|
|
25979
|
+
"maxRefillDispenseDurn": (_payload$maxRefillDis2 = payload === null || payload === void 0 ? void 0 : payload.maxRefillDispenseDurn) !== null && _payload$maxRefillDis2 !== void 0 ? _payload$maxRefillDis2 : 0,
|
|
25980
|
+
"pendingRefillCount": (_payload$pendingRefil2 = payload === null || payload === void 0 ? void 0 : payload.pendingRefillCount) !== null && _payload$pendingRefil2 !== void 0 ? _payload$pendingRefil2 : "",
|
|
25981
|
+
"prescriptionValidityPeriodDays": (_payload$prescription4 = payload === null || payload === void 0 ? void 0 : payload.prescriptionValidityPeriodDays) !== null && _payload$prescription4 !== void 0 ? _payload$prescription4 : 0,
|
|
25982
|
+
"substitutionAllowed": (_payload$substitution3 = payload === null || payload === void 0 ? void 0 : payload.substitutionAllowed) !== null && _payload$substitution3 !== void 0 ? _payload$substitution3 : false,
|
|
25983
|
+
"substitutionAllowedTypes": (_payload$substitution4 = payload === null || payload === void 0 ? void 0 : payload.substitutionAllowedTypes) !== null && _payload$substitution4 !== void 0 ? _payload$substitution4 : "",
|
|
25984
|
+
"substituteReasonCode": (_payload$substituteRe2 = payload === null || payload === void 0 ? void 0 : payload.substituteReasonCode) !== null && _payload$substituteRe2 !== void 0 ? _payload$substituteRe2 : "",
|
|
25985
|
+
"broughtFromHome": (_payload$broughtFromH2 = payload === null || payload === void 0 ? void 0 : payload.broughtFromHome) !== null && _payload$broughtFromH2 !== void 0 ? _payload$broughtFromH2 : false,
|
|
25986
|
+
"IVIngredientDescription": (_payload$IVIngredient2 = payload === null || payload === void 0 ? void 0 : payload.IVIngredientDescription) !== null && _payload$IVIngredient2 !== void 0 ? _payload$IVIngredient2 : "",
|
|
25987
|
+
"statushistory": [],
|
|
25988
|
+
"statusperiod": (_payload$statusperiod2 = payload === null || payload === void 0 ? void 0 : payload.statusperiod) !== null && _payload$statusperiod2 !== void 0 ? _payload$statusperiod2 : 0,
|
|
25989
|
+
"components": (payload === null || payload === void 0 ? void 0 : payload.additiveDetails) ? getComponent$1(payload === null || payload === void 0 ? void 0 : payload.additiveDetails) : [],
|
|
25990
|
+
// "FreqDetls": [
|
|
25991
|
+
// {
|
|
25992
|
+
// "remarks": "Morning",
|
|
25993
|
+
// "dose": "",
|
|
25994
|
+
// "time": "08:00",
|
|
25995
|
+
// "baseFreq": "",
|
|
25996
|
+
// "weekDay": "",
|
|
25997
|
+
// "day": 0,
|
|
25998
|
+
// "fromDay": 0,
|
|
25999
|
+
// "toDay": 0,
|
|
26000
|
+
// "fromDate": 0,
|
|
26001
|
+
// "toDate": 0,
|
|
26002
|
+
// "adminDosageInstruction": ""
|
|
26003
|
+
// },
|
|
26004
|
+
// {
|
|
26005
|
+
// "remarks": "Noon",
|
|
26006
|
+
// "dose": "",
|
|
26007
|
+
// "time": "12:00",
|
|
26008
|
+
// "baseFreq": "",
|
|
26009
|
+
// "weekDay": "",
|
|
26010
|
+
// "day": 0,
|
|
26011
|
+
// "fromDay": 0,
|
|
26012
|
+
// "toDay": 0,
|
|
26013
|
+
// "fromDate": 0,
|
|
26014
|
+
// "toDate": 0,
|
|
26015
|
+
// "adminDosageInstruction": ""
|
|
26016
|
+
// },
|
|
26017
|
+
// {
|
|
26018
|
+
// "remarks": "Night",
|
|
26019
|
+
// "dose": "",
|
|
26020
|
+
// "time": "20:00",
|
|
26021
|
+
// "baseFreq": "",
|
|
26022
|
+
// "weekDay": "",
|
|
26023
|
+
// "day": 0,
|
|
26024
|
+
// "fromDay": 0,
|
|
26025
|
+
// "toDay": 0,
|
|
26026
|
+
// "fromDate": 0,
|
|
26027
|
+
// "toDate": 0,
|
|
26028
|
+
// "adminDosageInstruction": ""
|
|
26029
|
+
// }
|
|
26030
|
+
// ],
|
|
26031
|
+
"FreqDetls": (_payload$unitsTypes$F = payload === null || payload === void 0 ? void 0 : (_payload$unitsTypes3 = payload.unitsTypes) === null || _payload$unitsTypes3 === void 0 ? void 0 : _payload$unitsTypes3.FreqDetls) !== null && _payload$unitsTypes$F !== void 0 ? _payload$unitsTypes$F : [],
|
|
26032
|
+
"nextrefilldate": 0
|
|
26033
|
+
}
|
|
26034
|
+
}];
|
|
26035
|
+
};
|
|
25749
26036
|
|
|
25750
26037
|
var getuseAsSlidingScaleDose$1 = function getuseAsSlidingScaleDose(list) {
|
|
25751
26038
|
var arr = [];
|
|
@@ -29693,7 +29980,7 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
29693
29980
|
orderBy: {
|
|
29694
29981
|
value: (_val$Requestor$0$prac6 = val === null || val === void 0 ? void 0 : (_val$Requestor9 = val.Requestor) === null || _val$Requestor9 === void 0 ? void 0 : (_val$Requestor9$ = _val$Requestor9[0]) === null || _val$Requestor9$ === void 0 ? void 0 : (_val$Requestor9$$prac = _val$Requestor9$.practId) === null || _val$Requestor9$$prac === void 0 ? void 0 : (_val$Requestor9$$prac2 = _val$Requestor9$$prac[0]) === null || _val$Requestor9$$prac2 === void 0 ? void 0 : _val$Requestor9$$prac2.id) !== null && _val$Requestor$0$prac6 !== void 0 ? _val$Requestor$0$prac6 : "",
|
|
29695
29982
|
practitioner_id: (_val$Requestor$0$prac7 = val === null || val === void 0 ? void 0 : (_val$Requestor10 = val.Requestor) === null || _val$Requestor10 === void 0 ? void 0 : (_val$Requestor10$ = _val$Requestor10[0]) === null || _val$Requestor10$ === void 0 ? void 0 : (_val$Requestor10$$pra = _val$Requestor10$.practId) === null || _val$Requestor10$$pra === void 0 ? void 0 : (_val$Requestor10$$pra2 = _val$Requestor10$$pra[0]) === null || _val$Requestor10$$pra2 === void 0 ? void 0 : _val$Requestor10$$pra2.practitioner_id) !== null && _val$Requestor$0$prac7 !== void 0 ? _val$Requestor$0$prac7 : "",
|
|
29696
|
-
label: (_makeName = makeName((val === null || val === void 0 ? void 0 : (_val$Requestor11 = val.Requestor) === null || _val$Requestor11 === void 0 ? void 0 : (_val$Requestor11$ = _val$Requestor11[0]) === null || _val$Requestor11$ === void 0 ? void 0 : (_val$Requestor11$$pra = _val$Requestor11$.practId) === null || _val$Requestor11$$pra === void 0 ? void 0 : (_val$Requestor11$$pra2 = _val$Requestor11$$pra[0]) === null || _val$Requestor11$$pra2 === void 0 ? void 0 : (_val$Requestor11$$pra3 = _val$Requestor11$$pra2.name) === null || _val$Requestor11$$pra3 === void 0 ? void 0 : _val$Requestor11$$pra3[0]) || {})) !== null && _makeName !== void 0 ? _makeName : ""
|
|
29983
|
+
label: (_makeName = makeName$1((val === null || val === void 0 ? void 0 : (_val$Requestor11 = val.Requestor) === null || _val$Requestor11 === void 0 ? void 0 : (_val$Requestor11$ = _val$Requestor11[0]) === null || _val$Requestor11$ === void 0 ? void 0 : (_val$Requestor11$$pra = _val$Requestor11$.practId) === null || _val$Requestor11$$pra === void 0 ? void 0 : (_val$Requestor11$$pra2 = _val$Requestor11$$pra[0]) === null || _val$Requestor11$$pra2 === void 0 ? void 0 : (_val$Requestor11$$pra3 = _val$Requestor11$$pra2.name) === null || _val$Requestor11$$pra3 === void 0 ? void 0 : _val$Requestor11$$pra3[0]) || {})) !== null && _makeName !== void 0 ? _makeName : ""
|
|
29697
29984
|
}
|
|
29698
29985
|
},
|
|
29699
29986
|
indication: {
|
|
@@ -29868,7 +30155,7 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
29868
30155
|
orderBy: {
|
|
29869
30156
|
value: val === null || val === void 0 ? void 0 : (_val$Requestor20 = val.Requestor) === null || _val$Requestor20 === void 0 ? void 0 : (_val$Requestor20$ = _val$Requestor20[0]) === null || _val$Requestor20$ === void 0 ? void 0 : (_val$Requestor20$$pra = _val$Requestor20$.practId) === null || _val$Requestor20$$pra === void 0 ? void 0 : (_val$Requestor20$$pra2 = _val$Requestor20$$pra[0]) === null || _val$Requestor20$$pra2 === void 0 ? void 0 : _val$Requestor20$$pra2.id,
|
|
29870
30157
|
practitioner_id: val === null || val === void 0 ? void 0 : (_val$Requestor21 = val.Requestor) === null || _val$Requestor21 === void 0 ? void 0 : (_val$Requestor21$ = _val$Requestor21[0]) === null || _val$Requestor21$ === void 0 ? void 0 : (_val$Requestor21$$pra = _val$Requestor21$.practId) === null || _val$Requestor21$$pra === void 0 ? void 0 : (_val$Requestor21$$pra2 = _val$Requestor21$$pra[0]) === null || _val$Requestor21$$pra2 === void 0 ? void 0 : _val$Requestor21$$pra2.practitioner_id,
|
|
29871
|
-
label: makeName((val === null || val === void 0 ? void 0 : (_val$Requestor22 = val.Requestor) === null || _val$Requestor22 === void 0 ? void 0 : (_val$Requestor22$ = _val$Requestor22[0]) === null || _val$Requestor22$ === void 0 ? void 0 : (_val$Requestor22$$pra = _val$Requestor22$.practId) === null || _val$Requestor22$$pra === void 0 ? void 0 : (_val$Requestor22$$pra2 = _val$Requestor22$$pra[0]) === null || _val$Requestor22$$pra2 === void 0 ? void 0 : (_val$Requestor22$$pra3 = _val$Requestor22$$pra2.name) === null || _val$Requestor22$$pra3 === void 0 ? void 0 : _val$Requestor22$$pra3[0]) || {})
|
|
30158
|
+
label: makeName$1((val === null || val === void 0 ? void 0 : (_val$Requestor22 = val.Requestor) === null || _val$Requestor22 === void 0 ? void 0 : (_val$Requestor22$ = _val$Requestor22[0]) === null || _val$Requestor22$ === void 0 ? void 0 : (_val$Requestor22$$pra = _val$Requestor22$.practId) === null || _val$Requestor22$$pra === void 0 ? void 0 : (_val$Requestor22$$pra2 = _val$Requestor22$$pra[0]) === null || _val$Requestor22$$pra2 === void 0 ? void 0 : (_val$Requestor22$$pra3 = _val$Requestor22$$pra2.name) === null || _val$Requestor22$$pra3 === void 0 ? void 0 : _val$Requestor22$$pra3[0]) || {})
|
|
29872
30159
|
}
|
|
29873
30160
|
},
|
|
29874
30161
|
indication: {
|
|
@@ -31364,7 +31651,7 @@ var ORDER_TYPE_REQ_DETAILS_LAB = createAsyncThunk("LabOrderApiSlice/order_type_r
|
|
|
31364
31651
|
// val.name[0]?.suffix[0]?.coding.display
|
|
31365
31652
|
// ) {
|
|
31366
31653
|
arr2.push({
|
|
31367
|
-
label: makeName((val === null || val === void 0 ? void 0 : (_val$name2 = val.name) === null || _val$name2 === void 0 ? void 0 : _val$name2[0]) || {}),
|
|
31654
|
+
label: makeName$1((val === null || val === void 0 ? void 0 : (_val$name2 = val.name) === null || _val$name2 === void 0 ? void 0 : _val$name2[0]) || {}),
|
|
31368
31655
|
value: (_val$_id7 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id7 !== void 0 ? _val$_id7 : "",
|
|
31369
31656
|
practitioner_id: (_val$practitioner_id = val === null || val === void 0 ? void 0 : val.practitioner_id) !== null && _val$practitioner_id !== void 0 ? _val$practitioner_id : ""
|
|
31370
31657
|
}); // }
|
|
@@ -32148,8 +32435,9 @@ var queries$5 = {
|
|
|
32148
32435
|
// "return_fields": "MERGE(DrugMaster,{DrugType:DOCUMENT(DrugMaster.DrugType),FormCode:DOCUMENT(DrugMaster.FormCode)})"
|
|
32149
32436
|
// }`,
|
|
32150
32437
|
drugMaster: function drugMaster(input_text) {
|
|
32151
|
-
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugMaster\",\n \"filter\":\"(like(DrugMaster.ShortDesc,'%").concat(input_text, "%',true) || like(DrugMaster.LongDesc,'%").concat(input_text, "%',true) || like(DrugMaster.DrugCode,'%").concat(input_text, "%',true)) && DrugMaster.activestatus==true\",\n \"limit\":{\n \"count\":100,\n \"offset\":0\n },\n \"return_fields\": \"MERGE(DrugMaster,{DrugType:DOCUMENT(DrugMaster.DrugType),FormCode:DOCUMENT(DrugMaster.FormCode)})\"\n }");
|
|
32438
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugMaster\",\n \"filter\":\"(like(DrugMaster.ShortDesc,'%").concat(input_text, "%',true) || like(DrugMaster.LongDesc,'%").concat(input_text, "%',true) || like(DrugMaster.DrugCode,'%").concat(input_text, "%',true)) && DrugMaster.activestatus==true\",\n \"limit\":{\n \"count\":100,\n \"offset\":0\n },\n \"return_fields\": \"MERGE(DrugMaster,{DrugType:DOCUMENT(DrugMaster.DrugType),FormCode:DOCUMENT(DrugMaster.FormCode),FrequencyRules:(for freq in TO_ARRAY(DrugMaster.FrequencyRules) return merge(document(freq),{freqcode:merge(document(document(freq).freqcode),{scheduleline:document(document(document(freq).freqcode).scheduleline)}),doseUOM:document(document(freq).doseUOM),durnUOM:document(document(freq).durnUOM),InfuseRateUom:document(document(freq).InfuseRateUom),InfuseOverDurType:document(document(freq).InfuseOverDurType)}))})\"\n }");
|
|
32152
32439
|
},
|
|
32440
|
+
// "return_fields": "MERGE(DrugMaster,{DrugType:DOCUMENT(DrugMaster.DrugType),FormCode:DOCUMENT(DrugMaster.FormCode)})"
|
|
32153
32441
|
getMedications: function getMedications(id) {
|
|
32154
32442
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"filter\": \"PH_OrderLine.patient_Id=='").concat(id, "'\",\n \"entity\": \"PH_OrderLine\",\n \"return_fields\": \"MERGE(PH_OrderLine, { patient_Id:(FOR pname IN TO_ARRAY(DOCUMENT(PH_OrderLine.patient_Id).name) RETURN MERGE(DOCUMENT(PH_OrderLine.patient_Id), { name:DOCUMENT(pname), telecom:(FOR ptel IN TO_ARRAY(DOCUMENT(PH_OrderLine.patient_Id).telecom) RETURN DOCUMENT(ptel)), martialStatus:(FOR mstatus IN TO_ARRAY(DOCUMENT(PH_OrderLine.patient_Id).martialStatus) RETURN DOCUMENT(mstatus)) } ) ) ,org_Id:MERGE(DOCUMENT(PH_OrderLine.org_Id), { telecom:(FOR otel IN TO_ARRAY(DOCUMENT(PH_OrderLine.org_Id).telecom) RETURN DOCUMENT(otel) ), address:(FOR oadd IN TO_ARRAY(DOCUMENT(PH_OrderLine.org_Id).address) RETURN DOCUMENT(oadd) ) }) ,encounter_Id:DOCUMENT(PH_OrderLine.encounter_Id) ,dosageDurationUOM:DOCUMENT(PH_OrderLine.dosageDurationUOM) ,dosageFreqCode:DOCUMENT(PH_OrderLine.dosageFreqCode) ,dosageUOM:DOCUMENT(PH_OrderLine.dosageUOM) ,drugCode:DOCUMENT(PH_OrderLine.drugCode) ,drugType:DOCUMENT(PH_OrderLine.drugType) , createdby:(FOR hn IN TO_ARRAY(DOCUMENT(PH_OrderLine.createdby).name) RETURN MERGE(DOCUMENT(PH_OrderLine.createdby),{name:DOCUMENT(hn)})) , updatedby:(FOR hn IN TO_ARRAY(DOCUMENT(PH_OrderLine.updatedby).name) RETURN MERGE(DOCUMENT(PH_OrderLine.updatedby),{name:DOCUMENT(hn)})) , statushistory:(FOR sth IN TO_ARRAY(PH_OrderLine.statushistory) RETURN MERGE(sth,{PersonID:(FOR hn IN TO_ARRAY(DOCUMENT(sth.PersonID).name) RETURN MERGE(DOCUMENT(sth.PersonID),{name:DOCUMENT(hn)}))})) } )\"\n }");
|
|
32155
32443
|
},
|
|
@@ -32166,7 +32454,7 @@ var queries$5 = {
|
|
|
32166
32454
|
DosageVolumeUom: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\":\"DrugUOM.IsDosageStrengthUOM==true\",\n \"return_fields\": \"DrugUOM\"\n }"),
|
|
32167
32455
|
DrugRoutes: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugRoutes\",\n \"filter\": \"DrugRoutes.status==true\",\n \"return_fields\": \"DrugRoutes\"\n }"),
|
|
32168
32456
|
DosageForm: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DosageForm\",\n \"return_fields\": \"DosageForm\"\n }"),
|
|
32169
|
-
FrequencyMaster: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"FrequencyMaster\",\n \"filter\": \"FrequencyMaster.status==true\",\n \"return_fields\": \"FrequencyMaster\"\n }"),
|
|
32457
|
+
FrequencyMaster: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"FrequencyMaster\",\n \"filter\": \"FrequencyMaster.status==true\",\n \"return_fields\": \"merge(FrequencyMaster, {fixeddurUOM: document(FrequencyMaster.fixeddurUOM)}, {scheduleline:(for freq in FrequencySchedule filter freq._id in FrequencyMaster.scheduleline return merge(freq,{basefreq:document(freq.basefreq)},{day:document(freq.day)}))},{frequencytype:document(FrequencyMaster.frequencytype)})\"\n }"),
|
|
32170
32458
|
DurationType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\":\"LOWER(DOCUMENT(DrugUOM.UOMType).display) =='time' and DrugUOM.activestatus==true and DrugUOM.status==true\",\n \"return_fields\": \"DrugUOM\"\n }"),
|
|
32171
32459
|
// Priority: `{
|
|
32172
32460
|
// "db_name": "${dbName}",
|
|
@@ -32342,7 +32630,7 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
32342
32630
|
data = _context2.sent;
|
|
32343
32631
|
arr = [];
|
|
32344
32632
|
data.result.map(function (val) {
|
|
32345
|
-
var _val$FormCode, _val$FormCode2, _val$StrengthValuesPo, _val$StrengthValuesPo2, _val$StrengthValuesPo3, _val$StrengthValuesPo4, _val$DrugType, _val$DrugType2, _val$DrugType3, _val$DrugType4, _val$drugroutegenid, _val$LongDesc, _val$DrugCategory, _val$DefaultRouteCode;
|
|
32633
|
+
var _val$FormCode, _val$FormCode2, _val$StrengthValuesPo, _val$StrengthValuesPo2, _val$StrengthValuesPo3, _val$StrengthValuesPo4, _val$DrugType, _val$DrugType2, _val$DrugType3, _val$DrugType4, _val$drugroutegenid, _val$LongDesc, _val$DrugCategory, _val$DefaultRouteCode, _val$FrequencyRules$, _val$FrequencyRules, _val$FrequencyRules$2, _val$FrequencyRules$3, _val$FrequencyRules2, _val$FrequencyRules2$, _val$FrequencyRules3, _val$FrequencyRules3$, _val$FrequencyRules3$2, _val$FrequencyRules4, _val$FrequencyRules4$, _val$FrequencyRules4$2, _val$FrequencyRules5, _val$FrequencyRules5$, _val$FrequencyRules5$2, _val$FrequencyRules6, _val$FrequencyRules6$, _val$FrequencyRules6$2, _val$FrequencyRules7, _val$FrequencyRules7$, _val$FrequencyRules7$2, _val$FrequencyRules8, _val$FrequencyRules8$, _val$FrequencyRules8$2, _val$FrequencyRules9, _val$FrequencyRules9$, _val$FrequencyRules9$2, _val$FrequencyRules10, _val$FrequencyRules11, _val$FrequencyRules12, _val$FrequencyRules13, _val$FrequencyRules14, _val$FrequencyRules15, _val$FrequencyRules16, _val$FrequencyRules17, _val$FrequencyRules18, _val$FrequencyRules19, _val$FrequencyRules20, _val$FrequencyRules21, _val$FrequencyRules22, _val$FrequencyRules23, _val$FrequencyRules24, _val$FrequencyRules25, _val$FrequencyRules26, _val$FrequencyRules27, _val$FrequencyRules28, _val$FrequencyRules29, _val$FrequencyRules30, _val$FrequencyRules31, _val$FrequencyRules32, _val$FrequencyRules33, _val$FrequencyRules$4, _val$FrequencyRules34, _val$FrequencyRules35, _val$FrequencyRules36, _val$FrequencyRules37, _val$FrequencyRules38, _val$FrequencyRules39, _val$FrequencyRules$5, _val$FrequencyRules40, _val$FrequencyRules41, _val$FrequencyRules42, _val$FrequencyRules43, _val$FrequencyRules44, _val$FrequencyRules45;
|
|
32346
32634
|
|
|
32347
32635
|
var json = {
|
|
32348
32636
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
@@ -32359,15 +32647,47 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
32359
32647
|
LongDesc_: (_val$LongDesc = val === null || val === void 0 ? void 0 : val.LongDesc) !== null && _val$LongDesc !== void 0 ? _val$LongDesc : "",
|
|
32360
32648
|
DrugCode_: val === null || val === void 0 ? void 0 : val.DrugCode,
|
|
32361
32649
|
DrugCategory: (_val$DrugCategory = val === null || val === void 0 ? void 0 : val.DrugCategory) !== null && _val$DrugCategory !== void 0 ? _val$DrugCategory : "",
|
|
32362
|
-
DefaultRouteCode: (_val$DefaultRouteCode = val === null || val === void 0 ? void 0 : val.DefaultRouteCode) !== null && _val$DefaultRouteCode !== void 0 ? _val$DefaultRouteCode : ""
|
|
32650
|
+
DefaultRouteCode: (_val$DefaultRouteCode = val === null || val === void 0 ? void 0 : val.DefaultRouteCode) !== null && _val$DefaultRouteCode !== void 0 ? _val$DefaultRouteCode : "",
|
|
32651
|
+
//new values
|
|
32652
|
+
doseVal: (_val$FrequencyRules$ = val === null || val === void 0 ? void 0 : (_val$FrequencyRules = val.FrequencyRules) === null || _val$FrequencyRules === void 0 ? void 0 : (_val$FrequencyRules$2 = _val$FrequencyRules[0]) === null || _val$FrequencyRules$2 === void 0 ? void 0 : _val$FrequencyRules$2.doseval) !== null && _val$FrequencyRules$ !== void 0 ? _val$FrequencyRules$ : "",
|
|
32653
|
+
durationcode: (_val$FrequencyRules$3 = val === null || val === void 0 ? void 0 : (_val$FrequencyRules2 = val.FrequencyRules) === null || _val$FrequencyRules2 === void 0 ? void 0 : (_val$FrequencyRules2$ = _val$FrequencyRules2[0]) === null || _val$FrequencyRules2$ === void 0 ? void 0 : _val$FrequencyRules2$.durationcode) !== null && _val$FrequencyRules$3 !== void 0 ? _val$FrequencyRules$3 : "",
|
|
32654
|
+
doseUOM: {
|
|
32655
|
+
id: val === null || val === void 0 ? void 0 : (_val$FrequencyRules3 = val.FrequencyRules) === null || _val$FrequencyRules3 === void 0 ? void 0 : (_val$FrequencyRules3$ = _val$FrequencyRules3[0]) === null || _val$FrequencyRules3$ === void 0 ? void 0 : (_val$FrequencyRules3$2 = _val$FrequencyRules3$.doseUOM) === null || _val$FrequencyRules3$2 === void 0 ? void 0 : _val$FrequencyRules3$2._key,
|
|
32656
|
+
label: (val === null || val === void 0 ? void 0 : (_val$FrequencyRules4 = val.FrequencyRules) === null || _val$FrequencyRules4 === void 0 ? void 0 : (_val$FrequencyRules4$ = _val$FrequencyRules4[0]) === null || _val$FrequencyRules4$ === void 0 ? void 0 : (_val$FrequencyRules4$2 = _val$FrequencyRules4$.doseUOM) === null || _val$FrequencyRules4$2 === void 0 ? void 0 : _val$FrequencyRules4$2.UOM) && (val === null || val === void 0 ? void 0 : (_val$FrequencyRules5 = val.FrequencyRules) === null || _val$FrequencyRules5 === void 0 ? void 0 : (_val$FrequencyRules5$ = _val$FrequencyRules5[0]) === null || _val$FrequencyRules5$ === void 0 ? void 0 : (_val$FrequencyRules5$2 = _val$FrequencyRules5$.doseUOM) === null || _val$FrequencyRules5$2 === void 0 ? void 0 : _val$FrequencyRules5$2.shortdesc) ? (val === null || val === void 0 ? void 0 : (_val$FrequencyRules6 = val.FrequencyRules) === null || _val$FrequencyRules6 === void 0 ? void 0 : (_val$FrequencyRules6$ = _val$FrequencyRules6[0]) === null || _val$FrequencyRules6$ === void 0 ? void 0 : (_val$FrequencyRules6$2 = _val$FrequencyRules6$.doseUOM) === null || _val$FrequencyRules6$2 === void 0 ? void 0 : _val$FrequencyRules6$2.UOM) + " - " + (val === null || val === void 0 ? void 0 : (_val$FrequencyRules7 = val.FrequencyRules) === null || _val$FrequencyRules7 === void 0 ? void 0 : (_val$FrequencyRules7$ = _val$FrequencyRules7[0]) === null || _val$FrequencyRules7$ === void 0 ? void 0 : (_val$FrequencyRules7$2 = _val$FrequencyRules7$.doseUOM) === null || _val$FrequencyRules7$2 === void 0 ? void 0 : _val$FrequencyRules7$2.shortdesc) : "",
|
|
32657
|
+
value: val === null || val === void 0 ? void 0 : (_val$FrequencyRules8 = val.FrequencyRules) === null || _val$FrequencyRules8 === void 0 ? void 0 : (_val$FrequencyRules8$ = _val$FrequencyRules8[0]) === null || _val$FrequencyRules8$ === void 0 ? void 0 : (_val$FrequencyRules8$2 = _val$FrequencyRules8$.doseUOM) === null || _val$FrequencyRules8$2 === void 0 ? void 0 : _val$FrequencyRules8$2._id
|
|
32658
|
+
},
|
|
32659
|
+
freqCode: {
|
|
32660
|
+
id: val === null || val === void 0 ? void 0 : (_val$FrequencyRules9 = val.FrequencyRules) === null || _val$FrequencyRules9 === void 0 ? void 0 : (_val$FrequencyRules9$ = _val$FrequencyRules9[0]) === null || _val$FrequencyRules9$ === void 0 ? void 0 : (_val$FrequencyRules9$2 = _val$FrequencyRules9$.freqcode) === null || _val$FrequencyRules9$2 === void 0 ? void 0 : _val$FrequencyRules9$2._key,
|
|
32661
|
+
label: (val === null || val === void 0 ? void 0 : (_val$FrequencyRules10 = val.FrequencyRules) === null || _val$FrequencyRules10 === void 0 ? void 0 : (_val$FrequencyRules11 = _val$FrequencyRules10[0]) === null || _val$FrequencyRules11 === void 0 ? void 0 : (_val$FrequencyRules12 = _val$FrequencyRules11.freqcode) === null || _val$FrequencyRules12 === void 0 ? void 0 : _val$FrequencyRules12.freqcode) && (val === null || val === void 0 ? void 0 : (_val$FrequencyRules13 = val.FrequencyRules) === null || _val$FrequencyRules13 === void 0 ? void 0 : (_val$FrequencyRules14 = _val$FrequencyRules13[0]) === null || _val$FrequencyRules14 === void 0 ? void 0 : (_val$FrequencyRules15 = _val$FrequencyRules14.freqcode) === null || _val$FrequencyRules15 === void 0 ? void 0 : _val$FrequencyRules15.shortdesc) ? (val === null || val === void 0 ? void 0 : (_val$FrequencyRules16 = val.FrequencyRules) === null || _val$FrequencyRules16 === void 0 ? void 0 : (_val$FrequencyRules17 = _val$FrequencyRules16[0]) === null || _val$FrequencyRules17 === void 0 ? void 0 : (_val$FrequencyRules18 = _val$FrequencyRules17.freqcode) === null || _val$FrequencyRules18 === void 0 ? void 0 : _val$FrequencyRules18.freqcode) + " - " + (val === null || val === void 0 ? void 0 : (_val$FrequencyRules19 = val.FrequencyRules) === null || _val$FrequencyRules19 === void 0 ? void 0 : (_val$FrequencyRules20 = _val$FrequencyRules19[0]) === null || _val$FrequencyRules20 === void 0 ? void 0 : (_val$FrequencyRules21 = _val$FrequencyRules20.freqcode) === null || _val$FrequencyRules21 === void 0 ? void 0 : _val$FrequencyRules21.shortdesc) : "",
|
|
32662
|
+
value: val === null || val === void 0 ? void 0 : (_val$FrequencyRules22 = val.FrequencyRules) === null || _val$FrequencyRules22 === void 0 ? void 0 : (_val$FrequencyRules23 = _val$FrequencyRules22[0]) === null || _val$FrequencyRules23 === void 0 ? void 0 : (_val$FrequencyRules24 = _val$FrequencyRules23.freqcode) === null || _val$FrequencyRules24 === void 0 ? void 0 : _val$FrequencyRules24._id,
|
|
32663
|
+
freqCode: val === null || val === void 0 ? void 0 : (_val$FrequencyRules25 = val.FrequencyRules) === null || _val$FrequencyRules25 === void 0 ? void 0 : (_val$FrequencyRules26 = _val$FrequencyRules25[0]) === null || _val$FrequencyRules26 === void 0 ? void 0 : (_val$FrequencyRules27 = _val$FrequencyRules26.freqcode) === null || _val$FrequencyRules27 === void 0 ? void 0 : _val$FrequencyRules27.freqcode,
|
|
32664
|
+
FreqDetls: Array.isArray(val === null || val === void 0 ? void 0 : (_val$FrequencyRules28 = val.FrequencyRules) === null || _val$FrequencyRules28 === void 0 ? void 0 : (_val$FrequencyRules29 = _val$FrequencyRules28[0]) === null || _val$FrequencyRules29 === void 0 ? void 0 : (_val$FrequencyRules30 = _val$FrequencyRules29.freqcode) === null || _val$FrequencyRules30 === void 0 ? void 0 : _val$FrequencyRules30.scheduleline) && (val === null || val === void 0 ? void 0 : (_val$FrequencyRules31 = val.FrequencyRules) === null || _val$FrequencyRules31 === void 0 ? void 0 : (_val$FrequencyRules32 = _val$FrequencyRules31[0]) === null || _val$FrequencyRules32 === void 0 ? void 0 : (_val$FrequencyRules33 = _val$FrequencyRules32.freqcode) === null || _val$FrequencyRules33 === void 0 ? void 0 : _val$FrequencyRules33.scheduleline.length) > 0 ? constructFreqDetls((_val$FrequencyRules$4 = val === null || val === void 0 ? void 0 : (_val$FrequencyRules34 = val.FrequencyRules) === null || _val$FrequencyRules34 === void 0 ? void 0 : (_val$FrequencyRules35 = _val$FrequencyRules34[0]) === null || _val$FrequencyRules35 === void 0 ? void 0 : (_val$FrequencyRules36 = _val$FrequencyRules35.freqcode) === null || _val$FrequencyRules36 === void 0 ? void 0 : _val$FrequencyRules36.scheduleline) !== null && _val$FrequencyRules$4 !== void 0 ? _val$FrequencyRules$4 : []) : []
|
|
32665
|
+
},
|
|
32666
|
+
durationCode: {
|
|
32667
|
+
id: val === null || val === void 0 ? void 0 : (_val$FrequencyRules37 = val.FrequencyRules) === null || _val$FrequencyRules37 === void 0 ? void 0 : (_val$FrequencyRules38 = _val$FrequencyRules37[0]) === null || _val$FrequencyRules38 === void 0 ? void 0 : (_val$FrequencyRules39 = _val$FrequencyRules38.durnUOM) === null || _val$FrequencyRules39 === void 0 ? void 0 : _val$FrequencyRules39._key,
|
|
32668
|
+
label: (_val$FrequencyRules$5 = val === null || val === void 0 ? void 0 : (_val$FrequencyRules40 = val.FrequencyRules) === null || _val$FrequencyRules40 === void 0 ? void 0 : (_val$FrequencyRules41 = _val$FrequencyRules40[0]) === null || _val$FrequencyRules41 === void 0 ? void 0 : (_val$FrequencyRules42 = _val$FrequencyRules41.durnUOM) === null || _val$FrequencyRules42 === void 0 ? void 0 : _val$FrequencyRules42.shortdesc) !== null && _val$FrequencyRules$5 !== void 0 ? _val$FrequencyRules$5 : "",
|
|
32669
|
+
value: val === null || val === void 0 ? void 0 : (_val$FrequencyRules43 = val.FrequencyRules) === null || _val$FrequencyRules43 === void 0 ? void 0 : (_val$FrequencyRules44 = _val$FrequencyRules43[0]) === null || _val$FrequencyRules44 === void 0 ? void 0 : (_val$FrequencyRules45 = _val$FrequencyRules44.durnUOM) === null || _val$FrequencyRules45 === void 0 ? void 0 : _val$FrequencyRules45._id
|
|
32670
|
+
} // formValue
|
|
32363
32671
|
|
|
32364
32672
|
};
|
|
32365
|
-
arr.push(_objectSpread2(_objectSpread2({}, json), {}, {
|
|
32366
|
-
name: val === null || val === void 0 ? void 0 : val.ShortDesc,
|
|
32367
|
-
label: (val === null || val === void 0 ? void 0 : val.DrugCode) + " - " + (val === null || val === void 0 ? void 0 : val.ShortDesc) + " - " + (val === null || val === void 0 ? void 0 : val.LongDesc) // label: val?.ShortDesc
|
|
32368
|
-
// label: `${val.ShortDesc ?? ""} - ${json.StrengthValues} ${json.StrengthUOM}`,
|
|
32369
32673
|
|
|
32370
|
-
|
|
32674
|
+
if ((val === null || val === void 0 ? void 0 : val.ShortDesc) === (val === null || val === void 0 ? void 0 : val.LongDesc)) {
|
|
32675
|
+
arr.push(_objectSpread2(_objectSpread2({}, json), {}, {
|
|
32676
|
+
name: val === null || val === void 0 ? void 0 : val.ShortDesc,
|
|
32677
|
+
label: (val === null || val === void 0 ? void 0 : val.DrugCode) + " - " + (val === null || val === void 0 ? void 0 : val.ShortDesc),
|
|
32678
|
+
nameLabel: val === null || val === void 0 ? void 0 : val.ShortDesc // label: val?.ShortDesc
|
|
32679
|
+
// label: `${val.ShortDesc ?? ""} - ${json.StrengthValues} ${json.StrengthUOM}`,
|
|
32680
|
+
|
|
32681
|
+
}));
|
|
32682
|
+
} else {
|
|
32683
|
+
arr.push(_objectSpread2(_objectSpread2({}, json), {}, {
|
|
32684
|
+
name: val === null || val === void 0 ? void 0 : val.ShortDesc,
|
|
32685
|
+
label: (val === null || val === void 0 ? void 0 : val.DrugCode) + " - " + (val === null || val === void 0 ? void 0 : val.ShortDesc) + " - " + (val === null || val === void 0 ? void 0 : val.LongDesc),
|
|
32686
|
+
nameLabel: val === null || val === void 0 ? void 0 : val.ShortDesc // label: val?.ShortDesc
|
|
32687
|
+
// label: `${val.ShortDesc ?? ""} - ${json.StrengthValues} ${json.StrengthUOM}`,
|
|
32688
|
+
|
|
32689
|
+
}));
|
|
32690
|
+
}
|
|
32371
32691
|
});
|
|
32372
32692
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
32373
32693
|
data: arr
|
|
@@ -32463,12 +32783,10 @@ var STRENGTHUOM_MASTER = createAsyncThunk("MedicationMastersSlice/strengthUom_ma
|
|
|
32463
32783
|
data = _context4.sent;
|
|
32464
32784
|
arr = [];
|
|
32465
32785
|
data.result.map(function (val) {
|
|
32466
|
-
var _val$UOM;
|
|
32467
|
-
|
|
32468
32786
|
arr.push({
|
|
32469
|
-
value: val._id,
|
|
32470
|
-
label: (
|
|
32471
|
-
id: val.id
|
|
32787
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
32788
|
+
label: (val === null || val === void 0 ? void 0 : val.UOM) && (val === null || val === void 0 ? void 0 : val.shortdesc) ? (val === null || val === void 0 ? void 0 : val.UOM) + " - " + (val === null || val === void 0 ? void 0 : val.shortdesc) : "",
|
|
32789
|
+
id: val === null || val === void 0 ? void 0 : val.id
|
|
32472
32790
|
});
|
|
32473
32791
|
});
|
|
32474
32792
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -32840,9 +33158,37 @@ var DOSAGEFORM_MASTER = createAsyncThunk("MedicationMastersSlice/DosageForm_mast
|
|
|
32840
33158
|
}
|
|
32841
33159
|
}, _callee11, null, [[2, 11]]);
|
|
32842
33160
|
})));
|
|
33161
|
+
|
|
33162
|
+
var constructFreqDetls = function constructFreqDetls(data) {
|
|
33163
|
+
debugger;
|
|
33164
|
+
var arr = [];
|
|
33165
|
+
|
|
33166
|
+
if (Array.isArray(data) && (data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
33167
|
+
data.map(function (v) {
|
|
33168
|
+
var _ref23, _ref24, _v$basefreq$val, _v$basefreq, _v$basefreq2, _v$day, _v$day2, _v$day3, _v$day4, _v$adminDosageInstruc;
|
|
33169
|
+
|
|
33170
|
+
arr.push({
|
|
33171
|
+
remarks: (v === null || v === void 0 ? void 0 : v.remarks) || "",
|
|
33172
|
+
dose: (v === null || v === void 0 ? void 0 : v.dose) || "",
|
|
33173
|
+
time: (v === null || v === void 0 ? void 0 : v.time) || "",
|
|
33174
|
+
baseFreq: (_ref23 = (_ref24 = (_v$basefreq$val = v === null || v === void 0 ? void 0 : (_v$basefreq = v.basefreq) === null || _v$basefreq === void 0 ? void 0 : _v$basefreq.val) !== null && _v$basefreq$val !== void 0 ? _v$basefreq$val : v === null || v === void 0 ? void 0 : (_v$basefreq2 = v.basefreq) === null || _v$basefreq2 === void 0 ? void 0 : _v$basefreq2.freqcode) !== null && _ref24 !== void 0 ? _ref24 : v === null || v === void 0 ? void 0 : v.baseFreq) !== null && _ref23 !== void 0 ? _ref23 : "",
|
|
33175
|
+
weekDay: (v === null || v === void 0 ? void 0 : v.weekDay) || (v === null || v === void 0 ? void 0 : v.weekday) || "",
|
|
33176
|
+
day: (v === null || v === void 0 ? void 0 : (_v$day = v.day) === null || _v$day === void 0 ? void 0 : _v$day.code) ? Number(v === null || v === void 0 ? void 0 : (_v$day2 = v.day) === null || _v$day2 === void 0 ? void 0 : _v$day2.code) ? JSON.parse(v === null || v === void 0 ? void 0 : (_v$day3 = v.day) === null || _v$day3 === void 0 ? void 0 : _v$day3.code) : v === null || v === void 0 ? void 0 : (_v$day4 = v.day) === null || _v$day4 === void 0 ? void 0 : _v$day4.code : 0,
|
|
33177
|
+
fromDay: (v === null || v === void 0 ? void 0 : v.fromDay) ? Number(v === null || v === void 0 ? void 0 : v.fromDay) ? JSON.parse(v === null || v === void 0 ? void 0 : v.fromDay) : v === null || v === void 0 ? void 0 : v.fromDay : 0,
|
|
33178
|
+
toDay: (v === null || v === void 0 ? void 0 : v.toDay) ? Number(v === null || v === void 0 ? void 0 : v.toDay) ? JSON.parse(v === null || v === void 0 ? void 0 : v.toDay) : v === null || v === void 0 ? void 0 : v.toDay : 0,
|
|
33179
|
+
fromDate: (v === null || v === void 0 ? void 0 : v.fromDate) ? Number(v === null || v === void 0 ? void 0 : v.fromDate) ? JSON.parse(v === null || v === void 0 ? void 0 : v.fromDate) : v === null || v === void 0 ? void 0 : v.fromDate : 0,
|
|
33180
|
+
toDate: (v === null || v === void 0 ? void 0 : v.toDate) ? Number(v === null || v === void 0 ? void 0 : v.toDate) ? JSON.parse(v === null || v === void 0 ? void 0 : v.toDate) : v === null || v === void 0 ? void 0 : v.toDate : 0,
|
|
33181
|
+
adminDosageInstruction: (_v$adminDosageInstruc = v === null || v === void 0 ? void 0 : v.adminDosageInstruction) !== null && _v$adminDosageInstruc !== void 0 ? _v$adminDosageInstruc : ""
|
|
33182
|
+
});
|
|
33183
|
+
});
|
|
33184
|
+
}
|
|
33185
|
+
|
|
33186
|
+
return arr;
|
|
33187
|
+
};
|
|
33188
|
+
|
|
32843
33189
|
var FREQUENCYMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/FrequencyMaster_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
|
32844
33190
|
var payload,
|
|
32845
|
-
|
|
33191
|
+
_ref26,
|
|
32846
33192
|
rejectWithValue,
|
|
32847
33193
|
data,
|
|
32848
33194
|
arr,
|
|
@@ -32853,7 +33199,7 @@ var FREQUENCYMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/FrequencyM
|
|
|
32853
33199
|
switch (_context12.prev = _context12.next) {
|
|
32854
33200
|
case 0:
|
|
32855
33201
|
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
32856
|
-
|
|
33202
|
+
_ref26 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
|
|
32857
33203
|
_context12.prev = 2;
|
|
32858
33204
|
_context12.next = 5;
|
|
32859
33205
|
return fetchData$3({
|
|
@@ -32864,12 +33210,14 @@ var FREQUENCYMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/FrequencyM
|
|
|
32864
33210
|
data = _context12.sent;
|
|
32865
33211
|
arr = [];
|
|
32866
33212
|
data.result.map(function (val) {
|
|
32867
|
-
var _val$
|
|
33213
|
+
var _val$scheduleline;
|
|
32868
33214
|
|
|
32869
33215
|
arr.push({
|
|
32870
|
-
value: val._id,
|
|
32871
|
-
label: (
|
|
32872
|
-
id: val.id
|
|
33216
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
33217
|
+
label: (val === null || val === void 0 ? void 0 : val.freqcode) && (val === null || val === void 0 ? void 0 : val.shortdesc) ? (val === null || val === void 0 ? void 0 : val.freqcode) + " - " + (val === null || val === void 0 ? void 0 : val.shortdesc) : "",
|
|
33218
|
+
id: val === null || val === void 0 ? void 0 : val.id,
|
|
33219
|
+
freqCode: val === null || val === void 0 ? void 0 : val.freqcode,
|
|
33220
|
+
FreqDetls: Array.isArray(val === null || val === void 0 ? void 0 : val.scheduleline) && (val === null || val === void 0 ? void 0 : val.scheduleline.length) > 0 ? constructFreqDetls((_val$scheduleline = val === null || val === void 0 ? void 0 : val.scheduleline) !== null && _val$scheduleline !== void 0 ? _val$scheduleline : []) : []
|
|
32873
33221
|
});
|
|
32874
33222
|
});
|
|
32875
33223
|
return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -32892,7 +33240,7 @@ var FREQUENCYMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/FrequencyM
|
|
|
32892
33240
|
})));
|
|
32893
33241
|
var DURATIONTYPE_MASTER = createAsyncThunk("MedicationMastersSlice/DurationType_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
|
|
32894
33242
|
var payload,
|
|
32895
|
-
|
|
33243
|
+
_ref28,
|
|
32896
33244
|
rejectWithValue,
|
|
32897
33245
|
data,
|
|
32898
33246
|
arr,
|
|
@@ -32903,7 +33251,7 @@ var DURATIONTYPE_MASTER = createAsyncThunk("MedicationMastersSlice/DurationType_
|
|
|
32903
33251
|
switch (_context13.prev = _context13.next) {
|
|
32904
33252
|
case 0:
|
|
32905
33253
|
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
|
32906
|
-
|
|
33254
|
+
_ref28 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
|
|
32907
33255
|
_context13.prev = 2;
|
|
32908
33256
|
_context13.next = 5;
|
|
32909
33257
|
return fetchData$3({
|
|
@@ -32914,12 +33262,12 @@ var DURATIONTYPE_MASTER = createAsyncThunk("MedicationMastersSlice/DurationType_
|
|
|
32914
33262
|
data = _context13.sent;
|
|
32915
33263
|
arr = [];
|
|
32916
33264
|
data.result.map(function (val) {
|
|
32917
|
-
var _val$
|
|
33265
|
+
var _val$shortdesc7, _val$shortdesc$, _val$shortdesc8;
|
|
32918
33266
|
|
|
32919
33267
|
arr.push({
|
|
32920
33268
|
value: val._id,
|
|
32921
|
-
label: (_val$
|
|
32922
|
-
type: (_val$shortdesc$ = (_val$
|
|
33269
|
+
label: (_val$shortdesc7 = val.shortdesc) !== null && _val$shortdesc7 !== void 0 ? _val$shortdesc7 : "",
|
|
33270
|
+
type: (_val$shortdesc$ = (_val$shortdesc8 = val.shortdesc) === null || _val$shortdesc8 === void 0 ? void 0 : _val$shortdesc8[0]) !== null && _val$shortdesc$ !== void 0 ? _val$shortdesc$ : "",
|
|
32923
33271
|
id: val.id
|
|
32924
33272
|
});
|
|
32925
33273
|
});
|
|
@@ -32943,7 +33291,7 @@ var DURATIONTYPE_MASTER = createAsyncThunk("MedicationMastersSlice/DurationType_
|
|
|
32943
33291
|
})));
|
|
32944
33292
|
var PRIORITY_MASTER = createAsyncThunk("MedicationMastersSlice/Priority_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
|
|
32945
33293
|
var payload,
|
|
32946
|
-
|
|
33294
|
+
_ref30,
|
|
32947
33295
|
rejectWithValue,
|
|
32948
33296
|
data,
|
|
32949
33297
|
arr,
|
|
@@ -32954,7 +33302,7 @@ var PRIORITY_MASTER = createAsyncThunk("MedicationMastersSlice/Priority_masters"
|
|
|
32954
33302
|
switch (_context14.prev = _context14.next) {
|
|
32955
33303
|
case 0:
|
|
32956
33304
|
payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
|
|
32957
|
-
|
|
33305
|
+
_ref30 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
32958
33306
|
_context14.prev = 2;
|
|
32959
33307
|
_context14.next = 5;
|
|
32960
33308
|
return fetchData$3({
|
|
@@ -32994,7 +33342,7 @@ var PRIORITY_MASTER = createAsyncThunk("MedicationMastersSlice/Priority_masters"
|
|
|
32994
33342
|
})));
|
|
32995
33343
|
var DRUGCATEGORY_MASTER = createAsyncThunk("MedicationMastersSlice/DrugCategory_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15() {
|
|
32996
33344
|
var payload,
|
|
32997
|
-
|
|
33345
|
+
_ref32,
|
|
32998
33346
|
rejectWithValue,
|
|
32999
33347
|
data,
|
|
33000
33348
|
arr,
|
|
@@ -33005,7 +33353,7 @@ var DRUGCATEGORY_MASTER = createAsyncThunk("MedicationMastersSlice/DrugCategory_
|
|
|
33005
33353
|
switch (_context15.prev = _context15.next) {
|
|
33006
33354
|
case 0:
|
|
33007
33355
|
payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
|
|
33008
|
-
|
|
33356
|
+
_ref32 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
33009
33357
|
_context15.prev = 2;
|
|
33010
33358
|
_context15.next = 5;
|
|
33011
33359
|
return fetchData$3({
|
|
@@ -33016,11 +33364,11 @@ var DRUGCATEGORY_MASTER = createAsyncThunk("MedicationMastersSlice/DrugCategory_
|
|
|
33016
33364
|
data = _context15.sent;
|
|
33017
33365
|
arr = [];
|
|
33018
33366
|
data.result.map(function (val) {
|
|
33019
|
-
var _val$
|
|
33367
|
+
var _val$shortdesc9;
|
|
33020
33368
|
|
|
33021
33369
|
arr.push({
|
|
33022
33370
|
value: val._id,
|
|
33023
|
-
label: (_val$
|
|
33371
|
+
label: (_val$shortdesc9 = val.shortdesc) !== null && _val$shortdesc9 !== void 0 ? _val$shortdesc9 : "",
|
|
33024
33372
|
id: val.id
|
|
33025
33373
|
});
|
|
33026
33374
|
});
|
|
@@ -33044,7 +33392,7 @@ var DRUGCATEGORY_MASTER = createAsyncThunk("MedicationMastersSlice/DrugCategory_
|
|
|
33044
33392
|
})));
|
|
33045
33393
|
var ORDERNATURE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderNature_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
|
|
33046
33394
|
var payload,
|
|
33047
|
-
|
|
33395
|
+
_ref34,
|
|
33048
33396
|
rejectWithValue,
|
|
33049
33397
|
data,
|
|
33050
33398
|
arr,
|
|
@@ -33055,7 +33403,7 @@ var ORDERNATURE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderNature_ma
|
|
|
33055
33403
|
switch (_context16.prev = _context16.next) {
|
|
33056
33404
|
case 0:
|
|
33057
33405
|
payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
|
|
33058
|
-
|
|
33406
|
+
_ref34 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref34.rejectWithValue;
|
|
33059
33407
|
_context16.prev = 2;
|
|
33060
33408
|
_context16.next = 5;
|
|
33061
33409
|
return fetchData$3({
|
|
@@ -33094,7 +33442,7 @@ var ORDERNATURE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderNature_ma
|
|
|
33094
33442
|
})));
|
|
33095
33443
|
var ORDERMODE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderMode_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {
|
|
33096
33444
|
var payload,
|
|
33097
|
-
|
|
33445
|
+
_ref36,
|
|
33098
33446
|
rejectWithValue,
|
|
33099
33447
|
data,
|
|
33100
33448
|
arr,
|
|
@@ -33105,7 +33453,7 @@ var ORDERMODE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderMode_master
|
|
|
33105
33453
|
switch (_context17.prev = _context17.next) {
|
|
33106
33454
|
case 0:
|
|
33107
33455
|
payload = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
|
|
33108
|
-
|
|
33456
|
+
_ref36 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref36.rejectWithValue;
|
|
33109
33457
|
_context17.prev = 2;
|
|
33110
33458
|
_context17.next = 5;
|
|
33111
33459
|
return fetchData$3({
|
|
@@ -33144,7 +33492,7 @@ var ORDERMODE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderMode_master
|
|
|
33144
33492
|
})));
|
|
33145
33493
|
var DRUGSTOREDISPLOC_MASTER = createAsyncThunk("MedicationMastersSlice/DrugStoreDispLoc_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
|
33146
33494
|
var payload,
|
|
33147
|
-
|
|
33495
|
+
_ref38,
|
|
33148
33496
|
rejectWithValue,
|
|
33149
33497
|
data,
|
|
33150
33498
|
arr,
|
|
@@ -33155,7 +33503,7 @@ var DRUGSTOREDISPLOC_MASTER = createAsyncThunk("MedicationMastersSlice/DrugStore
|
|
|
33155
33503
|
switch (_context18.prev = _context18.next) {
|
|
33156
33504
|
case 0:
|
|
33157
33505
|
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
33158
|
-
|
|
33506
|
+
_ref38 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref38.rejectWithValue;
|
|
33159
33507
|
_context18.prev = 2;
|
|
33160
33508
|
_context18.next = 5;
|
|
33161
33509
|
return fetchData$3({
|
|
@@ -33194,7 +33542,7 @@ var DRUGSTOREDISPLOC_MASTER = createAsyncThunk("MedicationMastersSlice/DrugStore
|
|
|
33194
33542
|
})));
|
|
33195
33543
|
var DIAGNOSISAGAINSTENCOUNTER_MASTER = createAsyncThunk("MedicationMastersSlice/DiagnosisAgainstEncounter_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
|
|
33196
33544
|
var payload,
|
|
33197
|
-
|
|
33545
|
+
_ref40,
|
|
33198
33546
|
rejectWithValue,
|
|
33199
33547
|
data,
|
|
33200
33548
|
arr,
|
|
@@ -33205,7 +33553,7 @@ var DIAGNOSISAGAINSTENCOUNTER_MASTER = createAsyncThunk("MedicationMastersSlice/
|
|
|
33205
33553
|
switch (_context19.prev = _context19.next) {
|
|
33206
33554
|
case 0:
|
|
33207
33555
|
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
33208
|
-
|
|
33556
|
+
_ref40 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref40.rejectWithValue;
|
|
33209
33557
|
_context19.prev = 2;
|
|
33210
33558
|
_context19.next = 5;
|
|
33211
33559
|
return fetchData$3({
|
|
@@ -33244,7 +33592,7 @@ var DIAGNOSISAGAINSTENCOUNTER_MASTER = createAsyncThunk("MedicationMastersSlice/
|
|
|
33244
33592
|
})));
|
|
33245
33593
|
var REASONCODE_MASTER = createAsyncThunk("MedicationMastersSlice/Reasoncode_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20() {
|
|
33246
33594
|
var payload,
|
|
33247
|
-
|
|
33595
|
+
_ref42,
|
|
33248
33596
|
rejectWithValue,
|
|
33249
33597
|
data,
|
|
33250
33598
|
arr,
|
|
@@ -33255,7 +33603,7 @@ var REASONCODE_MASTER = createAsyncThunk("MedicationMastersSlice/Reasoncode_mast
|
|
|
33255
33603
|
switch (_context20.prev = _context20.next) {
|
|
33256
33604
|
case 0:
|
|
33257
33605
|
payload = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};
|
|
33258
|
-
|
|
33606
|
+
_ref42 = _args20.length > 1 ? _args20[1] : undefined, rejectWithValue = _ref42.rejectWithValue;
|
|
33259
33607
|
_context20.prev = 2;
|
|
33260
33608
|
_context20.next = 5;
|
|
33261
33609
|
return fetchData$3({
|
|
@@ -33294,7 +33642,7 @@ var REASONCODE_MASTER = createAsyncThunk("MedicationMastersSlice/Reasoncode_mast
|
|
|
33294
33642
|
})));
|
|
33295
33643
|
var ORGANIZATION_MASTER = createAsyncThunk("MedicationMastersSlice/Organization_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee21() {
|
|
33296
33644
|
var payload,
|
|
33297
|
-
|
|
33645
|
+
_ref44,
|
|
33298
33646
|
rejectWithValue,
|
|
33299
33647
|
data,
|
|
33300
33648
|
arr,
|
|
@@ -33305,7 +33653,7 @@ var ORGANIZATION_MASTER = createAsyncThunk("MedicationMastersSlice/Organization_
|
|
|
33305
33653
|
switch (_context21.prev = _context21.next) {
|
|
33306
33654
|
case 0:
|
|
33307
33655
|
payload = _args21.length > 0 && _args21[0] !== undefined ? _args21[0] : {};
|
|
33308
|
-
|
|
33656
|
+
_ref44 = _args21.length > 1 ? _args21[1] : undefined, rejectWithValue = _ref44.rejectWithValue;
|
|
33309
33657
|
_context21.prev = 2;
|
|
33310
33658
|
_context21.next = 5;
|
|
33311
33659
|
return fetchData$3({
|
|
@@ -33344,7 +33692,7 @@ var ORGANIZATION_MASTER = createAsyncThunk("MedicationMastersSlice/Organization_
|
|
|
33344
33692
|
})));
|
|
33345
33693
|
var PATIENT_INSTRUCTIONS_MASTER = createAsyncThunk("MedicationMastersSlice/Patient_Instruction", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee22() {
|
|
33346
33694
|
var payload,
|
|
33347
|
-
|
|
33695
|
+
_ref46,
|
|
33348
33696
|
rejectWithValue,
|
|
33349
33697
|
data,
|
|
33350
33698
|
arr,
|
|
@@ -33355,7 +33703,7 @@ var PATIENT_INSTRUCTIONS_MASTER = createAsyncThunk("MedicationMastersSlice/Patie
|
|
|
33355
33703
|
switch (_context22.prev = _context22.next) {
|
|
33356
33704
|
case 0:
|
|
33357
33705
|
payload = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};
|
|
33358
|
-
|
|
33706
|
+
_ref46 = _args22.length > 1 ? _args22[1] : undefined, rejectWithValue = _ref46.rejectWithValue;
|
|
33359
33707
|
_context22.prev = 2;
|
|
33360
33708
|
_context22.next = 5;
|
|
33361
33709
|
return fetchData$3({
|
|
@@ -33395,7 +33743,7 @@ var PATIENT_INSTRUCTIONS_MASTER = createAsyncThunk("MedicationMastersSlice/Patie
|
|
|
33395
33743
|
})));
|
|
33396
33744
|
var STATUS_MASTER = createAsyncThunk("MedicationMastersSlice/status_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee23() {
|
|
33397
33745
|
var payload,
|
|
33398
|
-
|
|
33746
|
+
_ref48,
|
|
33399
33747
|
rejectWithValue,
|
|
33400
33748
|
data,
|
|
33401
33749
|
arr,
|
|
@@ -33406,7 +33754,7 @@ var STATUS_MASTER = createAsyncThunk("MedicationMastersSlice/status_masters", /*
|
|
|
33406
33754
|
switch (_context23.prev = _context23.next) {
|
|
33407
33755
|
case 0:
|
|
33408
33756
|
payload = _args23.length > 0 && _args23[0] !== undefined ? _args23[0] : {};
|
|
33409
|
-
|
|
33757
|
+
_ref48 = _args23.length > 1 ? _args23[1] : undefined, rejectWithValue = _ref48.rejectWithValue;
|
|
33410
33758
|
_context23.prev = 2;
|
|
33411
33759
|
_context23.next = 5;
|
|
33412
33760
|
return fetchData$3({
|
|
@@ -33446,7 +33794,7 @@ var STATUS_MASTER = createAsyncThunk("MedicationMastersSlice/status_masters", /*
|
|
|
33446
33794
|
})));
|
|
33447
33795
|
var PRACTITIONERROLE_MASTER = createAsyncThunk("MedicationMastersSlice/PractitionerRole_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee24() {
|
|
33448
33796
|
var payload,
|
|
33449
|
-
|
|
33797
|
+
_ref50,
|
|
33450
33798
|
rejectWithValue,
|
|
33451
33799
|
data,
|
|
33452
33800
|
arr,
|
|
@@ -33457,7 +33805,7 @@ var PRACTITIONERROLE_MASTER = createAsyncThunk("MedicationMastersSlice/Practitio
|
|
|
33457
33805
|
switch (_context24.prev = _context24.next) {
|
|
33458
33806
|
case 0:
|
|
33459
33807
|
payload = _args24.length > 0 && _args24[0] !== undefined ? _args24[0] : {};
|
|
33460
|
-
|
|
33808
|
+
_ref50 = _args24.length > 1 ? _args24[1] : undefined, rejectWithValue = _ref50.rejectWithValue;
|
|
33461
33809
|
_context24.prev = 2;
|
|
33462
33810
|
_context24.next = 5;
|
|
33463
33811
|
return fetchData$3({
|
|
@@ -33496,7 +33844,7 @@ var PRACTITIONERROLE_MASTER = createAsyncThunk("MedicationMastersSlice/Practitio
|
|
|
33496
33844
|
})));
|
|
33497
33845
|
var PRACTITIONER_MASTER = createAsyncThunk("MedicationMastersSlice/Practitioner_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25() {
|
|
33498
33846
|
var payload,
|
|
33499
|
-
|
|
33847
|
+
_ref52,
|
|
33500
33848
|
rejectWithValue,
|
|
33501
33849
|
data,
|
|
33502
33850
|
arr,
|
|
@@ -33507,7 +33855,7 @@ var PRACTITIONER_MASTER = createAsyncThunk("MedicationMastersSlice/Practitioner_
|
|
|
33507
33855
|
switch (_context25.prev = _context25.next) {
|
|
33508
33856
|
case 0:
|
|
33509
33857
|
payload = _args25.length > 0 && _args25[0] !== undefined ? _args25[0] : {};
|
|
33510
|
-
|
|
33858
|
+
_ref52 = _args25.length > 1 ? _args25[1] : undefined, rejectWithValue = _ref52.rejectWithValue;
|
|
33511
33859
|
_context25.prev = 2;
|
|
33512
33860
|
_context25.next = 5;
|
|
33513
33861
|
return fetchData$3({
|
|
@@ -33545,7 +33893,7 @@ var PRACTITIONER_MASTER = createAsyncThunk("MedicationMastersSlice/Practitioner_
|
|
|
33545
33893
|
})));
|
|
33546
33894
|
var INFUSIONRATEUOM_MASTER = createAsyncThunk("MedicationMastersSlice/InfusionRateUoM_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee26() {
|
|
33547
33895
|
var payload,
|
|
33548
|
-
|
|
33896
|
+
_ref54,
|
|
33549
33897
|
rejectWithValue,
|
|
33550
33898
|
data,
|
|
33551
33899
|
arr,
|
|
@@ -33556,7 +33904,7 @@ var INFUSIONRATEUOM_MASTER = createAsyncThunk("MedicationMastersSlice/InfusionRa
|
|
|
33556
33904
|
switch (_context26.prev = _context26.next) {
|
|
33557
33905
|
case 0:
|
|
33558
33906
|
payload = _args26.length > 0 && _args26[0] !== undefined ? _args26[0] : {};
|
|
33559
|
-
|
|
33907
|
+
_ref54 = _args26.length > 1 ? _args26[1] : undefined, rejectWithValue = _ref54.rejectWithValue;
|
|
33560
33908
|
_context26.prev = 2;
|
|
33561
33909
|
_context26.next = 5;
|
|
33562
33910
|
return fetchData$3({
|
|
@@ -33567,11 +33915,11 @@ var INFUSIONRATEUOM_MASTER = createAsyncThunk("MedicationMastersSlice/InfusionRa
|
|
|
33567
33915
|
data = _context26.sent;
|
|
33568
33916
|
arr = [];
|
|
33569
33917
|
data.result.map(function (val) {
|
|
33570
|
-
var _val$
|
|
33918
|
+
var _val$shortdesc10;
|
|
33571
33919
|
|
|
33572
33920
|
arr.push({
|
|
33573
33921
|
value: val._id,
|
|
33574
|
-
label: (_val$
|
|
33922
|
+
label: (_val$shortdesc10 = val.shortdesc) !== null && _val$shortdesc10 !== void 0 ? _val$shortdesc10 : "",
|
|
33575
33923
|
id: val.id
|
|
33576
33924
|
});
|
|
33577
33925
|
});
|
|
@@ -33595,7 +33943,7 @@ var INFUSIONRATEUOM_MASTER = createAsyncThunk("MedicationMastersSlice/InfusionRa
|
|
|
33595
33943
|
})));
|
|
33596
33944
|
var TOTALVOLUMEUOM_MASTER = createAsyncThunk("MedicationMastersSlice/TotalVolumeUoM_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee27() {
|
|
33597
33945
|
var payload,
|
|
33598
|
-
|
|
33946
|
+
_ref56,
|
|
33599
33947
|
rejectWithValue,
|
|
33600
33948
|
data,
|
|
33601
33949
|
arr,
|
|
@@ -33606,7 +33954,7 @@ var TOTALVOLUMEUOM_MASTER = createAsyncThunk("MedicationMastersSlice/TotalVolume
|
|
|
33606
33954
|
switch (_context27.prev = _context27.next) {
|
|
33607
33955
|
case 0:
|
|
33608
33956
|
payload = _args27.length > 0 && _args27[0] !== undefined ? _args27[0] : {};
|
|
33609
|
-
|
|
33957
|
+
_ref56 = _args27.length > 1 ? _args27[1] : undefined, rejectWithValue = _ref56.rejectWithValue;
|
|
33610
33958
|
_context27.prev = 2;
|
|
33611
33959
|
_context27.next = 5;
|
|
33612
33960
|
return fetchData$3({
|
|
@@ -33617,11 +33965,11 @@ var TOTALVOLUMEUOM_MASTER = createAsyncThunk("MedicationMastersSlice/TotalVolume
|
|
|
33617
33965
|
data = _context27.sent;
|
|
33618
33966
|
arr = [];
|
|
33619
33967
|
data.result.map(function (val) {
|
|
33620
|
-
var _val$
|
|
33968
|
+
var _val$shortdesc11;
|
|
33621
33969
|
|
|
33622
33970
|
arr.push({
|
|
33623
33971
|
value: val._id,
|
|
33624
|
-
label: (_val$
|
|
33972
|
+
label: (_val$shortdesc11 = val.shortdesc) !== null && _val$shortdesc11 !== void 0 ? _val$shortdesc11 : "",
|
|
33625
33973
|
id: val.id
|
|
33626
33974
|
});
|
|
33627
33975
|
});
|
|
@@ -33645,7 +33993,7 @@ var TOTALVOLUMEUOM_MASTER = createAsyncThunk("MedicationMastersSlice/TotalVolume
|
|
|
33645
33993
|
})));
|
|
33646
33994
|
var INDICATION_REASON_CODE_MASTER = createAsyncThunk("MedicationMastersSlice/Indication_Reason_Code_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee28() {
|
|
33647
33995
|
var payload,
|
|
33648
|
-
|
|
33996
|
+
_ref58,
|
|
33649
33997
|
rejectWithValue,
|
|
33650
33998
|
data,
|
|
33651
33999
|
arr,
|
|
@@ -33656,7 +34004,7 @@ var INDICATION_REASON_CODE_MASTER = createAsyncThunk("MedicationMastersSlice/Ind
|
|
|
33656
34004
|
switch (_context28.prev = _context28.next) {
|
|
33657
34005
|
case 0:
|
|
33658
34006
|
payload = _args28.length > 0 && _args28[0] !== undefined ? _args28[0] : {};
|
|
33659
|
-
|
|
34007
|
+
_ref58 = _args28.length > 1 ? _args28[1] : undefined, rejectWithValue = _ref58.rejectWithValue;
|
|
33660
34008
|
_context28.prev = 2;
|
|
33661
34009
|
_context28.next = 5;
|
|
33662
34010
|
return fetchData$3({
|
|
@@ -33695,7 +34043,7 @@ var INDICATION_REASON_CODE_MASTER = createAsyncThunk("MedicationMastersSlice/Ind
|
|
|
33695
34043
|
})));
|
|
33696
34044
|
var BASESCHEDULE_MASTER = createAsyncThunk("MedicationMastersSlice/BaseSchedule_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee29() {
|
|
33697
34045
|
var payload,
|
|
33698
|
-
|
|
34046
|
+
_ref60,
|
|
33699
34047
|
rejectWithValue,
|
|
33700
34048
|
data,
|
|
33701
34049
|
arr,
|
|
@@ -33706,7 +34054,7 @@ var BASESCHEDULE_MASTER = createAsyncThunk("MedicationMastersSlice/BaseSchedule_
|
|
|
33706
34054
|
switch (_context29.prev = _context29.next) {
|
|
33707
34055
|
case 0:
|
|
33708
34056
|
payload = _args29.length > 0 && _args29[0] !== undefined ? _args29[0] : {};
|
|
33709
|
-
|
|
34057
|
+
_ref60 = _args29.length > 1 ? _args29[1] : undefined, rejectWithValue = _ref60.rejectWithValue;
|
|
33710
34058
|
_context29.prev = 2;
|
|
33711
34059
|
_context29.next = 5;
|
|
33712
34060
|
return fetchData$3({
|
|
@@ -33717,11 +34065,11 @@ var BASESCHEDULE_MASTER = createAsyncThunk("MedicationMastersSlice/BaseSchedule_
|
|
|
33717
34065
|
data = _context29.sent;
|
|
33718
34066
|
arr = [];
|
|
33719
34067
|
data.result.map(function (val) {
|
|
33720
|
-
var _val$
|
|
34068
|
+
var _val$shortdesc12;
|
|
33721
34069
|
|
|
33722
34070
|
arr.push({
|
|
33723
34071
|
value: val._id,
|
|
33724
|
-
label: (_val$
|
|
34072
|
+
label: (_val$shortdesc12 = val.shortdesc) !== null && _val$shortdesc12 !== void 0 ? _val$shortdesc12 : "",
|
|
33725
34073
|
id: val.id
|
|
33726
34074
|
});
|
|
33727
34075
|
});
|
|
@@ -33745,7 +34093,7 @@ var BASESCHEDULE_MASTER = createAsyncThunk("MedicationMastersSlice/BaseSchedule_
|
|
|
33745
34093
|
})));
|
|
33746
34094
|
var DELETEMEDICATION_MASTER = createAsyncThunk("MedicationMastersSlice/DeleteMedication_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee30() {
|
|
33747
34095
|
var payload,
|
|
33748
|
-
|
|
34096
|
+
_ref62,
|
|
33749
34097
|
rejectWithValue,
|
|
33750
34098
|
data,
|
|
33751
34099
|
_args30 = arguments;
|
|
@@ -33755,7 +34103,7 @@ var DELETEMEDICATION_MASTER = createAsyncThunk("MedicationMastersSlice/DeleteMed
|
|
|
33755
34103
|
switch (_context30.prev = _context30.next) {
|
|
33756
34104
|
case 0:
|
|
33757
34105
|
payload = _args30.length > 0 && _args30[0] !== undefined ? _args30[0] : {};
|
|
33758
|
-
|
|
34106
|
+
_ref62 = _args30.length > 1 ? _args30[1] : undefined, rejectWithValue = _ref62.rejectWithValue;
|
|
33759
34107
|
_context30.prev = 2;
|
|
33760
34108
|
_context30.next = 5;
|
|
33761
34109
|
return fetchData$3({
|
|
@@ -33784,7 +34132,7 @@ var DELETEMEDICATION_MASTER = createAsyncThunk("MedicationMastersSlice/DeleteMed
|
|
|
33784
34132
|
})));
|
|
33785
34133
|
var WORKFLOW_STATUS_MASTER = createAsyncThunk("MedicationMastersSlice/workflow_status_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee31() {
|
|
33786
34134
|
var payload,
|
|
33787
|
-
|
|
34135
|
+
_ref64,
|
|
33788
34136
|
rejectWithValue,
|
|
33789
34137
|
data,
|
|
33790
34138
|
arr,
|
|
@@ -33795,7 +34143,7 @@ var WORKFLOW_STATUS_MASTER = createAsyncThunk("MedicationMastersSlice/workflow_s
|
|
|
33795
34143
|
switch (_context31.prev = _context31.next) {
|
|
33796
34144
|
case 0:
|
|
33797
34145
|
payload = _args31.length > 0 && _args31[0] !== undefined ? _args31[0] : {};
|
|
33798
|
-
|
|
34146
|
+
_ref64 = _args31.length > 1 ? _args31[1] : undefined, rejectWithValue = _ref64.rejectWithValue;
|
|
33799
34147
|
_context31.prev = 2;
|
|
33800
34148
|
_context31.next = 5;
|
|
33801
34149
|
return fetchData$3({
|
|
@@ -34220,7 +34568,7 @@ var ALERT_CODES = createAsyncThunk("medicationsSlice/alert_codes", /*#__PURE__*/
|
|
|
34220
34568
|
var payload,
|
|
34221
34569
|
_ref2,
|
|
34222
34570
|
rejectWithValue,
|
|
34223
|
-
|
|
34571
|
+
_list,
|
|
34224
34572
|
data,
|
|
34225
34573
|
code,
|
|
34226
34574
|
_args = arguments;
|
|
@@ -34232,10 +34580,10 @@ var ALERT_CODES = createAsyncThunk("medicationsSlice/alert_codes", /*#__PURE__*/
|
|
|
34232
34580
|
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
34233
34581
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
34234
34582
|
_context.prev = 2;
|
|
34235
|
-
|
|
34583
|
+
_list = payload.list;
|
|
34236
34584
|
_context.next = 6;
|
|
34237
34585
|
return fetchData$3({
|
|
34238
|
-
body: JSON.stringify(codeQuery.AllergyCodes(
|
|
34586
|
+
body: JSON.stringify(codeQuery.AllergyCodes(_list))
|
|
34239
34587
|
}, __readDocumentUrl__);
|
|
34240
34588
|
|
|
34241
34589
|
case 6:
|
|
@@ -34267,7 +34615,7 @@ var DRUG_CODES = createAsyncThunk("medicationsSlice/drug_codes", /*#__PURE__*/_a
|
|
|
34267
34615
|
var payload,
|
|
34268
34616
|
_ref4,
|
|
34269
34617
|
rejectWithValue,
|
|
34270
|
-
|
|
34618
|
+
_list2,
|
|
34271
34619
|
data,
|
|
34272
34620
|
code,
|
|
34273
34621
|
_args2 = arguments;
|
|
@@ -34279,10 +34627,10 @@ var DRUG_CODES = createAsyncThunk("medicationsSlice/drug_codes", /*#__PURE__*/_a
|
|
|
34279
34627
|
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
34280
34628
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
34281
34629
|
_context2.prev = 2;
|
|
34282
|
-
|
|
34630
|
+
_list2 = payload.list;
|
|
34283
34631
|
_context2.next = 6;
|
|
34284
34632
|
return fetchData$3({
|
|
34285
|
-
body: JSON.stringify(codeQuery.DrugCodes(
|
|
34633
|
+
body: JSON.stringify(codeQuery.DrugCodes(_list2))
|
|
34286
34634
|
}, __readDocumentUrl__);
|
|
34287
34635
|
|
|
34288
34636
|
case 6:
|
|
@@ -34318,7 +34666,15 @@ var SAVE_MEDICATIONS = createAsyncThunk("medicationsSlice/save_medication", /*#_
|
|
|
34318
34666
|
_data$Result$,
|
|
34319
34667
|
_data$Result$$propert,
|
|
34320
34668
|
_data$Result$$propert2,
|
|
34321
|
-
|
|
34669
|
+
_data$Result2,
|
|
34670
|
+
_data$Result2$,
|
|
34671
|
+
_data$Result2$$proper,
|
|
34672
|
+
_data$Result2$$proper2,
|
|
34673
|
+
_data$Result3,
|
|
34674
|
+
_data$Result3$,
|
|
34675
|
+
_data$Result3$$proper,
|
|
34676
|
+
_data$Result3$$proper2,
|
|
34677
|
+
_list3,
|
|
34322
34678
|
orgData,
|
|
34323
34679
|
body,
|
|
34324
34680
|
data,
|
|
@@ -34331,7 +34687,7 @@ var SAVE_MEDICATIONS = createAsyncThunk("medicationsSlice/save_medication", /*#_
|
|
|
34331
34687
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
34332
34688
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
34333
34689
|
_context3.prev = 2;
|
|
34334
|
-
|
|
34690
|
+
_list3 = payload;
|
|
34335
34691
|
_context3.next = 6;
|
|
34336
34692
|
return fetchData$3({
|
|
34337
34693
|
body: queries$5.getOrganizationId(payload.orgId)
|
|
@@ -34339,7 +34695,7 @@ var SAVE_MEDICATIONS = createAsyncThunk("medicationsSlice/save_medication", /*#_
|
|
|
34339
34695
|
|
|
34340
34696
|
case 6:
|
|
34341
34697
|
orgData = _context3.sent;
|
|
34342
|
-
body = generateJSON$6(
|
|
34698
|
+
body = generateJSON$6(_list3, orgData.result[0]);
|
|
34343
34699
|
_context3.next = 10;
|
|
34344
34700
|
return fetchData$3({
|
|
34345
34701
|
body: JSON.stringify(body)
|
|
@@ -34348,7 +34704,11 @@ var SAVE_MEDICATIONS = createAsyncThunk("medicationsSlice/save_medication", /*#_
|
|
|
34348
34704
|
case 10:
|
|
34349
34705
|
data = _context3.sent;
|
|
34350
34706
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
34351
|
-
data:
|
|
34707
|
+
data: {
|
|
34708
|
+
orderId: data === null || data === void 0 ? void 0 : (_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$$propert = _data$Result$.properties) === null || _data$Result$$propert === void 0 ? void 0 : (_data$Result$$propert2 = _data$Result$$propert.doc) === null || _data$Result$$propert2 === void 0 ? void 0 : _data$Result$$propert2._id,
|
|
34709
|
+
drugCode: data === null || data === void 0 ? void 0 : (_data$Result2 = data.Result) === null || _data$Result2 === void 0 ? void 0 : (_data$Result2$ = _data$Result2[0]) === null || _data$Result2$ === void 0 ? void 0 : (_data$Result2$$proper = _data$Result2$.properties) === null || _data$Result2$$proper === void 0 ? void 0 : (_data$Result2$$proper2 = _data$Result2$$proper.doc) === null || _data$Result2$$proper2 === void 0 ? void 0 : _data$Result2$$proper2.drugCode,
|
|
34710
|
+
_key: data === null || data === void 0 ? void 0 : (_data$Result3 = data.Result) === null || _data$Result3 === void 0 ? void 0 : (_data$Result3$ = _data$Result3[0]) === null || _data$Result3$ === void 0 ? void 0 : (_data$Result3$$proper = _data$Result3$.properties) === null || _data$Result3$$proper === void 0 ? void 0 : (_data$Result3$$proper2 = _data$Result3$$proper.doc) === null || _data$Result3$$proper2 === void 0 ? void 0 : _data$Result3$$proper2._key
|
|
34711
|
+
}
|
|
34352
34712
|
}));
|
|
34353
34713
|
|
|
34354
34714
|
case 14:
|
|
@@ -34366,16 +34726,10 @@ var SAVE_MEDICATIONS = createAsyncThunk("medicationsSlice/save_medication", /*#_
|
|
|
34366
34726
|
}
|
|
34367
34727
|
}, _callee3, null, [[2, 14]]);
|
|
34368
34728
|
})));
|
|
34369
|
-
var
|
|
34729
|
+
var SAVE_NIFI_MEDICATIONS = createAsyncThunk("medicationsSlice/save_nifi_medication", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
34370
34730
|
var payload,
|
|
34371
34731
|
_ref8,
|
|
34372
34732
|
rejectWithValue,
|
|
34373
|
-
_list$status,
|
|
34374
|
-
_data$Result2,
|
|
34375
|
-
_data$Result2$,
|
|
34376
|
-
_data$Result2$$proper,
|
|
34377
|
-
_data$Result2$$proper2,
|
|
34378
|
-
list,
|
|
34379
34733
|
body,
|
|
34380
34734
|
data,
|
|
34381
34735
|
_args4 = arguments;
|
|
@@ -34387,17 +34741,130 @@ var UPDATE_MEDICATIONS = createAsyncThunk("medicationsSlice/update_medication",
|
|
|
34387
34741
|
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
34388
34742
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
34389
34743
|
_context4.prev = 2;
|
|
34390
|
-
|
|
34744
|
+
debugger;
|
|
34745
|
+
body = generate_NIFI_JSON(payload);
|
|
34746
|
+
debugger;
|
|
34747
|
+
_context4.next = 8;
|
|
34748
|
+
return fetchData$3({
|
|
34749
|
+
body: JSON.stringify(body)
|
|
34750
|
+
}, __OrderlinewithQueue__);
|
|
34751
|
+
|
|
34752
|
+
case 8:
|
|
34753
|
+
data = _context4.sent;
|
|
34754
|
+
debugger;
|
|
34755
|
+
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
34756
|
+
data: data
|
|
34757
|
+
}));
|
|
34758
|
+
|
|
34759
|
+
case 13:
|
|
34760
|
+
_context4.prev = 13;
|
|
34761
|
+
_context4.t0 = _context4["catch"](2);
|
|
34762
|
+
console.log(_context4.t0);
|
|
34763
|
+
return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
34764
|
+
message: _context4.t0.message
|
|
34765
|
+
})));
|
|
34766
|
+
|
|
34767
|
+
case 17:
|
|
34768
|
+
case "end":
|
|
34769
|
+
return _context4.stop();
|
|
34770
|
+
}
|
|
34771
|
+
}
|
|
34772
|
+
}, _callee4, null, [[2, 13]]);
|
|
34773
|
+
})));
|
|
34774
|
+
var BULK_SAVE_MEDICATIONS = createAsyncThunk("medicationsSlice/bulk_save_medication", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
34775
|
+
var payload,
|
|
34776
|
+
_ref10,
|
|
34777
|
+
rejectWithValue,
|
|
34778
|
+
getState,
|
|
34779
|
+
_data$Result4,
|
|
34780
|
+
_data$Result4$,
|
|
34781
|
+
_data$Result4$$proper,
|
|
34782
|
+
_data$Result4$$proper2,
|
|
34783
|
+
_key,
|
|
34784
|
+
drugCode,
|
|
34785
|
+
dataJson,
|
|
34786
|
+
data,
|
|
34787
|
+
_args5 = arguments;
|
|
34788
|
+
|
|
34789
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
34790
|
+
while (1) {
|
|
34791
|
+
switch (_context5.prev = _context5.next) {
|
|
34792
|
+
case 0:
|
|
34793
|
+
payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
34794
|
+
_ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue, getState = _ref10.getState;
|
|
34795
|
+
_context5.prev = 2;
|
|
34796
|
+
_key = payload._key, drugCode = payload.drugCode;
|
|
34797
|
+
dataJson = [{
|
|
34798
|
+
"db_name": dbName,
|
|
34799
|
+
"entity": "PH_OrderLine",
|
|
34800
|
+
"is_metadata": true,
|
|
34801
|
+
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
34802
|
+
"filter": {
|
|
34803
|
+
"_key": _key !== null && _key !== void 0 ? _key : ''
|
|
34804
|
+
},
|
|
34805
|
+
"doc": {
|
|
34806
|
+
"status": "CodingMaster/10704",
|
|
34807
|
+
"drugCode": drugCode !== null && drugCode !== void 0 ? drugCode : ''
|
|
34808
|
+
}
|
|
34809
|
+
}];
|
|
34810
|
+
_context5.next = 7;
|
|
34811
|
+
return fetchData$3({
|
|
34812
|
+
body: JSON.stringify(dataJson)
|
|
34813
|
+
}, __OrderlinewithQueue__);
|
|
34814
|
+
|
|
34815
|
+
case 7:
|
|
34816
|
+
data = _context5.sent;
|
|
34817
|
+
return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
34818
|
+
data: list.isAdd ? !(data === null || data === void 0 ? void 0 : data.error) : data === null || data === void 0 ? void 0 : (_data$Result4 = data.Result) === null || _data$Result4 === void 0 ? void 0 : (_data$Result4$ = _data$Result4[0]) === null || _data$Result4$ === void 0 ? void 0 : (_data$Result4$$proper = _data$Result4$.properties) === null || _data$Result4$$proper === void 0 ? void 0 : (_data$Result4$$proper2 = _data$Result4$$proper.doc) === null || _data$Result4$$proper2 === void 0 ? void 0 : _data$Result4$$proper2._id
|
|
34819
|
+
}));
|
|
34820
|
+
|
|
34821
|
+
case 11:
|
|
34822
|
+
_context5.prev = 11;
|
|
34823
|
+
_context5.t0 = _context5["catch"](2);
|
|
34824
|
+
console.log(_context5.t0);
|
|
34825
|
+
return _context5.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
34826
|
+
message: _context5.t0.message
|
|
34827
|
+
})));
|
|
34828
|
+
|
|
34829
|
+
case 15:
|
|
34830
|
+
case "end":
|
|
34831
|
+
return _context5.stop();
|
|
34832
|
+
}
|
|
34833
|
+
}
|
|
34834
|
+
}, _callee5, null, [[2, 11]]);
|
|
34835
|
+
})));
|
|
34836
|
+
var UPDATE_MEDICATIONS = createAsyncThunk("medicationsSlice/update_medication", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
34837
|
+
var payload,
|
|
34838
|
+
_ref12,
|
|
34839
|
+
rejectWithValue,
|
|
34840
|
+
_list4$status,
|
|
34841
|
+
_data$Result5,
|
|
34842
|
+
_data$Result5$,
|
|
34843
|
+
_data$Result5$$proper,
|
|
34844
|
+
_data$Result5$$proper2,
|
|
34845
|
+
_list4,
|
|
34846
|
+
body,
|
|
34847
|
+
data,
|
|
34848
|
+
_args6 = arguments;
|
|
34849
|
+
|
|
34850
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
34851
|
+
while (1) {
|
|
34852
|
+
switch (_context6.prev = _context6.next) {
|
|
34853
|
+
case 0:
|
|
34854
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
34855
|
+
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
34856
|
+
_context6.prev = 2;
|
|
34857
|
+
_list4 = payload; // const states = getState();
|
|
34391
34858
|
|
|
34392
34859
|
body = [{
|
|
34393
34860
|
db_name: dbName,
|
|
34394
34861
|
entity: "PH_OrderLine",
|
|
34395
|
-
filter: "PH_OrderLine._id=='".concat(
|
|
34862
|
+
filter: "PH_OrderLine._id=='".concat(_list4.id, "'"),
|
|
34396
34863
|
doc: {
|
|
34397
|
-
status: (
|
|
34398
|
-
statusreason:
|
|
34399
|
-
statusperiod:
|
|
34400
|
-
statushistory:
|
|
34864
|
+
status: (_list4$status = _list4.status) === null || _list4$status === void 0 ? void 0 : _list4$status.value,
|
|
34865
|
+
statusreason: _list4.statusReason,
|
|
34866
|
+
statusperiod: _list4.statusperiod,
|
|
34867
|
+
statushistory: _list4.statushistory
|
|
34401
34868
|
}
|
|
34402
34869
|
}]; // if (list.status?.label === "Complete") {
|
|
34403
34870
|
// let flowStatusList = [];
|
|
@@ -34410,76 +34877,76 @@ var UPDATE_MEDICATIONS = createAsyncThunk("medicationsSlice/update_medication",
|
|
|
34410
34877
|
// ))
|
|
34411
34878
|
// }
|
|
34412
34879
|
|
|
34413
|
-
|
|
34880
|
+
_context6.next = 7;
|
|
34414
34881
|
return fetchData$3({
|
|
34415
34882
|
body: JSON.stringify(body)
|
|
34416
34883
|
}, __update__);
|
|
34417
34884
|
|
|
34418
34885
|
case 7:
|
|
34419
|
-
data =
|
|
34420
|
-
return
|
|
34421
|
-
data: data === null || data === void 0 ? void 0 : (_data$
|
|
34886
|
+
data = _context6.sent;
|
|
34887
|
+
return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
34888
|
+
data: data === null || data === void 0 ? void 0 : (_data$Result5 = data.Result) === null || _data$Result5 === void 0 ? void 0 : (_data$Result5$ = _data$Result5[0]) === null || _data$Result5$ === void 0 ? void 0 : (_data$Result5$$proper = _data$Result5$.properties) === null || _data$Result5$$proper === void 0 ? void 0 : (_data$Result5$$proper2 = _data$Result5$$proper.doc) === null || _data$Result5$$proper2 === void 0 ? void 0 : _data$Result5$$proper2._id
|
|
34422
34889
|
}));
|
|
34423
34890
|
|
|
34424
34891
|
case 11:
|
|
34425
|
-
|
|
34426
|
-
|
|
34427
|
-
console.log(
|
|
34428
|
-
return
|
|
34429
|
-
message:
|
|
34892
|
+
_context6.prev = 11;
|
|
34893
|
+
_context6.t0 = _context6["catch"](2);
|
|
34894
|
+
console.log(_context6.t0);
|
|
34895
|
+
return _context6.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
34896
|
+
message: _context6.t0.message
|
|
34430
34897
|
})));
|
|
34431
34898
|
|
|
34432
34899
|
case 15:
|
|
34433
34900
|
case "end":
|
|
34434
|
-
return
|
|
34901
|
+
return _context6.stop();
|
|
34435
34902
|
}
|
|
34436
34903
|
}
|
|
34437
|
-
},
|
|
34904
|
+
}, _callee6, null, [[2, 11]]);
|
|
34438
34905
|
})));
|
|
34439
|
-
var GET_MEDICATIONS = createAsyncThunk("medicationsSlice/medication_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
34906
|
+
var GET_MEDICATIONS = createAsyncThunk("medicationsSlice/medication_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
34440
34907
|
var payload,
|
|
34441
|
-
|
|
34908
|
+
_ref14,
|
|
34442
34909
|
rejectWithValue,
|
|
34443
34910
|
id,
|
|
34444
34911
|
data,
|
|
34445
|
-
|
|
34912
|
+
_args7 = arguments;
|
|
34446
34913
|
|
|
34447
|
-
return regeneratorRuntime.wrap(function
|
|
34914
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
34448
34915
|
while (1) {
|
|
34449
|
-
switch (
|
|
34916
|
+
switch (_context7.prev = _context7.next) {
|
|
34450
34917
|
case 0:
|
|
34451
|
-
payload =
|
|
34452
|
-
|
|
34453
|
-
|
|
34918
|
+
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
34919
|
+
_ref14 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
|
|
34920
|
+
_context7.prev = 2;
|
|
34454
34921
|
id = payload.id;
|
|
34455
|
-
|
|
34922
|
+
_context7.next = 6;
|
|
34456
34923
|
return fetchData$3({
|
|
34457
34924
|
body: queries$5.getMedications(id)
|
|
34458
34925
|
}, __readDocumentUrl__);
|
|
34459
34926
|
|
|
34460
34927
|
case 6:
|
|
34461
|
-
data =
|
|
34462
|
-
return
|
|
34928
|
+
data = _context7.sent;
|
|
34929
|
+
return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
34463
34930
|
data: data === null || data === void 0 ? void 0 : data.result
|
|
34464
34931
|
}));
|
|
34465
34932
|
|
|
34466
34933
|
case 10:
|
|
34467
|
-
|
|
34468
|
-
|
|
34469
|
-
return
|
|
34470
|
-
message:
|
|
34934
|
+
_context7.prev = 10;
|
|
34935
|
+
_context7.t0 = _context7["catch"](2);
|
|
34936
|
+
return _context7.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
34937
|
+
message: _context7.t0.message
|
|
34471
34938
|
})));
|
|
34472
34939
|
|
|
34473
34940
|
case 13:
|
|
34474
34941
|
case "end":
|
|
34475
|
-
return
|
|
34942
|
+
return _context7.stop();
|
|
34476
34943
|
}
|
|
34477
34944
|
}
|
|
34478
|
-
},
|
|
34945
|
+
}, _callee7, null, [[2, 10]]);
|
|
34479
34946
|
})));
|
|
34480
|
-
var UPDATE_ALL_WORKFLOW_STATUS = createAsyncThunk("medicationsSlice/update_workflow_status", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
34947
|
+
var UPDATE_ALL_WORKFLOW_STATUS = createAsyncThunk("medicationsSlice/update_workflow_status", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
34481
34948
|
var payload,
|
|
34482
|
-
|
|
34949
|
+
_ref16,
|
|
34483
34950
|
rejectWithValue,
|
|
34484
34951
|
getState,
|
|
34485
34952
|
personId,
|
|
@@ -34492,15 +34959,15 @@ var UPDATE_ALL_WORKFLOW_STATUS = createAsyncThunk("medicationsSlice/update_workf
|
|
|
34492
34959
|
arr,
|
|
34493
34960
|
data,
|
|
34494
34961
|
PH_PresWorkflowStatusTrx,
|
|
34495
|
-
|
|
34962
|
+
_args8 = arguments;
|
|
34496
34963
|
|
|
34497
|
-
return regeneratorRuntime.wrap(function
|
|
34964
|
+
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
34498
34965
|
while (1) {
|
|
34499
|
-
switch (
|
|
34966
|
+
switch (_context8.prev = _context8.next) {
|
|
34500
34967
|
case 0:
|
|
34501
|
-
payload =
|
|
34502
|
-
|
|
34503
|
-
|
|
34968
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
34969
|
+
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue, getState = _ref16.getState;
|
|
34970
|
+
_context8.prev = 2;
|
|
34504
34971
|
personId = payload.personId;
|
|
34505
34972
|
states = getState();
|
|
34506
34973
|
flowStatus = states.MedicationMastersSlice.workflow_status_masters.data.filter(function (val) {
|
|
@@ -34537,128 +35004,172 @@ var UPDATE_ALL_WORKFLOW_STATUS = createAsyncThunk("medicationsSlice/update_workf
|
|
|
34537
35004
|
}
|
|
34538
35005
|
};
|
|
34539
35006
|
});
|
|
34540
|
-
|
|
35007
|
+
_context8.next = 13;
|
|
34541
35008
|
return fetchData$3({
|
|
34542
35009
|
body: JSON.stringify(arr)
|
|
34543
35010
|
}, __update__);
|
|
34544
35011
|
|
|
34545
35012
|
case 13:
|
|
34546
|
-
data =
|
|
34547
|
-
|
|
35013
|
+
data = _context8.sent;
|
|
35014
|
+
_context8.next = 16;
|
|
34548
35015
|
return fetchData$3({
|
|
34549
35016
|
body: JSON.stringify(flowStatusList)
|
|
34550
35017
|
}, __uspsertUrl__);
|
|
34551
35018
|
|
|
34552
35019
|
case 16:
|
|
34553
|
-
PH_PresWorkflowStatusTrx =
|
|
34554
|
-
return
|
|
35020
|
+
PH_PresWorkflowStatusTrx = _context8.sent;
|
|
35021
|
+
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
34555
35022
|
data: data,
|
|
34556
35023
|
PH_PresWorkflowStatusTrx: PH_PresWorkflowStatusTrx
|
|
34557
35024
|
}));
|
|
34558
35025
|
|
|
34559
35026
|
case 20:
|
|
34560
|
-
|
|
34561
|
-
|
|
34562
|
-
console.log(
|
|
34563
|
-
return
|
|
34564
|
-
message:
|
|
35027
|
+
_context8.prev = 20;
|
|
35028
|
+
_context8.t0 = _context8["catch"](2);
|
|
35029
|
+
console.log(_context8.t0);
|
|
35030
|
+
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35031
|
+
message: _context8.t0.message
|
|
34565
35032
|
})));
|
|
34566
35033
|
|
|
34567
35034
|
case 24:
|
|
34568
35035
|
case "end":
|
|
34569
|
-
return
|
|
35036
|
+
return _context8.stop();
|
|
34570
35037
|
}
|
|
34571
35038
|
}
|
|
34572
|
-
},
|
|
35039
|
+
}, _callee8, null, [[2, 20]]);
|
|
34573
35040
|
})));
|
|
34574
|
-
var PATIENT_BANNER = createAsyncThunk("medicationsSlice/patient_banner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
35041
|
+
var PATIENT_BANNER = createAsyncThunk("medicationsSlice/patient_banner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
34575
35042
|
var payload,
|
|
34576
|
-
|
|
35043
|
+
_ref18,
|
|
34577
35044
|
rejectWithValue,
|
|
34578
35045
|
id,
|
|
34579
35046
|
data,
|
|
34580
|
-
|
|
35047
|
+
_args9 = arguments;
|
|
34581
35048
|
|
|
34582
|
-
return regeneratorRuntime.wrap(function
|
|
35049
|
+
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
34583
35050
|
while (1) {
|
|
34584
|
-
switch (
|
|
35051
|
+
switch (_context9.prev = _context9.next) {
|
|
34585
35052
|
case 0:
|
|
34586
|
-
payload =
|
|
34587
|
-
|
|
34588
|
-
|
|
35053
|
+
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
35054
|
+
_ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
|
|
35055
|
+
_context9.prev = 2;
|
|
34589
35056
|
id = payload.id;
|
|
34590
|
-
|
|
35057
|
+
_context9.next = 6;
|
|
34591
35058
|
return fetchData$3({
|
|
34592
35059
|
body: JSON.stringify(queries$5.PharmacyFramework_Patientbanner(id))
|
|
34593
35060
|
}, __readDocumentUrl__);
|
|
34594
35061
|
|
|
34595
35062
|
case 6:
|
|
34596
|
-
data =
|
|
34597
|
-
return
|
|
35063
|
+
data = _context9.sent;
|
|
35064
|
+
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
34598
35065
|
data: data.result
|
|
34599
35066
|
}));
|
|
34600
35067
|
|
|
34601
35068
|
case 10:
|
|
34602
|
-
|
|
34603
|
-
|
|
34604
|
-
return
|
|
34605
|
-
message:
|
|
35069
|
+
_context9.prev = 10;
|
|
35070
|
+
_context9.t0 = _context9["catch"](2);
|
|
35071
|
+
return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35072
|
+
message: _context9.t0.message
|
|
34606
35073
|
})));
|
|
34607
35074
|
|
|
34608
35075
|
case 13:
|
|
34609
35076
|
case "end":
|
|
34610
|
-
return
|
|
35077
|
+
return _context9.stop();
|
|
34611
35078
|
}
|
|
34612
35079
|
}
|
|
34613
|
-
},
|
|
35080
|
+
}, _callee9, null, [[2, 10]]);
|
|
34614
35081
|
})));
|
|
34615
|
-
var ENCOUNTER_BANNER = createAsyncThunk("medicationsSlice/Encounterbanner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
35082
|
+
var ENCOUNTER_BANNER = createAsyncThunk("medicationsSlice/Encounterbanner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
34616
35083
|
var payload,
|
|
34617
|
-
|
|
35084
|
+
_ref20,
|
|
34618
35085
|
rejectWithValue,
|
|
34619
35086
|
getState,
|
|
34620
35087
|
patientId,
|
|
34621
35088
|
facilityId,
|
|
34622
35089
|
data,
|
|
34623
|
-
|
|
35090
|
+
_args10 = arguments;
|
|
34624
35091
|
|
|
34625
|
-
return regeneratorRuntime.wrap(function
|
|
35092
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
34626
35093
|
while (1) {
|
|
34627
|
-
switch (
|
|
35094
|
+
switch (_context10.prev = _context10.next) {
|
|
34628
35095
|
case 0:
|
|
34629
|
-
payload =
|
|
34630
|
-
|
|
34631
|
-
|
|
35096
|
+
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
35097
|
+
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue, getState = _ref20.getState;
|
|
35098
|
+
_context10.prev = 2;
|
|
34632
35099
|
patientId = payload.patientId, facilityId = payload.facilityId;
|
|
34633
|
-
|
|
35100
|
+
_context10.next = 6;
|
|
34634
35101
|
return fetchData$3({
|
|
34635
35102
|
body: JSON.stringify(queries$5.PharmacyFramework_Encounterbanner(patientId, facilityId))
|
|
34636
35103
|
}, __readDocumentUrl__);
|
|
34637
35104
|
|
|
34638
35105
|
case 6:
|
|
34639
|
-
data =
|
|
34640
|
-
return
|
|
35106
|
+
data = _context10.sent;
|
|
35107
|
+
return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
34641
35108
|
data: data.result
|
|
34642
35109
|
}));
|
|
34643
35110
|
|
|
34644
35111
|
case 10:
|
|
34645
|
-
|
|
34646
|
-
|
|
34647
|
-
return
|
|
34648
|
-
message:
|
|
35112
|
+
_context10.prev = 10;
|
|
35113
|
+
_context10.t0 = _context10["catch"](2);
|
|
35114
|
+
return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35115
|
+
message: _context10.t0.message
|
|
34649
35116
|
})));
|
|
34650
35117
|
|
|
34651
35118
|
case 13:
|
|
34652
35119
|
case "end":
|
|
34653
|
-
return
|
|
35120
|
+
return _context10.stop();
|
|
34654
35121
|
}
|
|
34655
35122
|
}
|
|
34656
|
-
},
|
|
35123
|
+
}, _callee10, null, [[2, 10]]);
|
|
35124
|
+
})));
|
|
35125
|
+
var GET_ORDER_DATE = createAsyncThunk("medicationsSlice/get_orderDate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
35126
|
+
var payload,
|
|
35127
|
+
_ref22,
|
|
35128
|
+
rejectWithValue,
|
|
35129
|
+
_list5,
|
|
35130
|
+
data,
|
|
35131
|
+
_args11 = arguments;
|
|
35132
|
+
|
|
35133
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
35134
|
+
while (1) {
|
|
35135
|
+
switch (_context11.prev = _context11.next) {
|
|
35136
|
+
case 0:
|
|
35137
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
35138
|
+
_ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
35139
|
+
_context11.prev = 2;
|
|
35140
|
+
_list5 = payload;
|
|
35141
|
+
_context11.next = 6;
|
|
35142
|
+
return fetchData$3({
|
|
35143
|
+
body: JSON.stringify(_list5)
|
|
35144
|
+
}, __GetOrderStartDate__);
|
|
35145
|
+
|
|
35146
|
+
case 6:
|
|
35147
|
+
data = _context11.sent;
|
|
35148
|
+
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
35149
|
+
data: data
|
|
35150
|
+
}));
|
|
35151
|
+
|
|
35152
|
+
case 10:
|
|
35153
|
+
_context11.prev = 10;
|
|
35154
|
+
_context11.t0 = _context11["catch"](2);
|
|
35155
|
+
return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
35156
|
+
message: _context11.t0.message
|
|
35157
|
+
})));
|
|
35158
|
+
|
|
35159
|
+
case 13:
|
|
35160
|
+
case "end":
|
|
35161
|
+
return _context11.stop();
|
|
35162
|
+
}
|
|
35163
|
+
}
|
|
35164
|
+
}, _callee11, null, [[2, 10]]);
|
|
34657
35165
|
})));
|
|
34658
35166
|
var medicationsSlice = createSlice({
|
|
34659
35167
|
name: "medicationsSlice",
|
|
34660
35168
|
initialState: {
|
|
35169
|
+
getOrderDate: _objectSpread2({}, defaultState.Info),
|
|
34661
35170
|
save_medication: _objectSpread2({}, defaultState.Info),
|
|
35171
|
+
save_nifi_medication: _objectSpread2({}, defaultState.Info),
|
|
35172
|
+
bulk_save_medication: _objectSpread2({}, defaultState.Info),
|
|
34662
35173
|
update_medication: _objectSpread2({}, defaultState.Info),
|
|
34663
35174
|
update_workflow_status: _objectSpread2({}, defaultState.Info),
|
|
34664
35175
|
medication_list: _objectSpread2({}, defaultState.List),
|
|
@@ -34667,97 +35178,130 @@ var medicationsSlice = createSlice({
|
|
|
34667
35178
|
patientBanner: _objectSpread2({}, defaultState.List),
|
|
34668
35179
|
Encounterbanner: _objectSpread2({}, defaultState.List)
|
|
34669
35180
|
},
|
|
34670
|
-
extraReducers: (_extraReducers$h = {}, _defineProperty(_extraReducers$h,
|
|
35181
|
+
extraReducers: (_extraReducers$h = {}, _defineProperty(_extraReducers$h, GET_ORDER_DATE.fulfilled, function (state, action) {
|
|
34671
35182
|
var _action$payload;
|
|
34672
35183
|
|
|
34673
|
-
state.
|
|
35184
|
+
state.getOrderDate = (_action$payload = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload !== void 0 ? _action$payload : {};
|
|
35185
|
+
}), _defineProperty(_extraReducers$h, GET_ORDER_DATE.pending, function (state, action) {
|
|
35186
|
+
state.getOrderDate.loading = true;
|
|
35187
|
+
}), _defineProperty(_extraReducers$h, GET_ORDER_DATE.rejected, function (state, action) {
|
|
35188
|
+
var _action$payload2;
|
|
35189
|
+
|
|
35190
|
+
state.getOrderDate = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : {};
|
|
35191
|
+
}), _defineProperty(_extraReducers$h, PATIENT_BANNER.fulfilled, function (state, action) {
|
|
35192
|
+
var _action$payload3;
|
|
35193
|
+
|
|
35194
|
+
state.patientBanner = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : {};
|
|
34674
35195
|
}), _defineProperty(_extraReducers$h, PATIENT_BANNER.pending, function (state, action) {
|
|
34675
35196
|
state.patientBanner.loading = true;
|
|
34676
35197
|
}), _defineProperty(_extraReducers$h, PATIENT_BANNER.rejected, function (state, action) {
|
|
34677
|
-
var _action$
|
|
35198
|
+
var _action$payload4;
|
|
34678
35199
|
|
|
34679
|
-
state.patientBanner = (_action$
|
|
35200
|
+
state.patientBanner = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : {};
|
|
34680
35201
|
}), _defineProperty(_extraReducers$h, ALERT_CODES.fulfilled, function (state, action) {
|
|
34681
|
-
var _action$
|
|
35202
|
+
var _action$payload5;
|
|
34682
35203
|
|
|
34683
|
-
state.alert_codes.loading = false, state.alert_codes.error = false, state.alert_codes = (_action$
|
|
35204
|
+
state.alert_codes.loading = false, state.alert_codes.error = false, state.alert_codes = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : {};
|
|
34684
35205
|
}), _defineProperty(_extraReducers$h, ALERT_CODES.pending, function (state, action) {
|
|
34685
35206
|
state.alert_codes.error = false, state.alert_codes.loading = true;
|
|
34686
35207
|
}), _defineProperty(_extraReducers$h, ALERT_CODES.rejected, function (state, action) {
|
|
34687
|
-
var _action$
|
|
35208
|
+
var _action$payload6;
|
|
34688
35209
|
|
|
34689
|
-
state.alert_codes.loading = false, state.alert_codes.error = true, state.alert_codes = (_action$
|
|
35210
|
+
state.alert_codes.loading = false, state.alert_codes.error = true, state.alert_codes = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : {};
|
|
34690
35211
|
}), _defineProperty(_extraReducers$h, DRUG_CODES.fulfilled, function (state, action) {
|
|
34691
|
-
var _action$
|
|
35212
|
+
var _action$payload7;
|
|
34692
35213
|
|
|
34693
|
-
state.drug_codes.loading = false, state.drug_codes.error = false, state.drug_codes = (_action$
|
|
35214
|
+
state.drug_codes.loading = false, state.drug_codes.error = false, state.drug_codes = (_action$payload7 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload7 !== void 0 ? _action$payload7 : {};
|
|
34694
35215
|
}), _defineProperty(_extraReducers$h, DRUG_CODES.pending, function (state, action) {
|
|
34695
35216
|
state.drug_codes.error = false, state.drug_codes.loading = true;
|
|
34696
35217
|
}), _defineProperty(_extraReducers$h, DRUG_CODES.rejected, function (state, action) {
|
|
34697
|
-
var _action$
|
|
35218
|
+
var _action$payload8;
|
|
34698
35219
|
|
|
34699
|
-
state.drug_codes.loading = false, state.drug_codes.error = true, state.drug_codes = (_action$
|
|
35220
|
+
state.drug_codes.loading = false, state.drug_codes.error = true, state.drug_codes = (_action$payload8 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload8 !== void 0 ? _action$payload8 : {};
|
|
34700
35221
|
}), _defineProperty(_extraReducers$h, SAVE_MEDICATIONS.fulfilled, function (state, action) {
|
|
34701
|
-
var _action$
|
|
35222
|
+
var _action$payload9;
|
|
34702
35223
|
|
|
34703
|
-
state.save_medication.loading = false, state.save_medication.error = false, state.save_medication = (_action$
|
|
35224
|
+
state.save_medication.loading = false, state.save_medication.error = false, state.save_medication = (_action$payload9 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload9 !== void 0 ? _action$payload9 : {};
|
|
34704
35225
|
}), _defineProperty(_extraReducers$h, SAVE_MEDICATIONS.pending, function (state, action) {
|
|
34705
35226
|
state.save_medication.error = false, state.save_medication.loading = true;
|
|
34706
35227
|
}), _defineProperty(_extraReducers$h, SAVE_MEDICATIONS.rejected, function (state, action) {
|
|
34707
|
-
var _action$
|
|
35228
|
+
var _action$payload10;
|
|
35229
|
+
|
|
35230
|
+
state.save_medication.loading = false, state.save_medication.error = true, state.save_medication = (_action$payload10 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload10 !== void 0 ? _action$payload10 : {};
|
|
35231
|
+
}), _defineProperty(_extraReducers$h, SAVE_NIFI_MEDICATIONS.fulfilled, function (state, action) {
|
|
35232
|
+
var _action$payload11;
|
|
35233
|
+
|
|
35234
|
+
state.save_nifi_medication.loading = false, state.save_nifi_medication.error = false, state.save_nifi_medication = (_action$payload11 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload11 !== void 0 ? _action$payload11 : {};
|
|
35235
|
+
}), _defineProperty(_extraReducers$h, SAVE_NIFI_MEDICATIONS.pending, function (state, action) {
|
|
35236
|
+
state.save_nifi_medication.error = false, state.save_nifi_medication.loading = true;
|
|
35237
|
+
}), _defineProperty(_extraReducers$h, SAVE_NIFI_MEDICATIONS.rejected, function (state, action) {
|
|
35238
|
+
var _action$payload12;
|
|
34708
35239
|
|
|
34709
|
-
state.
|
|
35240
|
+
state.save_nifi_medication.loading = false, state.save_nifi_medication.error = true, state.save_nifi_medication = (_action$payload12 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
|
|
35241
|
+
}), _defineProperty(_extraReducers$h, BULK_SAVE_MEDICATIONS.fulfilled, function (state, action) {
|
|
35242
|
+
var _action$payload13;
|
|
35243
|
+
|
|
35244
|
+
state.bulk_save_medication.loading = false, state.bulk_save_medication.error = false, state.bulk_save_medication = (_action$payload13 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload13 !== void 0 ? _action$payload13 : {};
|
|
35245
|
+
}), _defineProperty(_extraReducers$h, BULK_SAVE_MEDICATIONS.pending, function (state, action) {
|
|
35246
|
+
state.bulk_save_medication.error = false, state.bulk_save_medication.loading = true;
|
|
35247
|
+
}), _defineProperty(_extraReducers$h, BULK_SAVE_MEDICATIONS.rejected, function (state, action) {
|
|
35248
|
+
var _action$payload14;
|
|
35249
|
+
|
|
35250
|
+
state.bulk_save_medication.loading = false, state.bulk_save_medication.error = true, state.bulk_save_medication = (_action$payload14 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload14 !== void 0 ? _action$payload14 : {};
|
|
34710
35251
|
}), _defineProperty(_extraReducers$h, UPDATE_MEDICATIONS.fulfilled, function (state, action) {
|
|
34711
|
-
var _action$
|
|
35252
|
+
var _action$payload15;
|
|
34712
35253
|
|
|
34713
|
-
state.update_medication.loading = false, state.update_medication.error = false, state.update_medication = (_action$
|
|
35254
|
+
state.update_medication.loading = false, state.update_medication.error = false, state.update_medication = (_action$payload15 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload15 !== void 0 ? _action$payload15 : {};
|
|
34714
35255
|
}), _defineProperty(_extraReducers$h, UPDATE_MEDICATIONS.pending, function (state, action) {
|
|
34715
35256
|
state.update_medication.error = false, state.update_medication.loading = true;
|
|
34716
35257
|
}), _defineProperty(_extraReducers$h, UPDATE_MEDICATIONS.rejected, function (state, action) {
|
|
34717
|
-
var _action$
|
|
35258
|
+
var _action$payload16;
|
|
34718
35259
|
|
|
34719
|
-
state.update_medication.loading = false, state.update_medication.error = true, state.update_medication = (_action$
|
|
35260
|
+
state.update_medication.loading = false, state.update_medication.error = true, state.update_medication = (_action$payload16 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload16 !== void 0 ? _action$payload16 : {};
|
|
34720
35261
|
}), _defineProperty(_extraReducers$h, GET_MEDICATIONS.fulfilled, function (state, action) {
|
|
34721
|
-
var _action$
|
|
35262
|
+
var _action$payload17;
|
|
34722
35263
|
|
|
34723
|
-
state.medication_list.loading = false, state.medication_list.error = false, state.medication_list = (_action$
|
|
35264
|
+
state.medication_list.loading = false, state.medication_list.error = false, state.medication_list = (_action$payload17 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload17 !== void 0 ? _action$payload17 : {};
|
|
34724
35265
|
}), _defineProperty(_extraReducers$h, GET_MEDICATIONS.pending, function (state, action) {
|
|
34725
35266
|
state.medication_list.error = false, state.medication_list.loading = true;
|
|
34726
35267
|
}), _defineProperty(_extraReducers$h, GET_MEDICATIONS.rejected, function (state, action) {
|
|
34727
|
-
var _action$
|
|
35268
|
+
var _action$payload18;
|
|
34728
35269
|
|
|
34729
|
-
state.medication_list.loading = false, state.medication_list.error = true, state.medication_list = (_action$
|
|
35270
|
+
state.medication_list.loading = false, state.medication_list.error = true, state.medication_list = (_action$payload18 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload18 !== void 0 ? _action$payload18 : {};
|
|
34730
35271
|
}), _defineProperty(_extraReducers$h, UPDATE_ALL_WORKFLOW_STATUS.fulfilled, function (state, action) {
|
|
34731
|
-
var _action$
|
|
35272
|
+
var _action$payload19;
|
|
34732
35273
|
|
|
34733
|
-
state.update_workflow_status.loading = false, state.update_workflow_status.error = false, state.update_workflow_status = (_action$
|
|
35274
|
+
state.update_workflow_status.loading = false, state.update_workflow_status.error = false, state.update_workflow_status = (_action$payload19 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload19 !== void 0 ? _action$payload19 : {};
|
|
34734
35275
|
}), _defineProperty(_extraReducers$h, UPDATE_ALL_WORKFLOW_STATUS.pending, function (state, action) {
|
|
34735
35276
|
state.update_workflow_status.error = false, state.update_workflow_status.loading = true;
|
|
34736
35277
|
}), _defineProperty(_extraReducers$h, UPDATE_ALL_WORKFLOW_STATUS.rejected, function (state, action) {
|
|
34737
|
-
var _action$
|
|
35278
|
+
var _action$payload20;
|
|
34738
35279
|
|
|
34739
|
-
state.update_workflow_status.loading = false, state.update_workflow_status.error = true, state.update_workflow_status = (_action$
|
|
35280
|
+
state.update_workflow_status.loading = false, state.update_workflow_status.error = true, state.update_workflow_status = (_action$payload20 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload20 !== void 0 ? _action$payload20 : {};
|
|
34740
35281
|
}), _defineProperty(_extraReducers$h, ENCOUNTER_BANNER.fulfilled, function (state, action) {
|
|
34741
|
-
var _action$
|
|
35282
|
+
var _action$payload21;
|
|
34742
35283
|
|
|
34743
|
-
state.Encounterbanner = (_action$
|
|
35284
|
+
state.Encounterbanner = (_action$payload21 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload21 !== void 0 ? _action$payload21 : {};
|
|
34744
35285
|
}), _defineProperty(_extraReducers$h, ENCOUNTER_BANNER.pending, function (state, action) {
|
|
34745
35286
|
state.Encounterbanner.loading = true;
|
|
34746
35287
|
}), _defineProperty(_extraReducers$h, ENCOUNTER_BANNER.rejected, function (state, action) {
|
|
34747
|
-
var _action$
|
|
35288
|
+
var _action$payload22;
|
|
34748
35289
|
|
|
34749
|
-
state.Encounterbanner = (_action$
|
|
35290
|
+
state.Encounterbanner = (_action$payload22 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload22 !== void 0 ? _action$payload22 : {};
|
|
34750
35291
|
}), _extraReducers$h)
|
|
34751
35292
|
});
|
|
34752
35293
|
var medicationsActions = {
|
|
34753
35294
|
SAVE_MEDICATIONS: SAVE_MEDICATIONS,
|
|
35295
|
+
BULK_SAVE_MEDICATIONS: BULK_SAVE_MEDICATIONS,
|
|
34754
35296
|
GET_MEDICATIONS: GET_MEDICATIONS,
|
|
34755
35297
|
UPDATE_MEDICATIONS: UPDATE_MEDICATIONS,
|
|
34756
35298
|
UPDATE_ALL_WORKFLOW_STATUS: UPDATE_ALL_WORKFLOW_STATUS,
|
|
34757
35299
|
ALERT_CODES: ALERT_CODES,
|
|
34758
35300
|
DRUG_CODES: DRUG_CODES,
|
|
34759
35301
|
PATIENT_BANNER: PATIENT_BANNER,
|
|
34760
|
-
ENCOUNTER_BANNER: ENCOUNTER_BANNER
|
|
35302
|
+
ENCOUNTER_BANNER: ENCOUNTER_BANNER,
|
|
35303
|
+
GET_ORDER_DATE: GET_ORDER_DATE,
|
|
35304
|
+
SAVE_NIFI_MEDICATIONS: SAVE_NIFI_MEDICATIONS
|
|
34761
35305
|
};
|
|
34762
35306
|
var medicationsSlice$1 = medicationsSlice.reducer;
|
|
34763
35307
|
|
|
@@ -35176,7 +35720,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
35176
35720
|
orderBy: {
|
|
35177
35721
|
practitioner_id: val === null || val === void 0 ? void 0 : (_val$Requestor9 = val.Requestor) === null || _val$Requestor9 === void 0 ? void 0 : (_val$Requestor9$ = _val$Requestor9[0]) === null || _val$Requestor9$ === void 0 ? void 0 : (_val$Requestor9$$prac = _val$Requestor9$.practId) === null || _val$Requestor9$$prac === void 0 ? void 0 : (_val$Requestor9$$prac2 = _val$Requestor9$$prac[0]) === null || _val$Requestor9$$prac2 === void 0 ? void 0 : _val$Requestor9$$prac2.practitioner_id,
|
|
35178
35722
|
value: val === null || val === void 0 ? void 0 : (_val$Requestor10 = val.Requestor) === null || _val$Requestor10 === void 0 ? void 0 : (_val$Requestor10$ = _val$Requestor10[0]) === null || _val$Requestor10$ === void 0 ? void 0 : (_val$Requestor10$$pra = _val$Requestor10$.practId) === null || _val$Requestor10$$pra === void 0 ? void 0 : (_val$Requestor10$$pra2 = _val$Requestor10$$pra[0]) === null || _val$Requestor10$$pra2 === void 0 ? void 0 : _val$Requestor10$$pra2.id,
|
|
35179
|
-
label: makeName((val === null || val === void 0 ? void 0 : (_val$Requestor11 = val.Requestor) === null || _val$Requestor11 === void 0 ? void 0 : (_val$Requestor11$ = _val$Requestor11[0]) === null || _val$Requestor11$ === void 0 ? void 0 : (_val$Requestor11$$pra = _val$Requestor11$.practId) === null || _val$Requestor11$$pra === void 0 ? void 0 : (_val$Requestor11$$pra2 = _val$Requestor11$$pra[0]) === null || _val$Requestor11$$pra2 === void 0 ? void 0 : (_val$Requestor11$$pra3 = _val$Requestor11$$pra2.name) === null || _val$Requestor11$$pra3 === void 0 ? void 0 : _val$Requestor11$$pra3[0]) || {})
|
|
35723
|
+
label: makeName$1((val === null || val === void 0 ? void 0 : (_val$Requestor11 = val.Requestor) === null || _val$Requestor11 === void 0 ? void 0 : (_val$Requestor11$ = _val$Requestor11[0]) === null || _val$Requestor11$ === void 0 ? void 0 : (_val$Requestor11$$pra = _val$Requestor11$.practId) === null || _val$Requestor11$$pra === void 0 ? void 0 : (_val$Requestor11$$pra2 = _val$Requestor11$$pra[0]) === null || _val$Requestor11$$pra2 === void 0 ? void 0 : (_val$Requestor11$$pra3 = _val$Requestor11$$pra2.name) === null || _val$Requestor11$$pra3 === void 0 ? void 0 : _val$Requestor11$$pra3[0]) || {})
|
|
35180
35724
|
}
|
|
35181
35725
|
},
|
|
35182
35726
|
indication: {
|
|
@@ -35325,7 +35869,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
35325
35869
|
orderBy: {
|
|
35326
35870
|
practitioner_id: val === null || val === void 0 ? void 0 : (_val$Requestor20 = val.Requestor) === null || _val$Requestor20 === void 0 ? void 0 : (_val$Requestor20$ = _val$Requestor20[0]) === null || _val$Requestor20$ === void 0 ? void 0 : (_val$Requestor20$$pra = _val$Requestor20$.practId) === null || _val$Requestor20$$pra === void 0 ? void 0 : (_val$Requestor20$$pra2 = _val$Requestor20$$pra[0]) === null || _val$Requestor20$$pra2 === void 0 ? void 0 : _val$Requestor20$$pra2.practitioner_id,
|
|
35327
35871
|
value: val === null || val === void 0 ? void 0 : (_val$Requestor21 = val.Requestor) === null || _val$Requestor21 === void 0 ? void 0 : (_val$Requestor21$ = _val$Requestor21[0]) === null || _val$Requestor21$ === void 0 ? void 0 : (_val$Requestor21$$pra = _val$Requestor21$.practId) === null || _val$Requestor21$$pra === void 0 ? void 0 : (_val$Requestor21$$pra2 = _val$Requestor21$$pra[0]) === null || _val$Requestor21$$pra2 === void 0 ? void 0 : _val$Requestor21$$pra2.id,
|
|
35328
|
-
label: makeName((val === null || val === void 0 ? void 0 : (_val$Requestor22 = val.Requestor) === null || _val$Requestor22 === void 0 ? void 0 : (_val$Requestor22$ = _val$Requestor22[0]) === null || _val$Requestor22$ === void 0 ? void 0 : (_val$Requestor22$$pra = _val$Requestor22$.practId) === null || _val$Requestor22$$pra === void 0 ? void 0 : (_val$Requestor22$$pra2 = _val$Requestor22$$pra[0]) === null || _val$Requestor22$$pra2 === void 0 ? void 0 : (_val$Requestor22$$pra3 = _val$Requestor22$$pra2.name) === null || _val$Requestor22$$pra3 === void 0 ? void 0 : _val$Requestor22$$pra3[0]) || {})
|
|
35872
|
+
label: makeName$1((val === null || val === void 0 ? void 0 : (_val$Requestor22 = val.Requestor) === null || _val$Requestor22 === void 0 ? void 0 : (_val$Requestor22$ = _val$Requestor22[0]) === null || _val$Requestor22$ === void 0 ? void 0 : (_val$Requestor22$$pra = _val$Requestor22$.practId) === null || _val$Requestor22$$pra === void 0 ? void 0 : (_val$Requestor22$$pra2 = _val$Requestor22$$pra[0]) === null || _val$Requestor22$$pra2 === void 0 ? void 0 : (_val$Requestor22$$pra3 = _val$Requestor22$$pra2.name) === null || _val$Requestor22$$pra3 === void 0 ? void 0 : _val$Requestor22$$pra3[0]) || {})
|
|
35329
35873
|
}
|
|
35330
35874
|
},
|
|
35331
35875
|
indication: {
|
|
@@ -37113,7 +37657,7 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
37113
37657
|
orderBy: {
|
|
37114
37658
|
practitioner_id: val === null || val === void 0 ? void 0 : (_val$Requestor9 = val.Requestor) === null || _val$Requestor9 === void 0 ? void 0 : (_val$Requestor9$ = _val$Requestor9[0]) === null || _val$Requestor9$ === void 0 ? void 0 : (_val$Requestor9$$prac = _val$Requestor9$.practId) === null || _val$Requestor9$$prac === void 0 ? void 0 : (_val$Requestor9$$prac2 = _val$Requestor9$$prac[0]) === null || _val$Requestor9$$prac2 === void 0 ? void 0 : _val$Requestor9$$prac2.practitioner_id,
|
|
37115
37659
|
value: val === null || val === void 0 ? void 0 : (_val$Requestor10 = val.Requestor) === null || _val$Requestor10 === void 0 ? void 0 : (_val$Requestor10$ = _val$Requestor10[0]) === null || _val$Requestor10$ === void 0 ? void 0 : (_val$Requestor10$$pra = _val$Requestor10$.practId) === null || _val$Requestor10$$pra === void 0 ? void 0 : (_val$Requestor10$$pra2 = _val$Requestor10$$pra[0]) === null || _val$Requestor10$$pra2 === void 0 ? void 0 : _val$Requestor10$$pra2.id,
|
|
37116
|
-
label: makeName((val === null || val === void 0 ? void 0 : (_val$Requestor11 = val.Requestor) === null || _val$Requestor11 === void 0 ? void 0 : (_val$Requestor11$ = _val$Requestor11[0]) === null || _val$Requestor11$ === void 0 ? void 0 : (_val$Requestor11$$pra = _val$Requestor11$.practId) === null || _val$Requestor11$$pra === void 0 ? void 0 : (_val$Requestor11$$pra2 = _val$Requestor11$$pra[0]) === null || _val$Requestor11$$pra2 === void 0 ? void 0 : (_val$Requestor11$$pra3 = _val$Requestor11$$pra2.name) === null || _val$Requestor11$$pra3 === void 0 ? void 0 : _val$Requestor11$$pra3[0]) || {})
|
|
37660
|
+
label: makeName$1((val === null || val === void 0 ? void 0 : (_val$Requestor11 = val.Requestor) === null || _val$Requestor11 === void 0 ? void 0 : (_val$Requestor11$ = _val$Requestor11[0]) === null || _val$Requestor11$ === void 0 ? void 0 : (_val$Requestor11$$pra = _val$Requestor11$.practId) === null || _val$Requestor11$$pra === void 0 ? void 0 : (_val$Requestor11$$pra2 = _val$Requestor11$$pra[0]) === null || _val$Requestor11$$pra2 === void 0 ? void 0 : (_val$Requestor11$$pra3 = _val$Requestor11$$pra2.name) === null || _val$Requestor11$$pra3 === void 0 ? void 0 : _val$Requestor11$$pra3[0]) || {})
|
|
37117
37661
|
}
|
|
37118
37662
|
},
|
|
37119
37663
|
indication: {
|
|
@@ -37266,7 +37810,7 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
37266
37810
|
orderBy: {
|
|
37267
37811
|
practitioner_id: val === null || val === void 0 ? void 0 : (_val$Requestor20 = val.Requestor) === null || _val$Requestor20 === void 0 ? void 0 : (_val$Requestor20$ = _val$Requestor20[0]) === null || _val$Requestor20$ === void 0 ? void 0 : (_val$Requestor20$$pra = _val$Requestor20$.practId) === null || _val$Requestor20$$pra === void 0 ? void 0 : (_val$Requestor20$$pra2 = _val$Requestor20$$pra[0]) === null || _val$Requestor20$$pra2 === void 0 ? void 0 : _val$Requestor20$$pra2.practitioner_id,
|
|
37268
37812
|
value: val === null || val === void 0 ? void 0 : (_val$Requestor21 = val.Requestor) === null || _val$Requestor21 === void 0 ? void 0 : (_val$Requestor21$ = _val$Requestor21[0]) === null || _val$Requestor21$ === void 0 ? void 0 : (_val$Requestor21$$pra = _val$Requestor21$.practId) === null || _val$Requestor21$$pra === void 0 ? void 0 : (_val$Requestor21$$pra2 = _val$Requestor21$$pra[0]) === null || _val$Requestor21$$pra2 === void 0 ? void 0 : _val$Requestor21$$pra2.id,
|
|
37269
|
-
label: makeName((val === null || val === void 0 ? void 0 : (_val$Requestor22 = val.Requestor) === null || _val$Requestor22 === void 0 ? void 0 : (_val$Requestor22$ = _val$Requestor22[0]) === null || _val$Requestor22$ === void 0 ? void 0 : (_val$Requestor22$$pra = _val$Requestor22$.practId) === null || _val$Requestor22$$pra === void 0 ? void 0 : (_val$Requestor22$$pra2 = _val$Requestor22$$pra[0]) === null || _val$Requestor22$$pra2 === void 0 ? void 0 : (_val$Requestor22$$pra3 = _val$Requestor22$$pra2.name) === null || _val$Requestor22$$pra3 === void 0 ? void 0 : _val$Requestor22$$pra3[0]) || {})
|
|
37813
|
+
label: makeName$1((val === null || val === void 0 ? void 0 : (_val$Requestor22 = val.Requestor) === null || _val$Requestor22 === void 0 ? void 0 : (_val$Requestor22$ = _val$Requestor22[0]) === null || _val$Requestor22$ === void 0 ? void 0 : (_val$Requestor22$$pra = _val$Requestor22$.practId) === null || _val$Requestor22$$pra === void 0 ? void 0 : (_val$Requestor22$$pra2 = _val$Requestor22$$pra[0]) === null || _val$Requestor22$$pra2 === void 0 ? void 0 : (_val$Requestor22$$pra3 = _val$Requestor22$$pra2.name) === null || _val$Requestor22$$pra3 === void 0 ? void 0 : _val$Requestor22$$pra3[0]) || {})
|
|
37270
37814
|
}
|
|
37271
37815
|
},
|
|
37272
37816
|
indication: {
|
|
@@ -39623,7 +40167,7 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
39623
40167
|
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 : "",
|
|
39624
40168
|
//title: "Role",
|
|
39625
40169
|
date: utcTOLocal$1(element.updatedate, "MMMM Do h:mm a"),
|
|
39626
|
-
name: element.practitionerid.length > 0 ? makeName(((_element$practitioner6 = element.practitionerid[0]) === null || _element$practitioner6 === void 0 ? void 0 : _element$practitioner6.name[0]) || {}) : "Dummy"
|
|
40170
|
+
name: element.practitionerid.length > 0 ? makeName$1(((_element$practitioner6 = element.practitionerid[0]) === null || _element$practitioner6 === void 0 ? void 0 : _element$practitioner6.name[0]) || {}) : "Dummy"
|
|
39627
40171
|
}, element);
|
|
39628
40172
|
|
|
39629
40173
|
var childObj = {
|
|
@@ -39651,7 +40195,7 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
39651
40195
|
var _userObj = _objectSpread2({
|
|
39652
40196
|
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 : "",
|
|
39653
40197
|
date: utcTOLocal$1(element.updatedate, "MMMM Do h:mm:ss a"),
|
|
39654
|
-
name: element.practitionerid.length > 0 ? makeName(((_element$practitioner12 = element.practitionerid[0]) === null || _element$practitioner12 === void 0 ? void 0 : _element$practitioner12.name[0]) || {}) : "Dummy"
|
|
40198
|
+
name: element.practitionerid.length > 0 ? makeName$1(((_element$practitioner12 = element.practitionerid[0]) === null || _element$practitioner12 === void 0 ? void 0 : _element$practitioner12.name[0]) || {}) : "Dummy"
|
|
39655
40199
|
}, element);
|
|
39656
40200
|
|
|
39657
40201
|
var childObj = {
|
|
@@ -39676,7 +40220,7 @@ var generatePractitoner = function generatePractitoner(data) {
|
|
|
39676
40220
|
var userObj = _objectSpread2({
|
|
39677
40221
|
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 : "",
|
|
39678
40222
|
date: utcTOLocal$1(element.updatedate, "MMMM Do h:mm a"),
|
|
39679
|
-
name: element.practitionerid.length > 0 ? makeName(((_element$practitioner17 = element.practitionerid[0]) === null || _element$practitioner17 === void 0 ? void 0 : _element$practitioner17.name[0]) || {}) : "Dummy"
|
|
40223
|
+
name: element.practitionerid.length > 0 ? makeName$1(((_element$practitioner17 = element.practitionerid[0]) === null || _element$practitioner17 === void 0 ? void 0 : _element$practitioner17.name[0]) || {}) : "Dummy"
|
|
39680
40224
|
}, element);
|
|
39681
40225
|
|
|
39682
40226
|
arr.push(userObj);
|
|
@@ -40653,7 +41197,7 @@ var config$1 = [{
|
|
|
40653
41197
|
_id: _id,
|
|
40654
41198
|
id: id,
|
|
40655
41199
|
value: _id,
|
|
40656
|
-
label: makeName((name === null || name === void 0 ? void 0 : name[0]) || {}),
|
|
41200
|
+
label: makeName$1((name === null || name === void 0 ? void 0 : name[0]) || {}),
|
|
40657
41201
|
_key: _key
|
|
40658
41202
|
};
|
|
40659
41203
|
});
|
|
@@ -40885,12 +41429,21 @@ var highPriorityQueveQueries = {
|
|
|
40885
41429
|
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})"
|
|
40886
41430
|
};
|
|
40887
41431
|
},
|
|
41432
|
+
// reasonDropDown: () => {
|
|
41433
|
+
// return{
|
|
41434
|
+
// db_name: dbName,
|
|
41435
|
+
// entity: "ReasonMaster",
|
|
41436
|
+
// filter: "ReasonMaster.activestatus==true",
|
|
41437
|
+
// return_fields: "{_id:ReasonMaster._id,key:ReasonMaster._key,id:ReasonMaster.id,ReasonCode:ReasonMaster.ReasonCode,ReasonDesc:ReasonMaster.ReasonDesc}"
|
|
41438
|
+
// }
|
|
41439
|
+
// }
|
|
40888
41440
|
reasonDropDown: function reasonDropDown() {
|
|
40889
41441
|
return {
|
|
40890
|
-
db_name: dbName,
|
|
40891
|
-
entity: "
|
|
40892
|
-
filter: "
|
|
40893
|
-
return_fields: "
|
|
41442
|
+
"db_name": dbName,
|
|
41443
|
+
"entity": "CodingMaster",
|
|
41444
|
+
"filter": "CodingMaster.Type=='PRIORITYREASON' && CodingMaster.activestatus==true && CodingMaster.status==true",
|
|
41445
|
+
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')",
|
|
41446
|
+
"Sort": "CodingMaster.Createddate"
|
|
40894
41447
|
};
|
|
40895
41448
|
}
|
|
40896
41449
|
};
|
|
@@ -40986,8 +41539,11 @@ var PRIORITY_REASON_DROPDOWN = createAsyncThunk("highPriorityApiSlice/priorityRe
|
|
|
40986
41539
|
data = _context2.sent;
|
|
40987
41540
|
obj = [];
|
|
40988
41541
|
data.result.map(function (val) {
|
|
41542
|
+
var _val$display;
|
|
41543
|
+
|
|
40989
41544
|
obj.push({
|
|
40990
|
-
value:
|
|
41545
|
+
// value:val?.ReasonDesc,
|
|
41546
|
+
value: (_val$display = val === null || val === void 0 ? void 0 : val.display) !== null && _val$display !== void 0 ? _val$display : "",
|
|
40991
41547
|
label: val === null || val === void 0 ? void 0 : val._id
|
|
40992
41548
|
});
|
|
40993
41549
|
});
|
|
@@ -41361,7 +41917,7 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
|
|
|
41361
41917
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
41362
41918
|
// ? getImgUrl(_?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid)
|
|
41363
41919
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
41364
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment = _.Appointment) === null || _$Appointment === void 0 ? void 0 : (_$Appointment$PersonI = _$Appointment.PersonID) === null || _$Appointment$PersonI === void 0 ? void 0 : (_$Appointment$PersonI2 = _$Appointment$PersonI[0]) === null || _$Appointment$PersonI2 === void 0 ? void 0 : (_$Appointment$PersonI3 = _$Appointment$PersonI2.name) === null || _$Appointment$PersonI3 === void 0 ? void 0 : _$Appointment$PersonI3[0]) || {}),
|
|
41920
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$Appointment = _.Appointment) === null || _$Appointment === void 0 ? void 0 : (_$Appointment$PersonI = _$Appointment.PersonID) === null || _$Appointment$PersonI === void 0 ? void 0 : (_$Appointment$PersonI2 = _$Appointment$PersonI[0]) === null || _$Appointment$PersonI2 === void 0 ? void 0 : (_$Appointment$PersonI3 = _$Appointment$PersonI2.name) === null || _$Appointment$PersonI3 === void 0 ? void 0 : _$Appointment$PersonI3[0]) || {}),
|
|
41365
41921
|
mrn: ((_$Appointment2 = _.Appointment) === null || _$Appointment2 === void 0 ? void 0 : (_$Appointment2$Person = _$Appointment2.PersonID) === null || _$Appointment2$Person === void 0 ? void 0 : (_$Appointment2$Person2 = _$Appointment2$Person[0]) === null || _$Appointment2$Person2 === void 0 ? void 0 : (_$Appointment2$Person3 = _$Appointment2$Person2.MRN) === null || _$Appointment2$Person3 === void 0 ? void 0 : _$Appointment2$Person3[0]) || "",
|
|
41366
41922
|
// enId: _.Encounter.id,
|
|
41367
41923
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment3 = _.Appointment) === null || _$Appointment3 === void 0 ? void 0 : (_$Appointment3$Person = _$Appointment3.PersonID) === null || _$Appointment3$Person === void 0 ? void 0 : (_$Appointment3$Person2 = _$Appointment3$Person[0]) === null || _$Appointment3$Person2 === void 0 ? void 0 : _$Appointment3$Person2.birthDay),
|
|
@@ -41469,7 +42025,7 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
|
|
|
41469
42025
|
// "Modify Appointment": true,
|
|
41470
42026
|
// "Cancel Appointment": true,
|
|
41471
42027
|
// "View Profile": true,
|
|
41472
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter = _.Encounter) === null || _$Encounter === void 0 ? void 0 : (_$Encounter$patient_i = _$Encounter.patient_id) === null || _$Encounter$patient_i === void 0 ? void 0 : (_$Encounter$patient_i2 = _$Encounter$patient_i[0]) === null || _$Encounter$patient_i2 === void 0 ? void 0 : (_$Encounter$patient_i3 = _$Encounter$patient_i2.name) === null || _$Encounter$patient_i3 === void 0 ? void 0 : _$Encounter$patient_i3[0]) || {}),
|
|
42028
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$Encounter = _.Encounter) === null || _$Encounter === void 0 ? void 0 : (_$Encounter$patient_i = _$Encounter.patient_id) === null || _$Encounter$patient_i === void 0 ? void 0 : (_$Encounter$patient_i2 = _$Encounter$patient_i[0]) === null || _$Encounter$patient_i2 === void 0 ? void 0 : (_$Encounter$patient_i3 = _$Encounter$patient_i2.name) === null || _$Encounter$patient_i3 === void 0 ? void 0 : _$Encounter$patient_i3[0]) || {}),
|
|
41473
42029
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$Encounter2 = _.Encounter) === null || _$Encounter2 === void 0 ? void 0 : (_$Encounter2$patient_ = _$Encounter2.patient_id) === null || _$Encounter2$patient_ === void 0 ? void 0 : (_$Encounter2$patient_2 = _$Encounter2$patient_[0]) === null || _$Encounter2$patient_2 === void 0 ? void 0 : _$Encounter2$patient_2.MRN) || "",
|
|
41474
42030
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment13 = _.Appointment) === null || _$Appointment13 === void 0 ? void 0 : (_$Appointment13$Perso = _$Appointment13.PersonID) === null || _$Appointment13$Perso === void 0 ? void 0 : (_$Appointment13$Perso2 = _$Appointment13$Perso[0]) === null || _$Appointment13$Perso2 === void 0 ? void 0 : _$Appointment13$Perso2.birthDay),
|
|
41475
42031
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment14 = _.Appointment) === null || _$Appointment14 === void 0 ? void 0 : _$Appointment14.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment15 = _.Appointment) === null || _$Appointment15 === void 0 ? void 0 : _$Appointment15.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment16 = _.Appointment) === null || _$Appointment16 === void 0 ? void 0 : _$Appointment16.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment17 = _.Appointment) === null || _$Appointment17 === void 0 ? void 0 : _$Appointment17.start, "hh:mm A") : ""),
|
|
@@ -41573,7 +42129,7 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
41573
42129
|
// "Modify Appointment": true,
|
|
41574
42130
|
// "Cancel Appointment": true,
|
|
41575
42131
|
// "View Profile": true,
|
|
41576
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter8 = _.Encounter) === null || _$Encounter8 === void 0 ? void 0 : (_$Encounter8$patient_ = _$Encounter8.patient_id) === null || _$Encounter8$patient_ === void 0 ? void 0 : (_$Encounter8$patient_2 = _$Encounter8$patient_[0]) === null || _$Encounter8$patient_2 === void 0 ? void 0 : (_$Encounter8$patient_3 = _$Encounter8$patient_2.name) === null || _$Encounter8$patient_3 === void 0 ? void 0 : _$Encounter8$patient_3[0]) || {}),
|
|
42132
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$Encounter8 = _.Encounter) === null || _$Encounter8 === void 0 ? void 0 : (_$Encounter8$patient_ = _$Encounter8.patient_id) === null || _$Encounter8$patient_ === void 0 ? void 0 : (_$Encounter8$patient_2 = _$Encounter8$patient_[0]) === null || _$Encounter8$patient_2 === void 0 ? void 0 : (_$Encounter8$patient_3 = _$Encounter8$patient_2.name) === null || _$Encounter8$patient_3 === void 0 ? void 0 : _$Encounter8$patient_3[0]) || {}),
|
|
41577
42133
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$Encounter9 = _.Encounter) === null || _$Encounter9 === void 0 ? void 0 : (_$Encounter9$patient_ = _$Encounter9.patient_id) === null || _$Encounter9$patient_ === void 0 ? void 0 : (_$Encounter9$patient_2 = _$Encounter9$patient_[0]) === null || _$Encounter9$patient_2 === void 0 ? void 0 : _$Encounter9$patient_2.MRN) || "",
|
|
41578
42134
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment20 = _.Appointment) === null || _$Appointment20 === void 0 ? void 0 : (_$Appointment20$Perso = _$Appointment20.PersonID) === null || _$Appointment20$Perso === void 0 ? void 0 : (_$Appointment20$Perso2 = _$Appointment20$Perso[0]) === null || _$Appointment20$Perso2 === void 0 ? void 0 : _$Appointment20$Perso2.birthDay),
|
|
41579
42135
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment21 = _.Appointment) === null || _$Appointment21 === void 0 ? void 0 : _$Appointment21.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment22 = _.Appointment) === null || _$Appointment22 === void 0 ? void 0 : _$Appointment22.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment23 = _.Appointment) === null || _$Appointment23 === void 0 ? void 0 : _$Appointment23.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment24 = _.Appointment) === null || _$Appointment24 === void 0 ? void 0 : _$Appointment24.start, "hh:mm A") : ""),
|
|
@@ -41677,7 +42233,7 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
41677
42233
|
// "Modify Appointment": true,
|
|
41678
42234
|
// "Cancel Appointment": true,
|
|
41679
42235
|
// "View Profile": true,
|
|
41680
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter15 = _.Encounter) === null || _$Encounter15 === void 0 ? void 0 : (_$Encounter15$patient = _$Encounter15.patient_id) === null || _$Encounter15$patient === void 0 ? void 0 : (_$Encounter15$patient2 = _$Encounter15$patient[0]) === null || _$Encounter15$patient2 === void 0 ? void 0 : (_$Encounter15$patient3 = _$Encounter15$patient2.name) === null || _$Encounter15$patient3 === void 0 ? void 0 : _$Encounter15$patient3[0]) || {}),
|
|
42236
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$Encounter15 = _.Encounter) === null || _$Encounter15 === void 0 ? void 0 : (_$Encounter15$patient = _$Encounter15.patient_id) === null || _$Encounter15$patient === void 0 ? void 0 : (_$Encounter15$patient2 = _$Encounter15$patient[0]) === null || _$Encounter15$patient2 === void 0 ? void 0 : (_$Encounter15$patient3 = _$Encounter15$patient2.name) === null || _$Encounter15$patient3 === void 0 ? void 0 : _$Encounter15$patient3[0]) || {}),
|
|
41681
42237
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$Encounter16 = _.Encounter) === null || _$Encounter16 === void 0 ? void 0 : (_$Encounter16$patient = _$Encounter16.patient_id) === null || _$Encounter16$patient === void 0 ? void 0 : (_$Encounter16$patient2 = _$Encounter16$patient[0]) === null || _$Encounter16$patient2 === void 0 ? void 0 : _$Encounter16$patient2.MRN) || "",
|
|
41682
42238
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment27 = _.Appointment) === null || _$Appointment27 === void 0 ? void 0 : (_$Appointment27$Perso = _$Appointment27.PersonID) === null || _$Appointment27$Perso === void 0 ? void 0 : (_$Appointment27$Perso2 = _$Appointment27$Perso[0]) === null || _$Appointment27$Perso2 === void 0 ? void 0 : _$Appointment27$Perso2.birthDay),
|
|
41683
42239
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment28 = _.Appointment) === null || _$Appointment28 === void 0 ? void 0 : _$Appointment28.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment29 = _.Appointment) === null || _$Appointment29 === void 0 ? void 0 : _$Appointment29.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment30 = _.Appointment) === null || _$Appointment30 === void 0 ? void 0 : _$Appointment30.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment31 = _.Appointment) === null || _$Appointment31 === void 0 ? void 0 : _$Appointment31.start, "hh:mm A") : ""),
|
|
@@ -41781,7 +42337,7 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
41781
42337
|
// "Modify Appointment": true,
|
|
41782
42338
|
// "Cancel Appointment": true,
|
|
41783
42339
|
// "View Profile": true,
|
|
41784
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter22 = _.Encounter) === null || _$Encounter22 === void 0 ? void 0 : (_$Encounter22$patient = _$Encounter22.patient_id) === null || _$Encounter22$patient === void 0 ? void 0 : (_$Encounter22$patient2 = _$Encounter22$patient[0]) === null || _$Encounter22$patient2 === void 0 ? void 0 : (_$Encounter22$patient3 = _$Encounter22$patient2.name) === null || _$Encounter22$patient3 === void 0 ? void 0 : _$Encounter22$patient3[0]) || {}),
|
|
42340
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$Encounter22 = _.Encounter) === null || _$Encounter22 === void 0 ? void 0 : (_$Encounter22$patient = _$Encounter22.patient_id) === null || _$Encounter22$patient === void 0 ? void 0 : (_$Encounter22$patient2 = _$Encounter22$patient[0]) === null || _$Encounter22$patient2 === void 0 ? void 0 : (_$Encounter22$patient3 = _$Encounter22$patient2.name) === null || _$Encounter22$patient3 === void 0 ? void 0 : _$Encounter22$patient3[0]) || {}),
|
|
41785
42341
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$Encounter23 = _.Encounter) === null || _$Encounter23 === void 0 ? void 0 : (_$Encounter23$patient = _$Encounter23.patient_id) === null || _$Encounter23$patient === void 0 ? void 0 : (_$Encounter23$patient2 = _$Encounter23$patient[0]) === null || _$Encounter23$patient2 === void 0 ? void 0 : _$Encounter23$patient2.MRN) || "",
|
|
41786
42342
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment34 = _.Appointment) === null || _$Appointment34 === void 0 ? void 0 : (_$Appointment34$Perso = _$Appointment34.PersonID) === null || _$Appointment34$Perso === void 0 ? void 0 : (_$Appointment34$Perso2 = _$Appointment34$Perso[0]) === null || _$Appointment34$Perso2 === void 0 ? void 0 : _$Appointment34$Perso2.birthDay),
|
|
41787
42343
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment35 = _.Appointment) === null || _$Appointment35 === void 0 ? void 0 : _$Appointment35.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment36 = _.Appointment) === null || _$Appointment36 === void 0 ? void 0 : _$Appointment36.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment37 = _.Appointment) === null || _$Appointment37 === void 0 ? void 0 : _$Appointment37.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment38 = _.Appointment) === null || _$Appointment38 === void 0 ? void 0 : _$Appointment38.start, "hh:mm A") : ""),
|
|
@@ -41886,7 +42442,7 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
|
|
|
41886
42442
|
// "Modify Appointment": true,
|
|
41887
42443
|
// "Cancel Appointment": true,
|
|
41888
42444
|
// "View Profile": true,
|
|
41889
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter29 = _.Encounter) === null || _$Encounter29 === void 0 ? void 0 : (_$Encounter29$patient = _$Encounter29.patient_id) === null || _$Encounter29$patient === void 0 ? void 0 : (_$Encounter29$patient2 = _$Encounter29$patient[0]) === null || _$Encounter29$patient2 === void 0 ? void 0 : (_$Encounter29$patient3 = _$Encounter29$patient2.name) === null || _$Encounter29$patient3 === void 0 ? void 0 : _$Encounter29$patient3[0]) || {}),
|
|
42445
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$Encounter29 = _.Encounter) === null || _$Encounter29 === void 0 ? void 0 : (_$Encounter29$patient = _$Encounter29.patient_id) === null || _$Encounter29$patient === void 0 ? void 0 : (_$Encounter29$patient2 = _$Encounter29$patient[0]) === null || _$Encounter29$patient2 === void 0 ? void 0 : (_$Encounter29$patient3 = _$Encounter29$patient2.name) === null || _$Encounter29$patient3 === void 0 ? void 0 : _$Encounter29$patient3[0]) || {}),
|
|
41890
42446
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$Encounter30 = _.Encounter) === null || _$Encounter30 === void 0 ? void 0 : (_$Encounter30$patient = _$Encounter30.patient_id) === null || _$Encounter30$patient === void 0 ? void 0 : (_$Encounter30$patient2 = _$Encounter30$patient[0]) === null || _$Encounter30$patient2 === void 0 ? void 0 : _$Encounter30$patient2.MRN) || "",
|
|
41891
42447
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment41 = _.Appointment) === null || _$Appointment41 === void 0 ? void 0 : (_$Appointment41$Perso = _$Appointment41.PersonID) === null || _$Appointment41$Perso === void 0 ? void 0 : (_$Appointment41$Perso2 = _$Appointment41$Perso[0]) === null || _$Appointment41$Perso2 === void 0 ? void 0 : _$Appointment41$Perso2.birthDay),
|
|
41892
42448
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment42 = _.Appointment) === null || _$Appointment42 === void 0 ? void 0 : _$Appointment42.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment43 = _.Appointment) === null || _$Appointment43 === void 0 ? void 0 : _$Appointment43.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment44 = _.Appointment) === null || _$Appointment44 === void 0 ? void 0 : _$Appointment44.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment45 = _.Appointment) === null || _$Appointment45 === void 0 ? void 0 : _$Appointment45.start, "hh:mm A") : ""),
|
|
@@ -41967,7 +42523,7 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
41967
42523
|
// _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
41968
42524
|
// )
|
|
41969
42525
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
41970
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment48 = _.Appointment) === null || _$Appointment48 === void 0 ? void 0 : (_$Appointment48$Perso = _$Appointment48.PersonID) === null || _$Appointment48$Perso === void 0 ? void 0 : (_$Appointment48$Perso2 = _$Appointment48$Perso[0]) === null || _$Appointment48$Perso2 === void 0 ? void 0 : (_$Appointment48$Perso3 = _$Appointment48$Perso2.name) === null || _$Appointment48$Perso3 === void 0 ? void 0 : _$Appointment48$Perso3[0]) || {}),
|
|
42526
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$Appointment48 = _.Appointment) === null || _$Appointment48 === void 0 ? void 0 : (_$Appointment48$Perso = _$Appointment48.PersonID) === null || _$Appointment48$Perso === void 0 ? void 0 : (_$Appointment48$Perso2 = _$Appointment48$Perso[0]) === null || _$Appointment48$Perso2 === void 0 ? void 0 : (_$Appointment48$Perso3 = _$Appointment48$Perso2.name) === null || _$Appointment48$Perso3 === void 0 ? void 0 : _$Appointment48$Perso3[0]) || {}),
|
|
41971
42527
|
mrn: ((_$Appointment49 = _.Appointment) === null || _$Appointment49 === void 0 ? void 0 : (_$Appointment49$Perso = _$Appointment49.PersonID) === null || _$Appointment49$Perso === void 0 ? void 0 : (_$Appointment49$Perso2 = _$Appointment49$Perso[0]) === null || _$Appointment49$Perso2 === void 0 ? void 0 : (_$Appointment49$Perso3 = _$Appointment49$Perso2.MRN) === null || _$Appointment49$Perso3 === void 0 ? void 0 : _$Appointment49$Perso3[0]) || "",
|
|
41972
42528
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment50 = _.Appointment) === null || _$Appointment50 === void 0 ? void 0 : (_$Appointment50$Perso = _$Appointment50.PersonID) === null || _$Appointment50$Perso === void 0 ? void 0 : (_$Appointment50$Perso2 = _$Appointment50$Perso[0]) === null || _$Appointment50$Perso2 === void 0 ? void 0 : _$Appointment50$Perso2.birthDay),
|
|
41973
42529
|
// genderData: "M",
|
|
@@ -41984,7 +42540,7 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
41984
42540
|
// }),
|
|
41985
42541
|
// clinic: _?.practitioner_details?.[0]?.clinic || "",
|
|
41986
42542
|
visitType: (_$Encounter$0$visit_t = _ === null || _ === void 0 ? void 0 : (_$Encounter36 = _.Encounter) === null || _$Encounter36 === void 0 ? void 0 : (_$Encounter36$ = _$Encounter36[0]) === null || _$Encounter36$ === void 0 ? void 0 : _$Encounter36$.visit_type) !== null && _$Encounter$0$visit_t !== void 0 ? _$Encounter$0$visit_t : "",
|
|
41987
|
-
practitionerName: makeName(_ === null || _ === void 0 ? void 0 : (_$Appointment58 = _.Appointment) === null || _$Appointment58 === void 0 ? void 0 : (_$Appointment58$resou = _$Appointment58.resourcecode) === null || _$Appointment58$resou === void 0 ? void 0 : _$Appointment58$resou.name),
|
|
42543
|
+
practitionerName: makeName$1(_ === null || _ === void 0 ? void 0 : (_$Appointment58 = _.Appointment) === null || _$Appointment58 === void 0 ? void 0 : (_$Appointment58$resou = _$Appointment58.resourcecode) === null || _$Appointment58$resou === void 0 ? void 0 : _$Appointment58$resou.name),
|
|
41988
42544
|
speciality: (_ === null || _ === void 0 ? void 0 : (_$Appointment59 = _.Appointment) === null || _$Appointment59 === void 0 ? void 0 : (_$Appointment59$Speci = _$Appointment59.SpecialtyID) === null || _$Appointment59$Speci === void 0 ? void 0 : (_$Appointment59$Speci2 = _$Appointment59$Speci[0]) === null || _$Appointment59$Speci2 === void 0 ? void 0 : (_$Appointment59$Speci3 = _$Appointment59$Speci2.coding) === null || _$Appointment59$Speci3 === void 0 ? void 0 : (_$Appointment59$Speci4 = _$Appointment59$Speci3[0]) === null || _$Appointment59$Speci4 === void 0 ? void 0 : _$Appointment59$Speci4.display) || "",
|
|
41989
42545
|
clinic: (_ === null || _ === void 0 ? void 0 : (_$Appointment60 = _.Appointment) === null || _$Appointment60 === void 0 ? void 0 : (_$Appointment60$orgid = _$Appointment60.orgid) === null || _$Appointment60$orgid === void 0 ? void 0 : _$Appointment60$orgid.name) || "",
|
|
41990
42546
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment61 = _.Appointment) === null || _$Appointment61 === void 0 ? void 0 : _$Appointment61.appstatus) || "",
|
|
@@ -42078,7 +42634,7 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
42078
42634
|
// // gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
42079
42635
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
42080
42636
|
// pId: _?.patient_id?.id ?? "",
|
|
42081
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id = _.patient_id) === null || _$patient_id === void 0 ? void 0 : (_$patient_id$ = _$patient_id[0]) === null || _$patient_id$ === void 0 ? void 0 : (_$patient_id$$name = _$patient_id$.name) === null || _$patient_id$$name === void 0 ? void 0 : _$patient_id$$name[0]) || {}),
|
|
42637
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$patient_id = _.patient_id) === null || _$patient_id === void 0 ? void 0 : (_$patient_id$ = _$patient_id[0]) === null || _$patient_id$ === void 0 ? void 0 : (_$patient_id$$name = _$patient_id$.name) === null || _$patient_id$$name === void 0 ? void 0 : _$patient_id$$name[0]) || {}),
|
|
42082
42638
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id2 = _.patient_id) === null || _$patient_id2 === void 0 ? void 0 : (_$patient_id2$ = _$patient_id2[0]) === null || _$patient_id2$ === void 0 ? void 0 : _$patient_id2$.alias) || "",
|
|
42083
42639
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId = _.appointmentId) === null || _$appointmentId === void 0 ? void 0 : (_$appointmentId$ = _$appointmentId[0]) === null || _$appointmentId$ === void 0 ? void 0 : (_$appointmentId$$Pers = _$appointmentId$.PersonID) === null || _$appointmentId$$Pers === void 0 ? void 0 : (_$appointmentId$$Pers2 = _$appointmentId$$Pers[0]) === null || _$appointmentId$$Pers2 === void 0 ? void 0 : _$appointmentId$$Pers2.birthDay),
|
|
42084
42640
|
contact: (_$patient_id$0$teleco = _ === null || _ === void 0 ? void 0 : (_$patient_id3 = _.patient_id) === null || _$patient_id3 === void 0 ? void 0 : (_$patient_id3$ = _$patient_id3[0]) === null || _$patient_id3$ === void 0 ? void 0 : (_$patient_id3$$teleco = _$patient_id3$.telecom) === null || _$patient_id3$$teleco === void 0 ? void 0 : (_$patient_id3$$teleco2 = _$patient_id3$$teleco[0]) === null || _$patient_id3$$teleco2 === void 0 ? void 0 : _$patient_id3$$teleco2.value) !== null && _$patient_id$0$teleco !== void 0 ? _$patient_id$0$teleco : "",
|
|
@@ -42189,7 +42745,7 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
42189
42745
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
42190
42746
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
42191
42747
|
// }),
|
|
42192
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id4 = _.patient_id) === null || _$patient_id4 === void 0 ? void 0 : (_$patient_id4$ = _$patient_id4[0]) === null || _$patient_id4$ === void 0 ? void 0 : (_$patient_id4$$name = _$patient_id4$.name) === null || _$patient_id4$$name === void 0 ? void 0 : _$patient_id4$$name[0]) || {}),
|
|
42748
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$patient_id4 = _.patient_id) === null || _$patient_id4 === void 0 ? void 0 : (_$patient_id4$ = _$patient_id4[0]) === null || _$patient_id4$ === void 0 ? void 0 : (_$patient_id4$$name = _$patient_id4$.name) === null || _$patient_id4$$name === void 0 ? void 0 : _$patient_id4$$name[0]) || {}),
|
|
42193
42749
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id5 = _.patient_id) === null || _$patient_id5 === void 0 ? void 0 : (_$patient_id5$ = _$patient_id5[0]) === null || _$patient_id5$ === void 0 ? void 0 : _$patient_id5$.alias) || "",
|
|
42194
42750
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId8 = _.appointmentId) === null || _$appointmentId8 === void 0 ? void 0 : (_$appointmentId8$ = _$appointmentId8[0]) === null || _$appointmentId8$ === void 0 ? void 0 : (_$appointmentId8$$Per = _$appointmentId8$.PersonID) === null || _$appointmentId8$$Per === void 0 ? void 0 : (_$appointmentId8$$Per2 = _$appointmentId8$$Per[0]) === null || _$appointmentId8$$Per2 === void 0 ? void 0 : _$appointmentId8$$Per2.birthDay),
|
|
42195
42751
|
contact: (_$patient_id$0$teleco2 = _ === null || _ === void 0 ? void 0 : (_$patient_id6 = _.patient_id) === null || _$patient_id6 === void 0 ? void 0 : (_$patient_id6$ = _$patient_id6[0]) === null || _$patient_id6$ === void 0 ? void 0 : (_$patient_id6$$teleco = _$patient_id6$.telecom) === null || _$patient_id6$$teleco === void 0 ? void 0 : (_$patient_id6$$teleco2 = _$patient_id6$$teleco[0]) === null || _$patient_id6$$teleco2 === void 0 ? void 0 : _$patient_id6$$teleco2.value) !== null && _$patient_id$0$teleco2 !== void 0 ? _$patient_id$0$teleco2 : "",
|
|
@@ -42300,7 +42856,7 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
42300
42856
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
42301
42857
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
42302
42858
|
// }),
|
|
42303
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id7 = _.patient_id) === null || _$patient_id7 === void 0 ? void 0 : (_$patient_id7$ = _$patient_id7[0]) === null || _$patient_id7$ === void 0 ? void 0 : (_$patient_id7$$name = _$patient_id7$.name) === null || _$patient_id7$$name === void 0 ? void 0 : _$patient_id7$$name[0]) || {}),
|
|
42859
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$patient_id7 = _.patient_id) === null || _$patient_id7 === void 0 ? void 0 : (_$patient_id7$ = _$patient_id7[0]) === null || _$patient_id7$ === void 0 ? void 0 : (_$patient_id7$$name = _$patient_id7$.name) === null || _$patient_id7$$name === void 0 ? void 0 : _$patient_id7$$name[0]) || {}),
|
|
42304
42860
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id8 = _.patient_id) === null || _$patient_id8 === void 0 ? void 0 : (_$patient_id8$ = _$patient_id8[0]) === null || _$patient_id8$ === void 0 ? void 0 : _$patient_id8$.alias) || "",
|
|
42305
42861
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId15 = _.appointmentId) === null || _$appointmentId15 === void 0 ? void 0 : (_$appointmentId15$ = _$appointmentId15[0]) === null || _$appointmentId15$ === void 0 ? void 0 : (_$appointmentId15$$Pe = _$appointmentId15$.PersonID) === null || _$appointmentId15$$Pe === void 0 ? void 0 : (_$appointmentId15$$Pe2 = _$appointmentId15$$Pe[0]) === null || _$appointmentId15$$Pe2 === void 0 ? void 0 : _$appointmentId15$$Pe2.birthDay),
|
|
42306
42862
|
contact: (_ === null || _ === void 0 ? void 0 : (_$patient_id9 = _.patient_id) === null || _$patient_id9 === void 0 ? void 0 : (_$patient_id9$ = _$patient_id9[0]) === null || _$patient_id9$ === void 0 ? void 0 : (_$patient_id9$$teleco = _$patient_id9$.telecom) === null || _$patient_id9$$teleco === void 0 ? void 0 : (_$patient_id9$$teleco2 = _$patient_id9$$teleco[0]) === null || _$patient_id9$$teleco2 === void 0 ? void 0 : _$patient_id9$$teleco2.value) ? JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id10 = _.patient_id) === null || _$patient_id10 === void 0 ? void 0 : (_$patient_id10$ = _$patient_id10[0]) === null || _$patient_id10$ === void 0 ? void 0 : (_$patient_id10$$telec = _$patient_id10$.telecom) === null || _$patient_id10$$telec === void 0 ? void 0 : (_$patient_id10$$telec2 = _$patient_id10$$telec[0]) === null || _$patient_id10$$telec2 === void 0 ? void 0 : _$patient_id10$$telec2.value) : "",
|
|
@@ -42408,7 +42964,7 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
42408
42964
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
42409
42965
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
42410
42966
|
// }),
|
|
42411
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id11 = _.patient_id) === null || _$patient_id11 === void 0 ? void 0 : (_$patient_id11$ = _$patient_id11[0]) === null || _$patient_id11$ === void 0 ? void 0 : (_$patient_id11$$name = _$patient_id11$.name) === null || _$patient_id11$$name === void 0 ? void 0 : _$patient_id11$$name[0]) || {}),
|
|
42967
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$patient_id11 = _.patient_id) === null || _$patient_id11 === void 0 ? void 0 : (_$patient_id11$ = _$patient_id11[0]) === null || _$patient_id11$ === void 0 ? void 0 : (_$patient_id11$$name = _$patient_id11$.name) === null || _$patient_id11$$name === void 0 ? void 0 : _$patient_id11$$name[0]) || {}),
|
|
42412
42968
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id12 = _.patient_id) === null || _$patient_id12 === void 0 ? void 0 : (_$patient_id12$ = _$patient_id12[0]) === null || _$patient_id12$ === void 0 ? void 0 : _$patient_id12$.MRN) || "",
|
|
42413
42969
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId22 = _.appointmentId) === null || _$appointmentId22 === void 0 ? void 0 : (_$appointmentId22$ = _$appointmentId22[0]) === null || _$appointmentId22$ === void 0 ? void 0 : (_$appointmentId22$$Pe = _$appointmentId22$.PersonID) === null || _$appointmentId22$$Pe === void 0 ? void 0 : (_$appointmentId22$$Pe2 = _$appointmentId22$$Pe[0]) === null || _$appointmentId22$$Pe2 === void 0 ? void 0 : _$appointmentId22$$Pe2.birthDay),
|
|
42414
42970
|
contact: (_ === null || _ === void 0 ? void 0 : (_$patient_id13 = _.patient_id) === null || _$patient_id13 === void 0 ? void 0 : (_$patient_id13$ = _$patient_id13[0]) === null || _$patient_id13$ === void 0 ? void 0 : (_$patient_id13$$telec = _$patient_id13$.telecom) === null || _$patient_id13$$telec === void 0 ? void 0 : (_$patient_id13$$telec2 = _$patient_id13$$telec[0]) === null || _$patient_id13$$telec2 === void 0 ? void 0 : _$patient_id13$$telec2.value) ? JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id14 = _.patient_id) === null || _$patient_id14 === void 0 ? void 0 : (_$patient_id14$ = _$patient_id14[0]) === null || _$patient_id14$ === void 0 ? void 0 : (_$patient_id14$$telec = _$patient_id14$.telecom) === null || _$patient_id14$$telec === void 0 ? void 0 : (_$patient_id14$$telec2 = _$patient_id14$$telec[0]) === null || _$patient_id14$$telec2 === void 0 ? void 0 : _$patient_id14$$telec2.value) : "",
|
|
@@ -42514,7 +43070,7 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
42514
43070
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
42515
43071
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
42516
43072
|
// }),
|
|
42517
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id15 = _.patient_id) === null || _$patient_id15 === void 0 ? void 0 : (_$patient_id15$ = _$patient_id15[0]) === null || _$patient_id15$ === void 0 ? void 0 : (_$patient_id15$$name = _$patient_id15$.name) === null || _$patient_id15$$name === void 0 ? void 0 : _$patient_id15$$name[0]) || {}),
|
|
43073
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$patient_id15 = _.patient_id) === null || _$patient_id15 === void 0 ? void 0 : (_$patient_id15$ = _$patient_id15[0]) === null || _$patient_id15$ === void 0 ? void 0 : (_$patient_id15$$name = _$patient_id15$.name) === null || _$patient_id15$$name === void 0 ? void 0 : _$patient_id15$$name[0]) || {}),
|
|
42518
43074
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id16 = _.patient_id) === null || _$patient_id16 === void 0 ? void 0 : (_$patient_id16$ = _$patient_id16[0]) === null || _$patient_id16$ === void 0 ? void 0 : _$patient_id16$.alias) || "",
|
|
42519
43075
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId29 = _.appointmentId) === null || _$appointmentId29 === void 0 ? void 0 : (_$appointmentId29$ = _$appointmentId29[0]) === null || _$appointmentId29$ === void 0 ? void 0 : (_$appointmentId29$$Pe = _$appointmentId29$.PersonID) === null || _$appointmentId29$$Pe === void 0 ? void 0 : (_$appointmentId29$$Pe2 = _$appointmentId29$$Pe[0]) === null || _$appointmentId29$$Pe2 === void 0 ? void 0 : _$appointmentId29$$Pe2.birthDay),
|
|
42520
43076
|
contact: (_ === null || _ === void 0 ? void 0 : (_$patient_id17 = _.patient_id) === null || _$patient_id17 === void 0 ? void 0 : (_$patient_id17$ = _$patient_id17[0]) === null || _$patient_id17$ === void 0 ? void 0 : (_$patient_id17$$telec = _$patient_id17$.telecom) === null || _$patient_id17$$telec === void 0 ? void 0 : (_$patient_id17$$telec2 = _$patient_id17$$telec[0]) === null || _$patient_id17$$telec2 === void 0 ? void 0 : _$patient_id17$$telec2.value) ? JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id18 = _.patient_id) === null || _$patient_id18 === void 0 ? void 0 : (_$patient_id18$ = _$patient_id18[0]) === null || _$patient_id18$ === void 0 ? void 0 : (_$patient_id18$$telec = _$patient_id18$.telecom) === null || _$patient_id18$$telec === void 0 ? void 0 : (_$patient_id18$$telec2 = _$patient_id18$$telec[0]) === null || _$patient_id18$$telec2 === void 0 ? void 0 : _$patient_id18$$telec2.value) : "",
|
|
@@ -42601,7 +43157,7 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
42601
43157
|
// // genderData: "M",
|
|
42602
43158
|
// contact: _.Appointment?.PersonID?.[0]?.telecom?.[0]?.value ?? ""
|
|
42603
43159
|
// }),
|
|
42604
|
-
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]) || {}),
|
|
43160
|
+
name: makeName$1((_ === 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]) || {}),
|
|
42605
43161
|
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]) || "",
|
|
42606
43162
|
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),
|
|
42607
43163
|
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) : "",
|
|
@@ -42626,7 +43182,7 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
42626
43182
|
// }).join(", ") ?? "",
|
|
42627
43183
|
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
42628
43184
|
// }),
|
|
42629
|
-
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),
|
|
43185
|
+
practitionerName: makeName$1(_ === 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),
|
|
42630
43186
|
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) || "",
|
|
42631
43187
|
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) || "",
|
|
42632
43188
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment75 = _.Appointment) === null || _$Appointment75 === void 0 ? void 0 : _$Appointment75.appstatus) || "",
|
|
@@ -42725,7 +43281,7 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
42725
43281
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
42726
43282
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
42727
43283
|
// }),
|
|
42728
|
-
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]) || {}),
|
|
43284
|
+
name: makeName$1((_ === 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]) || {}),
|
|
42729
43285
|
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) || "",
|
|
42730
43286
|
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),
|
|
42731
43287
|
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) : "",
|
|
@@ -42836,7 +43392,7 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
42836
43392
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
42837
43393
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
42838
43394
|
// }),
|
|
42839
|
-
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]) || {}),
|
|
43395
|
+
name: makeName$1((_ === 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]) || {}),
|
|
42840
43396
|
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) || "",
|
|
42841
43397
|
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),
|
|
42842
43398
|
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) : "",
|
|
@@ -42946,7 +43502,7 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
42946
43502
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
42947
43503
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
42948
43504
|
// }),
|
|
42949
|
-
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]) || {}),
|
|
43505
|
+
name: makeName$1((_ === 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]) || {}),
|
|
42950
43506
|
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) || "",
|
|
42951
43507
|
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),
|
|
42952
43508
|
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) : "",
|
|
@@ -43056,7 +43612,7 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
43056
43612
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
43057
43613
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
43058
43614
|
// }),
|
|
43059
|
-
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]) || {}),
|
|
43615
|
+
name: makeName$1((_ === 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]) || {}),
|
|
43060
43616
|
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) || "",
|
|
43061
43617
|
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),
|
|
43062
43618
|
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) : "",
|
|
@@ -43166,7 +43722,7 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
43166
43722
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender ?? "",
|
|
43167
43723
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? ""
|
|
43168
43724
|
// }),
|
|
43169
|
-
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]) || {}),
|
|
43725
|
+
name: makeName$1((_ === 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]) || {}),
|
|
43170
43726
|
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) || "",
|
|
43171
43727
|
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),
|
|
43172
43728
|
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) : "",
|
|
@@ -44173,7 +44729,7 @@ var DAY_BASED_PRACTITIONER_LIST = createAsyncThunk("dayEndProcessSlice/dayBasedP
|
|
|
44173
44729
|
arr = data.result.map(function (val) {
|
|
44174
44730
|
var _val$encounterid, _val$encounterid$pati, _val$encounterid$pati2, _val$encounterid$pati3, _val$appointmentid, _val$appointmentid$Pa, _val$appointmentid$Pa2, _val$appointmentid$Pa3, _val$appointmentid2, _val$appointmentid2$P, _val$appointmentid2$P2, _val$appointmentid2$P3, _val$encounterid2, _val$encounterid2$pat, _val$encounterid2$pat2, _val$appointmentid3, _val$appointmentid3$P, _val$appointmentid3$P2, _val$encounterid3, _val$encounterid3$pat, _val$encounterid3$pat2, _val$appointmentid4, _val$appointmentid4$P, _val$appointmentid4$P2, _val$appointmentid5, _val$appointmentid5$P, _val$appointmentid5$P2, _val$appointmentid6, _val$encounterid4, _val$encounterid5, _val$appointmentid7;
|
|
44175
44731
|
|
|
44176
|
-
var name = makeName(val === null || val === void 0 ? void 0 : (_val$encounterid = val.encounterid) === null || _val$encounterid === void 0 ? void 0 : (_val$encounterid$pati = _val$encounterid.patient_id) === null || _val$encounterid$pati === void 0 ? void 0 : (_val$encounterid$pati2 = _val$encounterid$pati[0]) === null || _val$encounterid$pati2 === void 0 ? void 0 : (_val$encounterid$pati3 = _val$encounterid$pati2.name) === null || _val$encounterid$pati3 === void 0 ? void 0 : _val$encounterid$pati3[0]) || makeName(val === null || val === void 0 ? void 0 : (_val$appointmentid = val.appointmentid) === null || _val$appointmentid === void 0 ? void 0 : (_val$appointmentid$Pa = _val$appointmentid.PatientID) === null || _val$appointmentid$Pa === void 0 ? void 0 : (_val$appointmentid$Pa2 = _val$appointmentid$Pa[0]) === null || _val$appointmentid$Pa2 === void 0 ? void 0 : (_val$appointmentid$Pa3 = _val$appointmentid$Pa2.name) === null || _val$appointmentid$Pa3 === void 0 ? void 0 : _val$appointmentid$Pa3[0]) || makeName(val === null || val === void 0 ? void 0 : (_val$appointmentid2 = val.appointmentid) === null || _val$appointmentid2 === void 0 ? void 0 : (_val$appointmentid2$P = _val$appointmentid2.Person) === null || _val$appointmentid2$P === void 0 ? void 0 : (_val$appointmentid2$P2 = _val$appointmentid2$P[0]) === null || _val$appointmentid2$P2 === void 0 ? void 0 : (_val$appointmentid2$P3 = _val$appointmentid2$P2.name) === null || _val$appointmentid2$P3 === void 0 ? void 0 : _val$appointmentid2$P3[0]);
|
|
44732
|
+
var name = makeName$1(val === null || val === void 0 ? void 0 : (_val$encounterid = val.encounterid) === null || _val$encounterid === void 0 ? void 0 : (_val$encounterid$pati = _val$encounterid.patient_id) === null || _val$encounterid$pati === void 0 ? void 0 : (_val$encounterid$pati2 = _val$encounterid$pati[0]) === null || _val$encounterid$pati2 === void 0 ? void 0 : (_val$encounterid$pati3 = _val$encounterid$pati2.name) === null || _val$encounterid$pati3 === void 0 ? void 0 : _val$encounterid$pati3[0]) || makeName$1(val === null || val === void 0 ? void 0 : (_val$appointmentid = val.appointmentid) === null || _val$appointmentid === void 0 ? void 0 : (_val$appointmentid$Pa = _val$appointmentid.PatientID) === null || _val$appointmentid$Pa === void 0 ? void 0 : (_val$appointmentid$Pa2 = _val$appointmentid$Pa[0]) === null || _val$appointmentid$Pa2 === void 0 ? void 0 : (_val$appointmentid$Pa3 = _val$appointmentid$Pa2.name) === null || _val$appointmentid$Pa3 === void 0 ? void 0 : _val$appointmentid$Pa3[0]) || makeName$1(val === null || val === void 0 ? void 0 : (_val$appointmentid2 = val.appointmentid) === null || _val$appointmentid2 === void 0 ? void 0 : (_val$appointmentid2$P = _val$appointmentid2.Person) === null || _val$appointmentid2$P === void 0 ? void 0 : (_val$appointmentid2$P2 = _val$appointmentid2$P[0]) === null || _val$appointmentid2$P2 === void 0 ? void 0 : (_val$appointmentid2$P3 = _val$appointmentid2$P2.name) === null || _val$appointmentid2$P3 === void 0 ? void 0 : _val$appointmentid2$P3[0]);
|
|
44177
44733
|
var MRN = (val === null || val === void 0 ? void 0 : (_val$encounterid2 = val.encounterid) === null || _val$encounterid2 === void 0 ? void 0 : (_val$encounterid2$pat = _val$encounterid2.patient_id) === null || _val$encounterid2$pat === void 0 ? void 0 : (_val$encounterid2$pat2 = _val$encounterid2$pat[0]) === null || _val$encounterid2$pat2 === void 0 ? void 0 : _val$encounterid2$pat2.MRN) || (val === null || val === void 0 ? void 0 : (_val$appointmentid3 = val.appointmentid) === null || _val$appointmentid3 === void 0 ? void 0 : (_val$appointmentid3$P = _val$appointmentid3.PatientID) === null || _val$appointmentid3$P === void 0 ? void 0 : (_val$appointmentid3$P2 = _val$appointmentid3$P[0]) === null || _val$appointmentid3$P2 === void 0 ? void 0 : _val$appointmentid3$P2.alias) || "----";
|
|
44178
44734
|
var age = getAge(val === null || val === void 0 ? void 0 : (_val$encounterid3 = val.encounterid) === null || _val$encounterid3 === void 0 ? void 0 : (_val$encounterid3$pat = _val$encounterid3.patient_id) === null || _val$encounterid3$pat === void 0 ? void 0 : (_val$encounterid3$pat2 = _val$encounterid3$pat[0]) === null || _val$encounterid3$pat2 === void 0 ? void 0 : _val$encounterid3$pat2.birthDate) || getAge(val === null || val === void 0 ? void 0 : (_val$appointmentid4 = val.appointmentid) === null || _val$appointmentid4 === void 0 ? void 0 : (_val$appointmentid4$P = _val$appointmentid4.PatientID) === null || _val$appointmentid4$P === void 0 ? void 0 : (_val$appointmentid4$P2 = _val$appointmentid4$P[0]) === null || _val$appointmentid4$P2 === void 0 ? void 0 : _val$appointmentid4$P2.birthDate) || getAge(val === null || val === void 0 ? void 0 : (_val$appointmentid5 = val.appointmentid) === null || _val$appointmentid5 === void 0 ? void 0 : (_val$appointmentid5$P = _val$appointmentid5.Person) === null || _val$appointmentid5$P === void 0 ? void 0 : (_val$appointmentid5$P2 = _val$appointmentid5$P[0]) === null || _val$appointmentid5$P2 === void 0 ? void 0 : _val$appointmentid5$P2.birthDate);
|
|
44179
44735
|
return {
|
|
@@ -44690,7 +45246,7 @@ var orderSetDropDown = {
|
|
|
44690
45246
|
};
|
|
44691
45247
|
|
|
44692
45248
|
var makeRadiologyData = function makeRadiologyData(order, info) {
|
|
44693
|
-
var _order$ordercategory, _info$org_id, _info$patientId, _info$encounterType, _info$encounterId, _order$orderSetsCode, _order$
|
|
45249
|
+
var _order$ordercategory, _info$org_id, _info$patientId, _info$encounterType, _info$encounterId, _order$orderSetsCode, _order$orderCatalog_i, _order$orderType$_id, _order$orderType, _order$orderNature, _order$priority, _moment$unix, _moment$unix2, _order$orderQty, _order$orderQtyUOM$_i, _order$orderQtyUOM, _info$status$value, _info$status, _order$freqValue, _order$freqValueUnit$, _order$freqValueUnit, _order$freqRate, _order$freqRateUnit$_, _order$freqRateUnit, _order$duration, _order$durationType$_, _order$durationType, _info$accessionNum, _order$IVDosDurValue, _order$IVDosDurUOM$_i, _order$IVDosDurUOM;
|
|
44694
45250
|
|
|
44695
45251
|
return {
|
|
44696
45252
|
db_name: dbName,
|
|
@@ -44707,7 +45263,8 @@ var makeRadiologyData = function makeRadiologyData(order, info) {
|
|
|
44707
45263
|
encounter_Id: (_info$encounterId = info === null || info === void 0 ? void 0 : info.encounterId) !== null && _info$encounterId !== void 0 ? _info$encounterId : "",
|
|
44708
45264
|
order_Id: "",
|
|
44709
45265
|
orderSetCode: (_order$orderSetsCode = order === null || order === void 0 ? void 0 : order.orderSetsCode) !== null && _order$orderSetsCode !== void 0 ? _order$orderSetsCode : "",
|
|
44710
|
-
orderCatalog:
|
|
45266
|
+
// orderCatalog: order?.name ?? "",
|
|
45267
|
+
orderCatalog: (_order$orderCatalog_i = order === null || order === void 0 ? void 0 : order.orderCatalog_id) !== null && _order$orderCatalog_i !== void 0 ? _order$orderCatalog_i : "",
|
|
44711
45268
|
orderCategory: "",
|
|
44712
45269
|
OrderType: (_order$orderType$_id = order === null || order === void 0 ? void 0 : (_order$orderType = order.orderType) === null || _order$orderType === void 0 ? void 0 : _order$orderType._id) !== null && _order$orderType$_id !== void 0 ? _order$orderType$_id : "",
|
|
44713
45270
|
OrderNature: (_order$orderNature = order === null || order === void 0 ? void 0 : order.orderNature) !== null && _order$orderNature !== void 0 ? _order$orderNature : "",
|
|
@@ -44792,7 +45349,7 @@ var makeRadiologyData = function makeRadiologyData(order, info) {
|
|
|
44792
45349
|
};
|
|
44793
45350
|
|
|
44794
45351
|
var makeMedicationData = function makeMedicationData(order, info) {
|
|
44795
|
-
var _info$org_id2, _info$patientId2, _info$encounterType2, _info$encounterId2, _order$drugType, _info$status$value2, _info$status2, _order$drugCode, _order$formCode, _order$routeCode, _order$dosageUOM$_id, _order$dosageUOM, _order$IVInfusRateVal, _order$IVInfusRateUOM, _order$IVInfusRateUOM2, _order$duration2, _order$durationType$_2, _order$durationType2, _order$
|
|
45352
|
+
var _info$org_id2, _info$patientId2, _info$encounterType2, _info$encounterId2, _order$drugType, _info$status$value2, _info$status2, _order$drugCode, _order$formCode, _order$routeCode, _order$dosageUOM$_id, _order$dosageUOM, _order$IVInfusRateVal, _order$IVInfusRateUOM, _order$IVInfusRateUOM2, _order$duration2, _order$durationType$_2, _order$durationType2, _order$name, _moment$unix3, _order$notes, _order$practInstr, _order$IVDosDurValue2, _order$IVDosDurUOM$_i2, _order$IVDosDurUOM2;
|
|
44796
45353
|
|
|
44797
45354
|
return {
|
|
44798
45355
|
db_name: dbName,
|
|
@@ -44830,7 +45387,7 @@ var makeMedicationData = function makeMedicationData(order, info) {
|
|
|
44830
45387
|
ivInfusionRateUOM: (_order$IVInfusRateUOM = order === null || order === void 0 ? void 0 : (_order$IVInfusRateUOM2 = order.IVInfusRateUOM) === null || _order$IVInfusRateUOM2 === void 0 ? void 0 : _order$IVInfusRateUOM2._id) !== null && _order$IVInfusRateUOM !== void 0 ? _order$IVInfusRateUOM : "",
|
|
44831
45388
|
dosageDurationValue: (_order$duration2 = order === null || order === void 0 ? void 0 : order.duration) !== null && _order$duration2 !== void 0 ? _order$duration2 : 0,
|
|
44832
45389
|
dosageDurationUOM: (_order$durationType$_2 = order === null || order === void 0 ? void 0 : (_order$durationType2 = order.durationType) === null || _order$durationType2 === void 0 ? void 0 : _order$durationType2._id) !== null && _order$durationType$_2 !== void 0 ? _order$durationType$_2 : "",
|
|
44833
|
-
orderdescription: (_order$
|
|
45390
|
+
orderdescription: (_order$name = order === null || order === void 0 ? void 0 : order.name) !== null && _order$name !== void 0 ? _order$name : "",
|
|
44834
45391
|
occurStartDateTime: (_moment$unix3 = moment$1().unix()) !== null && _moment$unix3 !== void 0 ? _moment$unix3 : 0,
|
|
44835
45392
|
occurEndDateTime: 0,
|
|
44836
45393
|
totPresQty: 0,
|
|
@@ -45036,7 +45593,7 @@ var PRACTITIONER_DROPDOWN = createAsyncThunk("orderSetApiSlice/practitionerDropD
|
|
|
45036
45593
|
obj = data.result.map(function (val) {
|
|
45037
45594
|
var _val$name;
|
|
45038
45595
|
|
|
45039
|
-
var name = makeName((val === null || val === void 0 ? void 0 : (_val$name = val.name) === null || _val$name === void 0 ? void 0 : _val$name[0]) || {});
|
|
45596
|
+
var name = makeName$1((val === null || val === void 0 ? void 0 : (_val$name = val.name) === null || _val$name === void 0 ? void 0 : _val$name[0]) || {});
|
|
45040
45597
|
return {
|
|
45041
45598
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
45042
45599
|
label: name
|
|
@@ -45150,7 +45707,7 @@ var ORDER_SET_READ = createAsyncThunk("orderSetApiSlice/orderSetRead", /*#__PURE
|
|
|
45150
45707
|
var data = [];
|
|
45151
45708
|
var object = {};
|
|
45152
45709
|
val === null || val === void 0 ? void 0 : (_val$components = val.components) === null || _val$components === void 0 ? void 0 : _val$components.forEach(function (v) {
|
|
45153
|
-
var _v$ordercategory, _v$orderCatalog$longd, _v$orderCatalog, _v$orderCatalog2, _v$
|
|
45710
|
+
var _v$ordercategory, _v$orderCatalog$longd, _v$orderCatalog, _v$orderCatalog2, _v$orderCatalog$_id, _v$orderCatalog3, _v$orderCatalog4, _v$route, _v$orderCatalog5, _v$orderCatalog6, _v$orderCatalog7, _v$orderCatalog8, _v$orderCatalog9, _v$orderCatalog10, _v$route2, _v$orderCatalog11;
|
|
45154
45711
|
|
|
45155
45712
|
var key = v === null || v === void 0 ? void 0 : (_v$ordercategory = v.ordercategory) === null || _v$ordercategory === void 0 ? void 0 : _v$ordercategory.longdesc;
|
|
45156
45713
|
|
|
@@ -45163,18 +45720,19 @@ var ORDER_SET_READ = createAsyncThunk("orderSetApiSlice/orderSetRead", /*#__PURE
|
|
|
45163
45720
|
parentSqNo: v === null || v === void 0 ? void 0 : v.parentCatSeqNo,
|
|
45164
45721
|
sqNo: v === null || v === void 0 ? void 0 : v.seqNo,
|
|
45165
45722
|
name: (_v$orderCatalog$longd = v === null || v === void 0 ? void 0 : (_v$orderCatalog = v.orderCatalog) === null || _v$orderCatalog === void 0 ? void 0 : _v$orderCatalog.longdesc) !== null && _v$orderCatalog$longd !== void 0 ? _v$orderCatalog$longd : v === null || v === void 0 ? void 0 : (_v$orderCatalog2 = v.orderCatalog) === null || _v$orderCatalog2 === void 0 ? void 0 : _v$orderCatalog2.LongDesc,
|
|
45723
|
+
orderCatalog_id: (_v$orderCatalog$_id = v === null || v === void 0 ? void 0 : (_v$orderCatalog3 = v.orderCatalog) === null || _v$orderCatalog3 === void 0 ? void 0 : _v$orderCatalog3._id) !== null && _v$orderCatalog$_id !== void 0 ? _v$orderCatalog$_id : v === null || v === void 0 ? void 0 : (_v$orderCatalog4 = v.orderCatalog) === null || _v$orderCatalog4 === void 0 ? void 0 : _v$orderCatalog4._id,
|
|
45166
45724
|
dose: v === null || v === void 0 ? void 0 : (_v$route = v.route) === null || _v$route === void 0 ? void 0 : _v$route.shortdesc,
|
|
45167
45725
|
checked: false,
|
|
45168
45726
|
practInstr: v === null || v === void 0 ? void 0 : v.practInstr,
|
|
45169
45727
|
startDay: v === null || v === void 0 ? void 0 : v.startDay,
|
|
45170
45728
|
ordercategory: v === null || v === void 0 ? void 0 : v.ordercategory,
|
|
45171
|
-
orderType: v === null || v === void 0 ? void 0 : (_v$
|
|
45729
|
+
orderType: v === null || v === void 0 ? void 0 : (_v$orderCatalog5 = v.orderCatalog) === null || _v$orderCatalog5 === void 0 ? void 0 : _v$orderCatalog5.ordertype,
|
|
45172
45730
|
orderSetsCode: val === null || val === void 0 ? void 0 : val.orderSetCode,
|
|
45173
45731
|
priority: "",
|
|
45174
45732
|
orderNature: "",
|
|
45175
45733
|
orderQty: v === null || v === void 0 ? void 0 : v.dfltOrderQty,
|
|
45176
45734
|
orderQtyUOM: v === null || v === void 0 ? void 0 : v.dfltOrderUOM,
|
|
45177
|
-
ordercatalog: v === null || v === void 0 ? void 0 : (_v$
|
|
45735
|
+
ordercatalog: v === null || v === void 0 ? void 0 : (_v$orderCatalog6 = v.orderCatalog) === null || _v$orderCatalog6 === void 0 ? void 0 : _v$orderCatalog6.ordercatalog,
|
|
45178
45736
|
freqValue: v === null || v === void 0 ? void 0 : v.dfltFreqVal,
|
|
45179
45737
|
freqValueUnit: v === null || v === void 0 ? void 0 : v.dfltFreqValUnit,
|
|
45180
45738
|
freqRate: v === null || v === void 0 ? void 0 : v.dfltFreqRate,
|
|
@@ -45185,10 +45743,10 @@ var ORDER_SET_READ = createAsyncThunk("orderSetApiSlice/orderSetRead", /*#__PURE
|
|
|
45185
45743
|
IVDosDurValue: v === null || v === void 0 ? void 0 : v.IVDosDurValue,
|
|
45186
45744
|
_id: v === null || v === void 0 ? void 0 : v._id,
|
|
45187
45745
|
id: v === null || v === void 0 ? void 0 : v.id,
|
|
45188
|
-
drugType: v === null || v === void 0 ? void 0 : (_v$
|
|
45189
|
-
status: v === null || v === void 0 ? void 0 : (_v$
|
|
45190
|
-
drugCode: v === null || v === void 0 ? void 0 : (_v$
|
|
45191
|
-
formCode: v === null || v === void 0 ? void 0 : (_v$
|
|
45746
|
+
drugType: v === null || v === void 0 ? void 0 : (_v$orderCatalog7 = v.orderCatalog) === null || _v$orderCatalog7 === void 0 ? void 0 : _v$orderCatalog7.DrugType,
|
|
45747
|
+
status: v === null || v === void 0 ? void 0 : (_v$orderCatalog8 = v.orderCatalog) === null || _v$orderCatalog8 === void 0 ? void 0 : _v$orderCatalog8.Status,
|
|
45748
|
+
drugCode: v === null || v === void 0 ? void 0 : (_v$orderCatalog9 = v.orderCatalog) === null || _v$orderCatalog9 === void 0 ? void 0 : _v$orderCatalog9._id,
|
|
45749
|
+
formCode: v === null || v === void 0 ? void 0 : (_v$orderCatalog10 = v.orderCatalog) === null || _v$orderCatalog10 === void 0 ? void 0 : _v$orderCatalog10.FormCode,
|
|
45192
45750
|
routeCode: v === null || v === void 0 ? void 0 : (_v$route2 = v.route) === null || _v$route2 === void 0 ? void 0 : _v$route2._id,
|
|
45193
45751
|
StrengthValuesPossible: v === null || v === void 0 ? void 0 : v.StrengthValuesPossible,
|
|
45194
45752
|
IVInfusRateUOM: v === null || v === void 0 ? void 0 : v.IVInfusRateUOM,
|
|
@@ -45196,7 +45754,7 @@ var ORDER_SET_READ = createAsyncThunk("orderSetApiSlice/orderSetRead", /*#__PURE
|
|
|
45196
45754
|
IVInfusRateVolUOM: v === null || v === void 0 ? void 0 : v.IVInfusRateVolUOM,
|
|
45197
45755
|
IVInfusRateVol: v === null || v === void 0 ? void 0 : v.IVInfusRateVol,
|
|
45198
45756
|
notes: v === null || v === void 0 ? void 0 : v.explNote,
|
|
45199
|
-
DrugCategory: v === null || v === void 0 ? void 0 : (_v$
|
|
45757
|
+
DrugCategory: v === null || v === void 0 ? void 0 : (_v$orderCatalog11 = v.orderCatalog) === null || _v$orderCatalog11 === void 0 ? void 0 : _v$orderCatalog11.DrugCategory,
|
|
45200
45758
|
dosageFreqCode: v === null || v === void 0 ? void 0 : v.dosageFreqCode
|
|
45201
45759
|
});
|
|
45202
45760
|
});
|
|
@@ -45503,15 +46061,15 @@ var tableData = function tableData(patientId, encounterId) {
|
|
|
45503
46061
|
db_name: dbName,
|
|
45504
46062
|
entity: "RCM_PatientChargeTrx",
|
|
45505
46063
|
filter: "RCM_PatientChargeTrx.patientid=='".concat(patientId, "' && RCM_PatientChargeTrx.encounterid=='").concat(encounterId, "' && RCM_PatientChargeTrx.activestatus==true"),
|
|
45506
|
-
return_fields: "merge(RCM_PatientChargeTrx,{service:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCode:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercatalog:false,servicedesc:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).ShortDesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).shortdesc:false,orderref:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).prescriptionId:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).order_Id:false,ordcatOrdrugclass:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCategory).shortdesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercategory).ordercategory:false,chargeuom:document(RCM_PatientChargeTrx.chargeuom).UOM},{orderdatetime:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).PrescriptionDate:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).orderDateTime:false})"
|
|
46064
|
+
return_fields: "merge(RCM_PatientChargeTrx,{chargestatus:contains(RCM_PatientChargeTrx.chargestatus,'CodingMaster')?document(RCM_PatientChargeTrx.chargestatus).display:contains(RCM_PatientChargeTrx.chargestatus,'CodeableConceptMaster')?document(document(RCM_PatientChargeTrx.chargestatus).coding)[0].display:''},{service:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCode:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercatalog:false,servicedesc:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).ShortDesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).shortdesc:false,orderref:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).prescriptionId:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).order_Id:false,ordcatOrdrugclass:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCategory).shortdesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercategory).ordercategory:false,chargeuom:document(RCM_PatientChargeTrx.chargeuom).UOM},{orderdatetime:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).PrescriptionDate:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).orderDateTime:false})"
|
|
45507
46065
|
};
|
|
45508
46066
|
};
|
|
45509
46067
|
var searchCodeDesc = function searchCodeDesc(patientId, encounterId, search) {
|
|
45510
46068
|
return {
|
|
45511
46069
|
db_name: "primarycare",
|
|
45512
46070
|
entity: "RCM_PatientChargeTrx",
|
|
45513
|
-
filter: "RCM_PatientChargeTrx.patientid=='".concat(patientId, "' && RCM_PatientChargeTrx.encounterid=='").concat(encounterId, "' && RCM_PatientChargeTrx.activestatus==true && (like(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).ShortDesc,'%").concat(search, "%',true) || like(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCode,'%").concat(search, "%',true))
|
|
45514
|
-
return_fields: "merge(RCM_PatientChargeTrx,{service:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCode:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercatalog:false,servicedesc:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).ShortDesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).shortdesc:false,orderref:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).prescriptionId:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).order_Id:false,
|
|
46071
|
+
filter: "RCM_PatientChargeTrx.patientid=='".concat(patientId, "' && RCM_PatientChargeTrx.encounterid=='").concat(encounterId, "' && RCM_PatientChargeTrx.activestatus==true && (like(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).ShortDesc,'%").concat(search, "%',true) || like(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCode,'%").concat(search, "%',true) || like(document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercatalog,'%").concat(search, "%',true) ||like(document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).shortdesc,'%").concat(search, "%',true)) && (false==true ? RCM_PatientChargeTrx.billstatus == false: RCM_PatientChargeTrx.billstatus == RCM_PatientChargeTrx.billstatus)"),
|
|
46072
|
+
return_fields: "merge(RCM_PatientChargeTrx,{chargestatus:contains(RCM_PatientChargeTrx.chargestatus,'CodingMaster')?document(RCM_PatientChargeTrx.chargestatus).display:contains(RCM_PatientChargeTrx.chargestatus,'CodeableConceptMaster')?document(document(RCM_PatientChargeTrx.chargestatus).coding)[0].display:''},{service:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCode:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercatalog:false,servicedesc:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).drugCode).ShortDesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).shortdesc:false,orderref:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).prescriptionId:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).order_Id:false,ordcatOrdrugclass:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).drugCode).DrugCategory).shortdesc:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(document(document(RCM_PatientChargeTrx.orderrefid).orderCatalog).ordercategory).ordercategory:false,chargeuom:document(RCM_PatientChargeTrx.chargeuom).UOM},{orderdatetime:contains(RCM_PatientChargeTrx.orderrefid,'PH_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).PrescriptionDate:contains(RCM_PatientChargeTrx.orderrefid,'CA_OrderLine')?document(RCM_PatientChargeTrx.orderrefid).orderDateTime:false})"
|
|
45515
46073
|
};
|
|
45516
46074
|
};
|
|
45517
46075
|
var dropDown = {
|
|
@@ -45596,9 +46154,10 @@ var saveBill = {
|
|
|
45596
46154
|
totgrossamt: billHeaderSave.totgrossamt,
|
|
45597
46155
|
totdiscamt: billHeaderSave.totdiscamt,
|
|
45598
46156
|
totnetamt: billHeaderSave.totnetamt,
|
|
45599
|
-
totpatientshare: billHeaderSave.totpatientshare,
|
|
46157
|
+
totpatientshare: Number(billHeaderSave.totpatientshare),
|
|
45600
46158
|
totpayershare: billHeaderSave.totpayershare,
|
|
45601
|
-
billhstatus: billHeaderSave.billhstatus
|
|
46159
|
+
billhstatus: billHeaderSave.billhstatus,
|
|
46160
|
+
payerid: billHeaderSave === null || billHeaderSave === void 0 ? void 0 : billHeaderSave.payerid
|
|
45602
46161
|
}
|
|
45603
46162
|
}];
|
|
45604
46163
|
},
|
|
@@ -45626,25 +46185,132 @@ var saveBill = {
|
|
|
45626
46185
|
billhdrid: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.billhdrid,
|
|
45627
46186
|
receiptno: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.receiptno,
|
|
45628
46187
|
receiptdate: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.receiptdate,
|
|
45629
|
-
billamt: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.billamt,
|
|
45630
|
-
paidamt: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.paidamt,
|
|
46188
|
+
billamt: Number(paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.billamt),
|
|
46189
|
+
paidamt: Number(paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.paidamt),
|
|
45631
46190
|
balamt: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.balamt,
|
|
45632
46191
|
paymentdtls: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.paymentdtls,
|
|
45633
|
-
settlenow: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.settlenow
|
|
46192
|
+
settlenow: paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.settlenow,
|
|
46193
|
+
roundoffamt: Number(paymentPayload === null || paymentPayload === void 0 ? void 0 : paymentPayload.roundoffamt)
|
|
45634
46194
|
}
|
|
45635
46195
|
}];
|
|
45636
46196
|
},
|
|
45637
46197
|
billStatusSave: function billStatusSave(billIds) {
|
|
45638
46198
|
return {
|
|
45639
|
-
db_name:
|
|
46199
|
+
db_name: dbName,
|
|
45640
46200
|
queryid: "b9d07f67-4f09-4c31-b9fd-981bc1decf0c",
|
|
45641
46201
|
filter: {
|
|
45642
46202
|
RCM_PatientChargeTrx_id: billIds
|
|
45643
46203
|
}
|
|
45644
46204
|
};
|
|
46205
|
+
},
|
|
46206
|
+
billRecieptRead: function billRecieptRead(billHeaderId) {
|
|
46207
|
+
return {
|
|
46208
|
+
db_name: dbName,
|
|
46209
|
+
filter: {
|
|
46210
|
+
biihdr_id: "".concat(billHeaderId)
|
|
46211
|
+
},
|
|
46212
|
+
queryid: "ea55c1ff-ef78-43a8-aecf-4aa0784514eb"
|
|
46213
|
+
};
|
|
46214
|
+
}
|
|
46215
|
+
};
|
|
46216
|
+
var billRounding = function billRounding(orgId) {
|
|
46217
|
+
return {
|
|
46218
|
+
db_name: "primarycare",
|
|
46219
|
+
entity: "EntityParametersSetup",
|
|
46220
|
+
filter: "EntityParametersSetup.entityid=='".concat(orgId, "' && document(EntityParametersSetup.parameterid).code=='BILLROUNDDECVAL' && EntityParametersSetup.activestatus==true"),
|
|
46221
|
+
return_fields: "unset(EntityParametersSetup,'createdby','createddate','updatedby','updatedate')"
|
|
46222
|
+
};
|
|
46223
|
+
};
|
|
46224
|
+
|
|
46225
|
+
var makeName = function makeName() {
|
|
46226
|
+
var _prefix$, _prefix$$coding, _prefix$$coding$, _prefix$coding, _prefix$coding$, _prefix$2, _suffix$, _suffix$$coding, _suffix$$coding$, _suffix$coding, _suffix$coding$, _suffix$2;
|
|
46227
|
+
|
|
46228
|
+
var nameObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
46229
|
+
var _nameObj$prefix = nameObj.prefix,
|
|
46230
|
+
prefix = _nameObj$prefix === void 0 ? "" : _nameObj$prefix,
|
|
46231
|
+
_nameObj$given = nameObj.given,
|
|
46232
|
+
given = _nameObj$given === void 0 ? "" : _nameObj$given,
|
|
46233
|
+
_nameObj$text = nameObj.text,
|
|
46234
|
+
text = _nameObj$text === void 0 ? "" : _nameObj$text,
|
|
46235
|
+
_nameObj$suffix = nameObj.suffix,
|
|
46236
|
+
suffix = _nameObj$suffix === void 0 ? "" : _nameObj$suffix,
|
|
46237
|
+
_nameObj$family = nameObj.family,
|
|
46238
|
+
family = _nameObj$family === void 0 ? "" : _nameObj$family;
|
|
46239
|
+
var prefixVal = (prefix === null || prefix === void 0 ? void 0 : (_prefix$ = prefix[0]) === null || _prefix$ === void 0 ? void 0 : (_prefix$$coding = _prefix$.coding) === null || _prefix$$coding === void 0 ? void 0 : (_prefix$$coding$ = _prefix$$coding[0]) === null || _prefix$$coding$ === void 0 ? void 0 : _prefix$$coding$.display) || (prefix === null || prefix === void 0 ? void 0 : (_prefix$coding = prefix.coding) === null || _prefix$coding === void 0 ? void 0 : (_prefix$coding$ = _prefix$coding[0]) === null || _prefix$coding$ === void 0 ? void 0 : _prefix$coding$.display) || (prefix === null || prefix === void 0 ? void 0 : (_prefix$2 = prefix[0]) === null || _prefix$2 === void 0 ? void 0 : _prefix$2.display) || (prefix === null || prefix === void 0 ? void 0 : prefix.display) || "";
|
|
46240
|
+
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) || "";
|
|
46241
|
+
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(family && family + " ").concat(suffixVal && suffixVal);
|
|
46242
|
+
};
|
|
46243
|
+
|
|
46244
|
+
var createDate = function createDate(date, format) {
|
|
46245
|
+
if (format) {
|
|
46246
|
+
return moment$1.unix(date).format("".concat(format));
|
|
46247
|
+
} else {
|
|
46248
|
+
return moment$1.unix(date).format("DD/MM/YYYY HH:mm");
|
|
45645
46249
|
}
|
|
45646
46250
|
};
|
|
45647
46251
|
|
|
46252
|
+
var constructReciept = function constructReciept(data) {
|
|
46253
|
+
var _data$encounterid, _data$encounterid$Org, _data$encounterid2, _data$encounterid2$Or, _data$encounterid3, _data$encounterid3$Or, _data$encounterid4, _data$encounterid4$Or, _data$encounterid4$Or2, _data$encounterid4$Or3, _data$encounterid5, _data$encounterid5$Or, _data$encounterid5$Or2, _data$encounterid5$Or3, _data$patientid, _data$patientid2, _data$patientid3, _data$patientid3$gend, _data$patientid4, _data$encounterid6, _data$encounterid7, _data$encounterid8, _data$encounterid8$pr, _data$encounterid8$pr2, _data$encounterid8$pr3, _data$encounterid9, _data$encounterid9$pr, _data$encounterid9$pr2, _data$encounterid10, _data$encounterid10$p, _data$encounterid10$p2, _data$payerid, _data$paymentdtls, _data$paymentdtls$, _data$paymentdtls2, _data$paymentdtls2$, _data$paymentdtls3, _data$paymentdtls3$, _data$totgrossamt, _data$totdiscamt, _data$totnetamt, _data$totpatientshare, _data$totpayershare, _data$paymentdtls4, _data$paymentdtls4$, _data$paymentdtls4$$b, _data$paymentdtls5, _data$paymentdtls5$, _data$paymentdtls5$$b, _data$paymentdtls6, _data$paymentdtls6$, _data$paymentdtls6$$p, _data$glNo, _data$glDate, _data$guarantor, _data$plan, _data$sponsor;
|
|
46254
|
+
|
|
46255
|
+
debugger;
|
|
46256
|
+
var pinCode = data === null || data === void 0 ? void 0 : (_data$encounterid = data.encounterid) === null || _data$encounterid === void 0 ? void 0 : (_data$encounterid$Org = _data$encounterid.Organization_id) === null || _data$encounterid$Org === void 0 ? void 0 : _data$encounterid$Org.address;
|
|
46257
|
+
return {
|
|
46258
|
+
address: {
|
|
46259
|
+
name: data === null || data === void 0 ? void 0 : (_data$encounterid2 = data.encounterid) === null || _data$encounterid2 === void 0 ? void 0 : (_data$encounterid2$Or = _data$encounterid2.Organization_id) === null || _data$encounterid2$Or === void 0 ? void 0 : _data$encounterid2$Or.name,
|
|
46260
|
+
addressName: pinCode === null || pinCode === void 0 ? void 0 : pinCode.substring(0, pinCode.length - 8),
|
|
46261
|
+
postBox: pinCode === null || pinCode === void 0 ? void 0 : pinCode.slice(-6),
|
|
46262
|
+
logo: data === null || data === void 0 ? void 0 : (_data$encounterid3 = data.encounterid) === null || _data$encounterid3 === void 0 ? void 0 : (_data$encounterid3$Or = _data$encounterid3.Organization_id) === null || _data$encounterid3$Or === void 0 ? void 0 : _data$encounterid3$Or.logo,
|
|
46263
|
+
telecom: (data === null || data === void 0 ? void 0 : (_data$encounterid4 = data.encounterid) === null || _data$encounterid4 === void 0 ? void 0 : (_data$encounterid4$Or = _data$encounterid4.Organization_id) === null || _data$encounterid4$Or === void 0 ? void 0 : (_data$encounterid4$Or2 = _data$encounterid4$Or.telecom) === null || _data$encounterid4$Or2 === void 0 ? void 0 : (_data$encounterid4$Or3 = _data$encounterid4$Or2[0]) === null || _data$encounterid4$Or3 === void 0 ? void 0 : _data$encounterid4$Or3.valueprefix) + " " + (data === null || data === void 0 ? void 0 : (_data$encounterid5 = data.encounterid) === null || _data$encounterid5 === void 0 ? void 0 : (_data$encounterid5$Or = _data$encounterid5.Organization_id) === null || _data$encounterid5$Or === void 0 ? void 0 : (_data$encounterid5$Or2 = _data$encounterid5$Or.telecom) === null || _data$encounterid5$Or2 === void 0 ? void 0 : (_data$encounterid5$Or3 = _data$encounterid5$Or2[0]) === null || _data$encounterid5$Or3 === void 0 ? void 0 : _data$encounterid5$Or3.value)
|
|
46264
|
+
},
|
|
46265
|
+
patient: {
|
|
46266
|
+
name: makeName(data === null || data === void 0 ? void 0 : (_data$patientid = data.patientid) === null || _data$patientid === void 0 ? void 0 : _data$patientid.name[0]),
|
|
46267
|
+
age: data === null || data === void 0 ? void 0 : (_data$patientid2 = data.patientid) === null || _data$patientid2 === void 0 ? void 0 : _data$patientid2.age,
|
|
46268
|
+
gender: data === null || data === void 0 ? void 0 : (_data$patientid3 = data.patientid) === null || _data$patientid3 === void 0 ? void 0 : (_data$patientid3$gend = _data$patientid3.gender) === null || _data$patientid3$gend === void 0 ? void 0 : _data$patientid3$gend.display,
|
|
46269
|
+
mrn: data === null || data === void 0 ? void 0 : (_data$patientid4 = data.patientid) === null || _data$patientid4 === void 0 ? void 0 : _data$patientid4.alias
|
|
46270
|
+
},
|
|
46271
|
+
encounterStartDate: createDate(data === null || data === void 0 ? void 0 : (_data$encounterid6 = data.encounterid) === null || _data$encounterid6 === void 0 ? void 0 : _data$encounterid6.encounterdate),
|
|
46272
|
+
encounterEndDate: createDate(data === null || data === void 0 ? void 0 : (_data$encounterid7 = data.encounterid) === null || _data$encounterid7 === void 0 ? void 0 : _data$encounterid7.encounterenddate),
|
|
46273
|
+
practitioner: {
|
|
46274
|
+
speciality: data === null || data === void 0 ? void 0 : (_data$encounterid8 = data.encounterid) === null || _data$encounterid8 === void 0 ? void 0 : (_data$encounterid8$pr = _data$encounterid8.practitioner_details) === null || _data$encounterid8$pr === void 0 ? void 0 : (_data$encounterid8$pr2 = _data$encounterid8$pr[0]) === null || _data$encounterid8$pr2 === void 0 ? void 0 : (_data$encounterid8$pr3 = _data$encounterid8$pr2.speciality) === null || _data$encounterid8$pr3 === void 0 ? void 0 : _data$encounterid8$pr3.display,
|
|
46275
|
+
name: data === null || data === void 0 ? void 0 : (_data$encounterid9 = data.encounterid) === null || _data$encounterid9 === void 0 ? void 0 : (_data$encounterid9$pr = _data$encounterid9.practitioner_details) === null || _data$encounterid9$pr === void 0 ? void 0 : (_data$encounterid9$pr2 = _data$encounterid9$pr[0]) === null || _data$encounterid9$pr2 === void 0 ? void 0 : _data$encounterid9$pr2.id_name,
|
|
46276
|
+
location: data === null || data === void 0 ? void 0 : (_data$encounterid10 = data.encounterid) === null || _data$encounterid10 === void 0 ? void 0 : (_data$encounterid10$p = _data$encounterid10.practitioner_details) === null || _data$encounterid10$p === void 0 ? void 0 : (_data$encounterid10$p2 = _data$encounterid10$p[0]) === null || _data$encounterid10$p2 === void 0 ? void 0 : _data$encounterid10$p2.clinic
|
|
46277
|
+
},
|
|
46278
|
+
billNo: data === null || data === void 0 ? void 0 : data.billno,
|
|
46279
|
+
billdate: createDate(data === null || data === void 0 ? void 0 : data.billdate),
|
|
46280
|
+
payerid: (_data$payerid = data === null || data === void 0 ? void 0 : data.payerid) !== null && _data$payerid !== void 0 ? _data$payerid : "-",
|
|
46281
|
+
recieptNo: data === null || data === void 0 ? void 0 : (_data$paymentdtls = data.paymentdtls) === null || _data$paymentdtls === void 0 ? void 0 : (_data$paymentdtls$ = _data$paymentdtls[0]) === null || _data$paymentdtls$ === void 0 ? void 0 : _data$paymentdtls$.receiptno,
|
|
46282
|
+
recieptDate: createDate(data === null || data === void 0 ? void 0 : (_data$paymentdtls2 = data.paymentdtls) === null || _data$paymentdtls2 === void 0 ? void 0 : (_data$paymentdtls2$ = _data$paymentdtls2[0]) === null || _data$paymentdtls2$ === void 0 ? void 0 : _data$paymentdtls2$.receiptdate, "DD-MMM-YY"),
|
|
46283
|
+
billDetails: data === null || data === void 0 ? void 0 : data.billdetails.map(function (val) {
|
|
46284
|
+
var _val$patchargetrxid, _val$patchargetrxid2, _val$patchargetrxid2$, _val$patchargetrxid3, _val$grossamt, _val$discamt, _val$netamt, _val$patientshare, _val$payershare;
|
|
46285
|
+
|
|
46286
|
+
return {
|
|
46287
|
+
itemCode: val === null || val === void 0 ? void 0 : (_val$patchargetrxid = val.patchargetrxid) === null || _val$patchargetrxid === void 0 ? void 0 : _val$patchargetrxid.orderrefid,
|
|
46288
|
+
rate: val === null || val === void 0 ? void 0 : (_val$patchargetrxid2 = val.patchargetrxid) === null || _val$patchargetrxid2 === void 0 ? void 0 : (_val$patchargetrxid2$ = _val$patchargetrxid2.rate) === null || _val$patchargetrxid2$ === void 0 ? void 0 : _val$patchargetrxid2$.toFixed(2),
|
|
46289
|
+
qty: val === null || val === void 0 ? void 0 : (_val$patchargetrxid3 = val.patchargetrxid) === null || _val$patchargetrxid3 === void 0 ? void 0 : _val$patchargetrxid3.qty,
|
|
46290
|
+
grossAmt: val === null || val === void 0 ? void 0 : (_val$grossamt = val.grossamt) === null || _val$grossamt === void 0 ? void 0 : _val$grossamt.toFixed(2),
|
|
46291
|
+
discount: val === null || val === void 0 ? void 0 : (_val$discamt = val.discamt) === null || _val$discamt === void 0 ? void 0 : _val$discamt.toFixed(2),
|
|
46292
|
+
netAmt: val === null || val === void 0 ? void 0 : (_val$netamt = val.netamt) === null || _val$netamt === void 0 ? void 0 : _val$netamt.toFixed(2),
|
|
46293
|
+
patientShare: val === null || val === void 0 ? void 0 : (_val$patientshare = val.patientshare) === null || _val$patientshare === void 0 ? void 0 : _val$patientshare.toFixed(2),
|
|
46294
|
+
creditShare: val === null || val === void 0 ? void 0 : (_val$payershare = val.payershare) === null || _val$payershare === void 0 ? void 0 : _val$payershare.toFixed(2)
|
|
46295
|
+
};
|
|
46296
|
+
}),
|
|
46297
|
+
roundoffamt: data === null || data === void 0 ? void 0 : (_data$paymentdtls3 = data.paymentdtls) === null || _data$paymentdtls3 === void 0 ? void 0 : (_data$paymentdtls3$ = _data$paymentdtls3[0]) === null || _data$paymentdtls3$ === void 0 ? void 0 : _data$paymentdtls3$.roundoffamt,
|
|
46298
|
+
totgrossamt: data === null || data === void 0 ? void 0 : (_data$totgrossamt = data.totgrossamt) === null || _data$totgrossamt === void 0 ? void 0 : _data$totgrossamt.toFixed(2),
|
|
46299
|
+
totdiscamt: data === null || data === void 0 ? void 0 : (_data$totdiscamt = data.totdiscamt) === null || _data$totdiscamt === void 0 ? void 0 : _data$totdiscamt.toFixed(2),
|
|
46300
|
+
totnetamt: data === null || data === void 0 ? void 0 : (_data$totnetamt = data.totnetamt) === null || _data$totnetamt === void 0 ? void 0 : _data$totnetamt.toFixed(2),
|
|
46301
|
+
totpatientshare: data === null || data === void 0 ? void 0 : (_data$totpatientshare = data.totpatientshare) === null || _data$totpatientshare === void 0 ? void 0 : _data$totpatientshare.toFixed(2),
|
|
46302
|
+
totpayershare: data === null || data === void 0 ? void 0 : (_data$totpayershare = data.totpayershare) === null || _data$totpayershare === void 0 ? void 0 : _data$totpayershare.toFixed(2),
|
|
46303
|
+
billamt: data === null || data === void 0 ? void 0 : (_data$paymentdtls4 = data.paymentdtls) === null || _data$paymentdtls4 === void 0 ? void 0 : (_data$paymentdtls4$ = _data$paymentdtls4[0]) === null || _data$paymentdtls4$ === void 0 ? void 0 : (_data$paymentdtls4$$b = _data$paymentdtls4$.billamt) === null || _data$paymentdtls4$$b === void 0 ? void 0 : _data$paymentdtls4$$b.toFixed(2),
|
|
46304
|
+
balamt: data === null || data === void 0 ? void 0 : (_data$paymentdtls5 = data.paymentdtls) === null || _data$paymentdtls5 === void 0 ? void 0 : (_data$paymentdtls5$ = _data$paymentdtls5[0]) === null || _data$paymentdtls5$ === void 0 ? void 0 : (_data$paymentdtls5$$b = _data$paymentdtls5$.balamt) === null || _data$paymentdtls5$$b === void 0 ? void 0 : _data$paymentdtls5$$b.toFixed(2),
|
|
46305
|
+
paidamt: data === null || data === void 0 ? void 0 : (_data$paymentdtls6 = data.paymentdtls) === null || _data$paymentdtls6 === void 0 ? void 0 : (_data$paymentdtls6$ = _data$paymentdtls6[0]) === null || _data$paymentdtls6$ === void 0 ? void 0 : (_data$paymentdtls6$$p = _data$paymentdtls6$.paidamt) === null || _data$paymentdtls6$$p === void 0 ? void 0 : _data$paymentdtls6$$p.toFixed(2),
|
|
46306
|
+
glNo: (_data$glNo = data === null || data === void 0 ? void 0 : data.glNo) !== null && _data$glNo !== void 0 ? _data$glNo : "-",
|
|
46307
|
+
glDate: (_data$glDate = data === null || data === void 0 ? void 0 : data.glDate) !== null && _data$glDate !== void 0 ? _data$glDate : "-",
|
|
46308
|
+
guarantor: (_data$guarantor = data === null || data === void 0 ? void 0 : data.guarantor) !== null && _data$guarantor !== void 0 ? _data$guarantor : "-",
|
|
46309
|
+
plan: (_data$plan = data === null || data === void 0 ? void 0 : data.plan) !== null && _data$plan !== void 0 ? _data$plan : "-",
|
|
46310
|
+
sponsor: (_data$sponsor = data === null || data === void 0 ? void 0 : data.sponsor) !== null && _data$sponsor !== void 0 ? _data$sponsor : "-"
|
|
46311
|
+
};
|
|
46312
|
+
};
|
|
46313
|
+
|
|
45648
46314
|
var _extraReducers$3;
|
|
45649
46315
|
var SEARCH_VIA_NAME = createAsyncThunk("billSettlementSlice/searchViaName", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
45650
46316
|
var payload,
|
|
@@ -46412,6 +47078,93 @@ var BILL_STATUS_SAVE = createAsyncThunk("billSettlementSlice/paymentSave", /*#__
|
|
|
46412
47078
|
}
|
|
46413
47079
|
}, _callee17, null, [[2, 10]]);
|
|
46414
47080
|
})));
|
|
47081
|
+
var BILL_RECEIPT_READ = createAsyncThunk("billSettlementSlice/billReceiptRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
|
47082
|
+
var payload,
|
|
47083
|
+
_ref37,
|
|
47084
|
+
rejectWithValue,
|
|
47085
|
+
billHeaderId,
|
|
47086
|
+
data,
|
|
47087
|
+
resultData,
|
|
47088
|
+
_args18 = arguments;
|
|
47089
|
+
|
|
47090
|
+
return regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
47091
|
+
while (1) {
|
|
47092
|
+
switch (_context18.prev = _context18.next) {
|
|
47093
|
+
case 0:
|
|
47094
|
+
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
47095
|
+
_ref37 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref37.rejectWithValue;
|
|
47096
|
+
debugger;
|
|
47097
|
+
_context18.prev = 3;
|
|
47098
|
+
billHeaderId = payload.billHeaderId;
|
|
47099
|
+
_context18.next = 7;
|
|
47100
|
+
return fetchData$3({
|
|
47101
|
+
body: JSON.stringify(saveBill.billRecieptRead(billHeaderId))
|
|
47102
|
+
}, __baseUrl__);
|
|
47103
|
+
|
|
47104
|
+
case 7:
|
|
47105
|
+
data = _context18.sent;
|
|
47106
|
+
resultData = constructReciept(data[0]);
|
|
47107
|
+
debugger;
|
|
47108
|
+
console.log("resultData", resultData);
|
|
47109
|
+
return _context18.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
47110
|
+
data: resultData
|
|
47111
|
+
}));
|
|
47112
|
+
|
|
47113
|
+
case 14:
|
|
47114
|
+
_context18.prev = 14;
|
|
47115
|
+
_context18.t0 = _context18["catch"](3);
|
|
47116
|
+
return _context18.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
47117
|
+
message: _context18.t0.message
|
|
47118
|
+
})));
|
|
47119
|
+
|
|
47120
|
+
case 17:
|
|
47121
|
+
case "end":
|
|
47122
|
+
return _context18.stop();
|
|
47123
|
+
}
|
|
47124
|
+
}
|
|
47125
|
+
}, _callee18, null, [[3, 14]]);
|
|
47126
|
+
})));
|
|
47127
|
+
var BILL_ROUND_OFF = createAsyncThunk("billSettlementSlice/billRoundOff", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
|
|
47128
|
+
var payload,
|
|
47129
|
+
_ref39,
|
|
47130
|
+
rejectWithValue,
|
|
47131
|
+
orgId,
|
|
47132
|
+
data,
|
|
47133
|
+
_args19 = arguments;
|
|
47134
|
+
|
|
47135
|
+
return regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
47136
|
+
while (1) {
|
|
47137
|
+
switch (_context19.prev = _context19.next) {
|
|
47138
|
+
case 0:
|
|
47139
|
+
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
47140
|
+
_ref39 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref39.rejectWithValue;
|
|
47141
|
+
_context19.prev = 2;
|
|
47142
|
+
orgId = payload.orgId;
|
|
47143
|
+
_context19.next = 6;
|
|
47144
|
+
return fetchData$3({
|
|
47145
|
+
body: JSON.stringify(billRounding(orgId))
|
|
47146
|
+
}, __readDocumentUrl__);
|
|
47147
|
+
|
|
47148
|
+
case 6:
|
|
47149
|
+
data = _context19.sent;
|
|
47150
|
+
return _context19.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
47151
|
+
data: data
|
|
47152
|
+
}));
|
|
47153
|
+
|
|
47154
|
+
case 10:
|
|
47155
|
+
_context19.prev = 10;
|
|
47156
|
+
_context19.t0 = _context19["catch"](2);
|
|
47157
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
47158
|
+
message: _context19.t0.message
|
|
47159
|
+
})));
|
|
47160
|
+
|
|
47161
|
+
case 13:
|
|
47162
|
+
case "end":
|
|
47163
|
+
return _context19.stop();
|
|
47164
|
+
}
|
|
47165
|
+
}
|
|
47166
|
+
}, _callee19, null, [[2, 10]]);
|
|
47167
|
+
})));
|
|
46415
47168
|
var billSettlementSlice = createSlice({
|
|
46416
47169
|
name: "billSettlementSlice",
|
|
46417
47170
|
initialState: {
|
|
@@ -46431,7 +47184,9 @@ var billSettlementSlice = createSlice({
|
|
|
46431
47184
|
bill_details_save: _objectSpread2({}, defaultState.Info),
|
|
46432
47185
|
payment_save: _objectSpread2({}, defaultState.Info),
|
|
46433
47186
|
payment_dropDown: _objectSpread2({}, defaultState.Info),
|
|
46434
|
-
billing_status_save: _objectSpread2({}, defaultState.Info)
|
|
47187
|
+
billing_status_save: _objectSpread2({}, defaultState.Info),
|
|
47188
|
+
bill_reciept_read: _objectSpread2({}, defaultState.Info),
|
|
47189
|
+
bill_roundoff: _objectSpread2({}, defaultState.Info)
|
|
46435
47190
|
},
|
|
46436
47191
|
extraReducers: (_extraReducers$3 = {}, _defineProperty(_extraReducers$3, SEARCH_VIA_NAME.fulfilled, function (state, action) {
|
|
46437
47192
|
var _action$payload;
|
|
@@ -46603,6 +47358,26 @@ var billSettlementSlice = createSlice({
|
|
|
46603
47358
|
var _action$payload34;
|
|
46604
47359
|
|
|
46605
47360
|
state.billing_status_save = (_action$payload34 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload34 !== void 0 ? _action$payload34 : {};
|
|
47361
|
+
}), _defineProperty(_extraReducers$3, BILL_RECEIPT_READ.fulfilled, function (state, action) {
|
|
47362
|
+
var _action$payload35;
|
|
47363
|
+
|
|
47364
|
+
state.bill_reciept_read = (_action$payload35 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload35 !== void 0 ? _action$payload35 : {};
|
|
47365
|
+
}), _defineProperty(_extraReducers$3, BILL_RECEIPT_READ.pending, function (state, action) {
|
|
47366
|
+
state.bill_reciept_read.loading = true;
|
|
47367
|
+
}), _defineProperty(_extraReducers$3, BILL_RECEIPT_READ.rejected, function (state, action) {
|
|
47368
|
+
var _action$payload36;
|
|
47369
|
+
|
|
47370
|
+
state.bill_reciept_read = (_action$payload36 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload36 !== void 0 ? _action$payload36 : {};
|
|
47371
|
+
}), _defineProperty(_extraReducers$3, BILL_ROUND_OFF.fulfilled, function (state, action) {
|
|
47372
|
+
var _action$payload37;
|
|
47373
|
+
|
|
47374
|
+
state.bill_roundoff = (_action$payload37 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload37 !== void 0 ? _action$payload37 : {};
|
|
47375
|
+
}), _defineProperty(_extraReducers$3, BILL_ROUND_OFF.pending, function (state, action) {
|
|
47376
|
+
state.bill_roundoff.loading = true;
|
|
47377
|
+
}), _defineProperty(_extraReducers$3, BILL_ROUND_OFF.rejected, function (state, action) {
|
|
47378
|
+
var _action$payload38;
|
|
47379
|
+
|
|
47380
|
+
state.bill_roundoff = (_action$payload38 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload38 !== void 0 ? _action$payload38 : {};
|
|
46606
47381
|
}), _extraReducers$3)
|
|
46607
47382
|
});
|
|
46608
47383
|
var billSettlementActions = {
|
|
@@ -46622,7 +47397,9 @@ var billSettlementActions = {
|
|
|
46622
47397
|
BILL_DETAILS_SAVE: BILL_DETAILS_SAVE,
|
|
46623
47398
|
PAYMENT_SAVE: PAYMENT_SAVE,
|
|
46624
47399
|
PAYMENT_DROPDOWN: PAYMENT_DROPDOWN,
|
|
46625
|
-
BILL_STATUS_SAVE: BILL_STATUS_SAVE
|
|
47400
|
+
BILL_STATUS_SAVE: BILL_STATUS_SAVE,
|
|
47401
|
+
BILL_RECEIPT_READ: BILL_RECEIPT_READ,
|
|
47402
|
+
BILL_ROUND_OFF: BILL_ROUND_OFF
|
|
46626
47403
|
};
|
|
46627
47404
|
var billSettlementSlice$1 = billSettlementSlice.reducer;
|
|
46628
47405
|
|
|
@@ -46820,7 +47597,7 @@ var GET_PATIENTS_CHECKED_IN = createAsyncThunk("currentVisitStatsApiSlice/getPat
|
|
|
46820
47597
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
46821
47598
|
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
46822
47599
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
46823
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id = _.patient_id) === null || _$patient_id === void 0 ? void 0 : (_$patient_id$ = _$patient_id[0]) === null || _$patient_id$ === void 0 ? void 0 : (_$patient_id$$name = _$patient_id$.name) === null || _$patient_id$$name === void 0 ? void 0 : _$patient_id$$name[0]) || {}),
|
|
47600
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$patient_id = _.patient_id) === null || _$patient_id === void 0 ? void 0 : (_$patient_id$ = _$patient_id[0]) === null || _$patient_id$ === void 0 ? void 0 : (_$patient_id$$name = _$patient_id$.name) === null || _$patient_id$$name === void 0 ? void 0 : _$patient_id$$name[0]) || {}),
|
|
46824
47601
|
mrn: _ === null || _ === void 0 ? void 0 : (_$patient_id2 = _.patient_id) === null || _$patient_id2 === void 0 ? void 0 : (_$patient_id2$ = _$patient_id2[0]) === null || _$patient_id2$ === void 0 ? void 0 : _$patient_id2$.MRN,
|
|
46825
47602
|
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId = _.appointmentId) === null || _$appointmentId === void 0 ? void 0 : (_$appointmentId$ = _$appointmentId[0]) === null || _$appointmentId$ === void 0 ? void 0 : _$appointmentId$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId2 = _.appointmentId) === null || _$appointmentId2 === void 0 ? void 0 : (_$appointmentId2$ = _$appointmentId2[0]) === null || _$appointmentId2$ === void 0 ? void 0 : _$appointmentId2$.start, "DD MMM,YYYY") : "",
|
|
46826
47603
|
orderTime: (_ === null || _ === void 0 ? void 0 : (_$appointmentId3 = _.appointmentId) === null || _$appointmentId3 === void 0 ? void 0 : (_$appointmentId3$ = _$appointmentId3[0]) === null || _$appointmentId3$ === void 0 ? void 0 : _$appointmentId3$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId4 = _.appointmentId) === null || _$appointmentId4 === void 0 ? void 0 : (_$appointmentId4$ = _$appointmentId4[0]) === null || _$appointmentId4$ === void 0 ? void 0 : _$appointmentId4$.start, "hh:mm A") : "",
|
|
@@ -46891,7 +47668,7 @@ var GET_TRAIGE_DONE = createAsyncThunk("currentVisitStatsApiSlice/getTriageDone"
|
|
|
46891
47668
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
46892
47669
|
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
46893
47670
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
46894
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id7 = _.patient_id) === null || _$patient_id7 === void 0 ? void 0 : (_$patient_id7$ = _$patient_id7[0]) === null || _$patient_id7$ === void 0 ? void 0 : (_$patient_id7$$name = _$patient_id7$.name) === null || _$patient_id7$$name === void 0 ? void 0 : _$patient_id7$$name[0]) || {}),
|
|
47671
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$patient_id7 = _.patient_id) === null || _$patient_id7 === void 0 ? void 0 : (_$patient_id7$ = _$patient_id7[0]) === null || _$patient_id7$ === void 0 ? void 0 : (_$patient_id7$$name = _$patient_id7$.name) === null || _$patient_id7$$name === void 0 ? void 0 : _$patient_id7$$name[0]) || {}),
|
|
46895
47672
|
mrn: _ === null || _ === void 0 ? void 0 : (_$patient_id8 = _.patient_id) === null || _$patient_id8 === void 0 ? void 0 : (_$patient_id8$ = _$patient_id8[0]) === null || _$patient_id8$ === void 0 ? void 0 : _$patient_id8$.MRN,
|
|
46896
47673
|
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId8 = _.appointmentId) === null || _$appointmentId8 === void 0 ? void 0 : (_$appointmentId8$ = _$appointmentId8[0]) === null || _$appointmentId8$ === void 0 ? void 0 : _$appointmentId8$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId9 = _.appointmentId) === null || _$appointmentId9 === void 0 ? void 0 : (_$appointmentId9$ = _$appointmentId9[0]) === null || _$appointmentId9$ === void 0 ? void 0 : _$appointmentId9$.start, "DD MMM,YYYY") : "",
|
|
46897
47674
|
orderTime: (_ === null || _ === void 0 ? void 0 : (_$appointmentId10 = _.appointmentId) === null || _$appointmentId10 === void 0 ? void 0 : (_$appointmentId10$ = _$appointmentId10[0]) === null || _$appointmentId10$ === void 0 ? void 0 : _$appointmentId10$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId11 = _.appointmentId) === null || _$appointmentId11 === void 0 ? void 0 : (_$appointmentId11$ = _$appointmentId11[0]) === null || _$appointmentId11$ === void 0 ? void 0 : _$appointmentId11$.start, "hh:mm A") : "",
|
|
@@ -46962,7 +47739,7 @@ var GET_VISIT_COMPLETED = createAsyncThunk("currentVisitStatsApiSlice/getVisitCo
|
|
|
46962
47739
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
46963
47740
|
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
46964
47741
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
46965
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id13 = _.patient_id) === null || _$patient_id13 === void 0 ? void 0 : (_$patient_id13$ = _$patient_id13[0]) === null || _$patient_id13$ === void 0 ? void 0 : (_$patient_id13$$name = _$patient_id13$.name) === null || _$patient_id13$$name === void 0 ? void 0 : _$patient_id13$$name[0]) || {}),
|
|
47742
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$patient_id13 = _.patient_id) === null || _$patient_id13 === void 0 ? void 0 : (_$patient_id13$ = _$patient_id13[0]) === null || _$patient_id13$ === void 0 ? void 0 : (_$patient_id13$$name = _$patient_id13$.name) === null || _$patient_id13$$name === void 0 ? void 0 : _$patient_id13$$name[0]) || {}),
|
|
46966
47743
|
mrn: _ === null || _ === void 0 ? void 0 : (_$patient_id14 = _.patient_id) === null || _$patient_id14 === void 0 ? void 0 : (_$patient_id14$ = _$patient_id14[0]) === null || _$patient_id14$ === void 0 ? void 0 : _$patient_id14$.MRN,
|
|
46967
47744
|
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId15 = _.appointmentId) === null || _$appointmentId15 === void 0 ? void 0 : (_$appointmentId15$ = _$appointmentId15[0]) === null || _$appointmentId15$ === void 0 ? void 0 : _$appointmentId15$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId16 = _.appointmentId) === null || _$appointmentId16 === void 0 ? void 0 : (_$appointmentId16$ = _$appointmentId16[0]) === null || _$appointmentId16$ === void 0 ? void 0 : _$appointmentId16$.start, "DD MMM,YYYY") : "",
|
|
46968
47745
|
orderTime: (_ === null || _ === void 0 ? void 0 : (_$appointmentId17 = _.appointmentId) === null || _$appointmentId17 === void 0 ? void 0 : (_$appointmentId17$ = _$appointmentId17[0]) === null || _$appointmentId17$ === void 0 ? void 0 : _$appointmentId17$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId18 = _.appointmentId) === null || _$appointmentId18 === void 0 ? void 0 : (_$appointmentId18$ = _$appointmentId18[0]) === null || _$appointmentId18$ === void 0 ? void 0 : _$appointmentId18$.start, "hh:mm A") : "",
|
|
@@ -47099,7 +47876,7 @@ var GET_PATIENTS_CHECKED_IN_NURSE = createAsyncThunk("currentVisitStatsApiSlice/
|
|
|
47099
47876
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
47100
47877
|
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
47101
47878
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
47102
|
-
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]) || {}),
|
|
47879
|
+
name: makeName$1((_ === 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]) || {}),
|
|
47103
47880
|
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,
|
|
47104
47881
|
age: _ === 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$.age,
|
|
47105
47882
|
gender: _ === 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$$gende = _$patient_id26$.gender) === null || _$patient_id26$$gende === void 0 ? void 0 : _$patient_id26$$gende.display,
|
|
@@ -47167,7 +47944,7 @@ var GET_VISIT_COMPLETED_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getV
|
|
|
47167
47944
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
47168
47945
|
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
47169
47946
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
47170
|
-
name: makeName((_ === 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$$name = _$patient_id28$.name) === null || _$patient_id28$$name === void 0 ? void 0 : _$patient_id28$$name[0]) || {}),
|
|
47947
|
+
name: makeName$1((_ === 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$$name = _$patient_id28$.name) === null || _$patient_id28$$name === void 0 ? void 0 : _$patient_id28$$name[0]) || {}),
|
|
47171
47948
|
mrn: _ === 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$.MRN,
|
|
47172
47949
|
age: _ === 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$.age,
|
|
47173
47950
|
gender: _ === 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$$gende = _$patient_id31$.gender) === null || _$patient_id31$$gende === void 0 ? void 0 : _$patient_id31$$gende.display,
|
|
@@ -47299,7 +48076,7 @@ var GET_TRAIGE_DONE_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getTriag
|
|
|
47299
48076
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
47300
48077
|
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
47301
48078
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
47302
|
-
name: makeName((_ === 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$$name = _$patient_id33$.name) === null || _$patient_id33$$name === void 0 ? void 0 : _$patient_id33$$name[0]) || {}),
|
|
48079
|
+
name: makeName$1((_ === 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$$name = _$patient_id33$.name) === null || _$patient_id33$$name === void 0 ? void 0 : _$patient_id33$$name[0]) || {}),
|
|
47303
48080
|
mrn: _ === 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$.MRN,
|
|
47304
48081
|
age: _ === 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$.age,
|
|
47305
48082
|
gender: _ === 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$$gende = _$patient_id36$.gender) === null || _$patient_id36$$gende === void 0 ? void 0 : _$patient_id36$$gende.display,
|
|
@@ -47432,7 +48209,7 @@ var GET_PATIENTS_CHECKED_IN_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice
|
|
|
47432
48209
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
47433
48210
|
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
47434
48211
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
47435
|
-
name: makeName((_ === 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$$name = _$patient_id38$.name) === null || _$patient_id38$$name === void 0 ? void 0 : _$patient_id38$$name[0]) || {}),
|
|
48212
|
+
name: makeName$1((_ === 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$$name = _$patient_id38$.name) === null || _$patient_id38$$name === void 0 ? void 0 : _$patient_id38$$name[0]) || {}),
|
|
47436
48213
|
mrn: _ === null || _ === void 0 ? void 0 : (_$patient_id39 = _.patient_id) === null || _$patient_id39 === void 0 ? void 0 : (_$patient_id39$ = _$patient_id39[0]) === null || _$patient_id39$ === void 0 ? void 0 : _$patient_id39$.MRN,
|
|
47437
48214
|
age: _ === null || _ === void 0 ? void 0 : (_$patient_id40 = _.patient_id) === null || _$patient_id40 === void 0 ? void 0 : (_$patient_id40$ = _$patient_id40[0]) === null || _$patient_id40$ === void 0 ? void 0 : _$patient_id40$.age,
|
|
47438
48215
|
gender: _ === null || _ === void 0 ? void 0 : (_$patient_id41 = _.patient_id) === null || _$patient_id41 === void 0 ? void 0 : (_$patient_id41$ = _$patient_id41[0]) === null || _$patient_id41$ === void 0 ? void 0 : (_$patient_id41$$gende = _$patient_id41$.gender) === null || _$patient_id41$$gende === void 0 ? void 0 : _$patient_id41$$gende.display,
|
|
@@ -47501,7 +48278,7 @@ var GET_VISIT_COMPLETED_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/get
|
|
|
47501
48278
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
47502
48279
|
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
47503
48280
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
47504
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id43 = _.patient_id) === null || _$patient_id43 === void 0 ? void 0 : (_$patient_id43$ = _$patient_id43[0]) === null || _$patient_id43$ === void 0 ? void 0 : (_$patient_id43$$name = _$patient_id43$.name) === null || _$patient_id43$$name === void 0 ? void 0 : _$patient_id43$$name[0]) || {}),
|
|
48281
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$patient_id43 = _.patient_id) === null || _$patient_id43 === void 0 ? void 0 : (_$patient_id43$ = _$patient_id43[0]) === null || _$patient_id43$ === void 0 ? void 0 : (_$patient_id43$$name = _$patient_id43$.name) === null || _$patient_id43$$name === void 0 ? void 0 : _$patient_id43$$name[0]) || {}),
|
|
47505
48282
|
mrn: _ === null || _ === void 0 ? void 0 : (_$patient_id44 = _.patient_id) === null || _$patient_id44 === void 0 ? void 0 : (_$patient_id44$ = _$patient_id44[0]) === null || _$patient_id44$ === void 0 ? void 0 : _$patient_id44$.MRN,
|
|
47506
48283
|
age: _ === null || _ === void 0 ? void 0 : (_$patient_id45 = _.patient_id) === null || _$patient_id45 === void 0 ? void 0 : (_$patient_id45$ = _$patient_id45[0]) === null || _$patient_id45$ === void 0 ? void 0 : _$patient_id45$.age,
|
|
47507
48284
|
gender: _ === null || _ === void 0 ? void 0 : (_$patient_id46 = _.patient_id) === null || _$patient_id46 === void 0 ? void 0 : (_$patient_id46$ = _$patient_id46[0]) === null || _$patient_id46$ === void 0 ? void 0 : (_$patient_id46$$gende = _$patient_id46$.gender) === null || _$patient_id46$$gende === void 0 ? void 0 : _$patient_id46$$gende.display,
|
|
@@ -47570,7 +48347,7 @@ var GET_TRAIGE_DONE_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/getTria
|
|
|
47570
48347
|
// img: _?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid
|
|
47571
48348
|
// ? getImgUrl(_?.appointmentId?.[0]?.PersonID?.[0]?.photo[0]?.fileid)
|
|
47572
48349
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
47573
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id48 = _.patient_id) === null || _$patient_id48 === void 0 ? void 0 : (_$patient_id48$ = _$patient_id48[0]) === null || _$patient_id48$ === void 0 ? void 0 : (_$patient_id48$$name = _$patient_id48$.name) === null || _$patient_id48$$name === void 0 ? void 0 : _$patient_id48$$name[0]) || {}),
|
|
48350
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$patient_id48 = _.patient_id) === null || _$patient_id48 === void 0 ? void 0 : (_$patient_id48$ = _$patient_id48[0]) === null || _$patient_id48$ === void 0 ? void 0 : (_$patient_id48$$name = _$patient_id48$.name) === null || _$patient_id48$$name === void 0 ? void 0 : _$patient_id48$$name[0]) || {}),
|
|
47574
48351
|
mrn: _ === null || _ === void 0 ? void 0 : (_$patient_id49 = _.patient_id) === null || _$patient_id49 === void 0 ? void 0 : (_$patient_id49$ = _$patient_id49[0]) === null || _$patient_id49$ === void 0 ? void 0 : _$patient_id49$.MRN,
|
|
47575
48352
|
age: _ === null || _ === void 0 ? void 0 : (_$patient_id50 = _.patient_id) === null || _$patient_id50 === void 0 ? void 0 : (_$patient_id50$ = _$patient_id50[0]) === null || _$patient_id50$ === void 0 ? void 0 : _$patient_id50$.age,
|
|
47576
48353
|
gender: _ === null || _ === void 0 ? void 0 : (_$patient_id51 = _.patient_id) === null || _$patient_id51 === void 0 ? void 0 : (_$patient_id51$ = _$patient_id51[0]) === null || _$patient_id51$ === void 0 ? void 0 : (_$patient_id51$$gende = _$patient_id51$.gender) === null || _$patient_id51$$gende === void 0 ? void 0 : _$patient_id51$$gende.display,
|
|
@@ -47976,7 +48753,7 @@ var GET_ASSIGN_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getAssignP
|
|
|
47976
48753
|
var _$Encounter, _$Encounter$patient_i, _$Encounter$patient_i2, _$Encounter$patient_i3, _$Encounter2, _$Encounter2$patient_, _$Encounter2$patient_2, _$Encounter3, _$Encounter3$patient_, _$Encounter3$patient_2, _$Encounter4, _$Encounter4$patient_, _$Encounter4$patient_2, _$Encounter4$patient_3, _$Encounter4$patient_4, _$Appointment, _$Appointment2, _$Appointment3, _$Encounter5, _$Encounter6, _$Encounter7, _$Encounter7$status;
|
|
47977
48754
|
|
|
47978
48755
|
return {
|
|
47979
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter = _.Encounter) === null || _$Encounter === void 0 ? void 0 : (_$Encounter$patient_i = _$Encounter.patient_id) === null || _$Encounter$patient_i === void 0 ? void 0 : (_$Encounter$patient_i2 = _$Encounter$patient_i[0]) === null || _$Encounter$patient_i2 === void 0 ? void 0 : (_$Encounter$patient_i3 = _$Encounter$patient_i2.name) === null || _$Encounter$patient_i3 === void 0 ? void 0 : _$Encounter$patient_i3[0]) || {}),
|
|
48756
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$Encounter = _.Encounter) === null || _$Encounter === void 0 ? void 0 : (_$Encounter$patient_i = _$Encounter.patient_id) === null || _$Encounter$patient_i === void 0 ? void 0 : (_$Encounter$patient_i2 = _$Encounter$patient_i[0]) === null || _$Encounter$patient_i2 === void 0 ? void 0 : (_$Encounter$patient_i3 = _$Encounter$patient_i2.name) === null || _$Encounter$patient_i3 === void 0 ? void 0 : _$Encounter$patient_i3[0]) || {}),
|
|
47980
48757
|
mrn: _ === null || _ === void 0 ? void 0 : (_$Encounter2 = _.Encounter) === null || _$Encounter2 === void 0 ? void 0 : (_$Encounter2$patient_ = _$Encounter2.patient_id) === null || _$Encounter2$patient_ === void 0 ? void 0 : (_$Encounter2$patient_2 = _$Encounter2$patient_[0]) === null || _$Encounter2$patient_2 === void 0 ? void 0 : _$Encounter2$patient_2.MRN,
|
|
47981
48758
|
age: _ === null || _ === void 0 ? void 0 : (_$Encounter3 = _.Encounter) === null || _$Encounter3 === void 0 ? void 0 : (_$Encounter3$patient_ = _$Encounter3.patient_id) === null || _$Encounter3$patient_ === void 0 ? void 0 : (_$Encounter3$patient_2 = _$Encounter3$patient_[0]) === null || _$Encounter3$patient_2 === void 0 ? void 0 : _$Encounter3$patient_2.age,
|
|
47982
48759
|
mobileNo: _ === null || _ === void 0 ? void 0 : (_$Encounter4 = _.Encounter) === null || _$Encounter4 === void 0 ? void 0 : (_$Encounter4$patient_ = _$Encounter4.patient_id) === null || _$Encounter4$patient_ === void 0 ? void 0 : (_$Encounter4$patient_2 = _$Encounter4$patient_[0]) === null || _$Encounter4$patient_2 === void 0 ? void 0 : (_$Encounter4$patient_3 = _$Encounter4$patient_2.telecom) === null || _$Encounter4$patient_3 === void 0 ? void 0 : (_$Encounter4$patient_4 = _$Encounter4$patient_3[0]) === null || _$Encounter4$patient_4 === void 0 ? void 0 : _$Encounter4$patient_4.value,
|
|
@@ -48036,8 +48813,8 @@ var GET_REASSIGN_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getReAss
|
|
|
48036
48813
|
var _$Encounter8, _$Encounter8$patient_, _$Encounter8$patient_2, _$Encounter8$patient_3, _$Encounter9, _$Encounter9$particip, _$Encounter9$particip2, _$Encounter9$particip3, _$Encounter9$particip4, _$Encounter9$particip5, _$Encounter10, _$Encounter10$patient, _$Encounter10$patient2, _$Encounter11, _$Encounter11$patient, _$Encounter11$patient2, _$Encounter12, _$Encounter12$patient, _$Encounter12$patient2, _$Encounter12$patient3, _$Encounter12$patient4, _$Appointment4, _$Appointment5, _$Appointment6, _$Encounter13, _$Encounter14, _$Encounter15, _$Encounter15$status;
|
|
48037
48814
|
|
|
48038
48815
|
return {
|
|
48039
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter8 = _.Encounter) === null || _$Encounter8 === void 0 ? void 0 : (_$Encounter8$patient_ = _$Encounter8.patient_id) === null || _$Encounter8$patient_ === void 0 ? void 0 : (_$Encounter8$patient_2 = _$Encounter8$patient_[0]) === null || _$Encounter8$patient_2 === void 0 ? void 0 : (_$Encounter8$patient_3 = _$Encounter8$patient_2.name) === null || _$Encounter8$patient_3 === void 0 ? void 0 : _$Encounter8$patient_3[0]) || {}),
|
|
48040
|
-
assignedPractitioner: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter9 = _.Encounter) === null || _$Encounter9 === void 0 ? void 0 : (_$Encounter9$particip = _$Encounter9.participant) === null || _$Encounter9$particip === void 0 ? void 0 : (_$Encounter9$particip2 = _$Encounter9$particip[0]) === null || _$Encounter9$particip2 === void 0 ? void 0 : (_$Encounter9$particip3 = _$Encounter9$particip2.Practitioner_id) === null || _$Encounter9$particip3 === void 0 ? void 0 : (_$Encounter9$particip4 = _$Encounter9$particip3[0]) === null || _$Encounter9$particip4 === void 0 ? void 0 : (_$Encounter9$particip5 = _$Encounter9$particip4.name) === null || _$Encounter9$particip5 === void 0 ? void 0 : _$Encounter9$particip5[0]) || {}),
|
|
48816
|
+
name: makeName$1((_ === null || _ === void 0 ? void 0 : (_$Encounter8 = _.Encounter) === null || _$Encounter8 === void 0 ? void 0 : (_$Encounter8$patient_ = _$Encounter8.patient_id) === null || _$Encounter8$patient_ === void 0 ? void 0 : (_$Encounter8$patient_2 = _$Encounter8$patient_[0]) === null || _$Encounter8$patient_2 === void 0 ? void 0 : (_$Encounter8$patient_3 = _$Encounter8$patient_2.name) === null || _$Encounter8$patient_3 === void 0 ? void 0 : _$Encounter8$patient_3[0]) || {}),
|
|
48817
|
+
assignedPractitioner: makeName$1((_ === null || _ === void 0 ? void 0 : (_$Encounter9 = _.Encounter) === null || _$Encounter9 === void 0 ? void 0 : (_$Encounter9$particip = _$Encounter9.participant) === null || _$Encounter9$particip === void 0 ? void 0 : (_$Encounter9$particip2 = _$Encounter9$particip[0]) === null || _$Encounter9$particip2 === void 0 ? void 0 : (_$Encounter9$particip3 = _$Encounter9$particip2.Practitioner_id) === null || _$Encounter9$particip3 === void 0 ? void 0 : (_$Encounter9$particip4 = _$Encounter9$particip3[0]) === null || _$Encounter9$particip4 === void 0 ? void 0 : (_$Encounter9$particip5 = _$Encounter9$particip4.name) === null || _$Encounter9$particip5 === void 0 ? void 0 : _$Encounter9$particip5[0]) || {}),
|
|
48041
48818
|
mrn: _ === null || _ === void 0 ? void 0 : (_$Encounter10 = _.Encounter) === null || _$Encounter10 === void 0 ? void 0 : (_$Encounter10$patient = _$Encounter10.patient_id) === null || _$Encounter10$patient === void 0 ? void 0 : (_$Encounter10$patient2 = _$Encounter10$patient[0]) === null || _$Encounter10$patient2 === void 0 ? void 0 : _$Encounter10$patient2.MRN,
|
|
48042
48819
|
age: _ === null || _ === void 0 ? void 0 : (_$Encounter11 = _.Encounter) === null || _$Encounter11 === void 0 ? void 0 : (_$Encounter11$patient = _$Encounter11.patient_id) === null || _$Encounter11$patient === void 0 ? void 0 : (_$Encounter11$patient2 = _$Encounter11$patient[0]) === null || _$Encounter11$patient2 === void 0 ? void 0 : _$Encounter11$patient2.age,
|
|
48043
48820
|
mobileNo: _ === null || _ === void 0 ? void 0 : (_$Encounter12 = _.Encounter) === null || _$Encounter12 === void 0 ? void 0 : (_$Encounter12$patient = _$Encounter12.patient_id) === null || _$Encounter12$patient === void 0 ? void 0 : (_$Encounter12$patient2 = _$Encounter12$patient[0]) === null || _$Encounter12$patient2 === void 0 ? void 0 : (_$Encounter12$patient3 = _$Encounter12$patient2.telecom) === null || _$Encounter12$patient3 === void 0 ? void 0 : (_$Encounter12$patient4 = _$Encounter12$patient3[0]) === null || _$Encounter12$patient4 === void 0 ? void 0 : _$Encounter12$patient4.value,
|
|
@@ -48096,7 +48873,7 @@ var GET_CLOSE_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getClosePra
|
|
|
48096
48873
|
var _makeName, _$patient_id, _$patient_id$, _$patient_id$$name, _$practitioner_detail, _$practitioner_detail2, _$practitioner_detail3, _$patient_id$0$alias, _$patient_id2, _$patient_id2$, _$patient_id$0$age, _$patient_id3, _$patient_id3$, _$patient_id4, _$patient_id4$, _$patient_id4$$teleco, _$patient_id4$$teleco2, _$patient_id5, _$patient_id5$, _$patient_id5$$teleco, _$patient_id5$$teleco2, _$appointmentId$appno, _$appointmentId, _$appointmentId2, _$appointmentId3, _ref7, _$visit_type, _$status$display, _$status;
|
|
48097
48874
|
|
|
48098
48875
|
return {
|
|
48099
|
-
name: (_makeName = makeName(_ === null || _ === void 0 ? void 0 : (_$patient_id = _.patient_id) === null || _$patient_id === void 0 ? void 0 : (_$patient_id$ = _$patient_id[0]) === null || _$patient_id$ === void 0 ? void 0 : (_$patient_id$$name = _$patient_id$.name) === null || _$patient_id$$name === void 0 ? void 0 : _$patient_id$$name[0])) !== null && _makeName !== void 0 ? _makeName : "",
|
|
48876
|
+
name: (_makeName = makeName$1(_ === null || _ === void 0 ? void 0 : (_$patient_id = _.patient_id) === null || _$patient_id === void 0 ? void 0 : (_$patient_id$ = _$patient_id[0]) === null || _$patient_id$ === void 0 ? void 0 : (_$patient_id$$name = _$patient_id$.name) === null || _$patient_id$$name === void 0 ? void 0 : _$patient_id$$name[0])) !== null && _makeName !== void 0 ? _makeName : "",
|
|
48100
48877
|
assignedPractitioner: (_$practitioner_detail = _ === null || _ === void 0 ? void 0 : (_$practitioner_detail2 = _.practitioner_details) === null || _$practitioner_detail2 === void 0 ? void 0 : (_$practitioner_detail3 = _$practitioner_detail2[0]) === null || _$practitioner_detail3 === void 0 ? void 0 : _$practitioner_detail3.id_name) !== null && _$practitioner_detail !== void 0 ? _$practitioner_detail : "",
|
|
48101
48878
|
mrn: (_$patient_id$0$alias = _ === null || _ === void 0 ? void 0 : (_$patient_id2 = _.patient_id) === null || _$patient_id2 === void 0 ? void 0 : (_$patient_id2$ = _$patient_id2[0]) === null || _$patient_id2$ === void 0 ? void 0 : _$patient_id2$.alias) !== null && _$patient_id$0$alias !== void 0 ? _$patient_id$0$alias : "",
|
|
48102
48879
|
age: (_$patient_id$0$age = _ === null || _ === void 0 ? void 0 : (_$patient_id3 = _.patient_id) === null || _$patient_id3 === void 0 ? void 0 : (_$patient_id3$ = _$patient_id3[0]) === null || _$patient_id3$ === void 0 ? void 0 : _$patient_id3$.age) !== null && _$patient_id$0$age !== void 0 ? _$patient_id$0$age : "",
|