primarycare-binder 1.1.118 → 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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +335 -70
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -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
 
@@ -20441,7 +20564,8 @@ var dashboardQuery = {
20441
20564
  }],
20442
20565
  specialty: data === null || data === void 0 ? void 0 : data.specialty
20443
20566
  }],
20444
- 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
20445
20569
  }
20446
20570
  }];
20447
20571
  },
@@ -20479,7 +20603,7 @@ var dashboardQuery = {
20479
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)}))})"
20480
20604
  };
20481
20605
  },
20482
- appointmentResourceCodeUpdate: function appointmentResourceCodeUpdate(appID, resourceCode) {
20606
+ appointmentResourceCodeUpdate: function appointmentResourceCodeUpdate(appID, resourceCode, practId) {
20483
20607
  return [{
20484
20608
  "db_name": dbName,
20485
20609
  "entity": "Appointment",
@@ -20489,7 +20613,8 @@ var dashboardQuery = {
20489
20613
  },
20490
20614
  "metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
20491
20615
  "doc": {
20492
- "resourcecode": "".concat(resourceCode)
20616
+ "resourcecode": "".concat(resourceCode),
20617
+ "practitionerID": [Number(practId)]
20493
20618
  }
20494
20619
  }];
20495
20620
  }
@@ -22301,6 +22426,7 @@ var UPSERT_APPOINTMENT = createAsyncThunk("dashboardApiSlice/appointmentUpsert",
22301
22426
  rejectWithValue,
22302
22427
  appID,
22303
22428
  resourceCode,
22429
+ practId,
22304
22430
  data__,
22305
22431
  _args28 = arguments;
22306
22432
 
@@ -22311,11 +22437,11 @@ var UPSERT_APPOINTMENT = createAsyncThunk("dashboardApiSlice/appointmentUpsert",
22311
22437
  payload = _args28.length > 0 && _args28[0] !== undefined ? _args28[0] : {};
22312
22438
  _ref56 = _args28.length > 1 ? _args28[1] : undefined, rejectWithValue = _ref56.rejectWithValue;
22313
22439
  _context28.prev = 2;
22314
- appID = payload.appID, resourceCode = payload.resourceCode;
22440
+ appID = payload.appID, resourceCode = payload.resourceCode, practId = payload.practId;
22315
22441
  debugger;
22316
22442
  _context28.next = 7;
22317
22443
  return fetchData$3({
22318
- body: JSON.stringify(dashboardQuery.appointmentResourceCodeUpdate(appID, resourceCode))
22444
+ body: JSON.stringify(dashboardQuery.appointmentResourceCodeUpdate(appID, resourceCode, practId))
22319
22445
  }, __uspsertUrl__);
22320
22446
 
22321
22447
  case 7:
@@ -23871,7 +23997,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
23871
23997
  data = _context12.sent;
23872
23998
  arr = [];
23873
23999
  data.result.map(function (val) {
23874
- 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$Patient5$$gender, _val$Patient6, _val$Patient6$, _val$Patient$0$pident, _val$Patient7, _val$Patient7$, _val$Patient7$$pident, _val$Patient7$$pident2, _lang, _val$Patient8, _val$Patient8$, _val$Patient8$$person, _val$Patient8$$person2, _val$Patient8$$person3, _val$Patient8$$person4, _val$Patient9, _val$Patient9$, _val$Patient9$$photo, _val$Patient9$$photo$, _val$practitioner_det6, _val$practitioner_det7, _val$practitioner_det8;
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;
23875
24001
 
23876
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) {
23877
24003
  return val.display;
@@ -23887,12 +24013,13 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
23887
24013
  // name: val?.Patient?.[0]?.name?.[0]?.text ?? "",
23888
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]),
23889
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,
23890
- mrn: 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$.alias,
23891
- gender: 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$$gender = _val$Patient5$.gender) === null || _val$Patient5$$gender === void 0 ? void 0 : _val$Patient5$$gender.display,
23892
- dob: 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$.birthDate,
23893
- pidentifier: (_val$Patient$0$pident = 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$$pident = _val$Patient7$.pidentifier) === null || _val$Patient7$$pident === void 0 ? void 0 : (_val$Patient7$$pident2 = _val$Patient7$$pident[0]) === null || _val$Patient7$$pident2 === void 0 ? void 0 : _val$Patient7$$pident2.value) !== null && _val$Patient$0$pident !== void 0 ? _val$Patient$0$pident : "",
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 : "",
23894
24021
  lang: (_lang = lang) === null || _lang === void 0 ? void 0 : _lang.join(", "),
23895
- img: getImgUrl(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$$person = _val$Patient8$.personInfo) === null || _val$Patient8$$person === void 0 ? void 0 : (_val$Patient8$$person2 = _val$Patient8$$person[0]) === null || _val$Patient8$$person2 === void 0 ? void 0 : (_val$Patient8$$person3 = _val$Patient8$$person2.photo) === null || _val$Patient8$$person3 === void 0 ? void 0 : (_val$Patient8$$person4 = _val$Patient8$$person3[0]) === null || _val$Patient8$$person4 === void 0 ? void 0 : _val$Patient8$$person4.fileid) || 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$$photo = _val$Patient9$.photo) === null || _val$Patient9$$photo === void 0 ? void 0 : (_val$Patient9$$photo$ = _val$Patient9$$photo[0]) === null || _val$Patient9$$photo$ === void 0 ? void 0 : _val$Patient9$$photo$.fileid),
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),
23896
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 : ""
23897
24024
  });
23898
24025
  });
@@ -25520,7 +25647,7 @@ var radOrderActions = _objectSpread2({}, actionInfo$3);
25520
25647
  var radOrderSlice$1 = radOrderSlice.reducer;
25521
25648
 
25522
25649
  var generateJSON$6 = function generateJSON(payload, orgId) {
25523
- 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$routeCode$va, _payload$routeCode, _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;
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;
25524
25651
 
25525
25652
  var filter = {};
25526
25653
 
@@ -25559,7 +25686,8 @@ var generateJSON$6 = function generateJSON(payload, orgId) {
25559
25686
  "workFlowStatus": (_payload$workFlowStat = payload.workFlowStatus) !== null && _payload$workFlowStat !== void 0 ? _payload$workFlowStat : "",
25560
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 : "",
25561
25688
  "formCode": (_payload$formCode = payload.formCode) !== null && _payload$formCode !== void 0 ? _payload$formCode : "",
25562
- "routeCode": (_payload$routeCode$va = (_payload$routeCode = payload.routeCode) === null || _payload$routeCode === void 0 ? void 0 : _payload$routeCode.value) !== null && _payload$routeCode$va !== void 0 ? _payload$routeCode$va : "",
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 : "",
25563
25691
  "dosageTypeIndicator": (_payload$dosageTypeIn = payload.dosageTypeIndicator) !== null && _payload$dosageTypeIn !== void 0 ? _payload$dosageTypeIn : "",
25564
25692
  "dosageValue": payload.doseMeasurementValue ? parseInt(payload.doseMeasurementValue) : 0,
25565
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 : "",
@@ -29161,6 +29289,7 @@ var generateJSON$3 = function generateJSON(dataList) {
29161
29289
  var payload = dataList.map(function (data) {
29162
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;
29163
29291
 
29292
+ console.log("myJSonLab", data);
29164
29293
  var extraJson = {};
29165
29294
  var filter = {};
29166
29295
 
@@ -29390,7 +29519,7 @@ var queries$6 = {
29390
29519
  db_name: dbName,
29391
29520
  entity: "CA_OrderLine",
29392
29521
  filter: "CA_OrderLine.encounter_Id==\"".concat(encounter_id, "\" && CA_OrderLine.Oltype=='LAB' && CA_OrderLine.parentOrderId=='' && CA_OrderLine.activestatus==true"),
29393
- 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}`,
29394
29523
  // entity: "CA_OrderLine",
29395
29524
  // filter: `CA_OrderLine.encounter_Id=="${encounter_id}" && CA_OrderLine.Oltype=='LAB' && CA_OrderLine.parentOrderId=="${order_id}" && CA_OrderLine.activestatus==true`,
29396
29525
  // filter: `CA_OrderLine.encounter_Id=="${encounter_id}" && CA_OrderLine.Oltype=='LAB' && CA_OrderLine.parentOrderId=='' && CA_OrderLine.activestatus==true`,
@@ -29542,7 +29671,8 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
29542
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 : "",
29543
29672
  orderCatalog: {
29544
29673
  label: val === null || val === void 0 ? void 0 : val.orderCatalog,
29545
- 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
29546
29676
  },
29547
29677
  qty: JSON.stringify(val === null || val === void 0 ? void 0 : val.orderQty),
29548
29678
  requestorDetails: {
@@ -30110,7 +30240,8 @@ var GET_ORDERCATALOG = createAsyncThunk("LabOrderApiSlice/get_ordercatalog", /*#
30110
30240
  data.result.map(function (val, i) {
30111
30241
  returnData.push({
30112
30242
  value: val === null || val === void 0 ? void 0 : val.ordercatalog,
30113
- 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
30114
30245
  });
30115
30246
  });
30116
30247
  }
@@ -32063,7 +32194,27 @@ var queries$5 = {
32063
32194
  return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"PH_OrderLine\",\n \"filter\": \"PH_OrderLine._id=='").concat(id, "'\"\n }");
32064
32195
  },
32065
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 }"),
32066
- 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
+ }
32067
32218
  }; // [
32068
32219
  // {
32069
32220
  // "db_name": "primarycare",
@@ -32186,7 +32337,7 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
32186
32337
  data = _context2.sent;
32187
32338
  arr = [];
32188
32339
  data.result.map(function (val) {
32189
- 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;
32190
32341
 
32191
32342
  var json = {
32192
32343
  value: val === null || val === void 0 ? void 0 : val._id,
@@ -32201,7 +32352,9 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
32201
32352
  drugTypeId: val === null || val === void 0 ? void 0 : (_val$DrugType4 = val.DrugType) === null || _val$DrugType4 === void 0 ? void 0 : _val$DrugType4._id,
32202
32353
  drugroutegenid: (_val$drugroutegenid = val === null || val === void 0 ? void 0 : val.drugroutegenid) !== null && _val$drugroutegenid !== void 0 ? _val$drugroutegenid : "",
32203
32354
  LongDesc_: (_val$LongDesc = val === null || val === void 0 ? void 0 : val.LongDesc) !== null && _val$LongDesc !== void 0 ? _val$LongDesc : "",
32204
- DrugCode_: val === null || val === void 0 ? void 0 : val.DrugCode // formValue
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
32205
32358
 
32206
32359
  };
32207
32360
  arr.push(_objectSpread2(_objectSpread2({}, json), {}, {
@@ -34232,14 +34385,14 @@ var UPDATE_MEDICATIONS = createAsyncThunk("medicationsSlice/update_medication",
34232
34385
  list = payload; // const states = getState();
34233
34386
 
34234
34387
  body = [{
34235
- "db_name": dbName,
34236
- "entity": "PH_OrderLine",
34237
- "filter": "PH_OrderLine._id=='".concat(list.id, "'"),
34238
- "doc": {
34239
- "status": (_list$status = list.status) === null || _list$status === void 0 ? void 0 : _list$status.value,
34240
- "statusreason": list.statusReason,
34241
- "statusperiod": list.statusperiod,
34242
- "statushistory": list.statushistory
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
34243
34396
  }
34244
34397
  }]; // if (list.status?.label === "Complete") {
34245
34398
  // let flowStatusList = [];
@@ -34367,15 +34520,15 @@ var UPDATE_ALL_WORKFLOW_STATUS = createAsyncThunk("medicationsSlice/update_workf
34367
34520
  });
34368
34521
  arr = medication.map(function (data) {
34369
34522
  return {
34370
- "db_name": dbName,
34371
- "entity": "PH_OrderLine",
34372
- "filter": "PH_OrderLine._id=='".concat(data._id, "'"),
34373
- "doc": {
34374
- "status": data.status,
34375
- "statusreason": data.statusreason,
34376
- "statusperiod": data.statusperiod,
34377
- "statushistory": data.statushistory,
34378
- "workFlowStatus": data.workFlowStatus
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
34379
34532
  }
34380
34533
  };
34381
34534
  });
@@ -34413,6 +34566,90 @@ var UPDATE_ALL_WORKFLOW_STATUS = createAsyncThunk("medicationsSlice/update_workf
34413
34566
  }
34414
34567
  }, _callee6, null, [[2, 20]]);
34415
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
+ })));
34416
34653
  var medicationsSlice = createSlice({
34417
34654
  name: "medicationsSlice",
34418
34655
  initialState: {
@@ -34421,68 +34658,90 @@ var medicationsSlice = createSlice({
34421
34658
  update_workflow_status: _objectSpread2({}, defaultState.Info),
34422
34659
  medication_list: _objectSpread2({}, defaultState.List),
34423
34660
  alert_codes: _objectSpread2({}, defaultState.list),
34424
- drug_codes: _objectSpread2({}, defaultState.list)
34661
+ drug_codes: _objectSpread2({}, defaultState.list),
34662
+ patientBanner: _objectSpread2({}, defaultState.List),
34663
+ Encounterbanner: _objectSpread2({}, defaultState.List)
34425
34664
  },
34426
- extraReducers: (_extraReducers$g = {}, _defineProperty(_extraReducers$g, ALERT_CODES.fulfilled, function (state, action) {
34665
+ extraReducers: (_extraReducers$g = {}, _defineProperty(_extraReducers$g, PATIENT_BANNER.fulfilled, function (state, action) {
34427
34666
  var _action$payload;
34428
34667
 
34429
- state.alert_codes.loading = false, state.alert_codes.error = false, state.alert_codes = (_action$payload = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload !== void 0 ? _action$payload : {};
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 : {};
34430
34679
  }), _defineProperty(_extraReducers$g, ALERT_CODES.pending, function (state, action) {
34431
34680
  state.alert_codes.error = false, state.alert_codes.loading = true;
34432
34681
  }), _defineProperty(_extraReducers$g, ALERT_CODES.rejected, function (state, action) {
34433
- var _action$payload2;
34682
+ var _action$payload4;
34434
34683
 
34435
- state.alert_codes.loading = false, state.alert_codes.error = true, state.alert_codes = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : {};
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 : {};
34436
34685
  }), _defineProperty(_extraReducers$g, DRUG_CODES.fulfilled, function (state, action) {
34437
- var _action$payload3;
34686
+ var _action$payload5;
34438
34687
 
34439
- state.drug_codes.loading = false, state.drug_codes.error = false, state.drug_codes = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : {};
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 : {};
34440
34689
  }), _defineProperty(_extraReducers$g, DRUG_CODES.pending, function (state, action) {
34441
34690
  state.drug_codes.error = false, state.drug_codes.loading = true;
34442
34691
  }), _defineProperty(_extraReducers$g, DRUG_CODES.rejected, function (state, action) {
34443
- var _action$payload4;
34692
+ var _action$payload6;
34444
34693
 
34445
- state.drug_codes.loading = false, state.drug_codes.error = true, state.drug_codes = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : {};
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 : {};
34446
34695
  }), _defineProperty(_extraReducers$g, SAVE_MEDICATIONS.fulfilled, function (state, action) {
34447
- var _action$payload5;
34696
+ var _action$payload7;
34448
34697
 
34449
- state.save_medication.loading = false, state.save_medication.error = false, state.save_medication = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : {};
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 : {};
34450
34699
  }), _defineProperty(_extraReducers$g, SAVE_MEDICATIONS.pending, function (state, action) {
34451
34700
  state.save_medication.error = false, state.save_medication.loading = true;
34452
34701
  }), _defineProperty(_extraReducers$g, SAVE_MEDICATIONS.rejected, function (state, action) {
34453
- var _action$payload6;
34702
+ var _action$payload8;
34454
34703
 
34455
- state.save_medication.loading = false, state.save_medication.error = true, state.save_medication = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : {};
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 : {};
34456
34705
  }), _defineProperty(_extraReducers$g, UPDATE_MEDICATIONS.fulfilled, function (state, action) {
34457
- var _action$payload7;
34706
+ var _action$payload9;
34458
34707
 
34459
- state.update_medication.loading = false, state.update_medication.error = false, state.update_medication = (_action$payload7 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload7 !== void 0 ? _action$payload7 : {};
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 : {};
34460
34709
  }), _defineProperty(_extraReducers$g, UPDATE_MEDICATIONS.pending, function (state, action) {
34461
34710
  state.update_medication.error = false, state.update_medication.loading = true;
34462
34711
  }), _defineProperty(_extraReducers$g, UPDATE_MEDICATIONS.rejected, function (state, action) {
34463
- var _action$payload8;
34712
+ var _action$payload10;
34464
34713
 
34465
- state.update_medication.loading = false, state.update_medication.error = true, state.update_medication = (_action$payload8 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload8 !== void 0 ? _action$payload8 : {};
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 : {};
34466
34715
  }), _defineProperty(_extraReducers$g, GET_MEDICATIONS.fulfilled, function (state, action) {
34467
- var _action$payload9;
34716
+ var _action$payload11;
34468
34717
 
34469
- state.medication_list.loading = false, state.medication_list.error = false, state.medication_list = (_action$payload9 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload9 !== void 0 ? _action$payload9 : {};
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 : {};
34470
34719
  }), _defineProperty(_extraReducers$g, GET_MEDICATIONS.pending, function (state, action) {
34471
34720
  state.medication_list.error = false, state.medication_list.loading = true;
34472
34721
  }), _defineProperty(_extraReducers$g, GET_MEDICATIONS.rejected, function (state, action) {
34473
- var _action$payload10;
34722
+ var _action$payload12;
34474
34723
 
34475
- state.medication_list.loading = false, state.medication_list.error = true, state.medication_list = (_action$payload10 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload10 !== void 0 ? _action$payload10 : {};
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 : {};
34476
34725
  }), _defineProperty(_extraReducers$g, UPDATE_ALL_WORKFLOW_STATUS.fulfilled, function (state, action) {
34477
- var _action$payload11;
34726
+ var _action$payload13;
34478
34727
 
34479
- state.update_workflow_status.loading = false, state.update_workflow_status.error = false, state.update_workflow_status = (_action$payload11 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload11 !== void 0 ? _action$payload11 : {};
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 : {};
34480
34729
  }), _defineProperty(_extraReducers$g, UPDATE_ALL_WORKFLOW_STATUS.pending, function (state, action) {
34481
34730
  state.update_workflow_status.error = false, state.update_workflow_status.loading = true;
34482
34731
  }), _defineProperty(_extraReducers$g, UPDATE_ALL_WORKFLOW_STATUS.rejected, function (state, action) {
34483
- var _action$payload12;
34732
+ var _action$payload14;
34733
+
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;
34484
34743
 
34485
- state.update_workflow_status.loading = false, state.update_workflow_status.error = true, state.update_workflow_status = (_action$payload12 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
34744
+ state.Encounterbanner = (_action$payload16 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload16 !== void 0 ? _action$payload16 : {};
34486
34745
  }), _extraReducers$g)
34487
34746
  });
34488
34747
  var medicationsActions = {
@@ -34491,7 +34750,9 @@ var medicationsActions = {
34491
34750
  UPDATE_MEDICATIONS: UPDATE_MEDICATIONS,
34492
34751
  UPDATE_ALL_WORKFLOW_STATUS: UPDATE_ALL_WORKFLOW_STATUS,
34493
34752
  ALERT_CODES: ALERT_CODES,
34494
- DRUG_CODES: DRUG_CODES
34753
+ DRUG_CODES: DRUG_CODES,
34754
+ PATIENT_BANNER: PATIENT_BANNER,
34755
+ ENCOUNTER_BANNER: ENCOUNTER_BANNER
34495
34756
  };
34496
34757
  var medicationsSlice$1 = medicationsSlice.reducer;
34497
34758
 
@@ -34526,7 +34787,7 @@ var queries$4 = {
34526
34787
  db_name: dbName,
34527
34788
  entity: "CA_OrderLine",
34528
34789
  filter: "CA_OrderLine.encounter_Id==\"".concat(encounter_id, "\" && CA_OrderLine.Oltype=='TREAT' && CA_OrderLine.parentOrderId=='' && CA_OrderLine.activestatus==true"),
34529
- 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})"
34530
34791
  };
34531
34792
  },
34532
34793
  treatment_delete: function treatment_delete(id) {
@@ -34890,7 +35151,8 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
34890
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 : "",
34891
35152
  orderCatalog: {
34892
35153
  label: val === null || val === void 0 ? void 0 : val.orderCatalog,
34893
- 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
34894
35156
  },
34895
35157
  qty: JSON.stringify(val === null || val === void 0 ? void 0 : val.orderQty),
34896
35158
  requestorDetails: {
@@ -35362,7 +35624,8 @@ var TREATMENT_PROCEDURE_GETCATEGORY = createAsyncThunk("TreatmentSlice/getorderc
35362
35624
 
35363
35625
  arr.push({
35364
35626
  value: val === null || val === void 0 ? void 0 : val._id,
35365
- 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
35366
35629
  });
35367
35630
  });
35368
35631
  return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -36456,7 +36719,7 @@ var queries$3 = (_queries = {
36456
36719
  db_name: dbName,
36457
36720
  entity: "CA_OrderLine",
36458
36721
  filter: "CA_OrderLine.encounter_Id==\"".concat(encounter_id, "\" && CA_OrderLine.Oltype=='RAD' && CA_OrderLine.parentOrderId=='' && CA_OrderLine.activestatus==true"),
36459
- 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})"
36460
36723
  };
36461
36724
  },
36462
36725
  treatment_delete: function treatment_delete(id) {
@@ -36822,7 +37085,8 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
36822
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 : "",
36823
37086
  orderCatalog: {
36824
37087
  label: val === null || val === void 0 ? void 0 : val.orderCatalog,
36825
- 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
36826
37090
  },
36827
37091
  qty: JSON.stringify(val === null || val === void 0 ? void 0 : val.orderQty),
36828
37092
  requestorDetails: {
@@ -37345,7 +37609,8 @@ var RAD_GETCATEGORY = createAsyncThunk("RadiologySlice/getordercategory", /*#__P
37345
37609
 
37346
37610
  arr.push({
37347
37611
  value: val === null || val === void 0 ? void 0 : val._id,
37348
- 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
37349
37614
  });
37350
37615
  });
37351
37616
  return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.118",
3
+ "version": "1.1.120",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",