primary_care_admin_binder 0.1.121 → 0.1.122

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 +138 -64
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -11277,7 +11277,8 @@ var query_ids = {
11277
11277
  "VitalRead": "eebb32ae-0a5f-49b4-9484-41111ec83fa3",
11278
11278
  "getQDMDataType": "14a1a710-c539-494f-a405-49ca98c5950d",
11279
11279
  "generalMasterSearch": "92774963-ed7d-4bb7-a2fc-35e71668956b",
11280
- "rcChargeRateSearch": "b6adb851-754e-4c7d-964f-b217e33945dd"
11280
+ "rcChargeRateSearch": "b6adb851-754e-4c7d-964f-b217e33945dd",
11281
+ "resOrderCatalogVitalCode": "493389da-6789-4ed0-89e4-a2d546025f1e"
11281
11282
  };
11282
11283
 
11283
11284
  var query$9 = {
@@ -23407,15 +23408,16 @@ var generateSaveChargeRate = function generateSaveChargeRate(data, rcchargeData,
23407
23408
  metadataId: metaDataId$1
23408
23409
  }, filter), {}, {
23409
23410
  doc: {
23410
- baserate: data !== null && data !== void 0 && data.baseRate ? parseFloat(data === null || data === void 0 ? void 0 : data.baseRate) : 0,
23411
- chargeind: (_data$chargeInd = data === null || data === void 0 ? void 0 : data.chargeInd) !== null && _data$chargeInd !== void 0 ? _data$chargeInd : "",
23411
+ baserate: data !== null && data !== void 0 && data.baseRate ? parseFloat(data === null || data === void 0 ? void 0 : data.baseRate) : 1000,
23412
+ chargeind: (_data$chargeInd = data === null || data === void 0 ? void 0 : data.chargeInd) !== null && _data$chargeInd !== void 0 ? _data$chargeInd : "CodingMaster/11286",
23412
23413
  code: (_rcchargeData$code = rcchargeData === null || rcchargeData === void 0 ? void 0 : rcchargeData.code) !== null && _rcchargeData$code !== void 0 ? _rcchargeData$code : rcchargeCode,
23413
- costprice: data !== null && data !== void 0 && data.costPrice ? parseFloat(data === null || data === void 0 ? void 0 : data.costPrice) : 0,
23414
- ratedefntype: data !== null && data !== void 0 && data.rateDefinitionType ? data === null || data === void 0 ? void 0 : data.rateDefinitionType.value : "",
23414
+ costprice: data !== null && data !== void 0 && data.costPrice ? parseFloat(data === null || data === void 0 ? void 0 : data.costPrice) : 1000,
23415
+ ratedefntype: data !== null && data !== void 0 && data.rateDefinitionType ? data === null || data === void 0 ? void 0 : data.rateDefinitionType.value : "CodingMaster/11287",
23415
23416
  ratebycriteria: [{
23416
23417
  ratecondition: data !== null && data !== void 0 && data.rateCondition ? data === null || data === void 0 ? void 0 : data.rateCondition.value : "",
23417
23418
  chargerate: data !== null && data !== void 0 && data.chargerate ? data === null || data === void 0 ? void 0 : data.chargerate : "",
23418
23419
  discperc: data !== null && data !== void 0 && data.discperc ? parseFloat(data === null || data === void 0 ? void 0 : data.discperc) : 0,
23420
+ baserate: data !== null && data !== void 0 && data.baseratecriteria ? parseFloat(data === null || data === void 0 ? void 0 : data.baseratecriteria) : 1000,
23419
23421
  efffr: (_data$effFr = data === null || data === void 0 ? void 0 : data.effFr) !== null && _data$effFr !== void 0 ? _data$effFr : 0,
23420
23422
  effto: (_data$effTo = data === null || data === void 0 ? void 0 : data.effTo) !== null && _data$effTo !== void 0 ? _data$effTo : 0
23421
23423
  }]
@@ -23733,87 +23735,89 @@ var photoData = function photoData(data) {
23733
23735
  var generateReadResJsonData = function generateReadResJsonData(val, state, resState) {
23734
23736
  var _val$catalogsynonym2, _val$ordercategory2, _val$ordertype2, _val$healthcareservic2, _val$dfltqtyUOM2, _val$maxorderqtyUOM2, _photoData, _val$repeatCheckUOM2, _val$repeatCheckActio2, _generateAttribute2, _val$dfltSpecimenType2, _val$dfltSpecimenVolu2, _val$dfltSpecimenBody2, _val$dfltFastingPerio2, _val$dfltSpecimenCont2, _val$dfltSpecimenColl2, _generateResoure2, _generateObservation2;
23735
23737
  return {
23736
- code: val.ordercatalog,
23737
- longdes: val.longdesc,
23738
- shortdes: val.shortdesc,
23739
- catalogSynonym: (_val$catalogsynonym2 = val.catalogsynonym) !== null && _val$catalogsynonym2 !== void 0 ? _val$catalogsynonym2 : "",
23738
+ code: val === null || val === void 0 ? void 0 : val.ordercatalog,
23739
+ longdes: val === null || val === void 0 ? void 0 : val.longdesc,
23740
+ shortdes: val === null || val === void 0 ? void 0 : val.shortdesc,
23741
+ catalogSynonym: (_val$catalogsynonym2 = val === null || val === void 0 ? void 0 : val.catalogsynonym) !== null && _val$catalogsynonym2 !== void 0 ? _val$catalogsynonym2 : "",
23740
23742
  orderCategory: val !== null && val !== void 0 && val.ordercategory && val !== null && val !== void 0 && (_val$ordercategory2 = val.ordercategory) !== null && _val$ordercategory2 !== void 0 && _val$ordercategory2._id ? val === null || val === void 0 ? void 0 : val.ordercategory : null,
23741
- orderType: val.ordertype && (_val$ordertype2 = val.ordertype) !== null && _val$ordertype2 !== void 0 && _val$ordertype2._id ? val.ordertype : null,
23742
- healthcareService: val.healthcareservicecode && (_val$healthcareservic2 = val.healthcareservicecode) !== null && _val$healthcareservic2 !== void 0 && _val$healthcareservic2._id ? val.healthcareservicecode : null,
23743
- Qtyno: val.dfltqty,
23744
- DefaultQuantity: val.dfltqtyUOM && (_val$dfltqtyUOM2 = val.dfltqtyUOM) !== null && _val$dfltqtyUOM2 !== void 0 && _val$dfltqtyUOM2._id ? val.dfltqtyUOM : null,
23745
- AllowQtyCheck: val.allowqtychange,
23746
- maxno: val.maxorderqty,
23747
- Maxorder: val.maxorderqtyUOM && (_val$maxorderqtyUOM2 = val.maxorderqtyUOM) !== null && _val$maxorderqtyUOM2 !== void 0 && _val$maxorderqtyUOM2._id ? val.maxorderqtyUOM : null,
23748
- explantorymsg: val.explanatorynote,
23743
+ orderType: val !== null && val !== void 0 && val.ordertype && val !== null && val !== void 0 && (_val$ordertype2 = val.ordertype) !== null && _val$ordertype2 !== void 0 && _val$ordertype2._id ? val === null || val === void 0 ? void 0 : val.ordertype : null,
23744
+ healthcareService: val !== null && val !== void 0 && val.healthcareservicecode && val !== null && val !== void 0 && (_val$healthcareservic2 = val.healthcareservicecode) !== null && _val$healthcareservic2 !== void 0 && _val$healthcareservic2._id ? val === null || val === void 0 ? void 0 : val.healthcareservicecode : null,
23745
+ Qtyno: val === null || val === void 0 ? void 0 : val.dfltqty,
23746
+ DefaultQuantity: val !== null && val !== void 0 && val.dfltqtyUOM && val !== null && val !== void 0 && (_val$dfltqtyUOM2 = val.dfltqtyUOM) !== null && _val$dfltqtyUOM2 !== void 0 && _val$dfltqtyUOM2._id ? val.dfltqtyUOM : null,
23747
+ AllowQtyCheck: val === null || val === void 0 ? void 0 : val.allowqtychange,
23748
+ maxno: val === null || val === void 0 ? void 0 : val.maxorderqty,
23749
+ Maxorder: val !== null && val !== void 0 && val.maxorderqtyUOM && val !== null && val !== void 0 && (_val$maxorderqtyUOM2 = val.maxorderqtyUOM) !== null && _val$maxorderqtyUOM2 !== void 0 && _val$maxorderqtyUOM2._id ? val === null || val === void 0 ? void 0 : val.maxorderqtyUOM : null,
23750
+ explantorymsg: val === null || val === void 0 ? void 0 : val.explanatorynote,
23749
23751
  photo: (_photoData = photoData(val === null || val === void 0 ? void 0 : val.photo)) !== null && _photoData !== void 0 ? _photoData : [],
23750
23752
  characteristicJson: [{
23751
23753
  label: "Complete On Order",
23752
- checked: val.completeonorder
23754
+ checked: val === null || val === void 0 ? void 0 : val.completeonorder
23753
23755
  }, {
23754
23756
  label: "Hold Applicable",
23755
- checked: val.holdappl
23757
+ checked: val === null || val === void 0 ? void 0 : val.holdappl
23756
23758
  }, {
23757
23759
  label: "Discontinue Applicable",
23758
- checked: val.discontinuappl
23760
+ checked: val === null || val === void 0 ? void 0 : val.discontinuappl
23759
23761
  }, {
23760
23762
  label: "Chargeable",
23761
- checked: val.chargeable
23763
+ checked: val === null || val === void 0 ? void 0 : val.chargeable
23762
23764
  }, {
23763
23765
  label: "Result Applicable",
23764
- checked: val.resultappl
23766
+ checked: val === null || val === void 0 ? void 0 : val.resultappl
23765
23767
  }, {
23766
23768
  label: "Result Authentication Required",
23767
- checked: val.resultauthreqd
23769
+ checked: val === null || val === void 0 ? void 0 : val.resultauthreqd
23768
23770
  }],
23769
23771
  // itemdesc:(val.itemdesc)
23770
23772
  // ? state.order_catalog_serviceItem.data.find(
23771
23773
  // (sys) => val.itemdesc.indexOf(sys.value) > -1
23772
23774
  // )
23773
23775
  // : null,
23774
- checkSwitch: val.checkforrepeatorders,
23775
- no: val.repeatcheckperiod,
23776
- DuplicatePeriod: val.repeatCheckUOM && (_val$repeatCheckUOM2 = val.repeatCheckUOM) !== null && _val$repeatCheckUOM2 !== void 0 && _val$repeatCheckUOM2._id ? val.repeatCheckUOM : null,
23777
- CheckAction: val.repeatCheckAction && (_val$repeatCheckActio2 = val.repeatCheckAction) !== null && _val$repeatCheckActio2 !== void 0 && _val$repeatCheckActio2._id ? val.repeatCheckAction : null,
23778
- consentSwitch: val.consentreqd,
23776
+ checkSwitch: val === null || val === void 0 ? void 0 : val.checkforrepeatorders,
23777
+ no: val === null || val === void 0 ? void 0 : val.repeatcheckperiod,
23778
+ DuplicatePeriod: val !== null && val !== void 0 && val.repeatCheckUOM && val !== null && val !== void 0 && (_val$repeatCheckUOM2 = val.repeatCheckUOM) !== null && _val$repeatCheckUOM2 !== void 0 && _val$repeatCheckUOM2._id ? val === null || val === void 0 ? void 0 : val.repeatCheckUOM : null,
23779
+ CheckAction: val !== null && val !== void 0 && val.repeatCheckAction && val !== null && val !== void 0 && (_val$repeatCheckActio2 = val.repeatCheckAction) !== null && _val$repeatCheckActio2 !== void 0 && _val$repeatCheckActio2._id ? val === null || val === void 0 ? void 0 : val.repeatCheckAction : null,
23780
+ consentSwitch: val === null || val === void 0 ? void 0 : val.consentreqd,
23779
23781
  ConsentForm: null,
23780
- attribute: val.OrderAttribApplicability.length > 0 ? val.OrderAttribApplicability[0].winlabelName : "",
23781
- AttributeList: (_generateAttribute2 = generateAttribute(val.OrderAttribApplicability, state)) !== null && _generateAttribute2 !== void 0 ? _generateAttribute2 : [],
23782
- FacilityData: generatefaciltity(val.AvailablebyPerOrganization),
23783
- SpecimenType: val.dfltSpecimenType && (_val$dfltSpecimenType2 = val.dfltSpecimenType) !== null && _val$dfltSpecimenType2 !== void 0 && _val$dfltSpecimenType2._id ? val.dfltSpecimenType : null,
23784
- VolumeQuantity: val.dfltSpecimenVolume,
23785
- Volume: val.dfltSpecimenVolumeUOM && (_val$dfltSpecimenVolu2 = val.dfltSpecimenVolumeUOM) !== null && _val$dfltSpecimenVolu2 !== void 0 && _val$dfltSpecimenVolu2._id ? dfltSpecimenVolumeUOM : null,
23786
- BodyType: val.dfltSpecimenBodySite && (_val$dfltSpecimenBody2 = val.dfltSpecimenBodySite) !== null && _val$dfltSpecimenBody2 !== void 0 && _val$dfltSpecimenBody2._id ? dfltSpecimenBodySite : null,
23787
- FastingPeriodQuantity: val.dfltFastingPeriod,
23788
- FastingPeriod: val.dfltFastingPeriodUOM && (_val$dfltFastingPerio2 = val.dfltFastingPeriodUOM) !== null && _val$dfltFastingPerio2 !== void 0 && _val$dfltFastingPerio2._id ? val.dfltFastingPeriodUOM : null,
23789
- SpecimenContainer: val.dfltSpecimenContainer && (_val$dfltSpecimenCont2 = val.dfltSpecimenContainer) !== null && _val$dfltSpecimenCont2 !== void 0 && _val$dfltSpecimenCont2._id ? val.dfltSpecimenContainer : null,
23790
- CollectionMethod: val.dfltSpecimenCollectionMethod && (_val$dfltSpecimenColl2 = val.dfltSpecimenCollectionMethod) !== null && _val$dfltSpecimenColl2 !== void 0 && _val$dfltSpecimenColl2._id ? val.dfltSpecimenCollectionMethod : null,
23791
- instructions: generateInstruction(val.instruction),
23792
- Frequency_applicability: generateFrequency(val.frequency).length > 0 ? true : false,
23793
- frequency: generateFrequency(val.frequency),
23794
- editData: val._key,
23795
- id: val.id,
23796
- draftstatus: val.draftstatus,
23797
- status: val.status,
23798
- resourceList: (_generateResoure2 = generateResoure(val.resourcedefinition)) !== null && _generateResoure2 !== void 0 ? _generateResoure2 : [],
23799
- observationList: (_generateObservation2 = generateObservation(val.observationdetails)) !== null && _generateObservation2 !== void 0 ? _generateObservation2 : []
23782
+ attribute: (val === null || val === void 0 ? void 0 : val.OrderAttribApplicability.length) > 0 ? val === null || val === void 0 ? void 0 : val.OrderAttribApplicability[0].winlabelName : "",
23783
+ AttributeList: (_generateAttribute2 = generateAttribute(val === null || val === void 0 ? void 0 : val.OrderAttribApplicability, state)) !== null && _generateAttribute2 !== void 0 ? _generateAttribute2 : [],
23784
+ FacilityData: generatefaciltity(val === null || val === void 0 ? void 0 : val.AvailablebyPerOrganization),
23785
+ SpecimenType: val !== null && val !== void 0 && val.dfltSpecimenType && val !== null && val !== void 0 && (_val$dfltSpecimenType2 = val.dfltSpecimenType) !== null && _val$dfltSpecimenType2 !== void 0 && _val$dfltSpecimenType2._id ? val === null || val === void 0 ? void 0 : val.dfltSpecimenType : null,
23786
+ VolumeQuantity: val === null || val === void 0 ? void 0 : val.dfltSpecimenVolume,
23787
+ Volume: val !== null && val !== void 0 && val.dfltSpecimenVolumeUOM && val !== null && val !== void 0 && (_val$dfltSpecimenVolu2 = val.dfltSpecimenVolumeUOM) !== null && _val$dfltSpecimenVolu2 !== void 0 && _val$dfltSpecimenVolu2._id ? val === null || val === void 0 ? void 0 : val.dfltSpecimenVolumeUOM : null,
23788
+ BodyType: val !== null && val !== void 0 && val.dfltSpecimenBodySite && val !== null && val !== void 0 && (_val$dfltSpecimenBody2 = val.dfltSpecimenBodySite) !== null && _val$dfltSpecimenBody2 !== void 0 && _val$dfltSpecimenBody2._id ? val === null || val === void 0 ? void 0 : val.dfltSpecimenBodySite : null,
23789
+ FastingPeriodQuantity: val === null || val === void 0 ? void 0 : val.dfltFastingPeriod,
23790
+ FastingPeriod: val !== null && val !== void 0 && val.dfltFastingPeriodUOM && val !== null && val !== void 0 && (_val$dfltFastingPerio2 = val.dfltFastingPeriodUOM) !== null && _val$dfltFastingPerio2 !== void 0 && _val$dfltFastingPerio2._id ? val === null || val === void 0 ? void 0 : val.dfltFastingPeriodUOM : null,
23791
+ SpecimenContainer: val !== null && val !== void 0 && val.dfltSpecimenContainer && val !== null && val !== void 0 && (_val$dfltSpecimenCont2 = val.dfltSpecimenContainer) !== null && _val$dfltSpecimenCont2 !== void 0 && _val$dfltSpecimenCont2._id ? val === null || val === void 0 ? void 0 : val.dfltSpecimenContainer : null,
23792
+ CollectionMethod: val !== null && val !== void 0 && val.dfltSpecimenCollectionMethod && val !== null && val !== void 0 && (_val$dfltSpecimenColl2 = val.dfltSpecimenCollectionMethod) !== null && _val$dfltSpecimenColl2 !== void 0 && _val$dfltSpecimenColl2._id ? val === null || val === void 0 ? void 0 : val.dfltSpecimenCollectionMethod : null,
23793
+ instructions: generateInstruction(val === null || val === void 0 ? void 0 : val.instruction),
23794
+ Frequency_applicability: generateFrequency(val === null || val === void 0 ? void 0 : val.frequency).length > 0 ? true : false,
23795
+ frequency: generateFrequency(val === null || val === void 0 ? void 0 : val.frequency),
23796
+ editData: val === null || val === void 0 ? void 0 : val._key,
23797
+ id: val === null || val === void 0 ? void 0 : val.id,
23798
+ draftstatus: val === null || val === void 0 ? void 0 : val.draftstatus,
23799
+ status: val === null || val === void 0 ? void 0 : val.status,
23800
+ resourceList: (_generateResoure2 = generateResoure(val === null || val === void 0 ? void 0 : val.resourcedefinition)) !== null && _generateResoure2 !== void 0 ? _generateResoure2 : [],
23801
+ observationList: (_generateObservation2 = generateObservation(val === null || val === void 0 ? void 0 : val.observationdetails)) !== null && _generateObservation2 !== void 0 ? _generateObservation2 : []
23800
23802
  // observationList: val.observationdetails
23801
23803
  };
23802
23804
  };
23803
23805
 
23804
23806
  var generateAttribute = function generateAttribute(data, state) {
23805
- var arr = data.map(function (v) {
23807
+ var arr = data === null || data === void 0 ? void 0 : data.map(function (v) {
23808
+ var _state$order_catalog_, _state$order_catalog_2, _v$AttribComponents$2, _v$AttribComponents$3, _v$AttribComponents$4, _v$AttribComponents$5, _v$AttribComponents$6, _v$AttribComponents$7;
23806
23809
  return {
23807
- Attcode: state.order_catalog_attrcode.data.find(function (sys) {
23808
- return v.AttribComponents[0].attribCode.indexOf(sys.value) > -1;
23810
+ Attcode: state === null || state === void 0 ? void 0 : (_state$order_catalog_ = state.order_catalog_attrcode) === null || _state$order_catalog_ === void 0 ? void 0 : (_state$order_catalog_2 = _state$order_catalog_.data) === null || _state$order_catalog_2 === void 0 ? void 0 : _state$order_catalog_2.find(function (sys) {
23811
+ var _v$AttribComponents$, _v$AttribComponents$$;
23812
+ return ((_v$AttribComponents$ = v.AttribComponents[0]) === null || _v$AttribComponents$ === void 0 ? void 0 : (_v$AttribComponents$$ = _v$AttribComponents$.attribCode) === null || _v$AttribComponents$$ === void 0 ? void 0 : _v$AttribComponents$$.indexOf(sys === null || sys === void 0 ? void 0 : sys.value)) > -1;
23809
23813
  }),
23810
- label: v.AttribComponents[0].attribLabel,
23811
- type: v.AttribComponents[0].attribType,
23812
- defaultValue: v.AttribComponents[0].attribType === "Number" || v.AttribComponents[0].attribType === "Text" ? {
23813
- label: v.AttribComponents[0].attribdefaultVal
23814
+ label: (_v$AttribComponents$2 = v.AttribComponents[0]) === null || _v$AttribComponents$2 === void 0 ? void 0 : _v$AttribComponents$2.attribLabel,
23815
+ type: (_v$AttribComponents$3 = v.AttribComponents[0]) === null || _v$AttribComponents$3 === void 0 ? void 0 : _v$AttribComponents$3.attribType,
23816
+ defaultValue: (v === null || v === void 0 ? void 0 : (_v$AttribComponents$4 = v.AttribComponents[0]) === null || _v$AttribComponents$4 === void 0 ? void 0 : _v$AttribComponents$4.attribType) === "Number" || (v === null || v === void 0 ? void 0 : (_v$AttribComponents$5 = v.AttribComponents[0]) === null || _v$AttribComponents$5 === void 0 ? void 0 : _v$AttribComponents$5.attribType) === "Text" ? {
23817
+ label: v === null || v === void 0 ? void 0 : (_v$AttribComponents$6 = v.AttribComponents[0]) === null || _v$AttribComponents$6 === void 0 ? void 0 : _v$AttribComponents$6.attribdefaultVal
23814
23818
  } : getDefautlValue(v, state.order_catalog_attrcode.data),
23815
23819
  _id: v._key,
23816
- isMandatory: v.AttribComponents[0].mandatory
23820
+ isMandatory: v === null || v === void 0 ? void 0 : (_v$AttribComponents$7 = v.AttribComponents[0]) === null || _v$AttribComponents$7 === void 0 ? void 0 : _v$AttribComponents$7.mandatory
23817
23821
  };
23818
23822
  });
23819
23823
  return arr;
@@ -23841,11 +23845,14 @@ var generateObservation = function generateObservation(data) {
23841
23845
  return arr;
23842
23846
  };
23843
23847
  var getDefautlValue = function getDefautlValue(v, attr) {
23844
- var obj = attr.find(function (sys) {
23845
- return v.AttribComponents[0].attribCode.indexOf(sys.value) > -1;
23848
+ var _obj$AttribValidValue;
23849
+ var obj = attr === null || attr === void 0 ? void 0 : attr.find(function (sys) {
23850
+ var _v$AttribComponents$8, _v$AttribComponents$9;
23851
+ return (v === null || v === void 0 ? void 0 : (_v$AttribComponents$8 = v.AttribComponents[0]) === null || _v$AttribComponents$8 === void 0 ? void 0 : (_v$AttribComponents$9 = _v$AttribComponents$8.attribCode) === null || _v$AttribComponents$9 === void 0 ? void 0 : _v$AttribComponents$9.indexOf(sys === null || sys === void 0 ? void 0 : sys.value)) > -1;
23846
23852
  });
23847
- var value = obj.AttribValidValues.find(function (sys) {
23848
- return v.AttribComponents[0].attribdefaultVal.indexOf(sys.label) > -1;
23853
+ var value = obj === null || obj === void 0 ? void 0 : (_obj$AttribValidValue = obj.AttribValidValues) === null || _obj$AttribValidValue === void 0 ? void 0 : _obj$AttribValidValue.find(function (sys) {
23854
+ var _v$AttribComponents$10, _v$AttribComponents$11;
23855
+ return (v === null || v === void 0 ? void 0 : (_v$AttribComponents$10 = v.AttribComponents[0]) === null || _v$AttribComponents$10 === void 0 ? void 0 : (_v$AttribComponents$11 = _v$AttribComponents$10.attribdefaultVal) === null || _v$AttribComponents$11 === void 0 ? void 0 : _v$AttribComponents$11.indexOf(sys === null || sys === void 0 ? void 0 : sys.label)) > -1;
23849
23856
  });
23850
23857
  return value;
23851
23858
  };
@@ -25006,6 +25013,64 @@ var DELETE_ATTRIBUTE_DELETE = createAsyncThunk("orderCatalogApiSlice/attributesD
25006
25013
  }
25007
25014
  }, _callee21, null, [[2, 10]]);
25008
25015
  })));
25016
+ var RES_ORDERCATALOG_VITAL_CODE = createAsyncThunk("orderCatalogApiSlice/res_orderCatalog_vitalCode", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
25017
+ var payload,
25018
+ _ref41,
25019
+ rejectWithValue,
25020
+ _payload$label,
25021
+ body,
25022
+ data,
25023
+ arry,
25024
+ _args22 = arguments;
25025
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
25026
+ while (1) {
25027
+ switch (_context22.prev = _context22.next) {
25028
+ case 0:
25029
+ payload = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};
25030
+ _ref41 = _args22.length > 1 ? _args22[1] : undefined, rejectWithValue = _ref41.rejectWithValue;
25031
+ _context22.prev = 2;
25032
+ body = {
25033
+ db_name: dbName$1,
25034
+ filter: {
25035
+ OrderType: (_payload$label = payload === null || payload === void 0 ? void 0 : payload.label) !== null && _payload$label !== void 0 ? _payload$label : ""
25036
+ },
25037
+ queryid: query_ids["resOrderCatalogVitalCode"]
25038
+ };
25039
+ _context22.next = 6;
25040
+ return fetchData({
25041
+ body: JSON.stringify(body)
25042
+ }, __baseUrl__$1);
25043
+ case 6:
25044
+ data = _context22.sent;
25045
+ arry = [];
25046
+ data === null || data === void 0 ? void 0 : data.map(function (item) {
25047
+ var _item$loadtype, _item$resultcodeset;
25048
+ return arry.push({
25049
+ _id: item._id,
25050
+ value: item._id,
25051
+ label: item.longdesc,
25052
+ resultreportdesc: item.resultreportdesc,
25053
+ resultreport: item.resultreport,
25054
+ loadtype: (_item$loadtype = item === null || item === void 0 ? void 0 : item.loadtype) !== null && _item$loadtype !== void 0 ? _item$loadtype : "",
25055
+ resultcodeset: (_item$resultcodeset = item === null || item === void 0 ? void 0 : item.resultcodeset) !== null && _item$resultcodeset !== void 0 ? _item$resultcodeset : ""
25056
+ });
25057
+ });
25058
+ return _context22.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
25059
+ data: arry
25060
+ }));
25061
+ case 12:
25062
+ _context22.prev = 12;
25063
+ _context22.t0 = _context22["catch"](2);
25064
+ return _context22.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
25065
+ message: _context22.t0.message
25066
+ })));
25067
+ case 15:
25068
+ case "end":
25069
+ return _context22.stop();
25070
+ }
25071
+ }
25072
+ }, _callee22, null, [[2, 12]]);
25073
+ })));
25009
25074
  var orderCatalogSlice = createSlice({
25010
25075
  name: "orderCatalogApiSlice",
25011
25076
  initialState: {
@@ -25026,7 +25091,8 @@ var orderCatalogSlice = createSlice({
25026
25091
  order_catalog_orderCategory: _objectSpread2$1({}, defaultState.List),
25027
25092
  savercchargecode: _objectSpread2$1({}, defaultState.List),
25028
25093
  savercchargeRate: _objectSpread2$1({}, defaultState.List),
25029
- rcchargeRateSearch: _objectSpread2$1({}, defaultState.List)
25094
+ rcchargeRateSearch: _objectSpread2$1({}, defaultState.List),
25095
+ res_orderCatalog_vitalCode: _objectSpread2$1({}, defaultState.List)
25030
25096
  },
25031
25097
  extraReducers: (_extraReducers$u = {}, _defineProperty(_extraReducers$u, ENTITY_NAME_DATA.fulfilled, function (state, action) {
25032
25098
  state.entityTypeName.loading = false, state.entityTypeName.error = false, state.entityTypeName = action.payload;
@@ -25136,6 +25202,12 @@ var orderCatalogSlice = createSlice({
25136
25202
  state.rcchargeRateSearch.loading = true, state.rcchargeRateSearch.error = false, state.rcchargeRateSearch.loading = true;
25137
25203
  }), _defineProperty(_extraReducers$u, RC_CHARGERATE_SEARCH.rejected, function (state, action) {
25138
25204
  state.rcchargeRateSearch.loading = false, state.rcchargeRateSearch.error = true, state.rcchargeRateSearch = action.payload;
25205
+ }), _defineProperty(_extraReducers$u, RES_ORDERCATALOG_VITAL_CODE.fulfilled, function (state, action) {
25206
+ state.res_orderCatalog_vitalCode.loading = false, state.res_orderCatalog_vitalCode.error = false, state.res_orderCatalog_vitalCode = action.payload;
25207
+ }), _defineProperty(_extraReducers$u, RES_ORDERCATALOG_VITAL_CODE.pending, function (state, action) {
25208
+ state.res_orderCatalog_vitalCode.loading = true, state.res_orderCatalog_vitalCode.error = false, state.res_orderCatalog_vitalCode.loading = true;
25209
+ }), _defineProperty(_extraReducers$u, RES_ORDERCATALOG_VITAL_CODE.rejected, function (state, action) {
25210
+ state.res_orderCatalog_vitalCode.loading = false, state.res_orderCatalog_vitalCode.error = true, state.res_orderCatalog_vitalCode = action.payload;
25139
25211
  }), _extraReducers$u)
25140
25212
  });
25141
25213
  var orderCatalogActions = {
@@ -25156,7 +25228,8 @@ var orderCatalogActions = {
25156
25228
  ORDER_CATALOG_ORDERCATEGORY: ORDER_CATALOG_ORDERCATEGORY,
25157
25229
  SAVE_RC_CHARGECODE: SAVE_RC_CHARGECODE,
25158
25230
  SAVE_RC_CHARGERATE: SAVE_RC_CHARGERATE,
25159
- RC_CHARGERATE_SEARCH: RC_CHARGERATE_SEARCH
25231
+ RC_CHARGERATE_SEARCH: RC_CHARGERATE_SEARCH,
25232
+ RES_ORDERCATALOG_VITAL_CODE: RES_ORDERCATALOG_VITAL_CODE
25160
25233
  };
25161
25234
  var orderCatalogSlice$1 = orderCatalogSlice.reducer;
25162
25235
 
@@ -39232,7 +39305,7 @@ var query$2 = {
39232
39305
  };
39233
39306
  },
39234
39307
  updateListeffTo: function updateListeffTo(data) {
39235
- var _data$effTo;
39308
+ var _data$effTo, _data$islastlevel;
39236
39309
  return [{
39237
39310
  "db_name": "".concat(dbName$1),
39238
39311
  "entity": "Diagnosis",
@@ -39243,7 +39316,8 @@ var query$2 = {
39243
39316
  "metadataId": metaDataId$1,
39244
39317
  "metadata_dbname": metaDatadbName$1,
39245
39318
  "doc": {
39246
- "effTo": (_data$effTo = data === null || data === void 0 ? void 0 : data.effTo) !== null && _data$effTo !== void 0 ? _data$effTo : null
39319
+ "effTo": (_data$effTo = data === null || data === void 0 ? void 0 : data.effTo) !== null && _data$effTo !== void 0 ? _data$effTo : null,
39320
+ "islastlevel": (_data$islastlevel = data === null || data === void 0 ? void 0 : data.islastlevel) !== null && _data$islastlevel !== void 0 ? _data$islastlevel : false
39247
39321
  }
39248
39322
  }];
39249
39323
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.121",
3
+ "version": "0.1.122",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",