primary_care_admin_binder 0.0.41 → 0.0.42

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 +13 -8
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -9818,9 +9818,12 @@ var query$5 = {
9818
9818
  specialityCodeOrgId: function specialityCodeOrgId(data) {
9819
9819
  return {
9820
9820
  db_name: dbName,
9821
- entity: "Specialty",
9822
- filter: "FIRST(document(Specialty.facilities)[*].orgId)=='".concat(data, "' && Specialty.activestatus==true && Specialty.active==true && Specialty.islastLevel==true && FIRST(document(Specialty.facilities)[*].effFrom) <= DATE_TIMESTAMP(DATE_NOW()/1000) && (FIRST(document(Specialty.facilities)[*].effTo) == 0 || FIRST(document(Specialty.facilities)[*].effTo) == null ? FIRST(document(Specialty.facilities)[*].effTo)==0: FIRST(document(Specialty.facilities)[*].effTo) >= DATE_TIMESTAMP(DATE_NOW()/1000))"),
9823
- return_fields: "{_key:Specialty._key,id:Specialty.id,_id:Specialty._id,specialtyCode:Specialty.specialtyCode,description:Specialty.description,islastLevel:Specialty.islastLevel,parentspecialtyCode:document(Specialty.parentspecialtyCode)}"
9821
+ entity: "HealthcareService,CodeableConceptMaster",
9822
+ filter: {
9823
+ HealthcareService: "HealthcareService.OrgID==".concat(data.id),
9824
+ CodeableConceptMaster: "CodeableConceptMaster.id IN HealthcareService.SpecialtyID AND CodeableConceptMaster.Type=='SPECIALTY'"
9825
+ },
9826
+ return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
9824
9827
  };
9825
9828
  },
9826
9829
  specialityCode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"HealthcareService,CodeableConceptMaster\",\n \"filter\":{\"CodeableConceptMaster\":\"CodeableConceptMaster.id IN HealthcareService.SpecialtyID AND CodeableConceptMaster.Type=='SPECIALTY'\"},\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
@@ -10628,7 +10631,7 @@ var SPECIALITY_CODE_ORG_ID = createAsyncThunk("vitalApplicableApiSlice/specialit
10628
10631
  var payload,
10629
10632
  _ref28,
10630
10633
  rejectWithValue,
10631
- listId,
10634
+ orgId,
10632
10635
  data,
10633
10636
  arr,
10634
10637
  _args14 = arguments;
@@ -10641,19 +10644,21 @@ var SPECIALITY_CODE_ORG_ID = createAsyncThunk("vitalApplicableApiSlice/specialit
10641
10644
  _ref28 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
10642
10645
  _context14.prev = 2;
10643
10646
  debugger;
10644
- listId = payload.listId;
10647
+ orgId = {
10648
+ id: payload.org_id
10649
+ };
10645
10650
  _context14.next = 7;
10646
10651
  return fetchData({
10647
- body: JSON.stringify(query$5.specialityCodeOrgId(listId))
10652
+ body: JSON.stringify(query$5.specialityCodeOrgId(orgId))
10648
10653
  }, __readDocumentUrl__);
10649
10654
 
10650
10655
  case 7:
10651
10656
  data = _context14.sent;
10652
10657
  arr = [];
10653
10658
  data && data.result.map(function (val) {
10654
- arr.push({
10659
+ if (val.coding[0] !== null) arr.push({
10655
10660
  value: val._id,
10656
- label: val.specialtyCode
10661
+ label: val.coding[0].display
10657
10662
  });
10658
10663
  });
10659
10664
  return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",