primary_care_admin_binder 0.1.57 → 0.1.58
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 +25 -20
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -12374,13 +12374,15 @@ var queries$m = {
|
|
|
12374
12374
|
// "LocationMaster,LocationMaster_CodeableConceptMaster_E,CodeableConceptMaster_CodingMaster_E,LocationMaster_LocationRoleType_E,LocationMaster_Organization_E,Organization_CodeableConceptMaster_E,LocationMaster_ContactPointMaster_E,LocationMaster_AddressMaster_E,LocationMaster_AttachmentMaster_E",
|
|
12375
12375
|
// filter: "LocationMaster.activestatus==true",
|
|
12376
12376
|
// isTraversal: "true",
|
|
12377
|
-
// sort: "LocationMaster.createddate",
|
|
12377
|
+
// sort: "LocationMaster.createddate",
|
|
12378
12378
|
// return_fields: "{vertices:v,orginatedata:LocationMaster}",
|
|
12379
12379
|
// };
|
|
12380
12380
|
return {
|
|
12381
12381
|
db_name: dbName$1,
|
|
12382
12382
|
entity: "LocationMaster",
|
|
12383
|
-
|
|
12383
|
+
filter: "LocationMaster.activestatus==true",
|
|
12384
|
+
return_fields: "merge(keep(LocationMaster,'locationID','_key','_id','id','activestatus','status','longdesc','shortdesc'),{locationType:(for cod in document(to_array(LocationMaster.locationType)) return merge(cod,{coding:document(cod.coding)}))})" // return_fields: "merge(LocationMaster,{operationalStatus:(for ops in CodeableConceptMaster filter ops._id==LocationMaster.operationalStatus return merge(ops,{coding:document(ops.coding)}))},{managingOrgEntityType:(for moe in CodeableConceptMaster filter moe._id==LocationMaster.managingOrgEntityType return merge(moe,{coding:document(moe.coding)}))}, {parentLocationID_desc:document(to_array(LocationMaster.parentLocationID_desc))},{address:document(LocationMaster.address)},{locationType:(for lt in CodeableConceptMaster filter lt._id==LocationMaster.locationType return (merge(lt,{coding:document(lt.coding)})))},{managingOrgID:document(to_array(LocationMaster.managingOrgID))},{locationRoletype:document(to_array(LocationMaster.locationRoletype))},{specialty:document(to_array(LocationMaster.specialty))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in LocationMaster.pharmacy return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
|
|
12385
|
+
|
|
12384
12386
|
};
|
|
12385
12387
|
},
|
|
12386
12388
|
locationlistupsert: function locationlistupsert(data) {
|
|
@@ -12717,19 +12719,21 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12717
12719
|
|
|
12718
12720
|
case 6:
|
|
12719
12721
|
data = _context.sent;
|
|
12722
|
+
debugger;
|
|
12720
12723
|
arry = [];
|
|
12721
|
-
|
|
12724
|
+
console.log("data", data.result);
|
|
12725
|
+
_context.next = 12;
|
|
12722
12726
|
return data.result.map(function (val) {
|
|
12723
12727
|
if (val.locationID) {
|
|
12724
|
-
var _val$locationType, _val$locationType$, _val$
|
|
12728
|
+
var _val$locationType, _val$locationType$, _val$locationType2, _val$locationType2$, _val$locationType2$$c, _val$locationType2$$c2, _val$locationType3, _val$locationType3$, _val$locationType4, _val$locationType4$, _val$locationType4$$c, _val$locationType4$$c2, _val$locationType5, _val$locationType5$, _val$locationType5$$c, _val$locationType5$$c2, _val$locationType6, _val$locationType6$, _val$locationType6$$c, _val$locationType6$$c2, _val$locationType7, _val$locationType7$, _val$locationType7$$c, _val$locationType7$$c2, _val$locationType8, _val$locationType8$, _val$locationType8$$c, _val$locationType8$$c2;
|
|
12725
12729
|
|
|
12726
12730
|
arry.push({
|
|
12727
12731
|
location_id: val.locationID,
|
|
12728
|
-
location_type: ((_val$locationType = val.locationType) === null || _val$locationType === void 0 ? void 0 : (_val$locationType$ = _val$locationType[0]) === null || _val$locationType$ === void 0 ? void 0 : (_val$locationType$$
|
|
12729
|
-
location_type_code: (_val$
|
|
12730
|
-
location_type_name: (_val$
|
|
12731
|
-
location_type_id: (_val$
|
|
12732
|
-
location_type_key: (_val$
|
|
12732
|
+
location_type: val.locationType.length > 0 ? (((_val$locationType = val.locationType) === null || _val$locationType === void 0 ? void 0 : (_val$locationType$ = _val$locationType[0]) === null || _val$locationType$ === void 0 ? void 0 : _val$locationType$.coding) !== null ? (_val$locationType2 = val.locationType) === null || _val$locationType2 === void 0 ? void 0 : (_val$locationType2$ = _val$locationType2[0]) === null || _val$locationType2$ === void 0 ? void 0 : (_val$locationType2$$c = _val$locationType2$.coding) === null || _val$locationType2$$c === void 0 ? void 0 : (_val$locationType2$$c2 = _val$locationType2$$c[0]) === null || _val$locationType2$$c2 === void 0 ? void 0 : _val$locationType2$$c2.code : "") + " - " + (((_val$locationType3 = val.locationType) === null || _val$locationType3 === void 0 ? void 0 : (_val$locationType3$ = _val$locationType3[0]) === null || _val$locationType3$ === void 0 ? void 0 : _val$locationType3$.coding) !== null ? (_val$locationType4 = val.locationType) === null || _val$locationType4 === void 0 ? void 0 : (_val$locationType4$ = _val$locationType4[0]) === null || _val$locationType4$ === void 0 ? void 0 : (_val$locationType4$$c = _val$locationType4$.coding) === null || _val$locationType4$$c === void 0 ? void 0 : (_val$locationType4$$c2 = _val$locationType4$$c[0]) === null || _val$locationType4$$c2 === void 0 ? void 0 : _val$locationType4$$c2.Type : "") : "-",
|
|
12733
|
+
location_type_code: (_val$locationType5 = val.locationType) === null || _val$locationType5 === void 0 ? void 0 : (_val$locationType5$ = _val$locationType5[0]) === null || _val$locationType5$ === void 0 ? void 0 : (_val$locationType5$$c = _val$locationType5$.coding) === null || _val$locationType5$$c === void 0 ? void 0 : (_val$locationType5$$c2 = _val$locationType5$$c[0]) === null || _val$locationType5$$c2 === void 0 ? void 0 : _val$locationType5$$c2.code,
|
|
12734
|
+
location_type_name: (_val$locationType6 = val.locationType) === null || _val$locationType6 === void 0 ? void 0 : (_val$locationType6$ = _val$locationType6[0]) === null || _val$locationType6$ === void 0 ? void 0 : (_val$locationType6$$c = _val$locationType6$.coding) === null || _val$locationType6$$c === void 0 ? void 0 : (_val$locationType6$$c2 = _val$locationType6$$c[0]) === null || _val$locationType6$$c2 === void 0 ? void 0 : _val$locationType6$$c2.Type,
|
|
12735
|
+
location_type_id: (_val$locationType7 = val.locationType) === null || _val$locationType7 === void 0 ? void 0 : (_val$locationType7$ = _val$locationType7[0]) === null || _val$locationType7$ === void 0 ? void 0 : (_val$locationType7$$c = _val$locationType7$.coding) === null || _val$locationType7$$c === void 0 ? void 0 : (_val$locationType7$$c2 = _val$locationType7$$c[0]) === null || _val$locationType7$$c2 === void 0 ? void 0 : _val$locationType7$$c2._id,
|
|
12736
|
+
location_type_key: (_val$locationType8 = val.locationType) === null || _val$locationType8 === void 0 ? void 0 : (_val$locationType8$ = _val$locationType8[0]) === null || _val$locationType8$ === void 0 ? void 0 : (_val$locationType8$$c = _val$locationType8$.coding) === null || _val$locationType8$$c === void 0 ? void 0 : (_val$locationType8$$c2 = _val$locationType8$$c[0]) === null || _val$locationType8$$c2 === void 0 ? void 0 : _val$locationType8$$c2._key,
|
|
12733
12737
|
long_description: val.longdesc,
|
|
12734
12738
|
short_description: val.shortdesc,
|
|
12735
12739
|
_key: val._key,
|
|
@@ -12741,24 +12745,24 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12741
12745
|
}
|
|
12742
12746
|
});
|
|
12743
12747
|
|
|
12744
|
-
case
|
|
12748
|
+
case 12:
|
|
12745
12749
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
12746
12750
|
data: arry
|
|
12747
12751
|
}));
|
|
12748
12752
|
|
|
12749
|
-
case
|
|
12750
|
-
_context.prev =
|
|
12753
|
+
case 15:
|
|
12754
|
+
_context.prev = 15;
|
|
12751
12755
|
_context.t0 = _context["catch"](2);
|
|
12752
12756
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
12753
12757
|
message: _context.t0.message
|
|
12754
12758
|
})));
|
|
12755
12759
|
|
|
12756
|
-
case
|
|
12760
|
+
case 18:
|
|
12757
12761
|
case "end":
|
|
12758
12762
|
return _context.stop();
|
|
12759
12763
|
}
|
|
12760
12764
|
}
|
|
12761
|
-
}, _callee, null, [[2,
|
|
12765
|
+
}, _callee, null, [[2, 15]]);
|
|
12762
12766
|
})));
|
|
12763
12767
|
var LOCATION_LIST_UPSERT = createAsyncThunk("locationSlice/locationlistupsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
12764
12768
|
var payload,
|
|
@@ -12825,32 +12829,33 @@ var LOCATION_MASTER_INSERT = createAsyncThunk("locationApiSlice/locationinsert",
|
|
|
12825
12829
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
12826
12830
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
12827
12831
|
_context3.prev = 2;
|
|
12832
|
+
debugger;
|
|
12828
12833
|
data = payload.data, _key = payload._key;
|
|
12829
12834
|
queriesjson = generateJSON(data, _key);
|
|
12830
|
-
_context3.next =
|
|
12835
|
+
_context3.next = 8;
|
|
12831
12836
|
return fetchData({
|
|
12832
12837
|
body: JSON.stringify(queriesjson)
|
|
12833
12838
|
}, __uspsertUrl__);
|
|
12834
12839
|
|
|
12835
|
-
case
|
|
12840
|
+
case 8:
|
|
12836
12841
|
dataRes = _context3.sent;
|
|
12837
12842
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
12838
12843
|
data: dataRes
|
|
12839
12844
|
}));
|
|
12840
12845
|
|
|
12841
|
-
case
|
|
12842
|
-
_context3.prev =
|
|
12846
|
+
case 12:
|
|
12847
|
+
_context3.prev = 12;
|
|
12843
12848
|
_context3.t0 = _context3["catch"](2);
|
|
12844
12849
|
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
12845
12850
|
message: _context3.t0.message
|
|
12846
12851
|
})));
|
|
12847
12852
|
|
|
12848
|
-
case
|
|
12853
|
+
case 15:
|
|
12849
12854
|
case "end":
|
|
12850
12855
|
return _context3.stop();
|
|
12851
12856
|
}
|
|
12852
12857
|
}
|
|
12853
|
-
}, _callee3, null, [[2,
|
|
12858
|
+
}, _callee3, null, [[2, 12]]);
|
|
12854
12859
|
})));
|
|
12855
12860
|
var locationSlice = createSlice({
|
|
12856
12861
|
name: "locationApiSlice",
|