primarycare-binder 1.1.107 → 1.1.110
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 +106 -53
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8174,10 +8174,14 @@ 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
|
-
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)}"
|
|
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)}",
|
|
8184
|
+
"{prefix: document(DOCUMENT(Person.name)[*].prefix),gender: Person.gender,birthDate: Person.birthDay,suffix: document(DOCUMENT(Person.name)[*].suffix), nameObj:(for HumanNameMaster in HumanNameMaster filter HumanNameMaster._id in Person.name && HumanNameMaster.activestatus==true return merge(HumanNameMaster,{prefix:document(HumanNameMaster.prefix)},{suffix:document(HumanNameMaster.suffix)},{period:document(HumanNameMaster.period)},{use:document(HumanNameMaster.use)}) ) , 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
8185
|
},
|
|
8182
8186
|
specialityAgainstPractitioner: {
|
|
8183
8187
|
query: function query() {
|
|
@@ -8192,9 +8196,9 @@ var queries$b = {
|
|
|
8192
8196
|
},
|
|
8193
8197
|
returnFields: "DISTINCT {Organization:Organization.name, OrgID:Organization.id}"
|
|
8194
8198
|
},
|
|
8195
|
-
getCodableConceptMaster: function getCodableConceptMaster(
|
|
8196
|
-
var
|
|
8197
|
-
type =
|
|
8199
|
+
getCodableConceptMaster: function getCodableConceptMaster(_ref3) {
|
|
8200
|
+
var _ref3$type = _ref3.type,
|
|
8201
|
+
type = _ref3$type === void 0 ? "" : _ref3$type;
|
|
8198
8202
|
return {
|
|
8199
8203
|
db_name: dbName,
|
|
8200
8204
|
entity: "CodeableConceptMaster",
|
|
@@ -8243,9 +8247,9 @@ var queries$b = {
|
|
|
8243
8247
|
sort: "OrderType.shortdesc asc"
|
|
8244
8248
|
};
|
|
8245
8249
|
},
|
|
8246
|
-
getCaOrderLine: function getCaOrderLine(
|
|
8247
|
-
var
|
|
8248
|
-
id =
|
|
8250
|
+
getCaOrderLine: function getCaOrderLine(_ref4) {
|
|
8251
|
+
var _ref4$id = _ref4.id,
|
|
8252
|
+
id = _ref4$id === void 0 ? 0 : _ref4$id;
|
|
8249
8253
|
return {
|
|
8250
8254
|
db_name: dbName,
|
|
8251
8255
|
entity: "CA_OrderLine",
|
|
@@ -8253,9 +8257,9 @@ var queries$b = {
|
|
|
8253
8257
|
return_fields: "CA_OrderLine"
|
|
8254
8258
|
};
|
|
8255
8259
|
},
|
|
8256
|
-
getOrganization: function getOrganization(
|
|
8257
|
-
var
|
|
8258
|
-
id =
|
|
8260
|
+
getOrganization: function getOrganization(_ref5) {
|
|
8261
|
+
var _ref5$id = _ref5.id,
|
|
8262
|
+
id = _ref5$id === void 0 ? 0 : _ref5$id;
|
|
8259
8263
|
return {
|
|
8260
8264
|
db_name: dbName,
|
|
8261
8265
|
entity: "Organization",
|
|
@@ -8263,9 +8267,9 @@ var queries$b = {
|
|
|
8263
8267
|
return_fields: "{_id:Organization._id,OrgID:Organization.id,name:Organization.name}"
|
|
8264
8268
|
};
|
|
8265
8269
|
},
|
|
8266
|
-
getPractionerRole: function getPractionerRole(
|
|
8267
|
-
var
|
|
8268
|
-
id =
|
|
8270
|
+
getPractionerRole: function getPractionerRole(_ref6) {
|
|
8271
|
+
var _ref6$id = _ref6.id,
|
|
8272
|
+
id = _ref6$id === void 0 ? 0 : _ref6$id;
|
|
8269
8273
|
return {
|
|
8270
8274
|
db_name: dbName,
|
|
8271
8275
|
entity: "PractitionerRole,Organization,Practitioner",
|
|
@@ -8276,9 +8280,9 @@ var queries$b = {
|
|
|
8276
8280
|
return_fields: "DISTINCT MERGE({PractitionerRole:DOCUMENT(PractitionerRole.code)})"
|
|
8277
8281
|
};
|
|
8278
8282
|
},
|
|
8279
|
-
getPractionerName: function getPractionerName(
|
|
8280
|
-
var
|
|
8281
|
-
id =
|
|
8283
|
+
getPractionerName: function getPractionerName(_ref7) {
|
|
8284
|
+
var _ref7$id = _ref7.id,
|
|
8285
|
+
id = _ref7$id === void 0 ? 0 : _ref7$id;
|
|
8282
8286
|
return {
|
|
8283
8287
|
db_name: dbName,
|
|
8284
8288
|
entity: "PractitionerRole,Organization,Practitioner",
|
|
@@ -8289,9 +8293,9 @@ var queries$b = {
|
|
|
8289
8293
|
return_fields: "DISTINCT MERGE({PractitionerName:DOCUMENT(Practitioner.name)})"
|
|
8290
8294
|
};
|
|
8291
8295
|
},
|
|
8292
|
-
getCaDiagnosis: function getCaDiagnosis(
|
|
8293
|
-
var
|
|
8294
|
-
id =
|
|
8296
|
+
getCaDiagnosis: function getCaDiagnosis(_ref8) {
|
|
8297
|
+
var _ref8$id = _ref8.id,
|
|
8298
|
+
id = _ref8$id === void 0 ? 0 : _ref8$id;
|
|
8295
8299
|
return {
|
|
8296
8300
|
db_name: dbName,
|
|
8297
8301
|
entity: "CA_Diagnosis",
|
|
@@ -8299,9 +8303,9 @@ var queries$b = {
|
|
|
8299
8303
|
return_fields: "DOCUMENT(CA_Diagnosis.diagcode)"
|
|
8300
8304
|
};
|
|
8301
8305
|
},
|
|
8302
|
-
upsertCaOrderline: function upsertCaOrderline(
|
|
8303
|
-
var
|
|
8304
|
-
doc =
|
|
8306
|
+
upsertCaOrderline: function upsertCaOrderline(_ref9) {
|
|
8307
|
+
var _ref9$doc = _ref9.doc,
|
|
8308
|
+
doc = _ref9$doc === void 0 ? {} : _ref9$doc;
|
|
8305
8309
|
return [{
|
|
8306
8310
|
db_name: dbName,
|
|
8307
8311
|
entity: "CA_OrderLine",
|
|
@@ -8310,9 +8314,9 @@ var queries$b = {
|
|
|
8310
8314
|
doc: _objectSpread2({}, doc)
|
|
8311
8315
|
}];
|
|
8312
8316
|
},
|
|
8313
|
-
upsertCaOrderApprovalWorkqueue: function upsertCaOrderApprovalWorkqueue(
|
|
8314
|
-
var
|
|
8315
|
-
doc =
|
|
8317
|
+
upsertCaOrderApprovalWorkqueue: function upsertCaOrderApprovalWorkqueue(_ref10) {
|
|
8318
|
+
var _ref10$doc = _ref10.doc,
|
|
8319
|
+
doc = _ref10$doc === void 0 ? {} : _ref10$doc;
|
|
8316
8320
|
return [{
|
|
8317
8321
|
db_name: dbName,
|
|
8318
8322
|
entity: "CA_OrderApprovalWorkqueue",
|
|
@@ -8321,11 +8325,11 @@ var queries$b = {
|
|
|
8321
8325
|
doc: _objectSpread2({}, doc)
|
|
8322
8326
|
}];
|
|
8323
8327
|
},
|
|
8324
|
-
commonUpsertQuery: function commonUpsertQuery(
|
|
8325
|
-
var
|
|
8326
|
-
doc =
|
|
8327
|
-
|
|
8328
|
-
entity =
|
|
8328
|
+
commonUpsertQuery: function commonUpsertQuery(_ref11) {
|
|
8329
|
+
var _ref11$doc = _ref11.doc,
|
|
8330
|
+
doc = _ref11$doc === void 0 ? {} : _ref11$doc,
|
|
8331
|
+
_ref11$entity = _ref11.entity,
|
|
8332
|
+
entity = _ref11$entity === void 0 ? "" : _ref11$entity;
|
|
8329
8333
|
return [{
|
|
8330
8334
|
db_name: dbName,
|
|
8331
8335
|
entity: entity,
|
|
@@ -11844,13 +11848,35 @@ var ALL_APPOINTMENTS = createAsyncThunk("appointmentReducer/allAppointments", /*
|
|
|
11844
11848
|
followUpAppointment: [],
|
|
11845
11849
|
currentVisist: []
|
|
11846
11850
|
};
|
|
11851
|
+
console.clear();
|
|
11847
11852
|
(_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
11853
|
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
11854
|
returnData.currentVisist.push(v);
|
|
11850
11855
|
} else {
|
|
11851
|
-
|
|
11856
|
+
console.log(utcTOLocal$1(v.start));
|
|
11857
|
+
var type_ = timeLine_(v.start);
|
|
11858
|
+
console.log("type_", type_); //debugger
|
|
11852
11859
|
|
|
11853
|
-
if (type_ === "
|
|
11860
|
+
if (type_ === "TODAY" && v.appstatus === "cancelled") {
|
|
11861
|
+
returnData.pastAppointmentThisWeek.push(v);
|
|
11862
|
+
returnData.pastAppointment.push(v);
|
|
11863
|
+
} else if (type_ === "THIS_WEEK" && v.appstatus === "cancelled") {
|
|
11864
|
+
returnData.pastAppointmentThisWeek.push(v);
|
|
11865
|
+
returnData.pastAppointment.push(v);
|
|
11866
|
+
} else if (type_ === "LAST_WEEK" && v.appstatus === "cancelled") {
|
|
11867
|
+
returnData.pastAppointmentLastWeek.push(v);
|
|
11868
|
+
returnData.pastAppointment.push(v);
|
|
11869
|
+
} else if (type_ === "THIS_MONTH" && v.appstatus === "cancelled") {
|
|
11870
|
+
returnData.pastAppointmentThisMonth.push(v);
|
|
11871
|
+
returnData.pastAppointment.push(v);
|
|
11872
|
+
} else if (type_ === "LAST_MONTH" && v.appstatus === "cancelled") {
|
|
11873
|
+
returnData.pastAppointmentLastMonth.push(v);
|
|
11874
|
+
returnData.pastAppointment.push(v);
|
|
11875
|
+
} else if (type_ === "TODAY") {
|
|
11876
|
+
returnData.currentVisist.push(v);
|
|
11877
|
+
} else if (type_ === "NEXT_WEEK") {
|
|
11878
|
+
returnData.currentVisist.push(v); // returnData.pastAppointment.push(v);
|
|
11879
|
+
} else if (type_ === "THIS_WEEK") {
|
|
11854
11880
|
returnData.pastAppointmentThisWeek.push(v);
|
|
11855
11881
|
returnData.pastAppointment.push(v);
|
|
11856
11882
|
} else if (type_ === "LAST_WEEK") {
|
|
@@ -11897,19 +11923,19 @@ var ALL_APPOINTMENTS = createAsyncThunk("appointmentReducer/allAppointments", /*
|
|
|
11897
11923
|
data: returnData
|
|
11898
11924
|
}));
|
|
11899
11925
|
|
|
11900
|
-
case
|
|
11901
|
-
_context6.prev =
|
|
11926
|
+
case 15:
|
|
11927
|
+
_context6.prev = 15;
|
|
11902
11928
|
_context6.t0 = _context6["catch"](2);
|
|
11903
11929
|
return _context6.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
11904
11930
|
message: _context6.t0.message
|
|
11905
11931
|
})));
|
|
11906
11932
|
|
|
11907
|
-
case
|
|
11933
|
+
case 18:
|
|
11908
11934
|
case "end":
|
|
11909
11935
|
return _context6.stop();
|
|
11910
11936
|
}
|
|
11911
11937
|
}
|
|
11912
|
-
}, _callee6, null, [[2,
|
|
11938
|
+
}, _callee6, null, [[2, 15]]);
|
|
11913
11939
|
}))); // end
|
|
11914
11940
|
// GET__FOLLOW_UP_APPOINTMENT
|
|
11915
11941
|
|
|
@@ -19296,8 +19322,14 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19296
19322
|
var payload,
|
|
19297
19323
|
_ref32,
|
|
19298
19324
|
rejectWithValue,
|
|
19325
|
+
_patientName$split,
|
|
19326
|
+
_patientName$split2,
|
|
19327
|
+
_patientName$split3,
|
|
19299
19328
|
_payload$patientName,
|
|
19300
19329
|
patientName,
|
|
19330
|
+
firstName,
|
|
19331
|
+
secondName,
|
|
19332
|
+
thirdName,
|
|
19301
19333
|
body,
|
|
19302
19334
|
data,
|
|
19303
19335
|
returnData,
|
|
@@ -19311,18 +19343,26 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19311
19343
|
_ref32 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
19312
19344
|
_context16.prev = 2;
|
|
19313
19345
|
_payload$patientName = payload.patientName, patientName = _payload$patientName === void 0 ? "" : _payload$patientName;
|
|
19346
|
+
firstName = (_patientName$split = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 1)) !== null && _patientName$split !== void 0 ? _patientName$split : "";
|
|
19347
|
+
secondName = (_patientName$split2 = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 2)) !== null && _patientName$split2 !== void 0 ? _patientName$split2 : "";
|
|
19348
|
+
thirdName = (_patientName$split3 = patientName === null || patientName === void 0 ? void 0 : patientName.split(" ", 3)) !== null && _patientName$split3 !== void 0 ? _patientName$split3 : "";
|
|
19349
|
+
debugger;
|
|
19314
19350
|
body = {
|
|
19315
19351
|
db_name: dbName,
|
|
19316
19352
|
entity: "Person",
|
|
19317
|
-
filter: queries$b["codablemasterGetPatientname"].query(
|
|
19353
|
+
filter: queries$b["codablemasterGetPatientname"].query({
|
|
19354
|
+
firstName: firstName,
|
|
19355
|
+
secondName: secondName,
|
|
19356
|
+
thirdName: thirdName
|
|
19357
|
+
}),
|
|
19318
19358
|
return_fields: queries$b["codablemasterGetPatientname"].returnFields
|
|
19319
19359
|
};
|
|
19320
|
-
_context16.next =
|
|
19360
|
+
_context16.next = 11;
|
|
19321
19361
|
return fetchData$3({
|
|
19322
19362
|
body: JSON.stringify(body)
|
|
19323
19363
|
}, __readDocumentUrl__);
|
|
19324
19364
|
|
|
19325
|
-
case
|
|
19365
|
+
case 11:
|
|
19326
19366
|
data = _context16.sent;
|
|
19327
19367
|
returnData = [];
|
|
19328
19368
|
|
|
@@ -19334,19 +19374,19 @@ var GET_PATIENT_NAME = createAsyncThunk("OrganizationRegisterPatientApiSlice/get
|
|
|
19334
19374
|
data: returnData
|
|
19335
19375
|
}));
|
|
19336
19376
|
|
|
19337
|
-
case
|
|
19338
|
-
_context16.prev =
|
|
19377
|
+
case 17:
|
|
19378
|
+
_context16.prev = 17;
|
|
19339
19379
|
_context16.t0 = _context16["catch"](2);
|
|
19340
19380
|
return _context16.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19341
19381
|
message: _context16.t0.message
|
|
19342
19382
|
})));
|
|
19343
19383
|
|
|
19344
|
-
case
|
|
19384
|
+
case 20:
|
|
19345
19385
|
case "end":
|
|
19346
19386
|
return _context16.stop();
|
|
19347
19387
|
}
|
|
19348
19388
|
}
|
|
19349
|
-
}, _callee16, null, [[2,
|
|
19389
|
+
}, _callee16, null, [[2, 17]]);
|
|
19350
19390
|
})));
|
|
19351
19391
|
var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/getpatienttypeid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {
|
|
19352
19392
|
var payload,
|
|
@@ -31550,7 +31590,18 @@ var LabOrderApiSlice$1 = LabOrderApiSlice.reducer;
|
|
|
31550
31590
|
|
|
31551
31591
|
var queries$5 = {
|
|
31552
31592
|
drugType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugType\",\n \"return_fields\": \"DrugType\"\n }"),
|
|
31553
|
-
drugMaster:
|
|
31593
|
+
// drugMaster: `{
|
|
31594
|
+
// "db_name": "${dbName}",
|
|
31595
|
+
// "entity": "DrugMaster",
|
|
31596
|
+
// "limit":{
|
|
31597
|
+
// "count":100,
|
|
31598
|
+
// "offset":0
|
|
31599
|
+
// },
|
|
31600
|
+
// "return_fields": "MERGE(DrugMaster,{DrugType:DOCUMENT(DrugMaster.DrugType),FormCode:DOCUMENT(DrugMaster.FormCode)})"
|
|
31601
|
+
// }`,
|
|
31602
|
+
drugMaster: function drugMaster(input_text) {
|
|
31603
|
+
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 }");
|
|
31604
|
+
},
|
|
31554
31605
|
getMedications: function getMedications(id) {
|
|
31555
31606
|
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
31607
|
},
|
|
@@ -31701,6 +31752,7 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
31701
31752
|
var payload,
|
|
31702
31753
|
_ref4,
|
|
31703
31754
|
rejectWithValue,
|
|
31755
|
+
input_text,
|
|
31704
31756
|
data,
|
|
31705
31757
|
arr,
|
|
31706
31758
|
_args2 = arguments;
|
|
@@ -31712,12 +31764,13 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
31712
31764
|
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
31713
31765
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
31714
31766
|
_context2.prev = 2;
|
|
31715
|
-
|
|
31767
|
+
input_text = payload.input_text;
|
|
31768
|
+
_context2.next = 6;
|
|
31716
31769
|
return fetchData$3({
|
|
31717
|
-
body: queries$5.drugMaster
|
|
31770
|
+
body: queries$5.drugMaster(input_text)
|
|
31718
31771
|
}, __readDocumentUrl__);
|
|
31719
31772
|
|
|
31720
|
-
case
|
|
31773
|
+
case 6:
|
|
31721
31774
|
data = _context2.sent;
|
|
31722
31775
|
arr = [];
|
|
31723
31776
|
data.result.map(function (val) {
|
|
@@ -31747,19 +31800,19 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
31747
31800
|
data: arr
|
|
31748
31801
|
}));
|
|
31749
31802
|
|
|
31750
|
-
case
|
|
31751
|
-
_context2.prev =
|
|
31803
|
+
case 12:
|
|
31804
|
+
_context2.prev = 12;
|
|
31752
31805
|
_context2.t0 = _context2["catch"](2);
|
|
31753
31806
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
31754
31807
|
message: _context2.t0.message
|
|
31755
31808
|
})));
|
|
31756
31809
|
|
|
31757
|
-
case
|
|
31810
|
+
case 15:
|
|
31758
31811
|
case "end":
|
|
31759
31812
|
return _context2.stop();
|
|
31760
31813
|
}
|
|
31761
31814
|
}
|
|
31762
|
-
}, _callee2, null, [[2,
|
|
31815
|
+
}, _callee2, null, [[2, 12]]);
|
|
31763
31816
|
})));
|
|
31764
31817
|
var STRENGTH_MASTER = createAsyncThunk("MedicationMastersSlice/strength_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
31765
31818
|
var payload,
|