primarycare-binder 1.1.103 → 1.1.106
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 +33 -15
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15577,13 +15577,20 @@ var GET_ENCOUNTER_MASTER_TYPE = createAsyncThunk('searchApiSlice/masterEncounter
|
|
|
15577
15577
|
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
15578
15578
|
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
15579
15579
|
_context10.prev = 2;
|
|
15580
|
-
returnData = [];
|
|
15580
|
+
returnData = []; // const encounterTypeBody = {
|
|
15581
|
+
// db_name: dbName,
|
|
15582
|
+
// entity: "CodingMaster",
|
|
15583
|
+
// filter: "CodingMaster.Type == 'ENCOUNTERTYPE' && CodingMaster.status == true && CodingMaster.activestatus==true ",
|
|
15584
|
+
// return_fields: "KEEP(CodingMaster,'_id','id','_key','Type','status','activestatus','shortdesc','display','code')",
|
|
15585
|
+
// sort: "document(AMPatientClass.encTypeDesc).display"
|
|
15586
|
+
// }
|
|
15587
|
+
|
|
15581
15588
|
encounterTypeBody = {
|
|
15582
|
-
db_name:
|
|
15583
|
-
entity: "
|
|
15584
|
-
filter: "
|
|
15585
|
-
return_fields: "
|
|
15586
|
-
sort: "
|
|
15589
|
+
"db_name": "primarycare",
|
|
15590
|
+
"entity": "AMPatientClass",
|
|
15591
|
+
"filter": "AMPatientClass.status==true && AMPatientClass.activestatus==true",
|
|
15592
|
+
"return_fields": "keep(AMPatientClass,'_id','_key','id','shortDesc','longDesc','status')",
|
|
15593
|
+
"sort": "AMPatientClass.shortDesc"
|
|
15587
15594
|
};
|
|
15588
15595
|
_context10.next = 7;
|
|
15589
15596
|
return fetchData$3({
|
|
@@ -15615,6 +15622,8 @@ var GET_ENCOUNTER_MASTER_CLASS = createAsyncThunk('searchApiSlice/masterEncounte
|
|
|
15615
15622
|
var payload,
|
|
15616
15623
|
_ref22,
|
|
15617
15624
|
rejectWithValue,
|
|
15625
|
+
_encounterClass$resul,
|
|
15626
|
+
_encounterClass$resul2,
|
|
15618
15627
|
_payload$encType,
|
|
15619
15628
|
encType,
|
|
15620
15629
|
returnData,
|
|
@@ -15630,13 +15639,19 @@ var GET_ENCOUNTER_MASTER_CLASS = createAsyncThunk('searchApiSlice/masterEncounte
|
|
|
15630
15639
|
_ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
15631
15640
|
_context11.prev = 2;
|
|
15632
15641
|
_payload$encType = payload.encType, encType = _payload$encType === void 0 ? "" : _payload$encType;
|
|
15633
|
-
returnData = {
|
|
15642
|
+
returnData = []; // const encounterClassBody = {
|
|
15643
|
+
// db_name: dbName,
|
|
15644
|
+
// entity: "AMPatientClass",
|
|
15645
|
+
// filter: `AMPatientClass.encType=='${encType}' && AMPatientClass.activestatus==true && AMPatientClass.status==true`,
|
|
15646
|
+
// return_fields: "merge(AMPatientClass,{encType:document(AMPatientClass.encType).code},{encTypeDesc:document(AMPatientClass.encTypeDesc).display},{encClsType:document(AMPatientClass.encClsType).code},{encClsDesc:document(AMPatientClass.encClsDesc).display})",
|
|
15647
|
+
// sort: "document(AMPatientClass.encTypeDesc).display"
|
|
15648
|
+
// }
|
|
15649
|
+
|
|
15634
15650
|
encounterClassBody = {
|
|
15635
|
-
db_name:
|
|
15636
|
-
entity: "AMPatientClass",
|
|
15637
|
-
filter: "AMPatientClass.
|
|
15638
|
-
return_fields: "
|
|
15639
|
-
sort: "document(AMPatientClass.encTypeDesc).display"
|
|
15651
|
+
"db_name": "primarycare",
|
|
15652
|
+
"entity": "AMPatientClass",
|
|
15653
|
+
"filter": "AMPatientClass._id=='".concat(encType, "' && AMPatientClass.status==true && AMPatientClass.activestatus==true"),
|
|
15654
|
+
"return_fields": "{encClsByTypes:AMPatientClass.encClsByTypes}"
|
|
15640
15655
|
};
|
|
15641
15656
|
_context11.next = 8;
|
|
15642
15657
|
return fetchData$3({
|
|
@@ -15645,7 +15660,7 @@ var GET_ENCOUNTER_MASTER_CLASS = createAsyncThunk('searchApiSlice/masterEncounte
|
|
|
15645
15660
|
|
|
15646
15661
|
case 8:
|
|
15647
15662
|
encounterClass = _context11.sent;
|
|
15648
|
-
returnData = encounterClass === null || encounterClass === void 0 ? void 0 : encounterClass.result;
|
|
15663
|
+
returnData = encounterClass === null || encounterClass === void 0 ? void 0 : (_encounterClass$resul = encounterClass.result) === null || _encounterClass$resul === void 0 ? void 0 : (_encounterClass$resul2 = _encounterClass$resul[0]) === null || _encounterClass$resul2 === void 0 ? void 0 : _encounterClass$resul2.encClsByTypes;
|
|
15649
15664
|
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
15650
15665
|
data: returnData
|
|
15651
15666
|
}));
|
|
@@ -20046,7 +20061,10 @@ var dashboardQuery = {
|
|
|
20046
20061
|
period: "",
|
|
20047
20062
|
Practitioner_id: data === null || data === void 0 ? void 0 : data.Practitioner_id,
|
|
20048
20063
|
PractitionerRole_id: data === null || data === void 0 ? void 0 : data.PractitionerRole_id,
|
|
20049
|
-
RelatedPerson_id:
|
|
20064
|
+
RelatedPerson_id: [{
|
|
20065
|
+
"relatedpersonid": "0",
|
|
20066
|
+
"relationship": ""
|
|
20067
|
+
}],
|
|
20050
20068
|
specialty: data === null || data === void 0 ? void 0 : data.specialty
|
|
20051
20069
|
}],
|
|
20052
20070
|
participantHistory: [{
|
|
@@ -38612,7 +38630,7 @@ var siginInActions = {
|
|
|
38612
38630
|
var SigninFollowup$1 = SigninFollowup.reducer;
|
|
38613
38631
|
|
|
38614
38632
|
var queries$2 = {
|
|
38615
|
-
category: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='DOCCATEGORY' && CodeableConceptMaster.
|
|
38633
|
+
category: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='DOCCATEGORY' && CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
38616
38634
|
document: function document(id) {
|
|
38617
38635
|
return {
|
|
38618
38636
|
db_name: dbName,
|