primarycare-binder 1.1.68 → 1.1.72
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 +43 -37
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10338,7 +10338,7 @@ var PATIENT_NATIONALITY_READ = createAsyncThunk("patientReducer/readPatientNatio
|
|
|
10338
10338
|
data = {
|
|
10339
10339
|
db_name: dbName,
|
|
10340
10340
|
entity: "SMGeographicMaster",
|
|
10341
|
-
filter: "lower(document(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true",
|
|
10341
|
+
filter: "lower(document(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.active == true && SMGeographicMaster.activestatus == true",
|
|
10342
10342
|
return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
|
|
10343
10343
|
};
|
|
10344
10344
|
_context6.next = 6;
|
|
@@ -25287,6 +25287,7 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25287
25287
|
defaultValue,
|
|
25288
25288
|
months,
|
|
25289
25289
|
orgid,
|
|
25290
|
+
stateValues,
|
|
25290
25291
|
stateDatakey,
|
|
25291
25292
|
orgData,
|
|
25292
25293
|
component,
|
|
@@ -25301,8 +25302,9 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25301
25302
|
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
25302
25303
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
25303
25304
|
_context4.prev = 2;
|
|
25304
|
-
defaultValue = payload.defaultValue, months = payload.months, orgid = payload.orgid; //
|
|
25305
|
+
defaultValue = payload.defaultValue, months = payload.months, orgid = payload.orgid; //let stateValues = Object.keys(payload.dynamicValue);
|
|
25305
25306
|
|
|
25307
|
+
stateValues = [];
|
|
25306
25308
|
stateDatakey = []; // stateValues.filter((val, i) => {
|
|
25307
25309
|
// if (i % 2 === 0) {
|
|
25308
25310
|
// stateDatakey.push(val);
|
|
@@ -25312,18 +25314,18 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25312
25314
|
stateDatakey = Object.keys(payload.dynamicValue).filter(function (e) {
|
|
25313
25315
|
return /^[A-Z0-9]+$/.exec(e);
|
|
25314
25316
|
});
|
|
25315
|
-
stateValues.filter(function (val, i) {
|
|
25317
|
+
stateValues === null || stateValues === void 0 ? void 0 : stateValues.filter(function (val, i) {
|
|
25316
25318
|
// if (i % 2 === 0) {
|
|
25317
25319
|
if (!(val.endsWith("uom") || val.endsWith("error") || val.endsWith("normalorabnormal"))) {
|
|
25318
25320
|
stateDatakey.push(val);
|
|
25319
25321
|
}
|
|
25320
25322
|
});
|
|
25321
|
-
_context4.next =
|
|
25323
|
+
_context4.next = 10;
|
|
25322
25324
|
return fetchData$3({
|
|
25323
25325
|
body: vitalsQueries.getOrganizationId(payload.orgid)
|
|
25324
25326
|
}, __readDocumentUrl__);
|
|
25325
25327
|
|
|
25326
|
-
case
|
|
25328
|
+
case 10:
|
|
25327
25329
|
orgData = _context4.sent;
|
|
25328
25330
|
component = [];
|
|
25329
25331
|
stateDatakey.map(function (val) {
|
|
@@ -25346,22 +25348,20 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25346
25348
|
encounterid: payload.encounterid,
|
|
25347
25349
|
component: component
|
|
25348
25350
|
};
|
|
25349
|
-
_context4.next =
|
|
25351
|
+
_context4.next = 16;
|
|
25350
25352
|
return fetchData$3({
|
|
25351
25353
|
body: JSON.stringify(vitalsQueries.savedPayload(payloadData, payload.editId))
|
|
25352
25354
|
}, __uspsertUrl__);
|
|
25353
25355
|
|
|
25354
|
-
case
|
|
25356
|
+
case 16:
|
|
25355
25357
|
saveddata = _context4.sent;
|
|
25356
25358
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
25357
25359
|
data: saveddata
|
|
25358
25360
|
}));
|
|
25359
25361
|
|
|
25360
|
-
case
|
|
25361
|
-
_context4.prev =
|
|
25362
|
+
case 20:
|
|
25363
|
+
_context4.prev = 20;
|
|
25362
25364
|
_context4.t0 = _context4["catch"](2);
|
|
25363
|
-
// ;
|
|
25364
|
-
alert(_context4.t0.message);
|
|
25365
25365
|
return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
25366
25366
|
message: _context4.t0.message
|
|
25367
25367
|
})));
|
|
@@ -25371,7 +25371,7 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
|
|
|
25371
25371
|
return _context4.stop();
|
|
25372
25372
|
}
|
|
25373
25373
|
}
|
|
25374
|
-
}, _callee4, null, [[2,
|
|
25374
|
+
}, _callee4, null, [[2, 20]]);
|
|
25375
25375
|
})));
|
|
25376
25376
|
var GET_VITALS_BASED_ENCOUNTER = createAsyncThunk("VitalsApiSlice/vitalsBasedEncounter", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
25377
25377
|
var payload,
|
|
@@ -30701,9 +30701,15 @@ var queries$5 = {
|
|
|
30701
30701
|
DosageForm: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DosageForm\",\n \"return_fields\": \"DosageForm\"\n }"),
|
|
30702
30702
|
FrequencyMaster: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"FrequencyMaster\",\n \"filter\": \"FrequencyMaster.status==true\",\n \"return_fields\": \"FrequencyMaster\"\n }"),
|
|
30703
30703
|
DurationType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\":\"LOWER(DOCUMENT(DrugUOM.UOMType).display) =='time' and DrugUOM.activestatus==true and DrugUOM.status==true\",\n \"return_fields\": \"DrugUOM\"\n }"),
|
|
30704
|
-
Priority:
|
|
30704
|
+
// Priority: `{
|
|
30705
|
+
// "db_name": "${dbName}",
|
|
30706
|
+
// "entity": "CodeableConceptMaster",
|
|
30707
|
+
// "filter": "CodeableConceptMaster.Type=='PRIORITY'",
|
|
30708
|
+
// "return_fields": "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
30709
|
+
// }`,
|
|
30710
|
+
Priority: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type == 'PRIORITY' && CodingMaster.status == true && CodingMaster.activestatus == true\",\n \"return_fields\": \"KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','shortdesc','longdesc','activestatus')\",\n \"sort\": \"CodingMaster.display\"\n }"),
|
|
30705
30711
|
DrugCategory: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugCategory\",\n \"return_fields\": \"DrugCategory\"\n }"),
|
|
30706
|
-
OrderNature: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ORDERNATURE'&& CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
30712
|
+
OrderNature: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ORDERNATURE'&& CodeableConceptMaster.status==true && CodeableConceptMaster.activestatus == true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
30707
30713
|
OrderMode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ORDERMODE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
30708
30714
|
DrugStoreDispLoc: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugStoreDispLoc\",\n \"return_fields\": \"DrugStoreDispLoc\"\n }"),
|
|
30709
30715
|
DiagnosisAgainstEncounter: function DiagnosisAgainstEncounter(encounterId) {
|
|
@@ -31465,13 +31471,13 @@ var PRIORITY_MASTER = createAsyncThunk("MedicationMastersSlice/Priority_masters"
|
|
|
31465
31471
|
data = _context14.sent;
|
|
31466
31472
|
arr = [];
|
|
31467
31473
|
data.result.map(function (val) {
|
|
31468
|
-
var _val$
|
|
31474
|
+
var _val$_id, _val$_id2, _val$display, _val$id;
|
|
31469
31475
|
|
|
31470
31476
|
arr.push({
|
|
31471
|
-
value: val._id,
|
|
31472
|
-
masterId: (_val$
|
|
31473
|
-
label: (_val$
|
|
31474
|
-
id: val.id
|
|
31477
|
+
value: (_val$_id = val._id) !== null && _val$_id !== void 0 ? _val$_id : "",
|
|
31478
|
+
masterId: (_val$_id2 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id2 !== void 0 ? _val$_id2 : "",
|
|
31479
|
+
label: (_val$display = val === null || val === void 0 ? void 0 : val.display) !== null && _val$display !== void 0 ? _val$display : "",
|
|
31480
|
+
id: (_val$id = val.id) !== null && _val$id !== void 0 ? _val$id : ""
|
|
31475
31481
|
});
|
|
31476
31482
|
});
|
|
31477
31483
|
return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -31566,11 +31572,11 @@ var ORDERNATURE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderNature_ma
|
|
|
31566
31572
|
data = _context16.sent;
|
|
31567
31573
|
arr = [];
|
|
31568
31574
|
data.result.map(function (val) {
|
|
31569
|
-
var _val$coding$0$
|
|
31575
|
+
var _val$coding$0$display, _val$coding2;
|
|
31570
31576
|
|
|
31571
31577
|
arr.push({
|
|
31572
31578
|
value: val._id,
|
|
31573
|
-
label: (_val$coding$0$
|
|
31579
|
+
label: (_val$coding$0$display = (_val$coding2 = val.coding) === null || _val$coding2 === void 0 ? void 0 : _val$coding2[0].display) !== null && _val$coding$0$display !== void 0 ? _val$coding$0$display : "",
|
|
31574
31580
|
id: val.id
|
|
31575
31581
|
});
|
|
31576
31582
|
});
|
|
@@ -31616,11 +31622,11 @@ var ORDERMODE_MASTER = createAsyncThunk("MedicationMastersSlice/OrderMode_master
|
|
|
31616
31622
|
data = _context17.sent;
|
|
31617
31623
|
arr = [];
|
|
31618
31624
|
data.result.map(function (val) {
|
|
31619
|
-
var _val$coding$0$
|
|
31625
|
+
var _val$coding$0$display2, _val$coding3;
|
|
31620
31626
|
|
|
31621
31627
|
arr.push({
|
|
31622
31628
|
value: val._id,
|
|
31623
|
-
label: (_val$coding$0$
|
|
31629
|
+
label: (_val$coding$0$display2 = (_val$coding3 = val.coding) === null || _val$coding3 === void 0 ? void 0 : _val$coding3[0].display) !== null && _val$coding$0$display2 !== void 0 ? _val$coding$0$display2 : "",
|
|
31624
31630
|
id: val.id
|
|
31625
31631
|
});
|
|
31626
31632
|
});
|
|
@@ -31766,11 +31772,11 @@ var REASONCODE_MASTER = createAsyncThunk("MedicationMastersSlice/Reasoncode_mast
|
|
|
31766
31772
|
data = _context20.sent;
|
|
31767
31773
|
arr = [];
|
|
31768
31774
|
data.result.map(function (val) {
|
|
31769
|
-
var _val$
|
|
31775
|
+
var _val$display2;
|
|
31770
31776
|
|
|
31771
31777
|
arr.push({
|
|
31772
31778
|
value: val._id,
|
|
31773
|
-
label: (_val$
|
|
31779
|
+
label: (_val$display2 = val.display) !== null && _val$display2 !== void 0 ? _val$display2 : "",
|
|
31774
31780
|
id: val.id
|
|
31775
31781
|
});
|
|
31776
31782
|
});
|
|
@@ -31866,12 +31872,12 @@ var PATIENT_INSTRUCTIONS_MASTER = createAsyncThunk("MedicationMastersSlice/Patie
|
|
|
31866
31872
|
data = _context22.sent;
|
|
31867
31873
|
arr = [];
|
|
31868
31874
|
data.result.map(function (val) {
|
|
31869
|
-
var _val$coding$0$code, _val$
|
|
31875
|
+
var _val$coding$0$code, _val$coding4, _val$coding4$, _val$coding$0$display3, _val$coding5, _val$coding5$;
|
|
31870
31876
|
|
|
31871
31877
|
arr.push({
|
|
31872
31878
|
value: val._id,
|
|
31873
|
-
label: (_val$coding$0$code = (_val$
|
|
31874
|
-
display: (_val$coding$0$
|
|
31879
|
+
label: (_val$coding$0$code = (_val$coding4 = val.coding) === null || _val$coding4 === void 0 ? void 0 : (_val$coding4$ = _val$coding4[0]) === null || _val$coding4$ === void 0 ? void 0 : _val$coding4$.code) !== null && _val$coding$0$code !== void 0 ? _val$coding$0$code : "",
|
|
31880
|
+
display: (_val$coding$0$display3 = (_val$coding5 = val.coding) === null || _val$coding5 === void 0 ? void 0 : (_val$coding5$ = _val$coding5[0]) === null || _val$coding5$ === void 0 ? void 0 : _val$coding5$.display) !== null && _val$coding$0$display3 !== void 0 ? _val$coding$0$display3 : "",
|
|
31875
31881
|
id: val.id
|
|
31876
31882
|
});
|
|
31877
31883
|
});
|
|
@@ -31917,13 +31923,13 @@ var STATUS_MASTER = createAsyncThunk("MedicationMastersSlice/status_masters", /*
|
|
|
31917
31923
|
data = _context23.sent;
|
|
31918
31924
|
arr = [];
|
|
31919
31925
|
data.result.map(function (val) {
|
|
31920
|
-
var _val$coding$0$
|
|
31926
|
+
var _val$coding$0$display4, _val$coding6, _val$coding6$, _val$coding$0$code2, _val$coding7, _val$coding7$;
|
|
31921
31927
|
|
|
31922
31928
|
arr.push({
|
|
31923
31929
|
value: val._id,
|
|
31924
|
-
label: (_val$coding$0$
|
|
31930
|
+
label: (_val$coding$0$display4 = (_val$coding6 = val.coding) === null || _val$coding6 === void 0 ? void 0 : (_val$coding6$ = _val$coding6[0]) === null || _val$coding6$ === void 0 ? void 0 : _val$coding6$.display) !== null && _val$coding$0$display4 !== void 0 ? _val$coding$0$display4 : "",
|
|
31925
31931
|
id: val.id,
|
|
31926
|
-
code: (_val$coding$0$code2 = val === null || val === void 0 ? void 0 : (_val$
|
|
31932
|
+
code: (_val$coding$0$code2 = val === null || val === void 0 ? void 0 : (_val$coding7 = val.coding) === null || _val$coding7 === void 0 ? void 0 : (_val$coding7$ = _val$coding7[0]) === null || _val$coding7$ === void 0 ? void 0 : _val$coding7$.code) !== null && _val$coding$0$code2 !== void 0 ? _val$coding$0$code2 : ""
|
|
31927
31933
|
});
|
|
31928
31934
|
});
|
|
31929
31935
|
return _context23.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -32306,13 +32312,13 @@ var WORKFLOW_STATUS_MASTER = createAsyncThunk("MedicationMastersSlice/workflow_s
|
|
|
32306
32312
|
data = _context31.sent;
|
|
32307
32313
|
arr = [];
|
|
32308
32314
|
data.result.map(function (val) {
|
|
32309
|
-
var _val$coding$0$
|
|
32315
|
+
var _val$coding$0$display5, _val$coding8, _val$coding8$, _val$coding$0$code3, _val$coding9, _val$coding9$;
|
|
32310
32316
|
|
|
32311
32317
|
arr.push({
|
|
32312
32318
|
value: val._id,
|
|
32313
|
-
label: (_val$coding$0$
|
|
32319
|
+
label: (_val$coding$0$display5 = (_val$coding8 = val.coding) === null || _val$coding8 === void 0 ? void 0 : (_val$coding8$ = _val$coding8[0]) === null || _val$coding8$ === void 0 ? void 0 : _val$coding8$.display) !== null && _val$coding$0$display5 !== void 0 ? _val$coding$0$display5 : "",
|
|
32314
32320
|
id: val.id,
|
|
32315
|
-
code: (_val$coding$0$code3 = val === null || val === void 0 ? void 0 : (_val$
|
|
32321
|
+
code: (_val$coding$0$code3 = val === null || val === void 0 ? void 0 : (_val$coding9 = val.coding) === null || _val$coding9 === void 0 ? void 0 : (_val$coding9$ = _val$coding9[0]) === null || _val$coding9$ === void 0 ? void 0 : _val$coding9$.code) !== null && _val$coding$0$code3 !== void 0 ? _val$coding$0$code3 : ""
|
|
32316
32322
|
});
|
|
32317
32323
|
});
|
|
32318
32324
|
return _context31.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42149,7 +42155,7 @@ var queryObj = {
|
|
|
42149
42155
|
db_name: dbName,
|
|
42150
42156
|
entity: "SMGeographicMaster",
|
|
42151
42157
|
sort: "SMGeographicMaster.geogLevelName",
|
|
42152
|
-
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='city' && SMGeographicMaster.activestatus == true",
|
|
42158
|
+
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='city' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true",
|
|
42153
42159
|
return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode,geogLevelCode:SMGeographicMaster.geogLevelCode}"
|
|
42154
42160
|
};
|
|
42155
42161
|
},
|
|
@@ -42158,7 +42164,7 @@ var queryObj = {
|
|
|
42158
42164
|
db_name: dbName,
|
|
42159
42165
|
entity: "SMGeographicMaster",
|
|
42160
42166
|
sort: "SMGeographicMaster.geogLevelName",
|
|
42161
|
-
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='district' && SMGeographicMaster._id=='".concat(val, "' && SMGeographicMaster.activestatus == true"),
|
|
42167
|
+
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='district' && SMGeographicMaster._id=='".concat(val, "' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true"),
|
|
42162
42168
|
return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
|
|
42163
42169
|
};
|
|
42164
42170
|
},
|
|
@@ -42167,7 +42173,7 @@ var queryObj = {
|
|
|
42167
42173
|
db_name: dbName,
|
|
42168
42174
|
entity: "SMGeographicMaster",
|
|
42169
42175
|
sort: "SMGeographicMaster.geogLevelName",
|
|
42170
|
-
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='state' && SMGeographicMaster._id=='".concat(val, "' && SMGeographicMaster.activestatus == true"),
|
|
42176
|
+
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='state' && SMGeographicMaster._id=='".concat(val, "' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true"),
|
|
42171
42177
|
return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}"
|
|
42172
42178
|
};
|
|
42173
42179
|
},
|