primarycare-binder 1.1.82 → 1.1.85
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 +116 -36
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8165,7 +8165,7 @@ var queries$b = {
|
|
|
8165
8165
|
query: function query(appointmentId) {
|
|
8166
8166
|
return "Person.Id in Appointment.PersonID && Appointment.appno like '%".concat(appointmentId, "%'");
|
|
8167
8167
|
},
|
|
8168
|
-
returnFields: "{AppointmentID:Appointment.id,_id:Appointment._id,status:Appointment.status,avc:Appointment.avc,appnumber:Appointment.appno,end:Appointment.end,start:Appointment.start,createddate:Appointment.createddate,updatedate:Appointment.updatedate, personId:Appointment.PersonID, patient:(FOR adqolcPatient IN Patient FILTER adqolcPatient.personID IN Appointment.PersonID RETURN merge(adqolcPatient,{identifier:document(adqolcPatient.identifier)},{martialStatus:document(adqolcPatient.martialStatus)},{name:document(adqolcPatient.name)},{telecom:document(adqolcPatient.telecom)},{photo:document(adqolcPatient.photo)},{personID:(for pid in Person filter pid.Id == adqolcPatient.personID return pid)},{address:document(adqolcPatient.address)},{activereason:(DOCUMENT(adqolcPatient.activereason)),deceasedreason:(DOCUMENT(adqolcPatient.deceasedreason))},{isdeceased:(for doc in CodeableConceptMaster filter doc._id==adqolcPatient.isdeceased return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod)}))})) ,Person:MERGE(Person,{name:(FOR hn IN TO_ARRAY(Person.name) RETURN DOCUMENT(hn)),telecom:(FOR tel IN TO_ARRAY(Person.telecom) RETURN DOCUMENT(tel) ),photo:document(Person.photo)})}"
|
|
8168
|
+
returnFields: "{AppointmentID:Appointment.id,_id:Appointment._id,status:Appointment.status,appStatus:first(for en in Encounter filter Appointment.id in en.appointmentId return document(en.status)),avc:Appointment.avc,appnumber:Appointment.appno,end:Appointment.end,start:Appointment.start,createddate:Appointment.createddate,updatedate:Appointment.updatedate, personId:Appointment.PersonID, patient:(FOR adqolcPatient IN Patient FILTER adqolcPatient.personID IN Appointment.PersonID RETURN merge(adqolcPatient,{identifier:document(adqolcPatient.identifier)},{martialStatus:document(adqolcPatient.martialStatus)},{name:document(adqolcPatient.name)},{telecom:document(adqolcPatient.telecom)},{photo:document(adqolcPatient.photo)},{personID:(for pid in Person filter pid.Id == adqolcPatient.personID return pid)},{address:document(adqolcPatient.address)},{activereason:(DOCUMENT(adqolcPatient.activereason)),deceasedreason:(DOCUMENT(adqolcPatient.deceasedreason))},{isdeceased:(for doc in CodeableConceptMaster filter doc._id==adqolcPatient.isdeceased return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod)}))})) ,Person:MERGE(Person,{name:(FOR hn IN TO_ARRAY(Person.name) RETURN DOCUMENT(hn)),telecom:(FOR tel IN TO_ARRAY(Person.telecom) RETURN DOCUMENT(tel) ),photo:document(Person.photo)})}"
|
|
8169
8169
|
},
|
|
8170
8170
|
codablemasterGetPatientname: {
|
|
8171
8171
|
query: function query(patientName) {
|
|
@@ -10834,6 +10834,12 @@ var APPOINTMENT_CREATE = createAsyncThunk("appointmentReducer/upsertAppointment"
|
|
|
10834
10834
|
var payload,
|
|
10835
10835
|
_ref2,
|
|
10836
10836
|
rejectWithValue,
|
|
10837
|
+
getState,
|
|
10838
|
+
_state$authSlice,
|
|
10839
|
+
_state$authSlice$logg,
|
|
10840
|
+
_authData$persondata,
|
|
10841
|
+
_authData$persondata$,
|
|
10842
|
+
_authData$persondata$2,
|
|
10837
10843
|
_payload$slotId,
|
|
10838
10844
|
slotId,
|
|
10839
10845
|
_payload$slotStart,
|
|
@@ -10872,6 +10878,8 @@ var APPOINTMENT_CREATE = createAsyncThunk("appointmentReducer/upsertAppointment"
|
|
|
10872
10878
|
orgType,
|
|
10873
10879
|
_payload$patientInstr,
|
|
10874
10880
|
patientInstruction,
|
|
10881
|
+
state,
|
|
10882
|
+
authData,
|
|
10875
10883
|
body,
|
|
10876
10884
|
data,
|
|
10877
10885
|
_args = arguments;
|
|
@@ -10881,9 +10889,11 @@ var APPOINTMENT_CREATE = createAsyncThunk("appointmentReducer/upsertAppointment"
|
|
|
10881
10889
|
switch (_context.prev = _context.next) {
|
|
10882
10890
|
case 0:
|
|
10883
10891
|
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
10884
|
-
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
10892
|
+
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue, getState = _ref2.getState;
|
|
10885
10893
|
_context.prev = 2;
|
|
10886
10894
|
_payload$slotId = payload.slotId, slotId = _payload$slotId === void 0 ? [] : _payload$slotId, _payload$slotStart = payload.slotStart, slotStart = _payload$slotStart === void 0 ? 0 : _payload$slotStart, _payload$slotEnd = payload.slotEnd, slotEnd = _payload$slotEnd === void 0 ? 0 : _payload$slotEnd, _payload$info = payload.info, info = _payload$info === void 0 ? [] : _payload$info, _payload$specialtyID = payload.specialtyID, specialtyID = _payload$specialtyID === void 0 ? [] : _payload$specialtyID, _payload$personID = payload.personID, personID = _payload$personID === void 0 ? [] : _payload$personID, _payload$practitioner = payload.practitionerId, practitionerId = _payload$practitioner === void 0 ? [] : _payload$practitioner, _payload$mobile = payload.mobile, mobile = _payload$mobile === void 0 ? "" : _payload$mobile, _payload$email = payload.email, email = _payload$email === void 0 ? "" : _payload$email, _payload$consultation = payload.consultationMode, consultationMode = _payload$consultation === void 0 ? "" : _payload$consultation, _payload$healthCareId = payload.healthCareId, healthCareId = _payload$healthCareId === void 0 ? [] : _payload$healthCareId, _payload$report_docs = payload.report_docs, report_docs = _payload$report_docs === void 0 ? [] : _payload$report_docs, _payload$appointmentT = payload.appointmentType, appointmentType = _payload$appointmentT === void 0 ? "general" : _payload$appointmentT, _payload$resourcetype = payload.resourcetype, resourcetype = _payload$resourcetype === void 0 ? "" : _payload$resourcetype, _payload$resourcerole = payload.resourcerole, resourcerole = _payload$resourcerole === void 0 ? "" : _payload$resourcerole, _payload$resourcecode = payload.resourcecode, resourcecode = _payload$resourcecode === void 0 ? "" : _payload$resourcecode, _payload$orgId = payload.orgId, orgId = _payload$orgId === void 0 ? "" : _payload$orgId, _payload$orgType = payload.orgType, orgType = _payload$orgType === void 0 ? "" : _payload$orgType, _payload$patientInstr = payload.patientInstruction, patientInstruction = _payload$patientInstr === void 0 ? "" : _payload$patientInstr;
|
|
10895
|
+
state = getState();
|
|
10896
|
+
authData = state === null || state === void 0 ? void 0 : (_state$authSlice = state.authSlice) === null || _state$authSlice === void 0 ? void 0 : (_state$authSlice$logg = _state$authSlice.loggedUserInfo) === null || _state$authSlice$logg === void 0 ? void 0 : _state$authSlice$logg.data;
|
|
10887
10897
|
body = [{
|
|
10888
10898
|
db_name: dbName,
|
|
10889
10899
|
entity: "Appointment",
|
|
@@ -10938,22 +10948,23 @@ var APPOINTMENT_CREATE = createAsyncThunk("appointmentReducer/upsertAppointment"
|
|
|
10938
10948
|
mobile: mobile,
|
|
10939
10949
|
patientEmail: email
|
|
10940
10950
|
}],
|
|
10941
|
-
appointmentType: appointmentType
|
|
10951
|
+
appointmentType: appointmentType,
|
|
10952
|
+
bookedby: (authData === null || authData === void 0 ? void 0 : authData.practioner_id) || (authData === null || authData === void 0 ? void 0 : (_authData$persondata = authData.persondata) === null || _authData$persondata === void 0 ? void 0 : (_authData$persondata$ = _authData$persondata.payload) === null || _authData$persondata$ === void 0 ? void 0 : (_authData$persondata$2 = _authData$persondata$.data) === null || _authData$persondata$2 === void 0 ? void 0 : _authData$persondata$2.pid) || ""
|
|
10942
10953
|
}
|
|
10943
10954
|
}];
|
|
10944
|
-
_context.next =
|
|
10955
|
+
_context.next = 9;
|
|
10945
10956
|
return fetchData$3({
|
|
10946
10957
|
body: JSON.stringify(body)
|
|
10947
10958
|
}, __bookAppointmentUrl__);
|
|
10948
10959
|
|
|
10949
|
-
case
|
|
10960
|
+
case 9:
|
|
10950
10961
|
data = _context.sent;
|
|
10951
10962
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
10952
10963
|
data: data
|
|
10953
10964
|
}));
|
|
10954
10965
|
|
|
10955
|
-
case
|
|
10956
|
-
_context.prev =
|
|
10966
|
+
case 13:
|
|
10967
|
+
_context.prev = 13;
|
|
10957
10968
|
_context.t0 = _context["catch"](2);
|
|
10958
10969
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
10959
10970
|
data: {
|
|
@@ -10961,12 +10972,12 @@ var APPOINTMENT_CREATE = createAsyncThunk("appointmentReducer/upsertAppointment"
|
|
|
10961
10972
|
}
|
|
10962
10973
|
})));
|
|
10963
10974
|
|
|
10964
|
-
case
|
|
10975
|
+
case 16:
|
|
10965
10976
|
case "end":
|
|
10966
10977
|
return _context.stop();
|
|
10967
10978
|
}
|
|
10968
10979
|
}
|
|
10969
|
-
}, _callee, null, [[2,
|
|
10980
|
+
}, _callee, null, [[2, 13]]);
|
|
10970
10981
|
}))); // end
|
|
10971
10982
|
// APPOINTMENT_UPDATE
|
|
10972
10983
|
|
|
@@ -11447,7 +11458,7 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
11447
11458
|
s === null || s === void 0 ? void 0 : (_s$coding = s.coding) === null || _s$coding === void 0 ? void 0 : _s$coding.forEach(function (val) {
|
|
11448
11459
|
if (val === null || val === void 0 ? void 0 : val.display) {
|
|
11449
11460
|
if (designation) {
|
|
11450
|
-
designation +=
|
|
11461
|
+
designation += ", ";
|
|
11451
11462
|
}
|
|
11452
11463
|
|
|
11453
11464
|
designation += val === null || val === void 0 ? void 0 : val.display;
|
|
@@ -11476,7 +11487,7 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
11476
11487
|
info["_id"] = (_practData$34 = practData[0]) === null || _practData$34 === void 0 ? void 0 : _practData$34._id;
|
|
11477
11488
|
info["_key"] = (_practData$35 = practData[0]) === null || _practData$35 === void 0 ? void 0 : _practData$35._key;
|
|
11478
11489
|
info["img"] = getImgUrl((_practData$36 = practData[0]) === null || _practData$36 === void 0 ? void 0 : (_practData$36$photo = _practData$36.photo) === null || _practData$36$photo === void 0 ? void 0 : (_practData$36$photo$ = _practData$36$photo[0]) === null || _practData$36$photo$ === void 0 ? void 0 : _practData$36$photo$.fileid);
|
|
11479
|
-
info["bio"] = ((_practData$37 = practData[0]) === null || _practData$37 === void 0 ? void 0 : (_practData$37$biograp = _practData$37.biography) === null || _practData$37$biograp === void 0 ? void 0 : (_practData$37$biograp2 = _practData$37$biograp[0]) === null || _practData$37$biograp2 === void 0 ? void 0 : _practData$37$biograp2.biography_description) ||
|
|
11490
|
+
info["bio"] = ((_practData$37 = practData[0]) === null || _practData$37 === void 0 ? void 0 : (_practData$37$biograp = _practData$37.biography) === null || _practData$37$biograp === void 0 ? void 0 : (_practData$37$biograp2 = _practData$37$biograp[0]) === null || _practData$37$biograp2 === void 0 ? void 0 : _practData$37$biograp2.biography_description) || "";
|
|
11480
11491
|
info["experience"] = calculationExp((_practData$38 = practData[0]) === null || _practData$38 === void 0 ? void 0 : _practData$38.job_experience);
|
|
11481
11492
|
info["hospitalLocation"] = ((_practData$39 = practData[0]) === null || _practData$39 === void 0 ? void 0 : (_practData$39$practit = _practData$39.practitioner_role) === null || _practData$39$practit === void 0 ? void 0 : (_practData$39$practit2 = _practData$39$practit[0]) === null || _practData$39$practit2 === void 0 ? void 0 : (_practData$39$practit3 = _practData$39$practit2.OrgID) === null || _practData$39$practit3 === void 0 ? void 0 : (_practData$39$practit4 = _practData$39$practit3.address) === null || _practData$39$practit4 === void 0 ? void 0 : (_practData$39$practit5 = _practData$39$practit4[0]) === null || _practData$39$practit5 === void 0 ? void 0 : (_practData$39$practit6 = _practData$39$practit5.city) === null || _practData$39$practit6 === void 0 ? void 0 : _practData$39$practit6.geogLevelName) || "";
|
|
11482
11493
|
}
|
|
@@ -19306,7 +19317,7 @@ var dashboardQuery = {
|
|
|
19306
19317
|
db_name: dbName,
|
|
19307
19318
|
entity: "Schedule",
|
|
19308
19319
|
filter: "Schedule.start >=".concat(startDate, " AND Schedule.start<=").concat(endDate, " AND DOCUMENT(Schedule.resourceCode).id==").concat(loginId, " AND Schedule.activestatus==true"),
|
|
19309
|
-
return_fields: "MERGE(Schedule,{slot:(FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.start>=".concat(startTime, " AND slt.end<=").concat(endTime, " RETURN MERGE(slt,{Appointment:(FOR app IN Appointment FILTER slt.id IN app.slotID RETURN app),Type:slt.
|
|
19320
|
+
return_fields: "MERGE(Schedule,{slot:(FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.start>=".concat(startTime, " AND slt.end<=").concat(endTime, " RETURN MERGE(slt,{Appointment:(FOR app IN Appointment FILTER slt.id IN app.slotID RETURN app),Type:slt.SlotSlabInd}))})")
|
|
19310
19321
|
} // 2: {},
|
|
19311
19322
|
// 3: {},
|
|
19312
19323
|
|
|
@@ -25694,11 +25705,16 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25694
25705
|
orgData = _context4.sent;
|
|
25695
25706
|
component = [];
|
|
25696
25707
|
stateDatakey.map(function (val) {
|
|
25708
|
+
var _payload$dynamicValue;
|
|
25709
|
+
|
|
25697
25710
|
var value = payload.dynamicValue[val] ? parseFloat(payload.dynamicValue[val]) : 0;
|
|
25698
25711
|
var isnormalData = payload.dynamicValue[val + "normalorabnormal"] == "true" ? true : false;
|
|
25699
25712
|
var abnormalmsg = payload.dynamicValue[val + "uom"];
|
|
25713
|
+
|
|
25714
|
+
var _id = (_payload$dynamicValue = payload.dynamicValue[val + "_id"]) !== null && _payload$dynamicValue !== void 0 ? _payload$dynamicValue : "";
|
|
25715
|
+
|
|
25700
25716
|
component.push({
|
|
25701
|
-
obsinternalid:
|
|
25717
|
+
obsinternalid: _id,
|
|
25702
25718
|
obscode: val,
|
|
25703
25719
|
obsvalue: value,
|
|
25704
25720
|
isabnormal: isnormalData,
|
|
@@ -28513,7 +28529,7 @@ var queries$6 = {
|
|
|
28513
28529
|
|
|
28514
28530
|
var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
28515
28531
|
var list = dataList.map(function (val) {
|
|
28516
|
-
var _val$diagnosis, _val$performer, _val$recurrent, _val$recurrent$, _val$priority, _val$OrderNature, _utcTOLocal, _val$recurrent2, _val$recurrent2$, _utcTOLocal2, _val$recurrent3, _val$recurrent3$, _JSON$stringify, _val$recurrent4, _val$recurrent4$, _val$recurrent$0$ever, _val$recurrent5, _val$recurrent5$, _val$recurrent$0$ever2, _val$recurrent6, _val$recurrent6$, _utcTOLocal3, _val$recurrent7, _val$recurrent7$, _JSON$stringify2, _val$recurrent8, _val$recurrent8$, _val$recurrent9, _val$recurrent9$, _utcTOLocal4, _val$recurrent10, _val$recurrent10$, _utcTOLocal5, _val$Requestor, _val$Requestor$, _val$Requestor$$organ, _val$Requestor2, _val$Requestor2$, _val$Requestor2$$orga, _val$Requestor3, _val$Requestor3$, _val$Requestor3$$orga, _val$Requestor$0$prac, _val$Requestor4, _val$Requestor4$, _val$Requestor4$$prac, _val$Requestor$0$prac2, _val$Requestor5, _val$Requestor5$, _val$Requestor5$$prac, _val$Requestor6, _val$Requestor6$, _val$Requestor6$$prac, _val$Requestor7, _val$Requestor7$, _val$Requestor7$$prac, _val$Requestor8, _val$Requestor8$, _val$Requestor8$$prac, _val$Requestor8$$prac2, _val$Requestor8$$prac3, _val$Requestor9, _val$Requestor9$, _val$Requestor9$$prac, _val$Requestor9$$prac2, _val$Requestor10, _val$Requestor10$, _val$Requestor10$$pra, _val$Requestor10$$pra2, _val$Requestor11, _val$Requestor11$, _val$Requestor11$$pra, _val$Requestor11$$pra2, _val$Requestor11$$pra3, _val$specimenRelated$, _val$specimenRelated$2, _val$specimenRelated$3, _val$specimenRelated$4, _val$specimenRelated$5, _val$specimenRelated$6, _val$specimenRelated$7, _val$specimenRelated$8, _val$specimenRelated$9, _val$specimenRelated$10, _val$specimenRelated$11, _val$patientInstructi, _val$patientInstructi2, _val$patientInstructi3, _val$patientInstructi4, _val$patientInstructi5, _val$patientInstructi6, _val$patientInstructi7, _val$patientInstructi8, _val$preparatoryInstr, _val$preparatoryInstr2, _val$preparatoryInstr3, _val$preparatoryInstr4, _val$preparatoryInstr5, _val$preparatoryInstr6, _val$preparatoryInstr7, _val$preparatoryInstr8, _val$departmentalInst, _val$departmentalInst2, _val$departmentalInst3, _val$departmentalInst4, _val$departmentalInst5, _val$departmentalInst6, _val$departmentalInst7, _val$departmentalInst8, _val$attribute, _val$attribute$, _val$attribute2, _val$attribute2$, _val$attribute$0$bedS, _val$attribute3, _val$attribute3$, _val$attribute$0$cont, _val$attribute4, _val$attribute4$, _val$createddate, _val$changeStatus, _val$changeStatus2, _val$changeStatus3, _val$statushistory, _val$statusreason, _val$accessionNum;
|
|
28532
|
+
var _val$diagnosis, _val$performer, _val$recurrent, _val$recurrent$, _val$priority, _val$OrderNature, _utcTOLocal, _val$recurrent2, _val$recurrent2$, _utcTOLocal2, _val$recurrent3, _val$recurrent3$, _JSON$stringify, _val$recurrent4, _val$recurrent4$, _val$recurrent$0$ever, _val$recurrent5, _val$recurrent5$, _val$recurrent$0$ever2, _val$recurrent6, _val$recurrent6$, _utcTOLocal3, _val$recurrent7, _val$recurrent7$, _JSON$stringify2, _val$recurrent8, _val$recurrent8$, _val$recurrent9, _val$recurrent9$, _utcTOLocal4, _val$recurrent10, _val$recurrent10$, _utcTOLocal5, _val$Requestor$0$orga, _val$Requestor, _val$Requestor$, _val$Requestor$$organ, _val$Requestor$0$orga2, _val$Requestor2, _val$Requestor2$, _val$Requestor2$$orga, _val$Requestor$0$orga3, _val$Requestor3, _val$Requestor3$, _val$Requestor3$$orga, _val$Requestor$0$prac, _val$Requestor4, _val$Requestor4$, _val$Requestor4$$prac, _val$Requestor$0$prac2, _val$Requestor5, _val$Requestor5$, _val$Requestor5$$prac, _val$Requestor$0$prac3, _val$Requestor6, _val$Requestor6$, _val$Requestor6$$prac, _val$Requestor$0$prac4, _val$Requestor7, _val$Requestor7$, _val$Requestor7$$prac, _val$Requestor$0$prac5, _val$Requestor8, _val$Requestor8$, _val$Requestor8$$prac, _val$Requestor8$$prac2, _val$Requestor8$$prac3, _val$Requestor$0$prac6, _val$Requestor9, _val$Requestor9$, _val$Requestor9$$prac, _val$Requestor9$$prac2, _val$Requestor$0$prac7, _val$Requestor10, _val$Requestor10$, _val$Requestor10$$pra, _val$Requestor10$$pra2, _makeName, _val$Requestor11, _val$Requestor11$, _val$Requestor11$$pra, _val$Requestor11$$pra2, _val$Requestor11$$pra3, _val$specimenRelated$, _val$specimenRelated$2, _val$specimenRelated$3, _val$specimenRelated$4, _val$specimenRelated$5, _val$specimenRelated$6, _val$specimenRelated$7, _val$specimenRelated$8, _val$specimenRelated$9, _val$specimenRelated$10, _val$specimenRelated$11, _val$patientInstructi, _val$patientInstructi2, _val$patientInstructi3, _val$patientInstructi4, _val$patientInstructi5, _val$patientInstructi6, _val$patientInstructi7, _val$patientInstructi8, _val$preparatoryInstr, _val$preparatoryInstr2, _val$preparatoryInstr3, _val$preparatoryInstr4, _val$preparatoryInstr5, _val$preparatoryInstr6, _val$preparatoryInstr7, _val$preparatoryInstr8, _val$departmentalInst, _val$departmentalInst2, _val$departmentalInst3, _val$departmentalInst4, _val$departmentalInst5, _val$departmentalInst6, _val$departmentalInst7, _val$departmentalInst8, _val$attribute, _val$attribute$, _val$attribute2, _val$attribute2$, _val$attribute$0$bedS, _val$attribute3, _val$attribute3$, _val$attribute$0$cont, _val$attribute4, _val$attribute4$, _val$createddate, _val$changeStatus, _val$changeStatus2, _val$changeStatus3, _val$statushistory, _val$statusreason, _val$accessionNum;
|
|
28517
28533
|
|
|
28518
28534
|
var diagnosisData = val === null || val === void 0 ? void 0 : (_val$diagnosis = val.diagnosis) === null || _val$diagnosis === void 0 ? void 0 : _val$diagnosis.map(function (v) {
|
|
28519
28535
|
return {
|
|
@@ -28593,21 +28609,21 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
28593
28609
|
qty: JSON.stringify(val === null || val === void 0 ? void 0 : val.orderQty),
|
|
28594
28610
|
requestorDetails: {
|
|
28595
28611
|
organization: {
|
|
28596
|
-
label: val === null || val === void 0 ? void 0 : (_val$Requestor = val.Requestor) === null || _val$Requestor === void 0 ? void 0 : (_val$Requestor$ = _val$Requestor[0]) === null || _val$Requestor$ === void 0 ? void 0 : (_val$Requestor$$organ = _val$Requestor$.organization) === null || _val$Requestor$$organ === void 0 ? void 0 : _val$Requestor$$organ._id,
|
|
28597
|
-
value: val === null || val === void 0 ? void 0 : (_val$Requestor2 = val.Requestor) === null || _val$Requestor2 === void 0 ? void 0 : (_val$Requestor2$ = _val$Requestor2[0]) === null || _val$Requestor2$ === void 0 ? void 0 : (_val$Requestor2$$orga = _val$Requestor2$.organization) === null || _val$Requestor2$$orga === void 0 ? void 0 : _val$Requestor2$$orga.name,
|
|
28598
|
-
id: val === null || val === void 0 ? void 0 : (_val$Requestor3 = val.Requestor) === null || _val$Requestor3 === void 0 ? void 0 : (_val$Requestor3$ = _val$Requestor3[0]) === null || _val$Requestor3$ === void 0 ? void 0 : (_val$Requestor3$$orga = _val$Requestor3$.organization) === null || _val$Requestor3$$orga === void 0 ? void 0 : _val$Requestor3$$orga.id
|
|
28612
|
+
label: (_val$Requestor$0$orga = val === null || val === void 0 ? void 0 : (_val$Requestor = val.Requestor) === null || _val$Requestor === void 0 ? void 0 : (_val$Requestor$ = _val$Requestor[0]) === null || _val$Requestor$ === void 0 ? void 0 : (_val$Requestor$$organ = _val$Requestor$.organization) === null || _val$Requestor$$organ === void 0 ? void 0 : _val$Requestor$$organ._id) !== null && _val$Requestor$0$orga !== void 0 ? _val$Requestor$0$orga : "",
|
|
28613
|
+
value: (_val$Requestor$0$orga2 = val === null || val === void 0 ? void 0 : (_val$Requestor2 = val.Requestor) === null || _val$Requestor2 === void 0 ? void 0 : (_val$Requestor2$ = _val$Requestor2[0]) === null || _val$Requestor2$ === void 0 ? void 0 : (_val$Requestor2$$orga = _val$Requestor2$.organization) === null || _val$Requestor2$$orga === void 0 ? void 0 : _val$Requestor2$$orga.name) !== null && _val$Requestor$0$orga2 !== void 0 ? _val$Requestor$0$orga2 : "",
|
|
28614
|
+
id: (_val$Requestor$0$orga3 = val === null || val === void 0 ? void 0 : (_val$Requestor3 = val.Requestor) === null || _val$Requestor3 === void 0 ? void 0 : (_val$Requestor3$ = _val$Requestor3[0]) === null || _val$Requestor3$ === void 0 ? void 0 : (_val$Requestor3$$orga = _val$Requestor3$.organization) === null || _val$Requestor3$$orga === void 0 ? void 0 : _val$Requestor3$$orga.id) !== null && _val$Requestor$0$orga3 !== void 0 ? _val$Requestor$0$orga3 : ""
|
|
28599
28615
|
},
|
|
28600
28616
|
practitionerRole: {
|
|
28601
28617
|
label: (_val$Requestor$0$prac = val === null || val === void 0 ? void 0 : (_val$Requestor4 = val.Requestor) === null || _val$Requestor4 === void 0 ? void 0 : (_val$Requestor4$ = _val$Requestor4[0]) === null || _val$Requestor4$ === void 0 ? void 0 : (_val$Requestor4$$prac = _val$Requestor4$.practRole) === null || _val$Requestor4$$prac === void 0 ? void 0 : _val$Requestor4$$prac.display) !== null && _val$Requestor$0$prac !== void 0 ? _val$Requestor$0$prac : "",
|
|
28602
28618
|
value: (_val$Requestor$0$prac2 = val === null || val === void 0 ? void 0 : (_val$Requestor5 = val.Requestor) === null || _val$Requestor5 === void 0 ? void 0 : (_val$Requestor5$ = _val$Requestor5[0]) === null || _val$Requestor5$ === void 0 ? void 0 : (_val$Requestor5$$prac = _val$Requestor5$.practRole) === null || _val$Requestor5$$prac === void 0 ? void 0 : _val$Requestor5$$prac.display) !== null && _val$Requestor$0$prac2 !== void 0 ? _val$Requestor$0$prac2 : "",
|
|
28603
|
-
id: val === null || val === void 0 ? void 0 : (_val$Requestor6 = val.Requestor) === null || _val$Requestor6 === void 0 ? void 0 : (_val$Requestor6$ = _val$Requestor6[0]) === null || _val$Requestor6$ === void 0 ? void 0 : (_val$Requestor6$$prac = _val$Requestor6$.practRole) === null || _val$Requestor6$$prac === void 0 ? void 0 : _val$Requestor6$$prac.id,
|
|
28604
|
-
_id: val === null || val === void 0 ? void 0 : (_val$Requestor7 = val.Requestor) === null || _val$Requestor7 === void 0 ? void 0 : (_val$Requestor7$ = _val$Requestor7[0]) === null || _val$Requestor7$ === void 0 ? void 0 : (_val$Requestor7$$prac = _val$Requestor7$.practRole) === null || _val$Requestor7$$prac === void 0 ? void 0 : _val$Requestor7$$prac._id
|
|
28619
|
+
id: (_val$Requestor$0$prac3 = val === null || val === void 0 ? void 0 : (_val$Requestor6 = val.Requestor) === null || _val$Requestor6 === void 0 ? void 0 : (_val$Requestor6$ = _val$Requestor6[0]) === null || _val$Requestor6$ === void 0 ? void 0 : (_val$Requestor6$$prac = _val$Requestor6$.practRole) === null || _val$Requestor6$$prac === void 0 ? void 0 : _val$Requestor6$$prac.id) !== null && _val$Requestor$0$prac3 !== void 0 ? _val$Requestor$0$prac3 : '',
|
|
28620
|
+
_id: (_val$Requestor$0$prac4 = val === null || val === void 0 ? void 0 : (_val$Requestor7 = val.Requestor) === null || _val$Requestor7 === void 0 ? void 0 : (_val$Requestor7$ = _val$Requestor7[0]) === null || _val$Requestor7$ === void 0 ? void 0 : (_val$Requestor7$$prac = _val$Requestor7$.practRole) === null || _val$Requestor7$$prac === void 0 ? void 0 : _val$Requestor7$$prac._id) !== null && _val$Requestor$0$prac4 !== void 0 ? _val$Requestor$0$prac4 : ""
|
|
28605
28621
|
},
|
|
28606
|
-
practitionerId: val === null || val === void 0 ? void 0 : (_val$Requestor8 = val.Requestor) === null || _val$Requestor8 === void 0 ? void 0 : (_val$Requestor8$ = _val$Requestor8[0]) === null || _val$Requestor8$ === void 0 ? void 0 : (_val$Requestor8$$prac = _val$Requestor8$.practId) === null || _val$Requestor8$$prac === void 0 ? void 0 : (_val$Requestor8$$prac2 = _val$Requestor8$$prac[0]) === null || _val$Requestor8$$prac2 === void 0 ? void 0 : (_val$Requestor8$$prac3 = _val$Requestor8$$prac2.name) === null || _val$Requestor8$$prac3 === void 0 ? void 0 : _val$Requestor8$$prac3[0],
|
|
28622
|
+
practitionerId: (_val$Requestor$0$prac5 = val === null || val === void 0 ? void 0 : (_val$Requestor8 = val.Requestor) === null || _val$Requestor8 === void 0 ? void 0 : (_val$Requestor8$ = _val$Requestor8[0]) === null || _val$Requestor8$ === void 0 ? void 0 : (_val$Requestor8$$prac = _val$Requestor8$.practId) === null || _val$Requestor8$$prac === void 0 ? void 0 : (_val$Requestor8$$prac2 = _val$Requestor8$$prac[0]) === null || _val$Requestor8$$prac2 === void 0 ? void 0 : (_val$Requestor8$$prac3 = _val$Requestor8$$prac2.name) === null || _val$Requestor8$$prac3 === void 0 ? void 0 : _val$Requestor8$$prac3[0]) !== null && _val$Requestor$0$prac5 !== void 0 ? _val$Requestor$0$prac5 : "",
|
|
28607
28623
|
orderBy: {
|
|
28608
|
-
value: val === null || val === void 0 ? void 0 : (_val$Requestor9 = val.Requestor) === null || _val$Requestor9 === void 0 ? void 0 : (_val$Requestor9$ = _val$Requestor9[0]) === null || _val$Requestor9$ === void 0 ? void 0 : (_val$Requestor9$$prac = _val$Requestor9$.practId) === null || _val$Requestor9$$prac === void 0 ? void 0 : (_val$Requestor9$$prac2 = _val$Requestor9$$prac[0]) === null || _val$Requestor9$$prac2 === void 0 ? void 0 : _val$Requestor9$$prac2.id,
|
|
28609
|
-
practitioner_id: val === null || val === void 0 ? void 0 : (_val$Requestor10 = val.Requestor) === null || _val$Requestor10 === void 0 ? void 0 : (_val$Requestor10$ = _val$Requestor10[0]) === null || _val$Requestor10$ === void 0 ? void 0 : (_val$Requestor10$$pra = _val$Requestor10$.practId) === null || _val$Requestor10$$pra === void 0 ? void 0 : (_val$Requestor10$$pra2 = _val$Requestor10$$pra[0]) === null || _val$Requestor10$$pra2 === void 0 ? void 0 : _val$Requestor10$$pra2.practitioner_id,
|
|
28610
|
-
label: makeName((val === null || val === void 0 ? void 0 : (_val$Requestor11 = val.Requestor) === null || _val$Requestor11 === void 0 ? void 0 : (_val$Requestor11$ = _val$Requestor11[0]) === null || _val$Requestor11$ === void 0 ? void 0 : (_val$Requestor11$$pra = _val$Requestor11$.practId) === null || _val$Requestor11$$pra === void 0 ? void 0 : (_val$Requestor11$$pra2 = _val$Requestor11$$pra[0]) === null || _val$Requestor11$$pra2 === void 0 ? void 0 : (_val$Requestor11$$pra3 = _val$Requestor11$$pra2.name) === null || _val$Requestor11$$pra3 === void 0 ? void 0 : _val$Requestor11$$pra3[0]) || {})
|
|
28624
|
+
value: (_val$Requestor$0$prac6 = val === null || val === void 0 ? void 0 : (_val$Requestor9 = val.Requestor) === null || _val$Requestor9 === void 0 ? void 0 : (_val$Requestor9$ = _val$Requestor9[0]) === null || _val$Requestor9$ === void 0 ? void 0 : (_val$Requestor9$$prac = _val$Requestor9$.practId) === null || _val$Requestor9$$prac === void 0 ? void 0 : (_val$Requestor9$$prac2 = _val$Requestor9$$prac[0]) === null || _val$Requestor9$$prac2 === void 0 ? void 0 : _val$Requestor9$$prac2.id) !== null && _val$Requestor$0$prac6 !== void 0 ? _val$Requestor$0$prac6 : "",
|
|
28625
|
+
practitioner_id: (_val$Requestor$0$prac7 = val === null || val === void 0 ? void 0 : (_val$Requestor10 = val.Requestor) === null || _val$Requestor10 === void 0 ? void 0 : (_val$Requestor10$ = _val$Requestor10[0]) === null || _val$Requestor10$ === void 0 ? void 0 : (_val$Requestor10$$pra = _val$Requestor10$.practId) === null || _val$Requestor10$$pra === void 0 ? void 0 : (_val$Requestor10$$pra2 = _val$Requestor10$$pra[0]) === null || _val$Requestor10$$pra2 === void 0 ? void 0 : _val$Requestor10$$pra2.practitioner_id) !== null && _val$Requestor$0$prac7 !== void 0 ? _val$Requestor$0$prac7 : "",
|
|
28626
|
+
label: (_makeName = makeName((val === null || val === void 0 ? void 0 : (_val$Requestor11 = val.Requestor) === null || _val$Requestor11 === void 0 ? void 0 : (_val$Requestor11$ = _val$Requestor11[0]) === null || _val$Requestor11$ === void 0 ? void 0 : (_val$Requestor11$$pra = _val$Requestor11$.practId) === null || _val$Requestor11$$pra === void 0 ? void 0 : (_val$Requestor11$$pra2 = _val$Requestor11$$pra[0]) === null || _val$Requestor11$$pra2 === void 0 ? void 0 : (_val$Requestor11$$pra3 = _val$Requestor11$$pra2.name) === null || _val$Requestor11$$pra3 === void 0 ? void 0 : _val$Requestor11$$pra3[0]) || {})) !== null && _makeName !== void 0 ? _makeName : ""
|
|
28611
28627
|
}
|
|
28612
28628
|
},
|
|
28613
28629
|
indication: {
|
|
@@ -28689,7 +28705,7 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
28689
28705
|
return el != null;
|
|
28690
28706
|
});
|
|
28691
28707
|
var list = dataList.map(function (val) {
|
|
28692
|
-
var _val$diagnosis2, _val$performer2, _val$recurrent11, _val$recurrent11$, _val$priority2, _val$OrderNature2, _utcTOLocal6, _JSON$stringify3, _val$recurrent12, _val$recurrent12$, _val$recurrent$0$ever3, _val$recurrent13, _val$recurrent13$, _val$recurrent$0$ever4, _val$recurrent14, _val$recurrent14$, _utcTOLocal7, _val$recurrent15, _val$recurrent15$, _JSON$stringify4, _val$recurrent16, _val$recurrent16$, _val$recurrent17, _val$recurrent17$, _utcTOLocal8, _val$recurrent18, _val$recurrent18$, _utcTOLocal9, _val$Requestor12, _val$Requestor12$, _val$Requestor12$$org, _val$Requestor13, _val$Requestor13$, _val$Requestor13$$org, _val$Requestor14, _val$Requestor14$, _val$Requestor14$$org, _val$Requestor$0$
|
|
28708
|
+
var _val$diagnosis2, _val$performer2, _val$recurrent11, _val$recurrent11$, _val$priority2, _val$OrderNature2, _utcTOLocal6, _JSON$stringify3, _val$recurrent12, _val$recurrent12$, _val$recurrent$0$ever3, _val$recurrent13, _val$recurrent13$, _val$recurrent$0$ever4, _val$recurrent14, _val$recurrent14$, _utcTOLocal7, _val$recurrent15, _val$recurrent15$, _JSON$stringify4, _val$recurrent16, _val$recurrent16$, _val$recurrent17, _val$recurrent17$, _utcTOLocal8, _val$recurrent18, _val$recurrent18$, _utcTOLocal9, _val$Requestor12, _val$Requestor12$, _val$Requestor12$$org, _val$Requestor13, _val$Requestor13$, _val$Requestor13$$org, _val$Requestor14, _val$Requestor14$, _val$Requestor14$$org, _val$Requestor$0$prac8, _val$Requestor15, _val$Requestor15$, _val$Requestor15$$pra, _val$Requestor$0$prac9, _val$Requestor16, _val$Requestor16$, _val$Requestor16$$pra, _val$Requestor17, _val$Requestor17$, _val$Requestor17$$pra, _val$Requestor18, _val$Requestor18$, _val$Requestor18$$pra, _val$Requestor19, _val$Requestor19$, _val$Requestor19$$pra, _val$Requestor19$$pra2, _val$Requestor19$$pra3, _val$Requestor20, _val$Requestor20$, _val$Requestor20$$pra, _val$Requestor20$$pra2, _val$Requestor21, _val$Requestor21$, _val$Requestor21$$pra, _val$Requestor21$$pra2, _val$Requestor22, _val$Requestor22$, _val$Requestor22$$pra, _val$Requestor22$$pra2, _val$Requestor22$$pra3, _val$specimenRelated, _val$specimenRelated$12, _val$specimenRelated2, _val$specimenRelated3, _val$specimenRelated4, _val$specimenRelated5, _val$specimenRelated6, _val$specimenRelated7, _val$specimenRelated8, _val$specimenRelated9, _val$specimenRelated10, _val$specimenRelated11, _val$specimenRelated12, _val$specimenRelated13, _val$specimenRelated14, _val$specimenRelated15, _val$specimenRelated16, _val$specimenRelated17, _val$specimenRelated18, _val$specimenRelated19, _val$specimenRelated20, _val$specimenRelated21, _val$specimenRelated22, _val$patientInstructi9, _val$patientInstructi10, _val$patientInstructi11, _val$patientInstructi12, _val$patientInstructi13, _val$patientInstructi14, _val$patientInstructi15, _val$patientInstructi16, _val$preparatoryInstr9, _val$preparatoryInstr10, _val$preparatoryInstr11, _val$preparatoryInstr12, _val$preparatoryInstr13, _val$preparatoryInstr14, _val$preparatoryInstr15, _val$preparatoryInstr16, _val$departmentalInst9, _val$departmentalInst10, _val$departmentalInst11, _val$departmentalInst12, _val$departmentalInst13, _val$departmentalInst14, _val$departmentalInst15, _val$departmentalInst16, _val$attribute5, _val$attribute5$, _val$attribute6, _val$attribute6$, _val$attribute$0$bedS2, _val$attribute7, _val$attribute7$, _val$attribute$0$cont2, _val$attribute8, _val$attribute8$, _val$createddate2, _val$changeStatus4, _val$changeStatus5, _val$changeStatus6, _val$statushistory2, _val$statusreason2, _val$accessionNum2;
|
|
28693
28709
|
|
|
28694
28710
|
var diagnosisData = val === null || val === void 0 ? void 0 : (_val$diagnosis2 = val.diagnosis) === null || _val$diagnosis2 === void 0 ? void 0 : _val$diagnosis2.map(function (v) {
|
|
28695
28711
|
return {
|
|
@@ -28773,8 +28789,8 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
28773
28789
|
id: val === null || val === void 0 ? void 0 : (_val$Requestor14 = val.Requestor) === null || _val$Requestor14 === void 0 ? void 0 : (_val$Requestor14$ = _val$Requestor14[0]) === null || _val$Requestor14$ === void 0 ? void 0 : (_val$Requestor14$$org = _val$Requestor14$.organization) === null || _val$Requestor14$$org === void 0 ? void 0 : _val$Requestor14$$org.id
|
|
28774
28790
|
},
|
|
28775
28791
|
practitionerRole: {
|
|
28776
|
-
label: (_val$Requestor$0$
|
|
28777
|
-
value: (_val$Requestor$0$
|
|
28792
|
+
label: (_val$Requestor$0$prac8 = val === null || val === void 0 ? void 0 : (_val$Requestor15 = val.Requestor) === null || _val$Requestor15 === void 0 ? void 0 : (_val$Requestor15$ = _val$Requestor15[0]) === null || _val$Requestor15$ === void 0 ? void 0 : (_val$Requestor15$$pra = _val$Requestor15$.practRole) === null || _val$Requestor15$$pra === void 0 ? void 0 : _val$Requestor15$$pra.display) !== null && _val$Requestor$0$prac8 !== void 0 ? _val$Requestor$0$prac8 : "",
|
|
28793
|
+
value: (_val$Requestor$0$prac9 = val === null || val === void 0 ? void 0 : (_val$Requestor16 = val.Requestor) === null || _val$Requestor16 === void 0 ? void 0 : (_val$Requestor16$ = _val$Requestor16[0]) === null || _val$Requestor16$ === void 0 ? void 0 : (_val$Requestor16$$pra = _val$Requestor16$.practRole) === null || _val$Requestor16$$pra === void 0 ? void 0 : _val$Requestor16$$pra.display) !== null && _val$Requestor$0$prac9 !== void 0 ? _val$Requestor$0$prac9 : "",
|
|
28778
28794
|
id: val === null || val === void 0 ? void 0 : (_val$Requestor17 = val.Requestor) === null || _val$Requestor17 === void 0 ? void 0 : (_val$Requestor17$ = _val$Requestor17[0]) === null || _val$Requestor17$ === void 0 ? void 0 : (_val$Requestor17$$pra = _val$Requestor17$.practRole) === null || _val$Requestor17$$pra === void 0 ? void 0 : _val$Requestor17$$pra.id,
|
|
28779
28795
|
_id: val === null || val === void 0 ? void 0 : (_val$Requestor18 = val.Requestor) === null || _val$Requestor18 === void 0 ? void 0 : (_val$Requestor18$ = _val$Requestor18[0]) === null || _val$Requestor18$ === void 0 ? void 0 : (_val$Requestor18$$pra = _val$Requestor18$.practRole) === null || _val$Requestor18$$pra === void 0 ? void 0 : _val$Requestor18$$pra._id
|
|
28780
28796
|
},
|
|
@@ -42561,6 +42577,42 @@ var queryObj = {
|
|
|
42561
42577
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='pincode' && SMGeographicMaster.parentGeogLevelCode=='".concat(val, "' && SMGeographicMaster.activestatus == true"),
|
|
42562
42578
|
return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
|
|
42563
42579
|
};
|
|
42580
|
+
},
|
|
42581
|
+
getAllDistrict: function getAllDistrict() {
|
|
42582
|
+
return {
|
|
42583
|
+
db_name: dbName,
|
|
42584
|
+
entity: "SMGeographicMaster",
|
|
42585
|
+
sort: "SMGeographicMaster.geogLevelName",
|
|
42586
|
+
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='district' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true",
|
|
42587
|
+
return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
|
|
42588
|
+
};
|
|
42589
|
+
},
|
|
42590
|
+
getAllState: function getAllState() {
|
|
42591
|
+
return {
|
|
42592
|
+
db_name: dbName,
|
|
42593
|
+
entity: "SMGeographicMaster",
|
|
42594
|
+
sort: "SMGeographicMaster.geogLevelName",
|
|
42595
|
+
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='state' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true",
|
|
42596
|
+
return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
|
|
42597
|
+
};
|
|
42598
|
+
},
|
|
42599
|
+
getAllCountry: function getAllCountry() {
|
|
42600
|
+
return {
|
|
42601
|
+
db_name: dbName,
|
|
42602
|
+
entity: "SMGeographicMaster",
|
|
42603
|
+
sort: "SMGeographicMaster.geogLevelName",
|
|
42604
|
+
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true",
|
|
42605
|
+
return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
|
|
42606
|
+
};
|
|
42607
|
+
},
|
|
42608
|
+
getAllPincode: function getAllPincode(val) {
|
|
42609
|
+
return {
|
|
42610
|
+
db_name: dbName,
|
|
42611
|
+
entity: "SMGeographicMaster",
|
|
42612
|
+
sort: "SMGeographicMaster.geogLevelName",
|
|
42613
|
+
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='pincode' && SMGeographicMaster.activestatus == true",
|
|
42614
|
+
return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
|
|
42615
|
+
};
|
|
42564
42616
|
}
|
|
42565
42617
|
};
|
|
42566
42618
|
|
|
@@ -42570,10 +42622,10 @@ var makeReturnData = function makeReturnData(data) {
|
|
|
42570
42622
|
return (data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : (_data$result$map = _data$result.map) === null || _data$result$map === void 0 ? void 0 : _data$result$map.call(_data$result, function () {
|
|
42571
42623
|
var r = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
42572
42624
|
return {
|
|
42573
|
-
_id: r._id,
|
|
42574
|
-
label: r._id,
|
|
42575
|
-
value: r.geogLevelName,
|
|
42576
|
-
code: r.geogLevelCode,
|
|
42625
|
+
_id: r === null || r === void 0 ? void 0 : r._id,
|
|
42626
|
+
label: r === null || r === void 0 ? void 0 : r._id,
|
|
42627
|
+
value: r === null || r === void 0 ? void 0 : r.geogLevelName,
|
|
42628
|
+
code: r === null || r === void 0 ? void 0 : r.geogLevelCode,
|
|
42577
42629
|
parentId: r.parentGeogLevelCode
|
|
42578
42630
|
};
|
|
42579
42631
|
})) || [];
|
|
@@ -42614,6 +42666,34 @@ var config = [{
|
|
|
42614
42666
|
type: "List",
|
|
42615
42667
|
url: __readDocumentUrl__,
|
|
42616
42668
|
makeReturnData: makeReturnData
|
|
42669
|
+
}, {
|
|
42670
|
+
name: "GET_ALL_DISTRICT",
|
|
42671
|
+
sliceName: "getAllDistrict",
|
|
42672
|
+
queryName: "getAllDistrict",
|
|
42673
|
+
type: "List",
|
|
42674
|
+
url: __readDocumentUrl__,
|
|
42675
|
+
makeReturnData: makeReturnData
|
|
42676
|
+
}, {
|
|
42677
|
+
name: "GET_ALL_STATE",
|
|
42678
|
+
sliceName: "getAllState",
|
|
42679
|
+
queryName: "getAllState",
|
|
42680
|
+
type: "List",
|
|
42681
|
+
url: __readDocumentUrl__,
|
|
42682
|
+
makeReturnData: makeReturnData
|
|
42683
|
+
}, {
|
|
42684
|
+
name: "GET_ALL_COUNTRY",
|
|
42685
|
+
sliceName: "getAllCountry",
|
|
42686
|
+
queryName: "getAllCountry",
|
|
42687
|
+
type: "List",
|
|
42688
|
+
url: __readDocumentUrl__,
|
|
42689
|
+
makeReturnData: makeReturnData
|
|
42690
|
+
}, {
|
|
42691
|
+
name: "GET_ALL_PINCODE",
|
|
42692
|
+
sliceName: "getAllPincode",
|
|
42693
|
+
queryName: "getAllPincode",
|
|
42694
|
+
type: "List",
|
|
42695
|
+
url: __readDocumentUrl__,
|
|
42696
|
+
makeReturnData: makeReturnData
|
|
42617
42697
|
}];
|
|
42618
42698
|
|
|
42619
42699
|
var actionInfo = {};
|
|
@@ -43340,7 +43420,7 @@ var orderSetDropDown = {
|
|
|
43340
43420
|
};
|
|
43341
43421
|
|
|
43342
43422
|
var makeRadiologyData = function makeRadiologyData(order, info) {
|
|
43343
|
-
var _order$ordercategory, _info$org_id, _info$patientId, _info$encounterType, _info$encounterId, _order$orderSetsCode, _order$name, _order$orderType$_id, _order$orderType, _order$orderNature, _order$priority, _moment$unix,
|
|
43423
|
+
var _order$ordercategory, _info$org_id, _info$patientId, _info$encounterType, _info$encounterId, _order$orderSetsCode, _order$name, _order$orderType$_id, _order$orderType, _order$orderNature, _order$priority, _moment$unix, _moment$unix2, _order$orderQty, _order$orderQtyUOM$_i, _order$orderQtyUOM, _info$status$value, _info$status, _order$freqValue, _order$freqValueUnit$, _order$freqValueUnit, _order$freqRate, _order$freqRateUnit$_, _order$freqRateUnit, _order$duration, _order$durationType$_, _order$durationType, _info$accessionNum, _order$IVDosDurValue, _order$IVDosDurUOM$_i, _order$IVDosDurUOM;
|
|
43344
43424
|
|
|
43345
43425
|
return {
|
|
43346
43426
|
db_name: dbName,
|
|
@@ -43363,8 +43443,8 @@ var makeRadiologyData = function makeRadiologyData(order, info) {
|
|
|
43363
43443
|
OrderNature: (_order$orderNature = order === null || order === void 0 ? void 0 : order.orderNature) !== null && _order$orderNature !== void 0 ? _order$orderNature : "",
|
|
43364
43444
|
orderMode: "",
|
|
43365
43445
|
priority: (_order$priority = order === null || order === void 0 ? void 0 : order.priority) !== null && _order$priority !== void 0 ? _order$priority : "",
|
|
43366
|
-
orderDateTime: (_moment$unix = moment$1(
|
|
43367
|
-
occuranceStartDate: (
|
|
43446
|
+
orderDateTime: (_moment$unix = moment$1(new Date()).unix()) !== null && _moment$unix !== void 0 ? _moment$unix : 0,
|
|
43447
|
+
occuranceStartDate: (_moment$unix2 = moment$1(new Date()).unix()) !== null && _moment$unix2 !== void 0 ? _moment$unix2 : 0,
|
|
43368
43448
|
occuranceEndDate: 0,
|
|
43369
43449
|
orderQty: (_order$orderQty = order === null || order === void 0 ? void 0 : order.orderQty) !== null && _order$orderQty !== void 0 ? _order$orderQty : 0,
|
|
43370
43450
|
orderUOM: (_order$orderQtyUOM$_i = order === null || order === void 0 ? void 0 : (_order$orderQtyUOM = order.orderQtyUOM) === null || _order$orderQtyUOM === void 0 ? void 0 : _order$orderQtyUOM._id) !== null && _order$orderQtyUOM$_i !== void 0 ? _order$orderQtyUOM$_i : "",
|
|
@@ -43442,7 +43522,7 @@ var makeRadiologyData = function makeRadiologyData(order, info) {
|
|
|
43442
43522
|
};
|
|
43443
43523
|
|
|
43444
43524
|
var makeMedicationData = function makeMedicationData(order, info) {
|
|
43445
|
-
var _info$org_id2, _info$patientId2, _info$encounterType2, _info$encounterId2, _order$drugType, _info$status$value2, _info$status2, _order$drugCode, _order$formCode, _order$routeCode, _order$dosageUOM$_id, _order$dosageUOM, _order$IVInfusRateVal, _order$IVInfusRateUOM, _order$IVInfusRateUOM2, _order$duration2, _order$durationType$_2, _order$durationType2, _order$name2, _moment$
|
|
43525
|
+
var _info$org_id2, _info$patientId2, _info$encounterType2, _info$encounterId2, _order$drugType, _info$status$value2, _info$status2, _order$drugCode, _order$formCode, _order$routeCode, _order$dosageUOM$_id, _order$dosageUOM, _order$IVInfusRateVal, _order$IVInfusRateUOM, _order$IVInfusRateUOM2, _order$duration2, _order$durationType$_2, _order$durationType2, _order$name2, _moment$unix3, _order$notes, _order$practInstr, _order$IVDosDurValue2, _order$IVDosDurUOM$_i2, _order$IVDosDurUOM2;
|
|
43446
43526
|
|
|
43447
43527
|
return {
|
|
43448
43528
|
db_name: dbName,
|
|
@@ -43457,7 +43537,7 @@ var makeMedicationData = function makeMedicationData(order, info) {
|
|
|
43457
43537
|
patient_Id: (_info$patientId2 = info === null || info === void 0 ? void 0 : info.patientId) !== null && _info$patientId2 !== void 0 ? _info$patientId2 : "",
|
|
43458
43538
|
encountertype: (_info$encounterType2 = info === null || info === void 0 ? void 0 : info.encounterType) !== null && _info$encounterType2 !== void 0 ? _info$encounterType2 : "",
|
|
43459
43539
|
encounter_Id: (_info$encounterId2 = info === null || info === void 0 ? void 0 : info.encounterId) !== null && _info$encounterId2 !== void 0 ? _info$encounterId2 : "",
|
|
43460
|
-
prescripionType: "",
|
|
43540
|
+
// prescripionType: "",
|
|
43461
43541
|
prescriptionId: "",
|
|
43462
43542
|
PrescriptionDate: 0,
|
|
43463
43543
|
drugType: (_order$drugType = order === null || order === void 0 ? void 0 : order.drugType) !== null && _order$drugType !== void 0 ? _order$drugType : "",
|
|
@@ -43481,7 +43561,7 @@ var makeMedicationData = function makeMedicationData(order, info) {
|
|
|
43481
43561
|
dosageDurationValue: (_order$duration2 = order === null || order === void 0 ? void 0 : order.duration) !== null && _order$duration2 !== void 0 ? _order$duration2 : 0,
|
|
43482
43562
|
dosageDurationUOM: (_order$durationType$_2 = order === null || order === void 0 ? void 0 : (_order$durationType2 = order.durationType) === null || _order$durationType2 === void 0 ? void 0 : _order$durationType2._id) !== null && _order$durationType$_2 !== void 0 ? _order$durationType$_2 : "",
|
|
43483
43563
|
orderdescription: (_order$name2 = order === null || order === void 0 ? void 0 : order.name) !== null && _order$name2 !== void 0 ? _order$name2 : "",
|
|
43484
|
-
occurStartDateTime: (_moment$
|
|
43564
|
+
occurStartDateTime: (_moment$unix3 = moment$1().unix()) !== null && _moment$unix3 !== void 0 ? _moment$unix3 : 0,
|
|
43485
43565
|
occurEndDateTime: 0,
|
|
43486
43566
|
totPresQty: 0,
|
|
43487
43567
|
totPresQtyUOM: "",
|