primarycare-binder 1.1.116 → 1.1.120
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 +451 -109
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8073,7 +8073,7 @@ var queries$b = {
|
|
|
8073
8073
|
db_name: "".concat(dbName),
|
|
8074
8074
|
entity: "Encounter",
|
|
8075
8075
|
filter: "Encounter.activestatus==true && Encounter._id=='".concat(encounter_id, "'"),
|
|
8076
|
-
return_fields: "MERGE(Encounter,{reasonReference: Document(Encounter.reasonReference),practitioner_details:(FOR practdet IN TO_ARRAY(Encounter.practitioner_details) RETURN MERGE(practdet,{speciality:DOCUMENT(practdet.speciality)}))},{identifier: ( FOR IdentifierMaster IN IdentifierMaster FILTER IdentifierMaster._id in Encounter.identifier return merge(IdentifierMaster,{period:document(IdentifierMaster.period)}))},{statushistory:(for sat in TO_ARRAY(Encounter.statushistory) return merge(sat,{period:document(sat.period)}))})"
|
|
8076
|
+
return_fields: "MERGE(Encounter,{reasonReference: Document(Encounter.reasonReference),practitioner_details:(FOR practdet IN TO_ARRAY(Encounter.practitioner_details) RETURN MERGE(practdet,{speciality:DOCUMENT(practdet.speciality)}))},{identifier: ( FOR IdentifierMaster IN IdentifierMaster FILTER IdentifierMaster._id in Encounter.identifier return merge(IdentifierMaster,{period:document(IdentifierMaster.period)}))},{statushistory:(for sat in TO_ARRAY(Encounter.statushistory) return merge(sat,{period:document(sat.period)}))},{type:document(Encounter.type)},{class:document(Encounter.class)})"
|
|
8077
8077
|
};
|
|
8078
8078
|
},
|
|
8079
8079
|
get_apo_read: function get_apo_read(appointmentId) {
|
|
@@ -8360,6 +8360,7 @@ var __readDocumentUrl__ = "".concat(process.env.REACT_APP_BASE_URL_PROTOCAL, ":/
|
|
|
8360
8360
|
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
8361
|
var __ruleBuilderUrl__ = "".concat(process.env.REACT_APP_RULE_BUILDER_URL, "/multi/rule-validate");
|
|
8362
8362
|
|
|
8363
|
+
var __TokenGeneration__ = "".concat(process.env.REACT_APP_TOKEN_URL, "/IDMJWTTokencreation");
|
|
8363
8364
|
var __imgdownloadBaseUrl__ = "".concat(process.env.REACT_APP_IMAGE_UPLOAD_PROTOCAL || "https", "://").concat(process.env.REACT_APP_IMAGE_UPLOAD_HOST || "fileupload.dev.ainqaplatform.in", ":").concat(process.env.REACT_APP_IMAGE_UPLOAD_PORT || 443, "/").concat(dbName, "/");
|
|
8364
8365
|
var __bookAppointmentUrl__ = "".concat(process.env.REACT_APP_AUTH_URL_PROTOCAL, "://").concat(process.env.REACT_APP_AUTH_URL_HOST, ":").concat(process.env.REACT_APP_AUTH_URL_PORT, "/api/v1/bookAppointment");
|
|
8365
8366
|
var __modifyAppointmentUrl__ = "".concat(process.env.REACT_APP_AUTH_URL_PROTOCAL, "://").concat(process.env.REACT_APP_AUTH_URL_HOST, ":").concat(process.env.REACT_APP_AUTH_URL_PORT, "/api/v1/modifyAppointment");
|
|
@@ -9841,6 +9842,104 @@ var GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY = createAsyncThunk("authSlice/getIs
|
|
|
9841
9842
|
}
|
|
9842
9843
|
}, _callee18, null, [[2, 14]]);
|
|
9843
9844
|
})));
|
|
9845
|
+
var GET_TOKEN = createAsyncThunk("authSlice/getToken", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19() {
|
|
9846
|
+
var payload,
|
|
9847
|
+
_ref33,
|
|
9848
|
+
rejectWithValue,
|
|
9849
|
+
params,
|
|
9850
|
+
data,
|
|
9851
|
+
_args19 = arguments;
|
|
9852
|
+
|
|
9853
|
+
return regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
9854
|
+
while (1) {
|
|
9855
|
+
switch (_context19.prev = _context19.next) {
|
|
9856
|
+
case 0:
|
|
9857
|
+
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
9858
|
+
_ref33 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref33.rejectWithValue;
|
|
9859
|
+
_context19.prev = 2;
|
|
9860
|
+
params = payload.params;
|
|
9861
|
+
_context19.next = 6;
|
|
9862
|
+
return fetchData$3({
|
|
9863
|
+
body: JSON.stringify(params)
|
|
9864
|
+
}, __TokenGeneration__);
|
|
9865
|
+
|
|
9866
|
+
case 6:
|
|
9867
|
+
data = _context19.sent;
|
|
9868
|
+
return _context19.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
9869
|
+
data: data
|
|
9870
|
+
}));
|
|
9871
|
+
|
|
9872
|
+
case 10:
|
|
9873
|
+
_context19.prev = 10;
|
|
9874
|
+
_context19.t0 = _context19["catch"](2);
|
|
9875
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
9876
|
+
message: _context19.t0.message
|
|
9877
|
+
})));
|
|
9878
|
+
|
|
9879
|
+
case 13:
|
|
9880
|
+
case "end":
|
|
9881
|
+
return _context19.stop();
|
|
9882
|
+
}
|
|
9883
|
+
}
|
|
9884
|
+
}, _callee19, null, [[2, 10]]);
|
|
9885
|
+
})));
|
|
9886
|
+
var JWT_TOKEN_PARAMS = createAsyncThunk("authSlice/jwtTokenParams", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20() {
|
|
9887
|
+
var payload,
|
|
9888
|
+
_ref35,
|
|
9889
|
+
rejectWithValue,
|
|
9890
|
+
_data$result3,
|
|
9891
|
+
_payload$emailId2,
|
|
9892
|
+
emailId,
|
|
9893
|
+
queries,
|
|
9894
|
+
data,
|
|
9895
|
+
res,
|
|
9896
|
+
_args20 = arguments;
|
|
9897
|
+
|
|
9898
|
+
return regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
9899
|
+
while (1) {
|
|
9900
|
+
switch (_context20.prev = _context20.next) {
|
|
9901
|
+
case 0:
|
|
9902
|
+
payload = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};
|
|
9903
|
+
_ref35 = _args20.length > 1 ? _args20[1] : undefined, rejectWithValue = _ref35.rejectWithValue;
|
|
9904
|
+
_context20.prev = 2;
|
|
9905
|
+
_payload$emailId2 = payload.emailId, emailId = _payload$emailId2 === void 0 ? "" : _payload$emailId2;
|
|
9906
|
+
debugger;
|
|
9907
|
+
queries = {
|
|
9908
|
+
"db_name": dbName,
|
|
9909
|
+
"entity": "Person,Practitioner",
|
|
9910
|
+
"filter": {
|
|
9911
|
+
"Person": "(document(document(Person.telecom)[*].system)[*].code == to_Array('email') || document(Person.telecom)[*].system any =='Email') && document(Person.telecom)[*].value any =='".concat(emailId, "' && Person.activestatus==true"),
|
|
9912
|
+
"Practitioner": "Practitioner.PersonID == Person.Id && Practitioner.activestatus==true let oganid=(for Organization in Organization filter Organization.id == first(document(first(document(Practitioner.practitioner_role)[*].OrgID)).ParentOrgID) && Organization.activestatus==true return Organization) let enterid=(for Organization in Organization filter first(first(oganid).ParentOrgID)== Organization.id && Organization.activestatus==true return Organization) let location=(for LocationMaster in LocationMaster filter LocationMaster.managingOrgID==first(document(Practitioner.practitioner_role)[*].OrgID) && LocationMaster.activestatus==true return LocationMaster)"
|
|
9913
|
+
},
|
|
9914
|
+
"return_fields": "{Person_id:Person._id,practitionerID:Practitioner._id,practitioner_role_id:first(Practitioner.practitioner_role),facilityid:first(document(Practitioner.practitioner_role)[*].OrgID),orgid:first(oganid)._id,enterpriseid:first(enterid)._id,locationid:first(location)._id}"
|
|
9915
|
+
};
|
|
9916
|
+
_context20.next = 8;
|
|
9917
|
+
return fetchData$3({
|
|
9918
|
+
body: JSON.stringify(queries)
|
|
9919
|
+
}, __readDocumentUrl__);
|
|
9920
|
+
|
|
9921
|
+
case 8:
|
|
9922
|
+
data = _context20.sent;
|
|
9923
|
+
res = data === null || data === void 0 ? void 0 : (_data$result3 = data.result) === null || _data$result3 === void 0 ? void 0 : _data$result3[0];
|
|
9924
|
+
debugger;
|
|
9925
|
+
return _context20.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
9926
|
+
data: res
|
|
9927
|
+
}));
|
|
9928
|
+
|
|
9929
|
+
case 14:
|
|
9930
|
+
_context20.prev = 14;
|
|
9931
|
+
_context20.t0 = _context20["catch"](2);
|
|
9932
|
+
return _context20.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
9933
|
+
message: _context20.t0.message
|
|
9934
|
+
})));
|
|
9935
|
+
|
|
9936
|
+
case 17:
|
|
9937
|
+
case "end":
|
|
9938
|
+
return _context20.stop();
|
|
9939
|
+
}
|
|
9940
|
+
}
|
|
9941
|
+
}, _callee20, null, [[2, 14]]);
|
|
9942
|
+
})));
|
|
9844
9943
|
var authSlice = createSlice({
|
|
9845
9944
|
name: "authSlice",
|
|
9846
9945
|
initialState: {
|
|
@@ -9862,7 +9961,9 @@ var authSlice = createSlice({
|
|
|
9862
9961
|
refreshToken: _objectSpread2({}, defaultState.Info),
|
|
9863
9962
|
country_code_list: _objectSpread2({}, defaultState.Info),
|
|
9864
9963
|
getFacilityByUserid: _objectSpread2({}, defaultState.Info),
|
|
9865
|
-
getIsNurseTriageRequiredByFacility: _objectSpread2({}, defaultState.Info)
|
|
9964
|
+
getIsNurseTriageRequiredByFacility: _objectSpread2({}, defaultState.Info),
|
|
9965
|
+
getToken: _objectSpread2({}, defaultState.Info),
|
|
9966
|
+
jwtTokenParams: _objectSpread2({}, defaultState.Info)
|
|
9866
9967
|
},
|
|
9867
9968
|
extraReducers: (_extraReducers$G = {}, _defineProperty(_extraReducers$G, REGISTER_USERS.fulfilled, function (state, action) {
|
|
9868
9969
|
var _action$payload;
|
|
@@ -10034,6 +10135,26 @@ var authSlice = createSlice({
|
|
|
10034
10135
|
var _action$payload34;
|
|
10035
10136
|
|
|
10036
10137
|
state.getIsNurseTriageRequiredByFacility = (_action$payload34 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload34 !== void 0 ? _action$payload34 : {};
|
|
10138
|
+
}), _defineProperty(_extraReducers$G, GET_TOKEN.fulfilled, function (state, action) {
|
|
10139
|
+
var _action$payload35;
|
|
10140
|
+
|
|
10141
|
+
state.getToken = (_action$payload35 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload35 !== void 0 ? _action$payload35 : {};
|
|
10142
|
+
}), _defineProperty(_extraReducers$G, GET_TOKEN.pending, function (state, action) {
|
|
10143
|
+
state.getToken.loading = true;
|
|
10144
|
+
}), _defineProperty(_extraReducers$G, GET_TOKEN.rejected, function (state, action) {
|
|
10145
|
+
var _action$payload36;
|
|
10146
|
+
|
|
10147
|
+
state.getToken = (_action$payload36 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload36 !== void 0 ? _action$payload36 : {};
|
|
10148
|
+
}), _defineProperty(_extraReducers$G, JWT_TOKEN_PARAMS.fulfilled, function (state, action) {
|
|
10149
|
+
var _action$payload37;
|
|
10150
|
+
|
|
10151
|
+
state.jwtTokenParams = (_action$payload37 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload37 !== void 0 ? _action$payload37 : {};
|
|
10152
|
+
}), _defineProperty(_extraReducers$G, JWT_TOKEN_PARAMS.pending, function (state, action) {
|
|
10153
|
+
state.jwtTokenParams.loading = true;
|
|
10154
|
+
}), _defineProperty(_extraReducers$G, JWT_TOKEN_PARAMS.rejected, function (state, action) {
|
|
10155
|
+
var _action$payload38;
|
|
10156
|
+
|
|
10157
|
+
state.jwtTokenParams = (_action$payload38 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload38 !== void 0 ? _action$payload38 : {};
|
|
10037
10158
|
}), _extraReducers$G)
|
|
10038
10159
|
});
|
|
10039
10160
|
var authActions = {
|
|
@@ -10053,7 +10174,9 @@ var authActions = {
|
|
|
10053
10174
|
REFRESH_TOKEN: REFRESH_TOKEN,
|
|
10054
10175
|
GET_COUNTRY_CODE_LIST: GET_COUNTRY_CODE_LIST,
|
|
10055
10176
|
GET_FACILITY_BY_USERID: GET_FACILITY_BY_USERID,
|
|
10056
|
-
GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY: GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY
|
|
10177
|
+
GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY: GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY,
|
|
10178
|
+
GET_TOKEN: GET_TOKEN,
|
|
10179
|
+
JWT_TOKEN_PARAMS: JWT_TOKEN_PARAMS
|
|
10057
10180
|
};
|
|
10058
10181
|
var authSlice$1 = authSlice.reducer;
|
|
10059
10182
|
|
|
@@ -12328,6 +12451,8 @@ var QUEUE_MANAGEMENT = createAsyncThunk("appointmentReducer/queueManagement", /*
|
|
|
12328
12451
|
isNurse,
|
|
12329
12452
|
_payload$isFrontDesk,
|
|
12330
12453
|
isFrontDesk,
|
|
12454
|
+
_payload$nameOfOrg,
|
|
12455
|
+
nameOfOrg,
|
|
12331
12456
|
body,
|
|
12332
12457
|
data,
|
|
12333
12458
|
returnData,
|
|
@@ -12340,7 +12465,7 @@ var QUEUE_MANAGEMENT = createAsyncThunk("appointmentReducer/queueManagement", /*
|
|
|
12340
12465
|
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
12341
12466
|
_ref25 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
|
|
12342
12467
|
_context12.prev = 2;
|
|
12343
|
-
_payload$start2 = payload.start, start = _payload$start2 === void 0 ? 0 : _payload$start2, _payload$end = payload.end, end = _payload$end === void 0 ? 0 : _payload$end, _payload$OrgID = payload.OrgID, OrgID = _payload$OrgID === void 0 ? 0 : _payload$OrgID, _payload$login = payload.login, login = _payload$login === void 0 ? 0 : _payload$login, _payload$specialtyId = payload.specialtyId, specialtyId = _payload$specialtyId === void 0 ? 0 : _payload$specialtyId, _payload$isDoctor = payload.isDoctor, isDoctor = _payload$isDoctor === void 0 ? false : _payload$isDoctor, _payload$isNurse = payload.isNurse, isNurse = _payload$isNurse === void 0 ? false : _payload$isNurse, _payload$isFrontDesk = payload.isFrontDesk, isFrontDesk = _payload$isFrontDesk === void 0 ? false : _payload$isFrontDesk;
|
|
12468
|
+
_payload$start2 = payload.start, start = _payload$start2 === void 0 ? 0 : _payload$start2, _payload$end = payload.end, end = _payload$end === void 0 ? 0 : _payload$end, _payload$OrgID = payload.OrgID, OrgID = _payload$OrgID === void 0 ? 0 : _payload$OrgID, _payload$login = payload.login, login = _payload$login === void 0 ? 0 : _payload$login, _payload$specialtyId = payload.specialtyId, specialtyId = _payload$specialtyId === void 0 ? 0 : _payload$specialtyId, _payload$isDoctor = payload.isDoctor, isDoctor = _payload$isDoctor === void 0 ? false : _payload$isDoctor, _payload$isNurse = payload.isNurse, isNurse = _payload$isNurse === void 0 ? false : _payload$isNurse, _payload$isFrontDesk = payload.isFrontDesk, isFrontDesk = _payload$isFrontDesk === void 0 ? false : _payload$isFrontDesk, _payload$nameOfOrg = payload.nameOfOrg, nameOfOrg = _payload$nameOfOrg === void 0 ? "" : _payload$nameOfOrg;
|
|
12344
12469
|
body = isDoctor ? {
|
|
12345
12470
|
db_name: dbName,
|
|
12346
12471
|
queryid: query_ids["appointmentReducer/queueManagementDoctor"],
|
|
@@ -12365,7 +12490,8 @@ var QUEUE_MANAGEMENT = createAsyncThunk("appointmentReducer/queueManagement", /*
|
|
|
12365
12490
|
filter: {
|
|
12366
12491
|
start: start,
|
|
12367
12492
|
end: end,
|
|
12368
|
-
OrgID: OrgID
|
|
12493
|
+
OrgID: OrgID,
|
|
12494
|
+
org_id: nameOfOrg
|
|
12369
12495
|
}
|
|
12370
12496
|
};
|
|
12371
12497
|
_context12.next = 7;
|
|
@@ -15710,7 +15836,7 @@ var GET_ENCOUNTER_MASTER_TYPE = createAsyncThunk('searchApiSlice/masterEncounter
|
|
|
15710
15836
|
"db_name": "primarycare",
|
|
15711
15837
|
"entity": "AMPatientClass",
|
|
15712
15838
|
"filter": "AMPatientClass.status==true && AMPatientClass.activestatus==true",
|
|
15713
|
-
"return_fields": "keep(AMPatientClass,'_id','_key','id','shortDesc','longDesc','status')",
|
|
15839
|
+
"return_fields": "keep(AMPatientClass,'_id','_key','id', 'encType', 'shortDesc','longDesc','status')",
|
|
15714
15840
|
"sort": "AMPatientClass.shortDesc"
|
|
15715
15841
|
};
|
|
15716
15842
|
_context10.next = 7;
|
|
@@ -15771,7 +15897,7 @@ var GET_ENCOUNTER_MASTER_CLASS = createAsyncThunk('searchApiSlice/masterEncounte
|
|
|
15771
15897
|
encounterClassBody = {
|
|
15772
15898
|
"db_name": "primarycare",
|
|
15773
15899
|
"entity": "AMPatientClass",
|
|
15774
|
-
"filter": "AMPatientClass.
|
|
15900
|
+
"filter": "AMPatientClass.encType=='".concat(encType, "' && AMPatientClass.status==true && AMPatientClass.activestatus==true"),
|
|
15775
15901
|
"return_fields": "{encClsByTypes:AMPatientClass.encClsByTypes}"
|
|
15776
15902
|
};
|
|
15777
15903
|
_context11.next = 8;
|
|
@@ -20438,7 +20564,8 @@ var dashboardQuery = {
|
|
|
20438
20564
|
}],
|
|
20439
20565
|
specialty: data === null || data === void 0 ? void 0 : data.specialty
|
|
20440
20566
|
}],
|
|
20441
|
-
participantHistory: data === null || data === void 0 ? void 0 : data.participantHistory
|
|
20567
|
+
participantHistory: data === null || data === void 0 ? void 0 : data.participantHistory,
|
|
20568
|
+
practitioner_details: data === null || data === void 0 ? void 0 : data.practitioner_details
|
|
20442
20569
|
}
|
|
20443
20570
|
}];
|
|
20444
20571
|
},
|
|
@@ -20475,6 +20602,21 @@ var dashboardQuery = {
|
|
|
20475
20602
|
return_fields: // "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)})),telecom:document(pat.telecom),gender:document(pat.gender),age_type:document(pat.age_type)},{photo:document(pat.photo)}))},{reasonReference:document(Encounter.reasonReference)},{appointmentId: merge(Appointment,{practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding))}))},{photo:document(prac.photo)})),HealthcareServiceID:(for hs in HealthcareService filter hs.id in Appointment.HealthcareServiceID return hs)},{appointmentReason:(for apr in CodingMaster filter apr.id in Appointment.appointmentReason return apr)})},{followupUOM:document(Encounter.followupUOM),reasonCode:document(Encounter.reasonCode),dischargeDisposition:document(Encounter.dischargeDisposition)},{practitioner_details:(for pd in Encounter.practitioner_details return merge(pd,{speciality:(for spd in CodeableConceptMaster filter spd._id == pd.speciality return merge(spd,{coding:document(spd.coding)}))}))},{Followupdetails:(for app in AppointmentRequest filter app.encounterid==Encounter._id return merge(app,{followupduruom:document(app.followupduruom)},{followupreason:document(app.followupreason)}))})",
|
|
20476
20603
|
"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)})),telecom:document(pat.telecom),gender:document(pat.gender),age_type:document(pat.age_type)},{photo:document(pat.photo)}))}, {statushistoryExp:(for she in Encounter.statushistory return merge(she,{period:document(she.period)},{status:document(she.status)}))} , {reasonReference:document(Encounter.reasonReference)},{appointmentId: merge(Appointment,{practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding))}))},{photo:document(prac.photo)})),HealthcareServiceID:(for hs in HealthcareService filter hs.id in Appointment.HealthcareServiceID return hs)},{appointmentReason:(for apr in CodingMaster filter apr.id in Appointment.appointmentReason return apr)})},{followupUOM:document(Encounter.followupUOM),reasonCode:document(Encounter.reasonCode),dischargeDisposition:document(Encounter.dischargeDisposition)},{practitioner_details:(for pd in Encounter.practitioner_details return merge(pd,{speciality:(for spd in CodeableConceptMaster filter spd._id == pd.speciality return merge(spd,{coding:document(spd.coding)}))}))},{Followupdetails:(for app in AppointmentRequest filter app.encounterid==Encounter._id return merge(app,{followupduruom:document(app.followupduruom)},{followupreason:document(app.followupreason)}))})"
|
|
20477
20604
|
};
|
|
20605
|
+
},
|
|
20606
|
+
appointmentResourceCodeUpdate: function appointmentResourceCodeUpdate(appID, resourceCode, practId) {
|
|
20607
|
+
return [{
|
|
20608
|
+
"db_name": dbName,
|
|
20609
|
+
"entity": "Appointment",
|
|
20610
|
+
"is_metadata": true,
|
|
20611
|
+
"filter": {
|
|
20612
|
+
"_key": "".concat(appID)
|
|
20613
|
+
},
|
|
20614
|
+
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
20615
|
+
"doc": {
|
|
20616
|
+
"resourcecode": "".concat(resourceCode),
|
|
20617
|
+
"practitionerID": [Number(practId)]
|
|
20618
|
+
}
|
|
20619
|
+
}];
|
|
20478
20620
|
}
|
|
20479
20621
|
};
|
|
20480
20622
|
var visitQuery = {
|
|
@@ -22157,7 +22299,7 @@ var ASSIGN_PRACTITIONER_LIST = createAsyncThunk("dashboardApiSlice/assignPractit
|
|
|
22157
22299
|
data = _context25.sent;
|
|
22158
22300
|
arry = [];
|
|
22159
22301
|
data === null || data === void 0 ? void 0 : (_data$result9 = data.result) === null || _data$result9 === void 0 ? void 0 : _data$result9.map(function (val) {
|
|
22160
|
-
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;
|
|
22302
|
+
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;
|
|
22161
22303
|
|
|
22162
22304
|
arry.push({
|
|
22163
22305
|
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 : "",
|
|
@@ -22167,7 +22309,9 @@ var ASSIGN_PRACTITIONER_LIST = createAsyncThunk("dashboardApiSlice/assignPractit
|
|
|
22167
22309
|
id: (_val$id = val === null || val === void 0 ? void 0 : val.id) !== null && _val$id !== void 0 ? _val$id : "",
|
|
22168
22310
|
appointmentCount: (_val$assignedpatient = val === null || val === void 0 ? void 0 : val.assignedpatient) !== null && _val$assignedpatient !== void 0 ? _val$assignedpatient : "",
|
|
22169
22311
|
Practitioner_id: (_val$id2 = val === null || val === void 0 ? void 0 : val.id) !== null && _val$id2 !== void 0 ? _val$id2 : "",
|
|
22170
|
-
PractitionerRole_id: (_val$practitioner_rol = val === null || val === void 0 ? void 0 : (_val$practitioner_rol2 = val.practitioner_role) === null || _val$practitioner_rol2 === void 0 ? void 0 : (_val$practitioner_rol3 = _val$practitioner_rol2[0]) === null || _val$practitioner_rol3 === void 0 ? void 0 : _val$practitioner_rol3.id) !== null && _val$practitioner_rol !== void 0 ? _val$practitioner_rol : ""
|
|
22312
|
+
PractitionerRole_id: (_val$practitioner_rol = val === null || val === void 0 ? void 0 : (_val$practitioner_rol2 = val.practitioner_role) === null || _val$practitioner_rol2 === void 0 ? void 0 : (_val$practitioner_rol3 = _val$practitioner_rol2[0]) === null || _val$practitioner_rol3 === void 0 ? void 0 : _val$practitioner_rol3.id) !== null && _val$practitioner_rol !== void 0 ? _val$practitioner_rol : "",
|
|
22313
|
+
pract_id: (_val$_id7 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id7 !== void 0 ? _val$_id7 : "",
|
|
22314
|
+
pract_role_id: (_val$practitioner_rol4 = val === null || val === void 0 ? void 0 : (_val$practitioner_rol5 = val.practitioner_role) === null || _val$practitioner_rol5 === void 0 ? void 0 : (_val$practitioner_rol6 = _val$practitioner_rol5[0]) === null || _val$practitioner_rol6 === void 0 ? void 0 : _val$practitioner_rol6._id) !== null && _val$practitioner_rol4 !== void 0 ? _val$practitioner_rol4 : ""
|
|
22171
22315
|
});
|
|
22172
22316
|
});
|
|
22173
22317
|
return _context25.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
@@ -22274,6 +22418,53 @@ var REASSIGN_PRACTITIONER_UPDATE = createAsyncThunk("dashboardApiSlice/reassignP
|
|
|
22274
22418
|
}
|
|
22275
22419
|
}
|
|
22276
22420
|
}, _callee27, null, [[2, 10]]);
|
|
22421
|
+
}))); //UPSERT_APPOINTMENT
|
|
22422
|
+
|
|
22423
|
+
var UPSERT_APPOINTMENT = createAsyncThunk("dashboardApiSlice/appointmentUpsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee28() {
|
|
22424
|
+
var payload,
|
|
22425
|
+
_ref56,
|
|
22426
|
+
rejectWithValue,
|
|
22427
|
+
appID,
|
|
22428
|
+
resourceCode,
|
|
22429
|
+
practId,
|
|
22430
|
+
data__,
|
|
22431
|
+
_args28 = arguments;
|
|
22432
|
+
|
|
22433
|
+
return regeneratorRuntime.wrap(function _callee28$(_context28) {
|
|
22434
|
+
while (1) {
|
|
22435
|
+
switch (_context28.prev = _context28.next) {
|
|
22436
|
+
case 0:
|
|
22437
|
+
payload = _args28.length > 0 && _args28[0] !== undefined ? _args28[0] : {};
|
|
22438
|
+
_ref56 = _args28.length > 1 ? _args28[1] : undefined, rejectWithValue = _ref56.rejectWithValue;
|
|
22439
|
+
_context28.prev = 2;
|
|
22440
|
+
appID = payload.appID, resourceCode = payload.resourceCode, practId = payload.practId;
|
|
22441
|
+
debugger;
|
|
22442
|
+
_context28.next = 7;
|
|
22443
|
+
return fetchData$3({
|
|
22444
|
+
body: JSON.stringify(dashboardQuery.appointmentResourceCodeUpdate(appID, resourceCode, practId))
|
|
22445
|
+
}, __uspsertUrl__);
|
|
22446
|
+
|
|
22447
|
+
case 7:
|
|
22448
|
+
data__ = _context28.sent;
|
|
22449
|
+
debugger;
|
|
22450
|
+
return _context28.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
22451
|
+
data: data__
|
|
22452
|
+
}));
|
|
22453
|
+
|
|
22454
|
+
case 12:
|
|
22455
|
+
_context28.prev = 12;
|
|
22456
|
+
_context28.t0 = _context28["catch"](2);
|
|
22457
|
+
alert("error");
|
|
22458
|
+
return _context28.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
22459
|
+
message: _context28.t0.message
|
|
22460
|
+
})));
|
|
22461
|
+
|
|
22462
|
+
case 16:
|
|
22463
|
+
case "end":
|
|
22464
|
+
return _context28.stop();
|
|
22465
|
+
}
|
|
22466
|
+
}
|
|
22467
|
+
}, _callee28, null, [[2, 12]]);
|
|
22277
22468
|
})));
|
|
22278
22469
|
|
|
22279
22470
|
var constructStatusHistory = function constructStatusHistory(data, status) {
|
|
@@ -22288,9 +22479,9 @@ var constructStatusHistory = function constructStatusHistory(data, status) {
|
|
|
22288
22479
|
}; //CLOSE_CONSULTATION_UPDATE
|
|
22289
22480
|
|
|
22290
22481
|
|
|
22291
|
-
var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsultationUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
22482
|
+
var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsultationUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee29() {
|
|
22292
22483
|
var payload,
|
|
22293
|
-
|
|
22484
|
+
_ref58,
|
|
22294
22485
|
rejectWithValue,
|
|
22295
22486
|
_encounterCode$result,
|
|
22296
22487
|
_encounterCode$result2,
|
|
@@ -22300,17 +22491,17 @@ var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsult
|
|
|
22300
22491
|
encounterStatus,
|
|
22301
22492
|
statusHistor,
|
|
22302
22493
|
data_,
|
|
22303
|
-
|
|
22494
|
+
_args29 = arguments;
|
|
22304
22495
|
|
|
22305
|
-
return regeneratorRuntime.wrap(function
|
|
22496
|
+
return regeneratorRuntime.wrap(function _callee29$(_context29) {
|
|
22306
22497
|
while (1) {
|
|
22307
|
-
switch (
|
|
22498
|
+
switch (_context29.prev = _context29.next) {
|
|
22308
22499
|
case 0:
|
|
22309
|
-
payload =
|
|
22310
|
-
|
|
22311
|
-
|
|
22500
|
+
payload = _args29.length > 0 && _args29[0] !== undefined ? _args29[0] : {};
|
|
22501
|
+
_ref58 = _args29.length > 1 ? _args29[1] : undefined, rejectWithValue = _ref58.rejectWithValue;
|
|
22502
|
+
_context29.prev = 2;
|
|
22312
22503
|
data = payload.data;
|
|
22313
|
-
|
|
22504
|
+
_context29.next = 6;
|
|
22314
22505
|
return fetchData$3({
|
|
22315
22506
|
body: JSON.stringify({
|
|
22316
22507
|
db_name: dbName,
|
|
@@ -22321,34 +22512,34 @@ var CLOSE_CONSULTATION_UPDATE = createAsyncThunk("dashboardApiSlice/closeConsult
|
|
|
22321
22512
|
}, __readDocumentUrl__);
|
|
22322
22513
|
|
|
22323
22514
|
case 6:
|
|
22324
|
-
encounterCode =
|
|
22515
|
+
encounterCode = _context29.sent;
|
|
22325
22516
|
encounterStatus = (_encounterCode$result = encounterCode === null || encounterCode === void 0 ? void 0 : (_encounterCode$result2 = encounterCode.result) === null || _encounterCode$result2 === void 0 ? void 0 : (_encounterCode$result3 = _encounterCode$result2[0]) === null || _encounterCode$result3 === void 0 ? void 0 : _encounterCode$result3._id) !== null && _encounterCode$result !== void 0 ? _encounterCode$result : "";
|
|
22326
22517
|
statusHistor = constructStatusHistory(data, encounterStatus);
|
|
22327
|
-
|
|
22518
|
+
_context29.next = 11;
|
|
22328
22519
|
return fetchData$3({
|
|
22329
22520
|
body: JSON.stringify(dashboardQuery.closeConsultationUpdate(data, encounterStatus, statusHistor))
|
|
22330
22521
|
}, __uspsertUrl__);
|
|
22331
22522
|
|
|
22332
22523
|
case 11:
|
|
22333
|
-
data_ =
|
|
22334
|
-
return
|
|
22524
|
+
data_ = _context29.sent;
|
|
22525
|
+
return _context29.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
22335
22526
|
data: data_
|
|
22336
22527
|
}));
|
|
22337
22528
|
|
|
22338
22529
|
case 15:
|
|
22339
|
-
|
|
22340
|
-
|
|
22530
|
+
_context29.prev = 15;
|
|
22531
|
+
_context29.t0 = _context29["catch"](2);
|
|
22341
22532
|
alert("error");
|
|
22342
|
-
return
|
|
22343
|
-
message:
|
|
22533
|
+
return _context29.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
22534
|
+
message: _context29.t0.message
|
|
22344
22535
|
})));
|
|
22345
22536
|
|
|
22346
22537
|
case 19:
|
|
22347
22538
|
case "end":
|
|
22348
|
-
return
|
|
22539
|
+
return _context29.stop();
|
|
22349
22540
|
}
|
|
22350
22541
|
}
|
|
22351
|
-
},
|
|
22542
|
+
}, _callee29, null, [[2, 15]]);
|
|
22352
22543
|
})));
|
|
22353
22544
|
var dashboardApiSlice = createSlice({
|
|
22354
22545
|
name: "dashboardApiSlice",
|
|
@@ -22377,6 +22568,7 @@ var dashboardApiSlice = createSlice({
|
|
|
22377
22568
|
assignPractitionerList: _objectSpread2({}, defaultState.Info),
|
|
22378
22569
|
assignPractitionerUpdate: _objectSpread2({}, defaultState.Info),
|
|
22379
22570
|
reassignPractitionerUpdate: _objectSpread2({}, defaultState.Info),
|
|
22571
|
+
appointmentUpsert: _objectSpread2({}, defaultState.Info),
|
|
22380
22572
|
//CLOSE CONSULTATION MASTER
|
|
22381
22573
|
dispositionType: _objectSpread2({}, defaultState.Info),
|
|
22382
22574
|
followupUOM: _objectSpread2({}, defaultState.Info),
|
|
@@ -22624,46 +22816,56 @@ var dashboardApiSlice = createSlice({
|
|
|
22624
22816
|
var _action$payload48;
|
|
22625
22817
|
|
|
22626
22818
|
state.reassignPractitionerUpdate = (_action$payload48 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload48 !== void 0 ? _action$payload48 : {};
|
|
22627
|
-
}), _defineProperty(_extraReducers$p,
|
|
22819
|
+
}), _defineProperty(_extraReducers$p, UPSERT_APPOINTMENT.fulfilled, function (state, action) {
|
|
22628
22820
|
var _action$payload49;
|
|
22629
22821
|
|
|
22630
|
-
state.
|
|
22822
|
+
state.appointmentUpsert = (_action$payload49 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload49 !== void 0 ? _action$payload49 : {};
|
|
22823
|
+
}), _defineProperty(_extraReducers$p, UPSERT_APPOINTMENT.pending, function (state, action) {
|
|
22824
|
+
state.appointmentUpsert.loading = true;
|
|
22825
|
+
}), _defineProperty(_extraReducers$p, UPSERT_APPOINTMENT.rejected, function (state, action) {
|
|
22826
|
+
var _action$payload50;
|
|
22827
|
+
|
|
22828
|
+
state.appointmentUpsert = (_action$payload50 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload50 !== void 0 ? _action$payload50 : {};
|
|
22829
|
+
}), _defineProperty(_extraReducers$p, DISPOSITION_TYPE.fulfilled, function (state, action) {
|
|
22830
|
+
var _action$payload51;
|
|
22831
|
+
|
|
22832
|
+
state.dispositionType = (_action$payload51 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload51 !== void 0 ? _action$payload51 : {};
|
|
22631
22833
|
}), _defineProperty(_extraReducers$p, DISPOSITION_TYPE.pending, function (state, action) {
|
|
22632
22834
|
state.dispositionType.loading = true;
|
|
22633
22835
|
}), _defineProperty(_extraReducers$p, DISPOSITION_TYPE.rejected, function (state, action) {
|
|
22634
|
-
var _action$
|
|
22836
|
+
var _action$payload52;
|
|
22635
22837
|
|
|
22636
|
-
state.dispositionType = (_action$
|
|
22838
|
+
state.dispositionType = (_action$payload52 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload52 !== void 0 ? _action$payload52 : {};
|
|
22637
22839
|
}), _defineProperty(_extraReducers$p, FOLLOWUPUOM.fulfilled, function (state, action) {
|
|
22638
|
-
var _action$
|
|
22840
|
+
var _action$payload53;
|
|
22639
22841
|
|
|
22640
|
-
state.followupUOM = (_action$
|
|
22842
|
+
state.followupUOM = (_action$payload53 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload53 !== void 0 ? _action$payload53 : {};
|
|
22641
22843
|
}), _defineProperty(_extraReducers$p, FOLLOWUPUOM.pending, function (state, action) {
|
|
22642
22844
|
state.followupUOM.loading = true;
|
|
22643
22845
|
}), _defineProperty(_extraReducers$p, FOLLOWUPUOM.rejected, function (state, action) {
|
|
22644
|
-
var _action$
|
|
22846
|
+
var _action$payload54;
|
|
22645
22847
|
|
|
22646
|
-
state.followupUOM = (_action$
|
|
22848
|
+
state.followupUOM = (_action$payload54 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload54 !== void 0 ? _action$payload54 : {};
|
|
22647
22849
|
}), _defineProperty(_extraReducers$p, REASON_MASTER.fulfilled, function (state, action) {
|
|
22648
|
-
var _action$
|
|
22850
|
+
var _action$payload55;
|
|
22649
22851
|
|
|
22650
|
-
state.reasonMaster = (_action$
|
|
22852
|
+
state.reasonMaster = (_action$payload55 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload55 !== void 0 ? _action$payload55 : {};
|
|
22651
22853
|
}), _defineProperty(_extraReducers$p, REASON_MASTER.pending, function (state, action) {
|
|
22652
22854
|
state.reasonMaster.loading = true;
|
|
22653
22855
|
}), _defineProperty(_extraReducers$p, REASON_MASTER.rejected, function (state, action) {
|
|
22654
|
-
var _action$
|
|
22856
|
+
var _action$payload56;
|
|
22655
22857
|
|
|
22656
|
-
state.reasonMaster = (_action$
|
|
22858
|
+
state.reasonMaster = (_action$payload56 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload56 !== void 0 ? _action$payload56 : {};
|
|
22657
22859
|
}), _defineProperty(_extraReducers$p, CLOSE_CONSULTATION_UPDATE.fulfilled, function (state, action) {
|
|
22658
|
-
var _action$
|
|
22860
|
+
var _action$payload57;
|
|
22659
22861
|
|
|
22660
|
-
state.closeConsultationUpdate = (_action$
|
|
22862
|
+
state.closeConsultationUpdate = (_action$payload57 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload57 !== void 0 ? _action$payload57 : {};
|
|
22661
22863
|
}), _defineProperty(_extraReducers$p, CLOSE_CONSULTATION_UPDATE.pending, function (state, action) {
|
|
22662
22864
|
state.closeConsultationUpdate.loading = true;
|
|
22663
22865
|
}), _defineProperty(_extraReducers$p, CLOSE_CONSULTATION_UPDATE.rejected, function (state, action) {
|
|
22664
|
-
var _action$
|
|
22866
|
+
var _action$payload58;
|
|
22665
22867
|
|
|
22666
|
-
state.closeConsultationUpdate = (_action$
|
|
22868
|
+
state.closeConsultationUpdate = (_action$payload58 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload58 !== void 0 ? _action$payload58 : {};
|
|
22667
22869
|
}), _extraReducers$p)
|
|
22668
22870
|
});
|
|
22669
22871
|
var dashboardApiActions = {
|
|
@@ -22694,7 +22896,8 @@ var dashboardApiActions = {
|
|
|
22694
22896
|
FOLLOWUPUOM: FOLLOWUPUOM,
|
|
22695
22897
|
REASON_MASTER: REASON_MASTER,
|
|
22696
22898
|
CLOSE_CONSULTATION_UPDATE: CLOSE_CONSULTATION_UPDATE,
|
|
22697
|
-
TODAY_VISIT: TODAY_VISIT
|
|
22899
|
+
TODAY_VISIT: TODAY_VISIT,
|
|
22900
|
+
UPSERT_APPOINTMENT: UPSERT_APPOINTMENT
|
|
22698
22901
|
};
|
|
22699
22902
|
var dashboardApiSlice$1 = dashboardApiSlice.reducer;
|
|
22700
22903
|
|
|
@@ -23794,7 +23997,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
23794
23997
|
data = _context12.sent;
|
|
23795
23998
|
arr = [];
|
|
23796
23999
|
data.result.map(function (val) {
|
|
23797
|
-
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$
|
|
24000
|
+
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;
|
|
23798
24001
|
|
|
23799
24002
|
var lang = val === null || val === void 0 ? void 0 : (_val$Patient = val.Patient) === null || _val$Patient === void 0 ? void 0 : (_val$Patient$ = _val$Patient[0]) === null || _val$Patient$ === void 0 ? void 0 : (_val$Patient$$communi = _val$Patient$.communicationLanguage) === null || _val$Patient$$communi === void 0 ? void 0 : _val$Patient$$communi.map(function (val) {
|
|
23800
24003
|
return val.display;
|
|
@@ -23810,12 +24013,13 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
23810
24013
|
// name: val?.Patient?.[0]?.name?.[0]?.text ?? "",
|
|
23811
24014
|
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]),
|
|
23812
24015
|
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,
|
|
23813
|
-
|
|
23814
|
-
|
|
23815
|
-
|
|
23816
|
-
|
|
24016
|
+
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,
|
|
24017
|
+
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,
|
|
24018
|
+
gender: val === null || val === void 0 ? void 0 : (_val$Patient6 = val.Patient) === null || _val$Patient6 === void 0 ? void 0 : (_val$Patient6$ = _val$Patient6[0]) === null || _val$Patient6$ === void 0 ? void 0 : (_val$Patient6$$gender = _val$Patient6$.gender) === null || _val$Patient6$$gender === void 0 ? void 0 : _val$Patient6$$gender.display,
|
|
24019
|
+
dob: val === null || val === void 0 ? void 0 : (_val$Patient7 = val.Patient) === null || _val$Patient7 === void 0 ? void 0 : (_val$Patient7$ = _val$Patient7[0]) === null || _val$Patient7$ === void 0 ? void 0 : _val$Patient7$.birthDate,
|
|
24020
|
+
pidentifier: (_val$Patient$0$pident = val === null || val === void 0 ? void 0 : (_val$Patient8 = val.Patient) === null || _val$Patient8 === void 0 ? void 0 : (_val$Patient8$ = _val$Patient8[0]) === null || _val$Patient8$ === void 0 ? void 0 : (_val$Patient8$$pident = _val$Patient8$.pidentifier) === null || _val$Patient8$$pident === void 0 ? void 0 : (_val$Patient8$$pident2 = _val$Patient8$$pident[0]) === null || _val$Patient8$$pident2 === void 0 ? void 0 : _val$Patient8$$pident2.value) !== null && _val$Patient$0$pident !== void 0 ? _val$Patient$0$pident : "",
|
|
23817
24021
|
lang: (_lang = lang) === null || _lang === void 0 ? void 0 : _lang.join(", "),
|
|
23818
|
-
img: getImgUrl(val === null || val === void 0 ? void 0 : (_val$
|
|
24022
|
+
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),
|
|
23819
24023
|
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 : ""
|
|
23820
24024
|
});
|
|
23821
24025
|
});
|
|
@@ -25443,7 +25647,7 @@ var radOrderActions = _objectSpread2({}, actionInfo$3);
|
|
|
25443
25647
|
var radOrderSlice$1 = radOrderSlice.reducer;
|
|
25444
25648
|
|
|
25445
25649
|
var generateJSON$6 = function generateJSON(payload, orgId) {
|
|
25446
|
-
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$
|
|
25650
|
+
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;
|
|
25447
25651
|
|
|
25448
25652
|
var filter = {};
|
|
25449
25653
|
|
|
@@ -25482,7 +25686,8 @@ var generateJSON$6 = function generateJSON(payload, orgId) {
|
|
|
25482
25686
|
"workFlowStatus": (_payload$workFlowStat = payload.workFlowStatus) !== null && _payload$workFlowStat !== void 0 ? _payload$workFlowStat : "",
|
|
25483
25687
|
"drugCode": (_payload$name$value = (_payload$name2 = payload.name) === null || _payload$name2 === void 0 ? void 0 : _payload$name2.value) !== null && _payload$name$value !== void 0 ? _payload$name$value : "",
|
|
25484
25688
|
"formCode": (_payload$formCode = payload.formCode) !== null && _payload$formCode !== void 0 ? _payload$formCode : "",
|
|
25485
|
-
"routeCode":
|
|
25689
|
+
// "routeCode": payload.routeCode?.value ?? "",
|
|
25690
|
+
"routeCode": (_payload$DefaultRoute = payload === null || payload === void 0 ? void 0 : (_payload$DefaultRoute2 = payload.DefaultRouteCode) === null || _payload$DefaultRoute2 === void 0 ? void 0 : _payload$DefaultRoute2.value) !== null && _payload$DefaultRoute !== void 0 ? _payload$DefaultRoute : "",
|
|
25486
25691
|
"dosageTypeIndicator": (_payload$dosageTypeIn = payload.dosageTypeIndicator) !== null && _payload$dosageTypeIn !== void 0 ? _payload$dosageTypeIn : "",
|
|
25487
25692
|
"dosageValue": payload.doseMeasurementValue ? parseInt(payload.doseMeasurementValue) : 0,
|
|
25488
25693
|
"dosageUOM": (_payload$unitValue$va = (_payload$unitValue = payload.unitValue) === null || _payload$unitValue === void 0 ? void 0 : _payload$unitValue.value) !== null && _payload$unitValue$va !== void 0 ? _payload$unitValue$va : "",
|
|
@@ -29084,6 +29289,7 @@ var generateJSON$3 = function generateJSON(dataList) {
|
|
|
29084
29289
|
var payload = dataList.map(function (data) {
|
|
29085
29290
|
var _data$orderCatalog, _data$occuranceStartD, _data$occuranceEndDat, _data$orderQty, _data$status, _data$reasonCode, _data$indications, _data$notes, _data$accessionNum, _data$attribute$view, _data$attribute, _data$attribute$bedSi, _data$attribute2, _data$attribute$contr, _data$attribute3, _data$statusreason;
|
|
29086
29291
|
|
|
29292
|
+
console.log("myJSonLab", data);
|
|
29087
29293
|
var extraJson = {};
|
|
29088
29294
|
var filter = {};
|
|
29089
29295
|
|
|
@@ -29313,7 +29519,7 @@ var queries$6 = {
|
|
|
29313
29519
|
db_name: dbName,
|
|
29314
29520
|
entity: "CA_OrderLine",
|
|
29315
29521
|
filter: "CA_OrderLine.encounter_Id==\"".concat(encounter_id, "\" && CA_OrderLine.Oltype=='LAB' && CA_OrderLine.parentOrderId=='' && CA_OrderLine.activestatus==true"),
|
|
29316
|
-
return_fields: "MERGE(CA_OrderLine,{childRecurrent:(for doc in CA_OrderLine_CA_OrderLine_E filter doc._to == CA_OrderLine._id RETURN MERGE(DOCUMENT(doc._from),{Requestor:(for req in TO_ARRAY(DOCUMENT(doc._from).Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))})),org_Id:DOCUMENT(CA_OrderLine.org_Id),Requestor:(for req in TO_ARRAY(CA_OrderLine.Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))})" // db_name: `${dbName}`,
|
|
29522
|
+
return_fields: "MERGE(CA_OrderLine,{childRecurrent:(for doc in CA_OrderLine_CA_OrderLine_E filter doc._to == CA_OrderLine._id RETURN MERGE(DOCUMENT(doc._from),{Requestor:(for req in TO_ARRAY(DOCUMENT(doc._from).Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))})),org_Id:DOCUMENT(CA_OrderLine.org_Id),Requestor:(for req in TO_ARRAY(CA_OrderLine.Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))},{orderCatalog:document(CA_OrderLine.orderCatalog).shortdesc},{orderCatalogId:document(CA_OrderLine.orderCatalog)._id})" // db_name: `${dbName}`,
|
|
29317
29523
|
// entity: "CA_OrderLine",
|
|
29318
29524
|
// filter: `CA_OrderLine.encounter_Id=="${encounter_id}" && CA_OrderLine.Oltype=='LAB' && CA_OrderLine.parentOrderId=="${order_id}" && CA_OrderLine.activestatus==true`,
|
|
29319
29525
|
// filter: `CA_OrderLine.encounter_Id=="${encounter_id}" && CA_OrderLine.Oltype=='LAB' && CA_OrderLine.parentOrderId=='' && CA_OrderLine.activestatus==true`,
|
|
@@ -29465,7 +29671,8 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
29465
29671
|
startDate: (_utcTOLocal5 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal5 !== void 0 ? _utcTOLocal5 : "",
|
|
29466
29672
|
orderCatalog: {
|
|
29467
29673
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
29468
|
-
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
29674
|
+
value: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
29675
|
+
_id: val === null || val === void 0 ? void 0 : val.orderCatalogId
|
|
29469
29676
|
},
|
|
29470
29677
|
qty: JSON.stringify(val === null || val === void 0 ? void 0 : val.orderQty),
|
|
29471
29678
|
requestorDetails: {
|
|
@@ -30033,7 +30240,8 @@ var GET_ORDERCATALOG = createAsyncThunk("LabOrderApiSlice/get_ordercatalog", /*#
|
|
|
30033
30240
|
data.result.map(function (val, i) {
|
|
30034
30241
|
returnData.push({
|
|
30035
30242
|
value: val === null || val === void 0 ? void 0 : val.ordercatalog,
|
|
30036
|
-
label: val === null || val === void 0 ? void 0 : val.longdesc
|
|
30243
|
+
label: val === null || val === void 0 ? void 0 : val.longdesc,
|
|
30244
|
+
_id: val === null || val === void 0 ? void 0 : val._id
|
|
30037
30245
|
});
|
|
30038
30246
|
});
|
|
30039
30247
|
}
|
|
@@ -31986,7 +32194,27 @@ var queries$5 = {
|
|
|
31986
32194
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"PH_OrderLine\",\n \"filter\": \"PH_OrderLine._id=='").concat(id, "'\"\n }");
|
|
31987
32195
|
},
|
|
31988
32196
|
statusMaster: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='MEDRECORDSTATUS'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
31989
|
-
workFlowStatus: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='MEDWFSTATUS'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }")
|
|
32197
|
+
workFlowStatus: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='MEDWFSTATUS'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
32198
|
+
PharmacyFramework_Patientbanner: function PharmacyFramework_Patientbanner(id) {
|
|
32199
|
+
return {
|
|
32200
|
+
db_name: dbName,
|
|
32201
|
+
entity: "Patient",
|
|
32202
|
+
filter: "Patient._id=='".concat(id, "' && Patient.activestatus==true"),
|
|
32203
|
+
return_fields: "merge({_id:Patient._id},{birthDate:Patient.birthDate},{id:Patient.id},{_key:Patient._key},{photo:document(Patient.photo)},{name:(for doc in HumanNameMaster filter doc._id in Patient.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))}))},{age:Patient.age},{bloodGroup:document(Patient.bloodGroup)},{telecom:(for doc in ContactPointMaster filter doc._id in Patient.telecom return merge(doc,{system:(document(doc.system)),use:(document(doc.use)),valueprefix:(document(doc.valueprefix)),rank:(document(doc.rank))}))},{alias:Patient.alias},{gender:document(Patient.gender)},{PatientType:document(Patient.patientTypecode).display},{EmergencyDetails:(FOR RelatedPerson IN RelatedPerson FILTER RelatedPerson.PatientID==[ to_string(Patient.id) ] && RelatedPerson.activestatus==true Return merge(keep(RelatedPerson,'_id','_key'),{name:first(document(RelatedPerson.name)[*].text)},{relationship:document(RelatedPerson.relationship).display},{telecom:document(RelatedPerson.telecom)[*].value}))})"
|
|
32204
|
+
};
|
|
32205
|
+
},
|
|
32206
|
+
PharmacyFramework_Encounterbanner: function PharmacyFramework_Encounterbanner(patientId, facilityId) {
|
|
32207
|
+
return {
|
|
32208
|
+
db_name: dbName,
|
|
32209
|
+
entity: "Organization,Encounter",
|
|
32210
|
+
filter: {
|
|
32211
|
+
Organization: "Organization._id == '".concat(facilityId, "'"),
|
|
32212
|
+
Encounter: "Encounter.patient_id == ".concat(patientId, " && Encounter.Organization_id == Organization.id && Encounter.activestatus == true")
|
|
32213
|
+
},
|
|
32214
|
+
return_fields: "merge({_id:Encounter._id},{id:Encounter.id},{_key:Encounter._key},{encounterdate:Encounter.encounterdate},{encounter_no:Encounter.encounter_no},{type_id:Encounter.type},{type:DOCUMENT(Encounter.type)[0].code},{visit_type:Encounter.visit_type},{location:first(document((Encounter.location)[*].location_id)[*].shortdesc)},{Practitioner_id:(for part in Encounter.participant for practId in Practitioner filter practId.id == part.Practitioner_id return merge(keep(practId,'_id'),{position:document(document(practId.position).coding)[*].display},{telecom:(for tel in ContactPointMaster filter tel._id in practId.telecom return merge(tel,{system:document(tel.system)}))},{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))}))}) )},{PractitionerRole_id:(for part in Encounter.participant for practRole in PractitionerRole filter practRole.id == part.PractitionerRole_id return document(document(practRole.role).coding))},{speciality:document(first(document(Encounter.practitioner_details[*].speciality)).coding)[*].display}, {Location:(for loc in LocationMaster filter first(Encounter.location[*].location_id) == loc._id return merge(loc,{locationType:merge(document(loc.locationType),{coding:document(document(loc.locationType).coding)})},{locationRoletype:document(loc.locationRoletype)}))})",
|
|
32215
|
+
sort: "Encounter.encounterdate desc"
|
|
32216
|
+
};
|
|
32217
|
+
}
|
|
31990
32218
|
}; // [
|
|
31991
32219
|
// {
|
|
31992
32220
|
// "db_name": "primarycare",
|
|
@@ -32109,7 +32337,7 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
32109
32337
|
data = _context2.sent;
|
|
32110
32338
|
arr = [];
|
|
32111
32339
|
data.result.map(function (val) {
|
|
32112
|
-
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;
|
|
32340
|
+
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;
|
|
32113
32341
|
|
|
32114
32342
|
var json = {
|
|
32115
32343
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
@@ -32124,7 +32352,9 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
32124
32352
|
drugTypeId: val === null || val === void 0 ? void 0 : (_val$DrugType4 = val.DrugType) === null || _val$DrugType4 === void 0 ? void 0 : _val$DrugType4._id,
|
|
32125
32353
|
drugroutegenid: (_val$drugroutegenid = val === null || val === void 0 ? void 0 : val.drugroutegenid) !== null && _val$drugroutegenid !== void 0 ? _val$drugroutegenid : "",
|
|
32126
32354
|
LongDesc_: (_val$LongDesc = val === null || val === void 0 ? void 0 : val.LongDesc) !== null && _val$LongDesc !== void 0 ? _val$LongDesc : "",
|
|
32127
|
-
DrugCode_: val === null || val === void 0 ? void 0 : val.DrugCode
|
|
32355
|
+
DrugCode_: val === null || val === void 0 ? void 0 : val.DrugCode,
|
|
32356
|
+
DrugCategory: (_val$DrugCategory = val === null || val === void 0 ? void 0 : val.DrugCategory) !== null && _val$DrugCategory !== void 0 ? _val$DrugCategory : "",
|
|
32357
|
+
DefaultRouteCode: (_val$DefaultRouteCode = val === null || val === void 0 ? void 0 : val.DefaultRouteCode) !== null && _val$DefaultRouteCode !== void 0 ? _val$DefaultRouteCode : "" // formValue
|
|
32128
32358
|
|
|
32129
32359
|
};
|
|
32130
32360
|
arr.push(_objectSpread2(_objectSpread2({}, json), {}, {
|
|
@@ -34155,14 +34385,14 @@ var UPDATE_MEDICATIONS = createAsyncThunk("medicationsSlice/update_medication",
|
|
|
34155
34385
|
list = payload; // const states = getState();
|
|
34156
34386
|
|
|
34157
34387
|
body = [{
|
|
34158
|
-
|
|
34159
|
-
|
|
34160
|
-
|
|
34161
|
-
|
|
34162
|
-
|
|
34163
|
-
|
|
34164
|
-
|
|
34165
|
-
|
|
34388
|
+
db_name: dbName,
|
|
34389
|
+
entity: "PH_OrderLine",
|
|
34390
|
+
filter: "PH_OrderLine._id=='".concat(list.id, "'"),
|
|
34391
|
+
doc: {
|
|
34392
|
+
status: (_list$status = list.status) === null || _list$status === void 0 ? void 0 : _list$status.value,
|
|
34393
|
+
statusreason: list.statusReason,
|
|
34394
|
+
statusperiod: list.statusperiod,
|
|
34395
|
+
statushistory: list.statushistory
|
|
34166
34396
|
}
|
|
34167
34397
|
}]; // if (list.status?.label === "Complete") {
|
|
34168
34398
|
// let flowStatusList = [];
|
|
@@ -34290,15 +34520,15 @@ var UPDATE_ALL_WORKFLOW_STATUS = createAsyncThunk("medicationsSlice/update_workf
|
|
|
34290
34520
|
});
|
|
34291
34521
|
arr = medication.map(function (data) {
|
|
34292
34522
|
return {
|
|
34293
|
-
|
|
34294
|
-
|
|
34295
|
-
|
|
34296
|
-
|
|
34297
|
-
|
|
34298
|
-
|
|
34299
|
-
|
|
34300
|
-
|
|
34301
|
-
|
|
34523
|
+
db_name: dbName,
|
|
34524
|
+
entity: "PH_OrderLine",
|
|
34525
|
+
filter: "PH_OrderLine._id=='".concat(data._id, "'"),
|
|
34526
|
+
doc: {
|
|
34527
|
+
status: data.status,
|
|
34528
|
+
statusreason: data.statusreason,
|
|
34529
|
+
statusperiod: data.statusperiod,
|
|
34530
|
+
statushistory: data.statushistory,
|
|
34531
|
+
workFlowStatus: data.workFlowStatus
|
|
34302
34532
|
}
|
|
34303
34533
|
};
|
|
34304
34534
|
});
|
|
@@ -34336,6 +34566,90 @@ var UPDATE_ALL_WORKFLOW_STATUS = createAsyncThunk("medicationsSlice/update_workf
|
|
|
34336
34566
|
}
|
|
34337
34567
|
}, _callee6, null, [[2, 20]]);
|
|
34338
34568
|
})));
|
|
34569
|
+
var PATIENT_BANNER = createAsyncThunk("medicationsSlice/patient_banner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
34570
|
+
var payload,
|
|
34571
|
+
_ref14,
|
|
34572
|
+
rejectWithValue,
|
|
34573
|
+
id,
|
|
34574
|
+
data,
|
|
34575
|
+
_args7 = arguments;
|
|
34576
|
+
|
|
34577
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
34578
|
+
while (1) {
|
|
34579
|
+
switch (_context7.prev = _context7.next) {
|
|
34580
|
+
case 0:
|
|
34581
|
+
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
34582
|
+
_ref14 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
|
|
34583
|
+
_context7.prev = 2;
|
|
34584
|
+
id = payload.id;
|
|
34585
|
+
_context7.next = 6;
|
|
34586
|
+
return fetchData$3({
|
|
34587
|
+
body: JSON.stringify(queries$5.PharmacyFramework_Patientbanner(id))
|
|
34588
|
+
}, __readDocumentUrl__);
|
|
34589
|
+
|
|
34590
|
+
case 6:
|
|
34591
|
+
data = _context7.sent;
|
|
34592
|
+
return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
34593
|
+
data: data.result
|
|
34594
|
+
}));
|
|
34595
|
+
|
|
34596
|
+
case 10:
|
|
34597
|
+
_context7.prev = 10;
|
|
34598
|
+
_context7.t0 = _context7["catch"](2);
|
|
34599
|
+
return _context7.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
34600
|
+
message: _context7.t0.message
|
|
34601
|
+
})));
|
|
34602
|
+
|
|
34603
|
+
case 13:
|
|
34604
|
+
case "end":
|
|
34605
|
+
return _context7.stop();
|
|
34606
|
+
}
|
|
34607
|
+
}
|
|
34608
|
+
}, _callee7, null, [[2, 10]]);
|
|
34609
|
+
})));
|
|
34610
|
+
var ENCOUNTER_BANNER = createAsyncThunk("medicationsSlice/Encounterbanner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
34611
|
+
var payload,
|
|
34612
|
+
_ref16,
|
|
34613
|
+
rejectWithValue,
|
|
34614
|
+
getState,
|
|
34615
|
+
patientId,
|
|
34616
|
+
facilityId,
|
|
34617
|
+
data,
|
|
34618
|
+
_args8 = arguments;
|
|
34619
|
+
|
|
34620
|
+
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
34621
|
+
while (1) {
|
|
34622
|
+
switch (_context8.prev = _context8.next) {
|
|
34623
|
+
case 0:
|
|
34624
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
34625
|
+
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue, getState = _ref16.getState;
|
|
34626
|
+
_context8.prev = 2;
|
|
34627
|
+
patientId = payload.patientId, facilityId = payload.facilityId;
|
|
34628
|
+
_context8.next = 6;
|
|
34629
|
+
return fetchData$3({
|
|
34630
|
+
body: JSON.stringify(queries$5.PharmacyFramework_Encounterbanner(patientId, facilityId))
|
|
34631
|
+
}, __readDocumentUrl__);
|
|
34632
|
+
|
|
34633
|
+
case 6:
|
|
34634
|
+
data = _context8.sent;
|
|
34635
|
+
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
34636
|
+
data: data.result
|
|
34637
|
+
}));
|
|
34638
|
+
|
|
34639
|
+
case 10:
|
|
34640
|
+
_context8.prev = 10;
|
|
34641
|
+
_context8.t0 = _context8["catch"](2);
|
|
34642
|
+
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
34643
|
+
message: _context8.t0.message
|
|
34644
|
+
})));
|
|
34645
|
+
|
|
34646
|
+
case 13:
|
|
34647
|
+
case "end":
|
|
34648
|
+
return _context8.stop();
|
|
34649
|
+
}
|
|
34650
|
+
}
|
|
34651
|
+
}, _callee8, null, [[2, 10]]);
|
|
34652
|
+
})));
|
|
34339
34653
|
var medicationsSlice = createSlice({
|
|
34340
34654
|
name: "medicationsSlice",
|
|
34341
34655
|
initialState: {
|
|
@@ -34344,68 +34658,90 @@ var medicationsSlice = createSlice({
|
|
|
34344
34658
|
update_workflow_status: _objectSpread2({}, defaultState.Info),
|
|
34345
34659
|
medication_list: _objectSpread2({}, defaultState.List),
|
|
34346
34660
|
alert_codes: _objectSpread2({}, defaultState.list),
|
|
34347
|
-
drug_codes: _objectSpread2({}, defaultState.list)
|
|
34661
|
+
drug_codes: _objectSpread2({}, defaultState.list),
|
|
34662
|
+
patientBanner: _objectSpread2({}, defaultState.List),
|
|
34663
|
+
Encounterbanner: _objectSpread2({}, defaultState.List)
|
|
34348
34664
|
},
|
|
34349
|
-
extraReducers: (_extraReducers$g = {}, _defineProperty(_extraReducers$g,
|
|
34665
|
+
extraReducers: (_extraReducers$g = {}, _defineProperty(_extraReducers$g, PATIENT_BANNER.fulfilled, function (state, action) {
|
|
34350
34666
|
var _action$payload;
|
|
34351
34667
|
|
|
34352
|
-
state.
|
|
34668
|
+
state.patientBanner = (_action$payload = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload !== void 0 ? _action$payload : {};
|
|
34669
|
+
}), _defineProperty(_extraReducers$g, PATIENT_BANNER.pending, function (state, action) {
|
|
34670
|
+
state.patientBanner.loading = true;
|
|
34671
|
+
}), _defineProperty(_extraReducers$g, PATIENT_BANNER.rejected, function (state, action) {
|
|
34672
|
+
var _action$payload2;
|
|
34673
|
+
|
|
34674
|
+
state.patientBanner = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : {};
|
|
34675
|
+
}), _defineProperty(_extraReducers$g, ALERT_CODES.fulfilled, function (state, action) {
|
|
34676
|
+
var _action$payload3;
|
|
34677
|
+
|
|
34678
|
+
state.alert_codes.loading = false, state.alert_codes.error = false, state.alert_codes = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : {};
|
|
34353
34679
|
}), _defineProperty(_extraReducers$g, ALERT_CODES.pending, function (state, action) {
|
|
34354
34680
|
state.alert_codes.error = false, state.alert_codes.loading = true;
|
|
34355
34681
|
}), _defineProperty(_extraReducers$g, ALERT_CODES.rejected, function (state, action) {
|
|
34356
|
-
var _action$
|
|
34682
|
+
var _action$payload4;
|
|
34357
34683
|
|
|
34358
|
-
state.alert_codes.loading = false, state.alert_codes.error = true, state.alert_codes = (_action$
|
|
34684
|
+
state.alert_codes.loading = false, state.alert_codes.error = true, state.alert_codes = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : {};
|
|
34359
34685
|
}), _defineProperty(_extraReducers$g, DRUG_CODES.fulfilled, function (state, action) {
|
|
34360
|
-
var _action$
|
|
34686
|
+
var _action$payload5;
|
|
34361
34687
|
|
|
34362
|
-
state.drug_codes.loading = false, state.drug_codes.error = false, state.drug_codes = (_action$
|
|
34688
|
+
state.drug_codes.loading = false, state.drug_codes.error = false, state.drug_codes = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : {};
|
|
34363
34689
|
}), _defineProperty(_extraReducers$g, DRUG_CODES.pending, function (state, action) {
|
|
34364
34690
|
state.drug_codes.error = false, state.drug_codes.loading = true;
|
|
34365
34691
|
}), _defineProperty(_extraReducers$g, DRUG_CODES.rejected, function (state, action) {
|
|
34366
|
-
var _action$
|
|
34692
|
+
var _action$payload6;
|
|
34367
34693
|
|
|
34368
|
-
state.drug_codes.loading = false, state.drug_codes.error = true, state.drug_codes = (_action$
|
|
34694
|
+
state.drug_codes.loading = false, state.drug_codes.error = true, state.drug_codes = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : {};
|
|
34369
34695
|
}), _defineProperty(_extraReducers$g, SAVE_MEDICATIONS.fulfilled, function (state, action) {
|
|
34370
|
-
var _action$
|
|
34696
|
+
var _action$payload7;
|
|
34371
34697
|
|
|
34372
|
-
state.save_medication.loading = false, state.save_medication.error = false, state.save_medication = (_action$
|
|
34698
|
+
state.save_medication.loading = false, state.save_medication.error = false, state.save_medication = (_action$payload7 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload7 !== void 0 ? _action$payload7 : {};
|
|
34373
34699
|
}), _defineProperty(_extraReducers$g, SAVE_MEDICATIONS.pending, function (state, action) {
|
|
34374
34700
|
state.save_medication.error = false, state.save_medication.loading = true;
|
|
34375
34701
|
}), _defineProperty(_extraReducers$g, SAVE_MEDICATIONS.rejected, function (state, action) {
|
|
34376
|
-
var _action$
|
|
34702
|
+
var _action$payload8;
|
|
34377
34703
|
|
|
34378
|
-
state.save_medication.loading = false, state.save_medication.error = true, state.save_medication = (_action$
|
|
34704
|
+
state.save_medication.loading = false, state.save_medication.error = true, state.save_medication = (_action$payload8 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload8 !== void 0 ? _action$payload8 : {};
|
|
34379
34705
|
}), _defineProperty(_extraReducers$g, UPDATE_MEDICATIONS.fulfilled, function (state, action) {
|
|
34380
|
-
var _action$
|
|
34706
|
+
var _action$payload9;
|
|
34381
34707
|
|
|
34382
|
-
state.update_medication.loading = false, state.update_medication.error = false, state.update_medication = (_action$
|
|
34708
|
+
state.update_medication.loading = false, state.update_medication.error = false, state.update_medication = (_action$payload9 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload9 !== void 0 ? _action$payload9 : {};
|
|
34383
34709
|
}), _defineProperty(_extraReducers$g, UPDATE_MEDICATIONS.pending, function (state, action) {
|
|
34384
34710
|
state.update_medication.error = false, state.update_medication.loading = true;
|
|
34385
34711
|
}), _defineProperty(_extraReducers$g, UPDATE_MEDICATIONS.rejected, function (state, action) {
|
|
34386
|
-
var _action$
|
|
34712
|
+
var _action$payload10;
|
|
34387
34713
|
|
|
34388
|
-
state.update_medication.loading = false, state.update_medication.error = true, state.update_medication = (_action$
|
|
34714
|
+
state.update_medication.loading = false, state.update_medication.error = true, state.update_medication = (_action$payload10 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload10 !== void 0 ? _action$payload10 : {};
|
|
34389
34715
|
}), _defineProperty(_extraReducers$g, GET_MEDICATIONS.fulfilled, function (state, action) {
|
|
34390
|
-
var _action$
|
|
34716
|
+
var _action$payload11;
|
|
34391
34717
|
|
|
34392
|
-
state.medication_list.loading = false, state.medication_list.error = false, state.medication_list = (_action$
|
|
34718
|
+
state.medication_list.loading = false, state.medication_list.error = false, state.medication_list = (_action$payload11 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload11 !== void 0 ? _action$payload11 : {};
|
|
34393
34719
|
}), _defineProperty(_extraReducers$g, GET_MEDICATIONS.pending, function (state, action) {
|
|
34394
34720
|
state.medication_list.error = false, state.medication_list.loading = true;
|
|
34395
34721
|
}), _defineProperty(_extraReducers$g, GET_MEDICATIONS.rejected, function (state, action) {
|
|
34396
|
-
var _action$
|
|
34722
|
+
var _action$payload12;
|
|
34397
34723
|
|
|
34398
|
-
state.medication_list.loading = false, state.medication_list.error = true, state.medication_list = (_action$
|
|
34724
|
+
state.medication_list.loading = false, state.medication_list.error = true, state.medication_list = (_action$payload12 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
|
|
34399
34725
|
}), _defineProperty(_extraReducers$g, UPDATE_ALL_WORKFLOW_STATUS.fulfilled, function (state, action) {
|
|
34400
|
-
var _action$
|
|
34726
|
+
var _action$payload13;
|
|
34401
34727
|
|
|
34402
|
-
state.update_workflow_status.loading = false, state.update_workflow_status.error = false, state.update_workflow_status = (_action$
|
|
34728
|
+
state.update_workflow_status.loading = false, state.update_workflow_status.error = false, state.update_workflow_status = (_action$payload13 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload13 !== void 0 ? _action$payload13 : {};
|
|
34403
34729
|
}), _defineProperty(_extraReducers$g, UPDATE_ALL_WORKFLOW_STATUS.pending, function (state, action) {
|
|
34404
34730
|
state.update_workflow_status.error = false, state.update_workflow_status.loading = true;
|
|
34405
34731
|
}), _defineProperty(_extraReducers$g, UPDATE_ALL_WORKFLOW_STATUS.rejected, function (state, action) {
|
|
34406
|
-
var _action$
|
|
34732
|
+
var _action$payload14;
|
|
34407
34733
|
|
|
34408
|
-
state.update_workflow_status.loading = false, state.update_workflow_status.error = true, state.update_workflow_status = (_action$
|
|
34734
|
+
state.update_workflow_status.loading = false, state.update_workflow_status.error = true, state.update_workflow_status = (_action$payload14 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload14 !== void 0 ? _action$payload14 : {};
|
|
34735
|
+
}), _defineProperty(_extraReducers$g, ENCOUNTER_BANNER.fulfilled, function (state, action) {
|
|
34736
|
+
var _action$payload15;
|
|
34737
|
+
|
|
34738
|
+
state.Encounterbanner = (_action$payload15 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload15 !== void 0 ? _action$payload15 : {};
|
|
34739
|
+
}), _defineProperty(_extraReducers$g, ENCOUNTER_BANNER.pending, function (state, action) {
|
|
34740
|
+
state.Encounterbanner.loading = true;
|
|
34741
|
+
}), _defineProperty(_extraReducers$g, ENCOUNTER_BANNER.rejected, function (state, action) {
|
|
34742
|
+
var _action$payload16;
|
|
34743
|
+
|
|
34744
|
+
state.Encounterbanner = (_action$payload16 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload16 !== void 0 ? _action$payload16 : {};
|
|
34409
34745
|
}), _extraReducers$g)
|
|
34410
34746
|
});
|
|
34411
34747
|
var medicationsActions = {
|
|
@@ -34414,7 +34750,9 @@ var medicationsActions = {
|
|
|
34414
34750
|
UPDATE_MEDICATIONS: UPDATE_MEDICATIONS,
|
|
34415
34751
|
UPDATE_ALL_WORKFLOW_STATUS: UPDATE_ALL_WORKFLOW_STATUS,
|
|
34416
34752
|
ALERT_CODES: ALERT_CODES,
|
|
34417
|
-
DRUG_CODES: DRUG_CODES
|
|
34753
|
+
DRUG_CODES: DRUG_CODES,
|
|
34754
|
+
PATIENT_BANNER: PATIENT_BANNER,
|
|
34755
|
+
ENCOUNTER_BANNER: ENCOUNTER_BANNER
|
|
34418
34756
|
};
|
|
34419
34757
|
var medicationsSlice$1 = medicationsSlice.reducer;
|
|
34420
34758
|
|
|
@@ -34449,7 +34787,7 @@ var queries$4 = {
|
|
|
34449
34787
|
db_name: dbName,
|
|
34450
34788
|
entity: "CA_OrderLine",
|
|
34451
34789
|
filter: "CA_OrderLine.encounter_Id==\"".concat(encounter_id, "\" && CA_OrderLine.Oltype=='TREAT' && CA_OrderLine.parentOrderId=='' && CA_OrderLine.activestatus==true"),
|
|
34452
|
-
return_fields: "MERGE(CA_OrderLine,{childRecurrent:(for doc in CA_OrderLine_CA_OrderLine_E filter doc._to == CA_OrderLine._id RETURN MERGE(DOCUMENT(doc._from),{Requestor:(for req in TO_ARRAY(DOCUMENT(doc._from).Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))})),org_Id:DOCUMENT(CA_OrderLine.org_Id),Requestor:(for req in TO_ARRAY(CA_OrderLine.Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))})"
|
|
34790
|
+
return_fields: "MERGE(CA_OrderLine,{childRecurrent:(for doc in CA_OrderLine_CA_OrderLine_E filter doc._to == CA_OrderLine._id RETURN MERGE(DOCUMENT(doc._from),{Requestor:(for req in TO_ARRAY(DOCUMENT(doc._from).Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))})),org_Id:DOCUMENT(CA_OrderLine.org_Id),Requestor:(for req in TO_ARRAY(CA_OrderLine.Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))},{orderCatalog:document(CA_OrderLine.orderCatalog).shortdesc},{orderCatalogId:document(CA_OrderLine.orderCatalog)._id})"
|
|
34453
34791
|
};
|
|
34454
34792
|
},
|
|
34455
34793
|
treatment_delete: function treatment_delete(id) {
|
|
@@ -34813,7 +35151,8 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
34813
35151
|
startDate: (_utcTOLocal5 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal5 !== void 0 ? _utcTOLocal5 : "",
|
|
34814
35152
|
orderCatalog: {
|
|
34815
35153
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
34816
|
-
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
35154
|
+
value: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
35155
|
+
_id: val === null || val === void 0 ? void 0 : val.orderCatalogId
|
|
34817
35156
|
},
|
|
34818
35157
|
qty: JSON.stringify(val === null || val === void 0 ? void 0 : val.orderQty),
|
|
34819
35158
|
requestorDetails: {
|
|
@@ -35285,7 +35624,8 @@ var TREATMENT_PROCEDURE_GETCATEGORY = createAsyncThunk("TreatmentSlice/getorderc
|
|
|
35285
35624
|
|
|
35286
35625
|
arr.push({
|
|
35287
35626
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
35288
|
-
label: (_val$shortdesc = val === null || val === void 0 ? void 0 : val.shortdesc) !== null && _val$shortdesc !== void 0 ? _val$shortdesc : ""
|
|
35627
|
+
label: (_val$shortdesc = val === null || val === void 0 ? void 0 : val.shortdesc) !== null && _val$shortdesc !== void 0 ? _val$shortdesc : "",
|
|
35628
|
+
_id: val === null || val === void 0 ? void 0 : val._id
|
|
35289
35629
|
});
|
|
35290
35630
|
});
|
|
35291
35631
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -36379,7 +36719,7 @@ var queries$3 = (_queries = {
|
|
|
36379
36719
|
db_name: dbName,
|
|
36380
36720
|
entity: "CA_OrderLine",
|
|
36381
36721
|
filter: "CA_OrderLine.encounter_Id==\"".concat(encounter_id, "\" && CA_OrderLine.Oltype=='RAD' && CA_OrderLine.parentOrderId=='' && CA_OrderLine.activestatus==true"),
|
|
36382
|
-
return_fields: "MERGE(CA_OrderLine,{childRecurrent:(for doc in CA_OrderLine_CA_OrderLine_E filter doc._to == CA_OrderLine._id RETURN MERGE(DOCUMENT(doc._from),{Requestor:(for req in TO_ARRAY(DOCUMENT(doc._from).Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))})),org_Id:DOCUMENT(CA_OrderLine.org_Id),Requestor:(for req in TO_ARRAY(CA_OrderLine.Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))})"
|
|
36722
|
+
return_fields: "MERGE(CA_OrderLine,{childRecurrent:(for doc in CA_OrderLine_CA_OrderLine_E filter doc._to == CA_OrderLine._id RETURN MERGE(DOCUMENT(doc._from),{Requestor:(for req in TO_ARRAY(DOCUMENT(doc._from).Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))})),org_Id:DOCUMENT(CA_OrderLine.org_Id),Requestor:(for req in TO_ARRAY(CA_OrderLine.Requestor) return merge(req,{organization:(document(req.organization)),practId:(for prac in Practitioner filter prac._id==req.practId return {practitioner_id: prac.practitioner_id, id:prac._id,name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)[*].display),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)[*].display),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding)[*].display)}))}),practRole:document(req.practRole)}))},{orderCatalog:document(CA_OrderLine.orderCatalog).shortdesc},{orderCatalogId:document(CA_OrderLine.orderCatalog)._id})"
|
|
36383
36723
|
};
|
|
36384
36724
|
},
|
|
36385
36725
|
treatment_delete: function treatment_delete(id) {
|
|
@@ -36745,7 +37085,8 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
36745
37085
|
startDate: (_utcTOLocal5 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal5 !== void 0 ? _utcTOLocal5 : "",
|
|
36746
37086
|
orderCatalog: {
|
|
36747
37087
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
36748
|
-
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
37088
|
+
value: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
37089
|
+
_id: val === null || val === void 0 ? void 0 : val.orderCatalogId
|
|
36749
37090
|
},
|
|
36750
37091
|
qty: JSON.stringify(val === null || val === void 0 ? void 0 : val.orderQty),
|
|
36751
37092
|
requestorDetails: {
|
|
@@ -37268,7 +37609,8 @@ var RAD_GETCATEGORY = createAsyncThunk("RadiologySlice/getordercategory", /*#__P
|
|
|
37268
37609
|
|
|
37269
37610
|
arr.push({
|
|
37270
37611
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
37271
|
-
label: (_val$shortdesc = val === null || val === void 0 ? void 0 : val.shortdesc) !== null && _val$shortdesc !== void 0 ? _val$shortdesc : ""
|
|
37612
|
+
label: (_val$shortdesc = val === null || val === void 0 ? void 0 : val.shortdesc) !== null && _val$shortdesc !== void 0 ? _val$shortdesc : "",
|
|
37613
|
+
_id: val === null || val === void 0 ? void 0 : val._id
|
|
37272
37614
|
});
|
|
37273
37615
|
});
|
|
37274
37616
|
return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|