primarycare-binder 1.1.106 → 1.1.109
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 +92 -55
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8174,8 +8174,11 @@ var queries$b = {
|
|
|
8174
8174
|
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)})}"
|
|
8175
8175
|
},
|
|
8176
8176
|
codablemasterGetPatientname: {
|
|
8177
|
-
query: function query(
|
|
8178
|
-
|
|
8177
|
+
query: function query(_ref2) {
|
|
8178
|
+
var firstName = _ref2.firstName,
|
|
8179
|
+
secondName = _ref2.secondName,
|
|
8180
|
+
thirdName = _ref2.thirdName;
|
|
8181
|
+
return "(LIKE(DOCUMENT(Person.name)[0].text,'%".concat(firstName, "%',true) || LIKE(DOCUMENT(Person.name)[0].given,'%").concat(secondName, "%',true) || LIKE(DOCUMENT(Person.name)[0].family,'%").concat(thirdName, "%',true)) && Person.activestatus == true");
|
|
8179
8182
|
},
|
|
8180
8183
|
returnFields: "{prefix: DOCUMENT(Person.name)[*].prefix,gender: Person.gender,birthDate: Person.birthDay,suffix: DOCUMENT(Person.name)[*].suffix, nameObj: DOCUMENT(Person.name)[*], name: DOCUMENT(Person.name)[*].text, personId: Person.Id,patientDetail: (for pat in Patient FILTER pat.personID == Person.Id RETURN merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{photo:document(pat.photo)})),telecom: Document(Person.telecom),photo:document(Person.photo)}"
|
|
8181
8184
|
},
|
|
@@ -8192,9 +8195,9 @@ var queries$b = {
|
|
|
8192
8195
|
},
|
|
8193
8196
|
returnFields: "DISTINCT {Organization:Organization.name, OrgID:Organization.id}"
|
|
8194
8197
|
},
|
|
8195
|
-
getCodableConceptMaster: function getCodableConceptMaster(
|
|
8196
|
-
var
|
|
8197
|
-
type =
|
|
8198
|
+
getCodableConceptMaster: function getCodableConceptMaster(_ref3) {
|
|
8199
|
+
var _ref3$type = _ref3.type,
|
|
8200
|
+
type = _ref3$type === void 0 ? "" : _ref3$type;
|
|
8198
8201
|
return {
|
|
8199
8202
|
db_name: dbName,
|
|
8200
8203
|
entity: "CodeableConceptMaster",
|
|
@@ -8243,9 +8246,9 @@ var queries$b = {
|
|
|
8243
8246
|
sort: "OrderType.shortdesc asc"
|
|
8244
8247
|
};
|
|
8245
8248
|
},
|
|
8246
|
-
getCaOrderLine: function getCaOrderLine(
|
|
8247
|
-
var
|
|
8248
|
-
id =
|
|
8249
|
+
getCaOrderLine: function getCaOrderLine(_ref4) {
|
|
8250
|
+
var _ref4$id = _ref4.id,
|
|
8251
|
+
id = _ref4$id === void 0 ? 0 : _ref4$id;
|
|
8249
8252
|
return {
|
|
8250
8253
|
db_name: dbName,
|
|
8251
8254
|
entity: "CA_OrderLine",
|
|
@@ -8253,9 +8256,9 @@ var queries$b = {
|
|
|
8253
8256
|
return_fields: "CA_OrderLine"
|
|
8254
8257
|
};
|
|
8255
8258
|
},
|
|
8256
|
-
getOrganization: function getOrganization(
|
|
8257
|
-
var
|
|
8258
|
-
id =
|
|
8259
|
+
getOrganization: function getOrganization(_ref5) {
|
|
8260
|
+
var _ref5$id = _ref5.id,
|
|
8261
|
+
id = _ref5$id === void 0 ? 0 : _ref5$id;
|
|
8259
8262
|
return {
|
|
8260
8263
|
db_name: dbName,
|
|
8261
8264
|
entity: "Organization",
|
|
@@ -8263,9 +8266,9 @@ var queries$b = {
|
|
|
8263
8266
|
return_fields: "{_id:Organization._id,OrgID:Organization.id,name:Organization.name}"
|
|
8264
8267
|
};
|
|
8265
8268
|
},
|
|
8266
|
-
getPractionerRole: function getPractionerRole(
|
|
8267
|
-
var
|
|
8268
|
-
id =
|
|
8269
|
+
getPractionerRole: function getPractionerRole(_ref6) {
|
|
8270
|
+
var _ref6$id = _ref6.id,
|
|
8271
|
+
id = _ref6$id === void 0 ? 0 : _ref6$id;
|
|
8269
8272
|
return {
|
|
8270
8273
|
db_name: dbName,
|
|
8271
8274
|
entity: "PractitionerRole,Organization,Practitioner",
|
|
@@ -8276,9 +8279,9 @@ var queries$b = {
|
|
|
8276
8279
|
return_fields: "DISTINCT MERGE({PractitionerRole:DOCUMENT(PractitionerRole.code)})"
|
|
8277
8280
|
};
|
|
8278
8281
|
},
|
|
8279
|
-
getPractionerName: function getPractionerName(
|
|
8280
|
-
var
|
|
8281
|
-
id =
|
|
8282
|
+
getPractionerName: function getPractionerName(_ref7) {
|
|
8283
|
+
var _ref7$id = _ref7.id,
|
|
8284
|
+
id = _ref7$id === void 0 ? 0 : _ref7$id;
|
|
8282
8285
|
return {
|
|
8283
8286
|
db_name: dbName,
|
|
8284
8287
|
entity: "PractitionerRole,Organization,Practitioner",
|
|
@@ -8289,9 +8292,9 @@ var queries$b = {
|
|
|
8289
8292
|
return_fields: "DISTINCT MERGE({PractitionerName:DOCUMENT(Practitioner.name)})"
|
|
8290
8293
|
};
|
|
8291
8294
|
},
|
|
8292
|
-
getCaDiagnosis: function getCaDiagnosis(
|
|
8293
|
-
var
|
|
8294
|
-
id =
|
|
8295
|
+
getCaDiagnosis: function getCaDiagnosis(_ref8) {
|
|
8296
|
+
var _ref8$id = _ref8.id,
|
|
8297
|
+
id = _ref8$id === void 0 ? 0 : _ref8$id;
|
|
8295
8298
|
return {
|
|
8296
8299
|
db_name: dbName,
|
|
8297
8300
|
entity: "CA_Diagnosis",
|
|
@@ -8299,9 +8302,9 @@ var queries$b = {
|
|
|
8299
8302
|
return_fields: "DOCUMENT(CA_Diagnosis.diagcode)"
|
|
8300
8303
|
};
|
|
8301
8304
|
},
|
|
8302
|
-
upsertCaOrderline: function upsertCaOrderline(
|
|
8303
|
-
var
|
|
8304
|
-
doc =
|
|
8305
|
+
upsertCaOrderline: function upsertCaOrderline(_ref9) {
|
|
8306
|
+
var _ref9$doc = _ref9.doc,
|
|
8307
|
+
doc = _ref9$doc === void 0 ? {} : _ref9$doc;
|
|
8305
8308
|
return [{
|
|
8306
8309
|
db_name: dbName,
|
|
8307
8310
|
entity: "CA_OrderLine",
|
|
@@ -8310,9 +8313,9 @@ var queries$b = {
|
|
|
8310
8313
|
doc: _objectSpread2({}, doc)
|
|
8311
8314
|
}];
|
|
8312
8315
|
},
|
|
8313
|
-
upsertCaOrderApprovalWorkqueue: function upsertCaOrderApprovalWorkqueue(
|
|
8314
|
-
var
|
|
8315
|
-
doc =
|
|
8316
|
+
upsertCaOrderApprovalWorkqueue: function upsertCaOrderApprovalWorkqueue(_ref10) {
|
|
8317
|
+
var _ref10$doc = _ref10.doc,
|
|
8318
|
+
doc = _ref10$doc === void 0 ? {} : _ref10$doc;
|
|
8316
8319
|
return [{
|
|
8317
8320
|
db_name: dbName,
|
|
8318
8321
|
entity: "CA_OrderApprovalWorkqueue",
|
|
@@ -8321,11 +8324,11 @@ var queries$b = {
|
|
|
8321
8324
|
doc: _objectSpread2({}, doc)
|
|
8322
8325
|
}];
|
|
8323
8326
|
},
|
|
8324
|
-
commonUpsertQuery: function commonUpsertQuery(
|
|
8325
|
-
var
|
|
8326
|
-
doc =
|
|
8327
|
-
|
|
8328
|
-
entity =
|
|
8327
|
+
commonUpsertQuery: function commonUpsertQuery(_ref11) {
|
|
8328
|
+
var _ref11$doc = _ref11.doc,
|
|
8329
|
+
doc = _ref11$doc === void 0 ? {} : _ref11$doc,
|
|
8330
|
+
_ref11$entity = _ref11.entity,
|
|
8331
|
+
entity = _ref11$entity === void 0 ? "" : _ref11$entity;
|
|
8329
8332
|
return [{
|
|
8330
8333
|
db_name: dbName,
|
|
8331
8334
|
entity: entity,
|
|
@@ -11844,13 +11847,20 @@ var ALL_APPOINTMENTS = createAsyncThunk("appointmentReducer/allAppointments", /*
|
|
|
11844
11847
|
followUpAppointment: [],
|
|
11845
11848
|
currentVisist: []
|
|
11846
11849
|
};
|
|
11850
|
+
console.clear();
|
|
11847
11851
|
(_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$past_appointm = _data$2.past_appointment) === null || _data$2$past_appointm === void 0 ? void 0 : (_data$2$past_appointm2 = _data$2$past_appointm.forEach) === null || _data$2$past_appointm2 === void 0 ? void 0 : _data$2$past_appointm2.call(_data$2$past_appointm, function (v) {
|
|
11848
11852
|
if (assemble && moment$1(utcTOLocal$1(v === null || v === void 0 ? void 0 : v.start) * 1000).startOf("day").diff(moment$1().startOf("day"), "days") === 0 && (v.comment === "completed_assemble" || v.comment === "onhold_nurse" || v.comment === "completed_nurse" || v.comment === "onhold_doctor")) {
|
|
11849
11853
|
returnData.currentVisist.push(v);
|
|
11850
11854
|
} else {
|
|
11851
|
-
|
|
11855
|
+
console.log(utcTOLocal$1(v.start));
|
|
11856
|
+
var type_ = timeLine_(v.start);
|
|
11857
|
+
console.log(type_); //debugger
|
|
11852
11858
|
|
|
11853
|
-
if (type_ === "
|
|
11859
|
+
if (type_ === "TODAY") {
|
|
11860
|
+
returnData.currentVisist.push(v); // returnData.pastAppointment.push(v);
|
|
11861
|
+
} else if (type_ === "NEXT_WEEK") {
|
|
11862
|
+
returnData.currentVisist.push(v); // returnData.pastAppointment.push(v);
|
|
11863
|
+
} else if (type_ === "THIS_WEEK") {
|
|
11854
11864
|
returnData.pastAppointmentThisWeek.push(v);
|
|
11855
11865
|
returnData.pastAppointment.push(v);
|
|
11856
11866
|
} else if (type_ === "LAST_WEEK") {
|
|
@@ -11897,19 +11907,19 @@ var ALL_APPOINTMENTS = createAsyncThunk("appointmentReducer/allAppointments", /*
|
|
|
11897
11907
|
data: returnData
|
|
11898
11908
|
}));
|
|
11899
11909
|
|
|
11900
|
-
case
|
|
11901
|
-
_context6.prev =
|
|
11910
|
+
case 15:
|
|
11911
|
+
_context6.prev = 15;
|
|
11902
11912
|
_context6.t0 = _context6["catch"](2);
|
|
11903
11913
|
return _context6.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
11904
11914
|
message: _context6.t0.message
|
|
11905
11915
|
})));
|
|
11906
11916
|
|
|
11907
|
-
case
|
|
11917
|
+
case 18:
|
|
11908
11918
|
case "end":
|
|
11909
11919
|
return _context6.stop();
|
|
11910
11920
|
}
|
|
11911
11921
|
}
|
|
11912
|
-
}, _callee6, null, [[2,
|
|
11922
|
+
}, _callee6, null, [[2, 15]]);
|
|
11913
11923
|
}))); // end
|
|
11914
11924
|
// GET__FOLLOW_UP_APPOINTMENT
|
|
11915
11925
|
|
|
@@ -19296,8 +19306,14 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19296
19306
|
var payload,
|
|
19297
19307
|
_ref32,
|
|
19298
19308
|
rejectWithValue,
|
|
19309
|
+
_patientName$split,
|
|
19310
|
+
_patientName$split2,
|
|
19311
|
+
_patientName$split3,
|
|
19299
19312
|
_payload$patientName,
|
|
19300
19313
|
patientName,
|
|
19314
|
+
firstName,
|
|
19315
|
+
secondName,
|
|
19316
|
+
thirdName,
|
|
19301
19317
|
body,
|
|
19302
19318
|
data,
|
|
19303
19319
|
returnData,
|
|
@@ -19311,18 +19327,26 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19311
19327
|
_ref32 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
19312
19328
|
_context16.prev = 2;
|
|
19313
19329
|
_payload$patientName = payload.patientName, patientName = _payload$patientName === void 0 ? "" : _payload$patientName;
|
|
19330
|
+
firstName = (_patientName$split = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 1)) !== null && _patientName$split !== void 0 ? _patientName$split : "";
|
|
19331
|
+
secondName = (_patientName$split2 = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 2)) !== null && _patientName$split2 !== void 0 ? _patientName$split2 : "";
|
|
19332
|
+
thirdName = (_patientName$split3 = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 3)) !== null && _patientName$split3 !== void 0 ? _patientName$split3 : "";
|
|
19333
|
+
debugger;
|
|
19314
19334
|
body = {
|
|
19315
19335
|
db_name: dbName,
|
|
19316
19336
|
entity: "Person",
|
|
19317
|
-
filter: queries$b["codablemasterGetPatientname"].query(
|
|
19337
|
+
filter: queries$b["codablemasterGetPatientname"].query({
|
|
19338
|
+
firstName: firstName,
|
|
19339
|
+
secondName: secondName,
|
|
19340
|
+
thirdName: thirdName
|
|
19341
|
+
}),
|
|
19318
19342
|
return_fields: queries$b["codablemasterGetPatientname"].returnFields
|
|
19319
19343
|
};
|
|
19320
|
-
_context16.next =
|
|
19344
|
+
_context16.next = 11;
|
|
19321
19345
|
return fetchData$3({
|
|
19322
19346
|
body: JSON.stringify(body)
|
|
19323
19347
|
}, __readDocumentUrl__);
|
|
19324
19348
|
|
|
19325
|
-
case
|
|
19349
|
+
case 11:
|
|
19326
19350
|
data = _context16.sent;
|
|
19327
19351
|
returnData = [];
|
|
19328
19352
|
|
|
@@ -19334,19 +19358,19 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19334
19358
|
data: returnData
|
|
19335
19359
|
}));
|
|
19336
19360
|
|
|
19337
|
-
case
|
|
19338
|
-
_context16.prev =
|
|
19361
|
+
case 17:
|
|
19362
|
+
_context16.prev = 17;
|
|
19339
19363
|
_context16.t0 = _context16["catch"](2);
|
|
19340
19364
|
return _context16.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19341
19365
|
message: _context16.t0.message
|
|
19342
19366
|
})));
|
|
19343
19367
|
|
|
19344
|
-
case
|
|
19368
|
+
case 20:
|
|
19345
19369
|
case "end":
|
|
19346
19370
|
return _context16.stop();
|
|
19347
19371
|
}
|
|
19348
19372
|
}
|
|
19349
|
-
}, _callee16, null, [[2,
|
|
19373
|
+
}, _callee16, null, [[2, 17]]);
|
|
19350
19374
|
})));
|
|
19351
19375
|
var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatienttypeid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {
|
|
19352
19376
|
var payload,
|
|
@@ -29061,7 +29085,7 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
29061
29085
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
29062
29086
|
},
|
|
29063
29087
|
dateTime: (_utcTOLocal = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal !== void 0 ? _utcTOLocal : "",
|
|
29064
|
-
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : "",
|
|
29088
|
+
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ? utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceEndDate, "YYYY-MM-DD,hh:mm A") : "",
|
|
29065
29089
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson$2(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
29066
29090
|
recurrent: false,
|
|
29067
29091
|
headerShow: true,
|
|
@@ -31550,7 +31574,18 @@ var LabOrderApiSlice$1 = LabOrderApiSlice.reducer;
|
|
|
31550
31574
|
|
|
31551
31575
|
var queries$5 = {
|
|
31552
31576
|
drugType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugType\",\n \"return_fields\": \"DrugType\"\n }"),
|
|
31553
|
-
drugMaster:
|
|
31577
|
+
// drugMaster: `{
|
|
31578
|
+
// "db_name": "${dbName}",
|
|
31579
|
+
// "entity": "DrugMaster",
|
|
31580
|
+
// "limit":{
|
|
31581
|
+
// "count":100,
|
|
31582
|
+
// "offset":0
|
|
31583
|
+
// },
|
|
31584
|
+
// "return_fields": "MERGE(DrugMaster,{DrugType:DOCUMENT(DrugMaster.DrugType),FormCode:DOCUMENT(DrugMaster.FormCode)})"
|
|
31585
|
+
// }`,
|
|
31586
|
+
drugMaster: function drugMaster(input_text) {
|
|
31587
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugMaster\",\n \"filter\":\"(like(DrugMaster.ShortDesc,'%").concat(input_text, "%',true) || like(DrugMaster.LongDesc,'%").concat(input_text, "%',true) || like(DrugMaster.DrugCode,'%").concat(input_text, "%',true)) && DrugMaster.activestatus==true\",\n \"limit\":{\n \"count\":100,\n \"offset\":0\n },\n \"return_fields\": \"MERGE(DrugMaster,{DrugType:DOCUMENT(DrugMaster.DrugType),FormCode:DOCUMENT(DrugMaster.FormCode)})\"\n }");
|
|
31588
|
+
},
|
|
31554
31589
|
getMedications: function getMedications(id) {
|
|
31555
31590
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"filter\": \"PH_OrderLine.patient_Id=='").concat(id, "'\",\n \"entity\": \"PH_OrderLine\",\n \"return_fields\": \"MERGE(PH_OrderLine, { patient_Id:(FOR pname IN TO_ARRAY(DOCUMENT(PH_OrderLine.patient_Id).name) RETURN MERGE(DOCUMENT(PH_OrderLine.patient_Id), { name:DOCUMENT(pname), telecom:(FOR ptel IN TO_ARRAY(DOCUMENT(PH_OrderLine.patient_Id).telecom) RETURN DOCUMENT(ptel)), martialStatus:(FOR mstatus IN TO_ARRAY(DOCUMENT(PH_OrderLine.patient_Id).martialStatus) RETURN DOCUMENT(mstatus)) } ) ) ,org_Id:MERGE(DOCUMENT(PH_OrderLine.org_Id), { telecom:(FOR otel IN TO_ARRAY(DOCUMENT(PH_OrderLine.org_Id).telecom) RETURN DOCUMENT(otel) ), address:(FOR oadd IN TO_ARRAY(DOCUMENT(PH_OrderLine.org_Id).address) RETURN DOCUMENT(oadd) ) }) ,encounter_Id:DOCUMENT(PH_OrderLine.encounter_Id) ,dosageDurationUOM:DOCUMENT(PH_OrderLine.dosageDurationUOM) ,dosageFreqCode:DOCUMENT(PH_OrderLine.dosageFreqCode) ,dosageUOM:DOCUMENT(PH_OrderLine.dosageUOM) ,drugCode:DOCUMENT(PH_OrderLine.drugCode) ,drugType:DOCUMENT(PH_OrderLine.drugType) , createdby:(FOR hn IN TO_ARRAY(DOCUMENT(PH_OrderLine.createdby).name) RETURN MERGE(DOCUMENT(PH_OrderLine.createdby),{name:DOCUMENT(hn)})) , updatedby:(FOR hn IN TO_ARRAY(DOCUMENT(PH_OrderLine.updatedby).name) RETURN MERGE(DOCUMENT(PH_OrderLine.updatedby),{name:DOCUMENT(hn)})) , statushistory:(FOR sth IN TO_ARRAY(PH_OrderLine.statushistory) RETURN MERGE(sth,{PersonID:(FOR hn IN TO_ARRAY(DOCUMENT(sth.PersonID).name) RETURN MERGE(DOCUMENT(sth.PersonID),{name:DOCUMENT(hn)}))})) } )\"\n }");
|
|
31556
31591
|
},
|
|
@@ -31701,6 +31736,7 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
31701
31736
|
var payload,
|
|
31702
31737
|
_ref4,
|
|
31703
31738
|
rejectWithValue,
|
|
31739
|
+
input_text,
|
|
31704
31740
|
data,
|
|
31705
31741
|
arr,
|
|
31706
31742
|
_args2 = arguments;
|
|
@@ -31712,12 +31748,13 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
31712
31748
|
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
31713
31749
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
31714
31750
|
_context2.prev = 2;
|
|
31715
|
-
|
|
31751
|
+
input_text = payload.input_text;
|
|
31752
|
+
_context2.next = 6;
|
|
31716
31753
|
return fetchData$3({
|
|
31717
|
-
body: queries$5.drugMaster
|
|
31754
|
+
body: queries$5.drugMaster(input_text)
|
|
31718
31755
|
}, __readDocumentUrl__);
|
|
31719
31756
|
|
|
31720
|
-
case
|
|
31757
|
+
case 6:
|
|
31721
31758
|
data = _context2.sent;
|
|
31722
31759
|
arr = [];
|
|
31723
31760
|
data.result.map(function (val) {
|
|
@@ -31747,19 +31784,19 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
31747
31784
|
data: arr
|
|
31748
31785
|
}));
|
|
31749
31786
|
|
|
31750
|
-
case
|
|
31751
|
-
_context2.prev =
|
|
31787
|
+
case 12:
|
|
31788
|
+
_context2.prev = 12;
|
|
31752
31789
|
_context2.t0 = _context2["catch"](2);
|
|
31753
31790
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
31754
31791
|
message: _context2.t0.message
|
|
31755
31792
|
})));
|
|
31756
31793
|
|
|
31757
|
-
case
|
|
31794
|
+
case 15:
|
|
31758
31795
|
case "end":
|
|
31759
31796
|
return _context2.stop();
|
|
31760
31797
|
}
|
|
31761
31798
|
}
|
|
31762
|
-
}, _callee2, null, [[2,
|
|
31799
|
+
}, _callee2, null, [[2, 12]]);
|
|
31763
31800
|
})));
|
|
31764
31801
|
var STRENGTH_MASTER = createAsyncThunk("MedicationMastersSlice/strength_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
31765
31802
|
var payload,
|
|
@@ -34393,7 +34430,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
34393
34430
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
34394
34431
|
},
|
|
34395
34432
|
dateTime: (_utcTOLocal = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal !== void 0 ? _utcTOLocal : "",
|
|
34396
|
-
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : "",
|
|
34433
|
+
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ? utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceEndDate, "YYYY-MM-DD,hh:mm A") : "",
|
|
34397
34434
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson$1(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
34398
34435
|
recurrent: false,
|
|
34399
34436
|
headerShow: true,
|
|
@@ -36315,7 +36352,7 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
36315
36352
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
36316
36353
|
},
|
|
36317
36354
|
dateTime: (_utcTOLocal = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal !== void 0 ? _utcTOLocal : "",
|
|
36318
|
-
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : "",
|
|
36355
|
+
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ? utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceEndDate, "YYYY-MM-DD,hh:mm A") : "",
|
|
36319
36356
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
36320
36357
|
recurrent: false,
|
|
36321
36358
|
headerShow: true,
|