primary_care_admin_binder 0.1.118 → 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 +49 -38
- 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
|
-
offset: page,
|
|
11294
|
-
count: perPage
|
|
11313
|
+
"db_name": dbName$1,
|
|
11314
|
+
"filter": {
|
|
11315
|
+
"searchval": search,
|
|
11316
|
+
"page": page,
|
|
11317
|
+
"perPage": perPage
|
|
11295
11318
|
},
|
|
11296
|
-
|
|
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
|
|
11328
|
+
},
|
|
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}"),
|