primarycare-binder 1.1.104 → 1.1.107

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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +35 -17
  2. 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: dbName,
15583
- entity: "CodingMaster",
15584
- filter: "CodingMaster.Type == 'ENCOUNTERTYPE' && CodingMaster.status == true && CodingMaster.activestatus==true ",
15585
- return_fields: "KEEP(CodingMaster,'_id','id','_key','Type','status','activestatus','shortdesc','display','code')",
15586
- sort: "document(AMPatientClass.encTypeDesc).display"
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: dbName,
15636
- entity: "AMPatientClass",
15637
- filter: "AMPatientClass.encType=='".concat(encType, "' && AMPatientClass.activestatus==true && AMPatientClass.status==true"),
15638
- return_fields: "merge(AMPatientClass,{encType:document(AMPatientClass.encType).code},{encTypeDesc:document(AMPatientClass.encTypeDesc).display},{encClsType:document(AMPatientClass.encClsType).code},{encClsDesc:document(AMPatientClass.encClsDesc).display})",
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: 0,
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: [{
@@ -29043,7 +29061,7 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
29043
29061
  label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
29044
29062
  },
29045
29063
  dateTime: (_utcTOLocal = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal !== void 0 ? _utcTOLocal : "",
29046
- endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : "",
29064
+ endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ? utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceEndDate, "YYYY-MM-DD,hh:mm A") : "",
29047
29065
  childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson$2(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
29048
29066
  recurrent: false,
29049
29067
  headerShow: true,
@@ -34375,7 +34393,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
34375
34393
  label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
34376
34394
  },
34377
34395
  dateTime: (_utcTOLocal = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal !== void 0 ? _utcTOLocal : "",
34378
- endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : "",
34396
+ endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ? utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceEndDate, "YYYY-MM-DD,hh:mm A") : "",
34379
34397
  childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson$1(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
34380
34398
  recurrent: false,
34381
34399
  headerShow: true,
@@ -36297,7 +36315,7 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
36297
36315
  label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
36298
36316
  },
36299
36317
  dateTime: (_utcTOLocal = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal !== void 0 ? _utcTOLocal : "",
36300
- endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : "",
36318
+ endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ? utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceEndDate, "YYYY-MM-DD,hh:mm A") : "",
36301
36319
  childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
36302
36320
  recurrent: false,
36303
36321
  headerShow: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.104",
3
+ "version": "1.1.107",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",