primary_care_admin_binder 0.1.117 → 0.1.119
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 +103 -41
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11252,6 +11252,31 @@ var vitalsApplicableActions = {
|
|
|
11252
11252
|
};
|
|
11253
11253
|
var vitalsApplicableSlice$1 = vitalsApplicableSlice.reducer;
|
|
11254
11254
|
|
|
11255
|
+
var dbName = process.env.REACT_APP_DATABASE_NAME;
|
|
11256
|
+
var query_ids = {
|
|
11257
|
+
"scheduleManagementApiSlice/practitionerSlots": "562d7099-7b83-49ec-9bdc-364246ca185d",
|
|
11258
|
+
"slotApiSlice/readSlot": {
|
|
11259
|
+
practionerid: "30fcb559-96fb-48f6-a955-e47dd97bc851",
|
|
11260
|
+
clinicid: "30fcb559-96fb-48f6-a955-e47dd97bc951",
|
|
11261
|
+
query: function query(_ref) {
|
|
11262
|
+
var start = _ref.start,
|
|
11263
|
+
end = _ref.end,
|
|
11264
|
+
id = _ref.id;
|
|
11265
|
+
return {
|
|
11266
|
+
"db_name": dbName,
|
|
11267
|
+
"entity": "Schedule",
|
|
11268
|
+
"filter": "Schedule.start >= ".concat(start, " AND Schedule.end <= ").concat(end, " AND Schedule.activestatus == true AND DOCUMENT(Schedule.resourceCode).id == ").concat(id),
|
|
11269
|
+
"return_fields": "MERGE(Schedule, {slots : (FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.status!='blocked' AND slt.start >= ".concat(moment.utc().unix(), " AND slt.activestatus==true sort slt._id asc RETURN merge(slt, {DayType: Document(slt.DayType)}))})")
|
|
11270
|
+
};
|
|
11271
|
+
}
|
|
11272
|
+
},
|
|
11273
|
+
"appointmentApiSlice/readAppointment": "0bfea3d4-fe24-43f9-b5b8-cf9ff4365fab",
|
|
11274
|
+
"slotAvailabilityApiSlice/slotAvailability": "c21732eb-9330-45d2-a6bd-e67dca2136d5",
|
|
11275
|
+
"signInApiSlice/SearchPractioner": "2fef3beb-6f38-48b0-955f-90f88dab2822",
|
|
11276
|
+
"VitalReadSearch": "8eefa71f-d48c-44a4-b5e1-e8271eb734d5",
|
|
11277
|
+
"VitalRead": "eebb32ae-0a5f-49b4-9484-41111ec83fa3"
|
|
11278
|
+
};
|
|
11279
|
+
|
|
11255
11280
|
var query$9 = {
|
|
11256
11281
|
gender: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
11257
11282
|
unitAllowed: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"VitalsMeasureCodes\",\n \"sort\":\"VitalsMeasureCodes.ObsValMeasCode\",\n \"filter\": \"VitalsMeasureCodes.activestatus==true && VitalsMeasureCodes.status==true\",\n \"return_fields\": \"VitalsMeasureCodes\"\n }"),
|
|
@@ -11283,17 +11308,25 @@ var query$9 = {
|
|
|
11283
11308
|
return_fields: "VitalsMeasureCodes"
|
|
11284
11309
|
};
|
|
11285
11310
|
},
|
|
11286
|
-
|
|
11311
|
+
VitalReadSearch: function VitalReadSearch(page, perPage, search) {
|
|
11287
11312
|
return {
|
|
11288
|
-
db_name: dbName$1,
|
|
11289
|
-
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
|
|
11313
|
+
"db_name": dbName$1,
|
|
11314
|
+
"filter": {
|
|
11315
|
+
"searchval": search,
|
|
11316
|
+
"page": page,
|
|
11317
|
+
"perPage": perPage
|
|
11318
|
+
},
|
|
11319
|
+
"queryid": query_ids["VitalReadSearch"]
|
|
11320
|
+
};
|
|
11321
|
+
},
|
|
11322
|
+
VitalRead: function VitalRead(page, perPage) {
|
|
11323
|
+
return {
|
|
11324
|
+
"db_name": dbName$1,
|
|
11325
|
+
"filter": {
|
|
11326
|
+
"page": page,
|
|
11327
|
+
"perPage": perPage
|
|
11295
11328
|
},
|
|
11296
|
-
|
|
11329
|
+
"queryid": query_ids["VitalRead"]
|
|
11297
11330
|
};
|
|
11298
11331
|
},
|
|
11299
11332
|
deleteVitalMaster: function deleteVitalMaster(id) {
|
|
@@ -11827,6 +11860,8 @@ var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMast
|
|
|
11827
11860
|
var payload,
|
|
11828
11861
|
_ref16,
|
|
11829
11862
|
rejectWithValue,
|
|
11863
|
+
page,
|
|
11864
|
+
perPage,
|
|
11830
11865
|
search,
|
|
11831
11866
|
data,
|
|
11832
11867
|
res,
|
|
@@ -11836,17 +11871,16 @@ var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMast
|
|
|
11836
11871
|
switch (_context8.prev = _context8.next) {
|
|
11837
11872
|
case 0:
|
|
11838
11873
|
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
11839
|
-
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue
|
|
11874
|
+
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
|
|
11840
11875
|
_context8.prev = 2;
|
|
11841
|
-
|
|
11842
|
-
// let ccState = state.DiagnosisMasterSlice;
|
|
11876
|
+
page = payload.page, perPage = payload.perPage, search = payload.search;
|
|
11843
11877
|
_context8.next = 6;
|
|
11844
11878
|
return fetchData({
|
|
11845
|
-
body: JSON.stringify(query$9.
|
|
11846
|
-
},
|
|
11879
|
+
body: JSON.stringify(search ? query$9.VitalReadSearch(page, perPage, search) : query$9.VitalRead(page, perPage))
|
|
11880
|
+
}, __baseUrl__$1);
|
|
11847
11881
|
case 6:
|
|
11848
11882
|
data = _context8.sent;
|
|
11849
|
-
res = generateResJson$1(data
|
|
11883
|
+
res = generateResJson$1(data);
|
|
11850
11884
|
return _context8.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
11851
11885
|
data: res
|
|
11852
11886
|
}));
|
|
@@ -26600,29 +26634,6 @@ var timetableMasterSlice$1 = timetableMasterSlice.reducer;
|
|
|
26600
26634
|
|
|
26601
26635
|
var timeTableActions = _objectSpread2$1({}, timeTableMasterActions);
|
|
26602
26636
|
|
|
26603
|
-
var dbName = process.env.REACT_APP_DATABASE_NAME;
|
|
26604
|
-
var query_ids = {
|
|
26605
|
-
"scheduleManagementApiSlice/practitionerSlots": "562d7099-7b83-49ec-9bdc-364246ca185d",
|
|
26606
|
-
"slotApiSlice/readSlot": {
|
|
26607
|
-
practionerid: "30fcb559-96fb-48f6-a955-e47dd97bc851",
|
|
26608
|
-
clinicid: "30fcb559-96fb-48f6-a955-e47dd97bc951",
|
|
26609
|
-
query: function query(_ref) {
|
|
26610
|
-
var start = _ref.start,
|
|
26611
|
-
end = _ref.end,
|
|
26612
|
-
id = _ref.id;
|
|
26613
|
-
return {
|
|
26614
|
-
"db_name": dbName,
|
|
26615
|
-
"entity": "Schedule",
|
|
26616
|
-
"filter": "Schedule.start >= ".concat(start, " AND Schedule.end <= ").concat(end, " AND Schedule.activestatus == true AND DOCUMENT(Schedule.resourceCode).id == ").concat(id),
|
|
26617
|
-
"return_fields": "MERGE(Schedule, {slots : (FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.status!='blocked' AND slt.start >= ".concat(moment.utc().unix(), " AND slt.activestatus==true sort slt._id asc RETURN merge(slt, {DayType: Document(slt.DayType)}))})")
|
|
26618
|
-
};
|
|
26619
|
-
}
|
|
26620
|
-
},
|
|
26621
|
-
"appointmentApiSlice/readAppointment": "0bfea3d4-fe24-43f9-b5b8-cf9ff4365fab",
|
|
26622
|
-
"slotAvailabilityApiSlice/slotAvailability": "c21732eb-9330-45d2-a6bd-e67dca2136d5",
|
|
26623
|
-
"signInApiSlice/SearchPractioner": "2fef3beb-6f38-48b0-955f-90f88dab2822"
|
|
26624
|
-
};
|
|
26625
|
-
|
|
26626
26637
|
var query$7 = {
|
|
26627
26638
|
role_type: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='RESOURCETYPE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(for cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n}"),
|
|
26628
26639
|
all_practitioner: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"Practitioner\",\n \"filter\": \"Practitioner.status==true\",\n \"return_fields\": \"MERGE(KEEP(Practitioner,'_id','id','name','_key','practitioner_role'),{name:(for hu in HumanNameMaster filter hu._id in Practitioner.name return merge(hu,{use:(for us in CodeableConceptMaster filter us._id == hu.use return merge(us,{coding:document(us.coding)}))},{prefix:(for pre in CodeableConceptMaster filter pre._id == hu.prefix return merge(pre,{coding:document(pre.coding)}))},{suffix:(for suf in CodeableConceptMaster filter suf._id == hu.suffix return merge(suf,{coding:document(suf.coding)}))}))},{practitioner_role:(for prac in PractitionerRole filter prac._id in Practitioner.practitioner_role return merge (keep(prac,'role'),{role:(for rol in CodeableConceptMaster filter rol._id == prac.role return merge(rol,{coding:document(rol.coding)}))}))})\"\n}"),
|
|
@@ -42082,7 +42093,7 @@ var TARGET_REVENUE_DELETE = createAsyncThunk("targetRevenueSlice/targetRevenueDe
|
|
|
42082
42093
|
body = {
|
|
42083
42094
|
db_name: dbName$1,
|
|
42084
42095
|
entity: "targetrevenue",
|
|
42085
|
-
filter: "
|
|
42096
|
+
filter: "targetrevenue._id == '".concat(payload._id, "'"),
|
|
42086
42097
|
metadataId: metaDataId$1,
|
|
42087
42098
|
metadata_dbname: metaDatadbName$1,
|
|
42088
42099
|
is_metadata: true
|
|
@@ -42114,13 +42125,57 @@ var TARGET_REVENUE_DELETE = createAsyncThunk("targetRevenueSlice/targetRevenueDe
|
|
|
42114
42125
|
}
|
|
42115
42126
|
}, _callee4, null, [[2, 10]]);
|
|
42116
42127
|
})));
|
|
42128
|
+
var TARGET_NAME_VALIDATION = createAsyncThunk("targetRevenueSlice/targetNameValidation", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
42129
|
+
var payload,
|
|
42130
|
+
_ref11,
|
|
42131
|
+
rejectWithValue,
|
|
42132
|
+
body,
|
|
42133
|
+
data,
|
|
42134
|
+
_args5 = arguments;
|
|
42135
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
42136
|
+
while (1) {
|
|
42137
|
+
switch (_context5.prev = _context5.next) {
|
|
42138
|
+
case 0:
|
|
42139
|
+
payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : "";
|
|
42140
|
+
_ref11 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref11.rejectWithValue;
|
|
42141
|
+
_context5.prev = 2;
|
|
42142
|
+
body = {
|
|
42143
|
+
"db_name": dbName$1,
|
|
42144
|
+
"filter": {
|
|
42145
|
+
"targetname": payload
|
|
42146
|
+
},
|
|
42147
|
+
"queryid": "cc3720c8-4cc6-4d66-b7a0-bad5f427576b"
|
|
42148
|
+
};
|
|
42149
|
+
_context5.next = 6;
|
|
42150
|
+
return fetchData({
|
|
42151
|
+
body: JSON.stringify(body)
|
|
42152
|
+
}, __baseUrl__$1);
|
|
42153
|
+
case 6:
|
|
42154
|
+
data = _context5.sent;
|
|
42155
|
+
return _context5.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
42156
|
+
data: data
|
|
42157
|
+
}));
|
|
42158
|
+
case 10:
|
|
42159
|
+
_context5.prev = 10;
|
|
42160
|
+
_context5.t0 = _context5["catch"](2);
|
|
42161
|
+
return _context5.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
42162
|
+
message: _context5.t0.message
|
|
42163
|
+
})));
|
|
42164
|
+
case 13:
|
|
42165
|
+
case "end":
|
|
42166
|
+
return _context5.stop();
|
|
42167
|
+
}
|
|
42168
|
+
}
|
|
42169
|
+
}, _callee5, null, [[2, 10]]);
|
|
42170
|
+
})));
|
|
42117
42171
|
var targetRevenueSlice = createSlice({
|
|
42118
42172
|
name: "targetRevenueSlice",
|
|
42119
42173
|
initialState: {
|
|
42120
42174
|
targetRevenueRead: _objectSpread2$1({}, defaultState.List),
|
|
42121
42175
|
targetRevenueUpsert: _objectSpread2$1({}, defaultState.List),
|
|
42122
42176
|
targetRevenueEdit: _objectSpread2$1({}, defaultState.List),
|
|
42123
|
-
targetRevenueDelete: _objectSpread2$1({}, defaultState.List)
|
|
42177
|
+
targetRevenueDelete: _objectSpread2$1({}, defaultState.List),
|
|
42178
|
+
targetNameValidation: _objectSpread2$1({}, defaultState.List)
|
|
42124
42179
|
},
|
|
42125
42180
|
extraReducers: (_extraReducers$2 = {}, _defineProperty(_extraReducers$2, TARGET_REVENUE_READ.fulfilled, function (state, action) {
|
|
42126
42181
|
state.targetRevenueRead.loading = false, state.targetRevenueRead.error = false, state.targetRevenueRead = action.payload;
|
|
@@ -42146,13 +42201,20 @@ var targetRevenueSlice = createSlice({
|
|
|
42146
42201
|
state.targetRevenueDelete.loading = true, state.targetRevenueDelete.error = false, state.targetRevenueDelete.loading = true;
|
|
42147
42202
|
}), _defineProperty(_extraReducers$2, TARGET_REVENUE_DELETE.rejected, function (state, action) {
|
|
42148
42203
|
state.targetRevenueDelete.loading = false, state.targetRevenueDelete.error = true, state.targetRevenueDelete = action.payload;
|
|
42204
|
+
}), _defineProperty(_extraReducers$2, TARGET_NAME_VALIDATION.fulfilled, function (state, action) {
|
|
42205
|
+
state.targetNameValidation.loading = false, state.targetNameValidation.error = false, state.targetNameValidation = action.payload;
|
|
42206
|
+
}), _defineProperty(_extraReducers$2, TARGET_NAME_VALIDATION.pending, function (state, action) {
|
|
42207
|
+
state.targetNameValidation.loading = true, state.targetNameValidation.error = false, state.targetNameValidation.loading = true;
|
|
42208
|
+
}), _defineProperty(_extraReducers$2, TARGET_NAME_VALIDATION.rejected, function (state, action) {
|
|
42209
|
+
state.targetNameValidation.loading = false, state.targetNameValidation.error = true, state.targetNameValidation = action.payload;
|
|
42149
42210
|
}), _extraReducers$2)
|
|
42150
42211
|
});
|
|
42151
42212
|
var targetRevenueActions = {
|
|
42152
42213
|
TARGET_REVENUE_READ: TARGET_REVENUE_READ,
|
|
42153
42214
|
TARGET_REVENUE_UPSERT: TARGET_REVENUE_UPSERT,
|
|
42154
42215
|
TARGET_REVENUE_EDIT: TARGET_REVENUE_EDIT,
|
|
42155
|
-
TARGET_REVENUE_DELETE: TARGET_REVENUE_DELETE
|
|
42216
|
+
TARGET_REVENUE_DELETE: TARGET_REVENUE_DELETE,
|
|
42217
|
+
TARGET_NAME_VALIDATION: TARGET_NAME_VALIDATION
|
|
42156
42218
|
};
|
|
42157
42219
|
var targetRevenueSlice$1 = targetRevenueSlice.reducer;
|
|
42158
42220
|
|