primary_care_admin_binder 0.0.92 → 0.0.93

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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +16 -4
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -2266,6 +2266,7 @@ var queries$m = {
2266
2266
  },
2267
2267
  upsert: function upsert(data) {
2268
2268
  var filter = {};
2269
+ var _key = {};
2269
2270
 
2270
2271
  if (data._key) {
2271
2272
  filter = {
@@ -2275,6 +2276,12 @@ var queries$m = {
2275
2276
  };
2276
2277
  }
2277
2278
 
2279
+ if (data !== null && data !== void 0 && data.coding_key) {
2280
+ _key = {
2281
+ _key: data === null || data === void 0 ? void 0 : data.coding_key
2282
+ };
2283
+ }
2284
+
2278
2285
  if (data.id) {
2279
2286
  ({
2280
2287
  id: data.id
@@ -2291,15 +2298,16 @@ var queries$m = {
2291
2298
  text: "",
2292
2299
  _id: "",
2293
2300
  id: 0,
2294
- coding: [{
2301
+ coding: [_objectSpread2({
2295
2302
  system: "",
2296
2303
  version: "1",
2297
2304
  code: data.code,
2298
2305
  display: data.description,
2299
2306
  userSelected: true,
2300
2307
  Type: data.type,
2301
- id: data.id
2302
- }],
2308
+ id: data.id,
2309
+ status: data.status
2310
+ }, _key)],
2303
2311
  Type: data.type,
2304
2312
  status: data.status
2305
2313
  }
@@ -8420,9 +8428,12 @@ var PRACTITIONER_ROLE_READ = createAsyncThunk("practitionerSlice/practitionerlis
8420
8428
  arry = [];
8421
8429
  data.result.map(function (val) {
8422
8430
  if (val.coding[0] && val.coding[0].code && val.coding[0].display) {
8431
+ var _val$coding$0$_key;
8432
+
8423
8433
  arry.push({
8424
8434
  "code_type": val.coding[0].code,
8425
8435
  "description": val.coding[0].display,
8436
+ "coding_key": (_val$coding$0$_key = val.coding[0]._key) !== null && _val$coding$0$_key !== void 0 ? _val$coding$0$_key : null,
8426
8437
  "id": val.coding[0].id,
8427
8438
  "_key": val._key,
8428
8439
  'status': val.status,
@@ -8470,7 +8481,8 @@ var PRACTITIONER_ROLE_UPSERT = createAsyncThunk("practitionerSlice/practitionerR
8470
8481
  type: payload.type,
8471
8482
  status: payload.status,
8472
8483
  _key: payload._key,
8473
- id: payload.id
8484
+ id: payload.id,
8485
+ coding_key: payload.coding_key
8474
8486
  };
8475
8487
  queriesjson = queries$m.upsert(upsertkey);
8476
8488
  _context2.next = 7;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.0.92",
3
+ "version": "0.0.93",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",