primarycare-binder 1.1.99 → 1.1.100
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 +70 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18345,6 +18345,17 @@ var organizAtionauthActions = {
|
|
|
18345
18345
|
};
|
|
18346
18346
|
var OrganizationAuthApiSlice$1 = OrganizationAuthApiSlice.reducer;
|
|
18347
18347
|
|
|
18348
|
+
var registerQuery = {
|
|
18349
|
+
statusRead: function statusRead() {
|
|
18350
|
+
return {
|
|
18351
|
+
db_name: dbName,
|
|
18352
|
+
entity: "CodingMaster",
|
|
18353
|
+
filter: "lower(CodingMaster.display)==lower('Checked-in') && CodingMaster.activestatus==true",
|
|
18354
|
+
return_fields: "CodingMaster._id"
|
|
18355
|
+
};
|
|
18356
|
+
}
|
|
18357
|
+
};
|
|
18358
|
+
|
|
18348
18359
|
var _extraReducers$q;
|
|
18349
18360
|
var ORGANIZATION_REGISTER_PATIENT = createAsyncThunk("OrganizationRegisterPatientApiSlice/upsert_document", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
18350
18361
|
var payload,
|
|
@@ -19369,6 +19380,45 @@ var GET_PATIENT_TYPEID = createAsyncThunk("OrganizationRegisterPatientApiSlice/g
|
|
|
19369
19380
|
}
|
|
19370
19381
|
}, _callee17, null, [[2, 11]]);
|
|
19371
19382
|
})));
|
|
19383
|
+
var GET_ENCOUNTER_STATUS = createAsyncThunk("OrganizationRegisterPatientApiSlice/getEncounterStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
|
19384
|
+
var payload,
|
|
19385
|
+
_ref36,
|
|
19386
|
+
rejectWithValue,
|
|
19387
|
+
data,
|
|
19388
|
+
_args18 = arguments;
|
|
19389
|
+
|
|
19390
|
+
return regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
19391
|
+
while (1) {
|
|
19392
|
+
switch (_context18.prev = _context18.next) {
|
|
19393
|
+
case 0:
|
|
19394
|
+
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
19395
|
+
_ref36 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref36.rejectWithValue;
|
|
19396
|
+
_context18.prev = 2;
|
|
19397
|
+
_context18.next = 5;
|
|
19398
|
+
return fetchData$3({
|
|
19399
|
+
body: JSON.stringify(registerQuery.statusRead())
|
|
19400
|
+
}, __readDocumentUrl__);
|
|
19401
|
+
|
|
19402
|
+
case 5:
|
|
19403
|
+
data = _context18.sent;
|
|
19404
|
+
return _context18.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
19405
|
+
data: data.result
|
|
19406
|
+
}));
|
|
19407
|
+
|
|
19408
|
+
case 9:
|
|
19409
|
+
_context18.prev = 9;
|
|
19410
|
+
_context18.t0 = _context18["catch"](2);
|
|
19411
|
+
return _context18.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19412
|
+
message: _context18.t0.message
|
|
19413
|
+
})));
|
|
19414
|
+
|
|
19415
|
+
case 12:
|
|
19416
|
+
case "end":
|
|
19417
|
+
return _context18.stop();
|
|
19418
|
+
}
|
|
19419
|
+
}
|
|
19420
|
+
}, _callee18, null, [[2, 9]]);
|
|
19421
|
+
})));
|
|
19372
19422
|
var OrganizationRegisterPatientApiSlice = createSlice({
|
|
19373
19423
|
name: "OrganizationRegisterPatientApiSlice",
|
|
19374
19424
|
initialState: {
|
|
@@ -19388,7 +19438,8 @@ var OrganizationRegisterPatientApiSlice = createSlice({
|
|
|
19388
19438
|
getappointment: _objectSpread2({}, defaultState.Info),
|
|
19389
19439
|
getpatientname: _objectSpread2({}, defaultState.Info),
|
|
19390
19440
|
getpatientid: _objectSpread2({}, defaultState.Info),
|
|
19391
|
-
getEncounterHeader: _objectSpread2({}, defaultState.Info)
|
|
19441
|
+
getEncounterHeader: _objectSpread2({}, defaultState.Info),
|
|
19442
|
+
getEncounterStatus: _objectSpread2({}, defaultState.Info)
|
|
19392
19443
|
},
|
|
19393
19444
|
extraReducers: (_extraReducers$q = {}, _defineProperty(_extraReducers$q, GET_PATIENT_NAME.fulfilled, function (state, action) {
|
|
19394
19445
|
var _action$payload;
|
|
@@ -19560,6 +19611,16 @@ var OrganizationRegisterPatientApiSlice = createSlice({
|
|
|
19560
19611
|
var _action$payload34;
|
|
19561
19612
|
|
|
19562
19613
|
state.getEncounterHeader = (_action$payload34 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload34 !== void 0 ? _action$payload34 : {};
|
|
19614
|
+
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_STATUS.fulfilled, function (state, action) {
|
|
19615
|
+
var _action$payload35;
|
|
19616
|
+
|
|
19617
|
+
state.getEncounterStatus = (_action$payload35 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload35 !== void 0 ? _action$payload35 : {};
|
|
19618
|
+
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_STATUS.pending, function (state, action) {
|
|
19619
|
+
state.getEncounterStatus.loading = true;
|
|
19620
|
+
}), _defineProperty(_extraReducers$q, GET_ENCOUNTER_STATUS.rejected, function (state, action) {
|
|
19621
|
+
var _action$payload36;
|
|
19622
|
+
|
|
19623
|
+
state.getEncounterStatus = (_action$payload36 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload36 !== void 0 ? _action$payload36 : {};
|
|
19563
19624
|
}), _extraReducers$q)
|
|
19564
19625
|
});
|
|
19565
19626
|
var oraganizationRegisterPatientActions = {
|
|
@@ -19579,7 +19640,8 @@ var oraganizationRegisterPatientActions = {
|
|
|
19579
19640
|
GET_PATIENT_NAME: GET_PATIENT_NAME,
|
|
19580
19641
|
GET_PATIENT_TYPEID: GET_PATIENT_TYPEID,
|
|
19581
19642
|
GET_PRACTITIONERS: GET_PRACTITIONERS,
|
|
19582
|
-
GET_ENCOUNTER_HEADER: GET_ENCOUNTER_HEADER
|
|
19643
|
+
GET_ENCOUNTER_HEADER: GET_ENCOUNTER_HEADER,
|
|
19644
|
+
GET_ENCOUNTER_STATUS: GET_ENCOUNTER_STATUS
|
|
19583
19645
|
};
|
|
19584
19646
|
var OrganizationRegisterPatientApiSlice$1 = OrganizationRegisterPatientApiSlice.reducer;
|
|
19585
19647
|
|
|
@@ -20087,7 +20149,8 @@ var visitQuery = {
|
|
|
20087
20149
|
entity: "Practitioner,Encounter",
|
|
20088
20150
|
filter: {
|
|
20089
20151
|
Practitioner: "DOCUMENT(DOCUMENT(DOCUMENT(Practitioner.practitioner_role[*])[*].role)[0].coding)[*].code ANY =='PR023' && Practitioner.id== ".concat(loginId, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(orGId, "'"),
|
|
20090
|
-
Encounter:
|
|
20152
|
+
// Encounter: `Encounter.activestatus == true && Encounter.Organization_id == ${orgId} && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality AND Encounter.encounterdate>=${startDate} && Encounter.encounterdate<=${endDate} && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in' collect with count into length`,
|
|
20153
|
+
Encounter: "Encounter.activestatus == true && Encounter.Organization_id == ".concat(orgId, " && (first(document(DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID)[*].coding) ANY IN Encounter.practitioner_details[*].speciality || DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality) AND Encounter.encounterdate>=").concat(startDate, " && Encounter.encounterdate<=").concat(endDate, " && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in' collect with count into length")
|
|
20091
20154
|
},
|
|
20092
20155
|
return_fields: "{CheckedIn:length}"
|
|
20093
20156
|
},
|
|
@@ -20115,7 +20178,8 @@ var visitQuery = {
|
|
|
20115
20178
|
entity: "Practitioner,Encounter",
|
|
20116
20179
|
filter: {
|
|
20117
20180
|
Practitioner: "DOCUMENT(DOCUMENT(DOCUMENT(Practitioner.practitioner_role[*])[*].role)[0].coding)[*].code ANY =='PR023' && Practitioner.id==".concat(loginId, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(orGId, "'"),
|
|
20118
|
-
Encounter:
|
|
20181
|
+
// Encounter: `Encounter.activestatus == true && Encounter.Organization_id == ${orgId} && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality AND Encounter.encounterdate>=${startDate} && Encounter.encounterdate<=${endDate} && DOCUMENT(Encounter.statushistory[*].status)[*].display ANY=='Triaged' collect with count into length`,
|
|
20182
|
+
Encounter: "Encounter.activestatus == true && Encounter.Organization_id == ".concat(orgId, " && (first(document(DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID)[*].coding) ANY IN Encounter.practitioner_details[*].speciality || DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality) AND Encounter.encounterdate>=").concat(startDate, " && Encounter.encounterdate<=").concat(endDate, " && DOCUMENT(Encounter.statushistory[*].status)[*].display ANY=='Triaged' collect with count into length")
|
|
20119
20183
|
},
|
|
20120
20184
|
return_fields: "{TriagedCount:length}"
|
|
20121
20185
|
},
|
|
@@ -20143,7 +20207,8 @@ var visitQuery = {
|
|
|
20143
20207
|
entity: "Practitioner,Encounter",
|
|
20144
20208
|
filter: {
|
|
20145
20209
|
Practitioner: "DOCUMENT(DOCUMENT(DOCUMENT(Practitioner.practitioner_role[*])[*].role)[0].coding)[*].code ANY =='PR023' && Practitioner.id== ".concat(loginId, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(orGId, "'"),
|
|
20146
|
-
Encounter:
|
|
20210
|
+
// Encounter: `Encounter.activestatus == true && Encounter.Organization_id == ${orgId} && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality AND Encounter.encounterdate>= ${startDate} && Encounter.encounterdate<= ${endDate} && Encounter.encounterdate<=${endDate} && document(Encounter.statushistory[*].status)[*].code ANY =='ENCSTATUS0010' collect with count into length`,
|
|
20211
|
+
Encounter: "Encounter.activestatus == true && Encounter.Organization_id == ".concat(orgId, " && (first(document(DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID)[*].coding) ANY IN Encounter.practitioner_details[*].speciality || DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality) AND Encounter.encounterdate>= 1655404200 && Encounter.encounterdate<= ").concat(startDate, " && Encounter.encounterdate<=").concat(endDate, " && document(Encounter.statushistory[*].status)[*].code ANY =='ENCSTATUS0010' collect with count into length")
|
|
20147
20212
|
},
|
|
20148
20213
|
return_fields: "{CompletedCount:length}"
|
|
20149
20214
|
},
|