primarycare-binder 1.1.105 → 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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +28 -13
  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
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.105",
3
+ "version": "1.1.106",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",