primarycare-binder 1.1.110 → 1.1.111
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 +19 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18472,6 +18472,7 @@ var ORGANIZATION_VISIT_REGISTRATION = createAsyncThunk("OrganizationRegisterPati
|
|
|
18472
18472
|
rejectWithValue,
|
|
18473
18473
|
payloaddata,
|
|
18474
18474
|
enId,
|
|
18475
|
+
encounterId,
|
|
18475
18476
|
body,
|
|
18476
18477
|
data,
|
|
18477
18478
|
_args2 = arguments;
|
|
@@ -18484,7 +18485,7 @@ var ORGANIZATION_VISIT_REGISTRATION = createAsyncThunk("OrganizationRegisterPati
|
|
|
18484
18485
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
18485
18486
|
debugger;
|
|
18486
18487
|
_context2.prev = 3;
|
|
18487
|
-
payloaddata = payload.payloaddata, enId = payload.enId;
|
|
18488
|
+
payloaddata = payload.payloaddata, enId = payload.enId, encounterId = payload.encounterId;
|
|
18488
18489
|
|
|
18489
18490
|
if (enId) {
|
|
18490
18491
|
body = [_objectSpread2({
|
|
@@ -18496,6 +18497,16 @@ var ORGANIZATION_VISIT_REGISTRATION = createAsyncThunk("OrganizationRegisterPati
|
|
|
18496
18497
|
},
|
|
18497
18498
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
18498
18499
|
}, payloaddata)];
|
|
18500
|
+
} else if (encounterId) {
|
|
18501
|
+
body = [_objectSpread2({
|
|
18502
|
+
db_name: dbName,
|
|
18503
|
+
entity: "Encounter",
|
|
18504
|
+
is_metadata: true,
|
|
18505
|
+
filter: {
|
|
18506
|
+
_key: "".concat(encounterId)
|
|
18507
|
+
},
|
|
18508
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
18509
|
+
}, payloaddata)];
|
|
18499
18510
|
} else {
|
|
18500
18511
|
body = [_objectSpread2({
|
|
18501
18512
|
db_name: dbName,
|
|
@@ -31774,7 +31785,7 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
31774
31785
|
data = _context2.sent;
|
|
31775
31786
|
arr = [];
|
|
31776
31787
|
data.result.map(function (val) {
|
|
31777
|
-
var _val$FormCode, _val$FormCode2, _val$StrengthValuesPo, _val$StrengthValuesPo2, _val$StrengthValuesPo3, _val$StrengthValuesPo4, _val$DrugType, _val$DrugType2, _val$DrugType3, _val$DrugType4, _val$drugroutegenid;
|
|
31788
|
+
var _val$FormCode, _val$FormCode2, _val$StrengthValuesPo, _val$StrengthValuesPo2, _val$StrengthValuesPo3, _val$StrengthValuesPo4, _val$DrugType, _val$DrugType2, _val$DrugType3, _val$DrugType4, _val$drugroutegenid, _val$LongDesc;
|
|
31778
31789
|
|
|
31779
31790
|
var json = {
|
|
31780
31791
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
@@ -31787,12 +31798,15 @@ var DRUGMASTER_MASTER = createAsyncThunk("MedicationMastersSlice/drugMaster_mast
|
|
|
31787
31798
|
drugTypeLong: val === null || val === void 0 ? void 0 : (_val$DrugType2 = val.DrugType) === null || _val$DrugType2 === void 0 ? void 0 : _val$DrugType2.longdesc,
|
|
31788
31799
|
drugTypeShort: val === null || val === void 0 ? void 0 : (_val$DrugType3 = val.DrugType) === null || _val$DrugType3 === void 0 ? void 0 : _val$DrugType3.shortdesc,
|
|
31789
31800
|
drugTypeId: val === null || val === void 0 ? void 0 : (_val$DrugType4 = val.DrugType) === null || _val$DrugType4 === void 0 ? void 0 : _val$DrugType4._id,
|
|
31790
|
-
drugroutegenid: (_val$drugroutegenid = val === null || val === void 0 ? void 0 : val.drugroutegenid) !== null && _val$drugroutegenid !== void 0 ? _val$drugroutegenid : ""
|
|
31801
|
+
drugroutegenid: (_val$drugroutegenid = val === null || val === void 0 ? void 0 : val.drugroutegenid) !== null && _val$drugroutegenid !== void 0 ? _val$drugroutegenid : "",
|
|
31802
|
+
LongDesc_: (_val$LongDesc = val === null || val === void 0 ? void 0 : val.LongDesc) !== null && _val$LongDesc !== void 0 ? _val$LongDesc : "",
|
|
31803
|
+
DrugCode_: val === null || val === void 0 ? void 0 : val.DrugCode // formValue
|
|
31791
31804
|
|
|
31792
31805
|
};
|
|
31793
31806
|
arr.push(_objectSpread2(_objectSpread2({}, json), {}, {
|
|
31794
|
-
name: val.ShortDesc,
|
|
31795
|
-
label: val.
|
|
31807
|
+
name: val === null || val === void 0 ? void 0 : val.ShortDesc,
|
|
31808
|
+
label: (val === null || val === void 0 ? void 0 : val.DrugCode) + " - " + (val === null || val === void 0 ? void 0 : val.ShortDesc) + " - " + (val === null || val === void 0 ? void 0 : val.LongDesc) // label: val?.ShortDesc
|
|
31809
|
+
// label: `${val.ShortDesc ?? ""} - ${json.StrengthValues} ${json.StrengthUOM}`,
|
|
31796
31810
|
|
|
31797
31811
|
}));
|
|
31798
31812
|
});
|