primary_care_admin_binder 0.1.120 → 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.
- package/dist/index.cjs.js +332 -123
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11276,7 +11276,9 @@ var query_ids = {
|
|
|
11276
11276
|
"VitalReadSearch": "8eefa71f-d48c-44a4-b5e1-e8271eb734d5",
|
|
11277
11277
|
"VitalRead": "eebb32ae-0a5f-49b4-9484-41111ec83fa3",
|
|
11278
11278
|
"getQDMDataType": "14a1a710-c539-494f-a405-49ca98c5950d",
|
|
11279
|
-
"generalMasterSearch": "92774963-ed7d-4bb7-a2fc-35e71668956b"
|
|
11279
|
+
"generalMasterSearch": "92774963-ed7d-4bb7-a2fc-35e71668956b",
|
|
11280
|
+
"rcChargeRateSearch": "b6adb851-754e-4c7d-964f-b217e33945dd",
|
|
11281
|
+
"resOrderCatalogVitalCode": "493389da-6789-4ed0-89e4-a2d546025f1e"
|
|
11280
11282
|
};
|
|
11281
11283
|
|
|
11282
11284
|
var query$9 = {
|
|
@@ -23389,6 +23391,39 @@ var generateSaveChargeCode = function generateSaveChargeCode(data) {
|
|
|
23389
23391
|
}
|
|
23390
23392
|
})];
|
|
23391
23393
|
};
|
|
23394
|
+
var generateSaveChargeRate = function generateSaveChargeRate(data, rcchargeData, rcchargeCode) {
|
|
23395
|
+
var _data$chargeInd, _rcchargeData$code, _data$effFr, _data$effTo;
|
|
23396
|
+
var filter = {};
|
|
23397
|
+
if (rcchargeData !== null && rcchargeData !== void 0 && rcchargeData._id && (rcchargeData === null || rcchargeData === void 0 ? void 0 : rcchargeData._id) !== "") {
|
|
23398
|
+
filter = {
|
|
23399
|
+
filter: {
|
|
23400
|
+
_id: rcchargeData === null || rcchargeData === void 0 ? void 0 : rcchargeData._id
|
|
23401
|
+
}
|
|
23402
|
+
};
|
|
23403
|
+
}
|
|
23404
|
+
return [_objectSpread2$1(_objectSpread2$1({
|
|
23405
|
+
db_name: dbName$1,
|
|
23406
|
+
entity: "RC_ChargeRates",
|
|
23407
|
+
is_metadata: true,
|
|
23408
|
+
metadataId: metaDataId$1
|
|
23409
|
+
}, filter), {}, {
|
|
23410
|
+
doc: {
|
|
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",
|
|
23413
|
+
code: (_rcchargeData$code = rcchargeData === null || rcchargeData === void 0 ? void 0 : rcchargeData.code) !== null && _rcchargeData$code !== void 0 ? _rcchargeData$code : rcchargeCode,
|
|
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",
|
|
23416
|
+
ratebycriteria: [{
|
|
23417
|
+
ratecondition: data !== null && data !== void 0 && data.rateCondition ? data === null || data === void 0 ? void 0 : data.rateCondition.value : "",
|
|
23418
|
+
chargerate: data !== null && data !== void 0 && data.chargerate ? data === null || data === void 0 ? void 0 : data.chargerate : "",
|
|
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,
|
|
23421
|
+
efffr: (_data$effFr = data === null || data === void 0 ? void 0 : data.effFr) !== null && _data$effFr !== void 0 ? _data$effFr : 0,
|
|
23422
|
+
effto: (_data$effTo = data === null || data === void 0 ? void 0 : data.effTo) !== null && _data$effTo !== void 0 ? _data$effTo : 0
|
|
23423
|
+
}]
|
|
23424
|
+
}
|
|
23425
|
+
})];
|
|
23426
|
+
};
|
|
23392
23427
|
var generateSaveJSON = function generateSaveJSON(data, rcchargeCode) {
|
|
23393
23428
|
var _data$resourceList, _data$observationList, _data$photo$, _data$photo$2, _data$photo$3, _data$photo$4, _data$DuplicatePeriod2, _data$CheckAction;
|
|
23394
23429
|
var resourceresult = data === null || data === void 0 ? void 0 : (_data$resourceList = data.resourceList) === null || _data$resourceList === void 0 ? void 0 : _data$resourceList.map(function (item) {
|
|
@@ -23700,87 +23735,89 @@ var photoData = function photoData(data) {
|
|
|
23700
23735
|
var generateReadResJsonData = function generateReadResJsonData(val, state, resState) {
|
|
23701
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;
|
|
23702
23737
|
return {
|
|
23703
|
-
code: val.ordercatalog,
|
|
23704
|
-
longdes: val.longdesc,
|
|
23705
|
-
shortdes: val.shortdesc,
|
|
23706
|
-
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 : "",
|
|
23707
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,
|
|
23708
|
-
orderType: val.ordertype && (_val$ordertype2 = val.ordertype) !== null && _val$ordertype2 !== void 0 && _val$ordertype2._id ? val.ordertype : null,
|
|
23709
|
-
healthcareService: val.healthcareservicecode && (_val$healthcareservic2 = val.healthcareservicecode) !== null && _val$healthcareservic2 !== void 0 && _val$healthcareservic2._id ? val.healthcareservicecode : null,
|
|
23710
|
-
Qtyno: val.dfltqty,
|
|
23711
|
-
DefaultQuantity: val.dfltqtyUOM && (_val$dfltqtyUOM2 = val.dfltqtyUOM) !== null && _val$dfltqtyUOM2 !== void 0 && _val$dfltqtyUOM2._id ? val.dfltqtyUOM : null,
|
|
23712
|
-
AllowQtyCheck: val.allowqtychange,
|
|
23713
|
-
maxno: val.maxorderqty,
|
|
23714
|
-
Maxorder: val.maxorderqtyUOM && (_val$maxorderqtyUOM2 = val.maxorderqtyUOM) !== null && _val$maxorderqtyUOM2 !== void 0 && _val$maxorderqtyUOM2._id ? val.maxorderqtyUOM : null,
|
|
23715
|
-
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,
|
|
23716
23751
|
photo: (_photoData = photoData(val === null || val === void 0 ? void 0 : val.photo)) !== null && _photoData !== void 0 ? _photoData : [],
|
|
23717
23752
|
characteristicJson: [{
|
|
23718
23753
|
label: "Complete On Order",
|
|
23719
|
-
checked: val.completeonorder
|
|
23754
|
+
checked: val === null || val === void 0 ? void 0 : val.completeonorder
|
|
23720
23755
|
}, {
|
|
23721
23756
|
label: "Hold Applicable",
|
|
23722
|
-
checked: val.holdappl
|
|
23757
|
+
checked: val === null || val === void 0 ? void 0 : val.holdappl
|
|
23723
23758
|
}, {
|
|
23724
23759
|
label: "Discontinue Applicable",
|
|
23725
|
-
checked: val.discontinuappl
|
|
23760
|
+
checked: val === null || val === void 0 ? void 0 : val.discontinuappl
|
|
23726
23761
|
}, {
|
|
23727
23762
|
label: "Chargeable",
|
|
23728
|
-
checked: val.chargeable
|
|
23763
|
+
checked: val === null || val === void 0 ? void 0 : val.chargeable
|
|
23729
23764
|
}, {
|
|
23730
23765
|
label: "Result Applicable",
|
|
23731
|
-
checked: val.resultappl
|
|
23766
|
+
checked: val === null || val === void 0 ? void 0 : val.resultappl
|
|
23732
23767
|
}, {
|
|
23733
23768
|
label: "Result Authentication Required",
|
|
23734
|
-
checked: val.resultauthreqd
|
|
23769
|
+
checked: val === null || val === void 0 ? void 0 : val.resultauthreqd
|
|
23735
23770
|
}],
|
|
23736
23771
|
// itemdesc:(val.itemdesc)
|
|
23737
23772
|
// ? state.order_catalog_serviceItem.data.find(
|
|
23738
23773
|
// (sys) => val.itemdesc.indexOf(sys.value) > -1
|
|
23739
23774
|
// )
|
|
23740
23775
|
// : null,
|
|
23741
|
-
checkSwitch: val.checkforrepeatorders,
|
|
23742
|
-
no: val.repeatcheckperiod,
|
|
23743
|
-
DuplicatePeriod: val.repeatCheckUOM && (_val$repeatCheckUOM2 = val.repeatCheckUOM) !== null && _val$repeatCheckUOM2 !== void 0 && _val$repeatCheckUOM2._id ? val.repeatCheckUOM : null,
|
|
23744
|
-
CheckAction: val.repeatCheckAction && (_val$repeatCheckActio2 = val.repeatCheckAction) !== null && _val$repeatCheckActio2 !== void 0 && _val$repeatCheckActio2._id ? val.repeatCheckAction : null,
|
|
23745
|
-
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,
|
|
23746
23781
|
ConsentForm: null,
|
|
23747
|
-
attribute: val.OrderAttribApplicability.length > 0 ? val.OrderAttribApplicability[0].winlabelName : "",
|
|
23748
|
-
AttributeList: (_generateAttribute2 = generateAttribute(val.OrderAttribApplicability, state)) !== null && _generateAttribute2 !== void 0 ? _generateAttribute2 : [],
|
|
23749
|
-
FacilityData: generatefaciltity(val.AvailablebyPerOrganization),
|
|
23750
|
-
SpecimenType: val.dfltSpecimenType && (_val$dfltSpecimenType2 = val.dfltSpecimenType) !== null && _val$dfltSpecimenType2 !== void 0 && _val$dfltSpecimenType2._id ? val.dfltSpecimenType : null,
|
|
23751
|
-
VolumeQuantity: val.dfltSpecimenVolume,
|
|
23752
|
-
Volume: val.dfltSpecimenVolumeUOM && (_val$dfltSpecimenVolu2 = val.dfltSpecimenVolumeUOM) !== null && _val$dfltSpecimenVolu2 !== void 0 && _val$dfltSpecimenVolu2._id ? dfltSpecimenVolumeUOM : null,
|
|
23753
|
-
BodyType: val.dfltSpecimenBodySite && (_val$dfltSpecimenBody2 = val.dfltSpecimenBodySite) !== null && _val$dfltSpecimenBody2 !== void 0 && _val$dfltSpecimenBody2._id ? dfltSpecimenBodySite : null,
|
|
23754
|
-
FastingPeriodQuantity: val.dfltFastingPeriod,
|
|
23755
|
-
FastingPeriod: val.dfltFastingPeriodUOM && (_val$dfltFastingPerio2 = val.dfltFastingPeriodUOM) !== null && _val$dfltFastingPerio2 !== void 0 && _val$dfltFastingPerio2._id ? val.dfltFastingPeriodUOM : null,
|
|
23756
|
-
SpecimenContainer: val.dfltSpecimenContainer && (_val$dfltSpecimenCont2 = val.dfltSpecimenContainer) !== null && _val$dfltSpecimenCont2 !== void 0 && _val$dfltSpecimenCont2._id ? val.dfltSpecimenContainer : null,
|
|
23757
|
-
CollectionMethod: val.dfltSpecimenCollectionMethod && (_val$dfltSpecimenColl2 = val.dfltSpecimenCollectionMethod) !== null && _val$dfltSpecimenColl2 !== void 0 && _val$dfltSpecimenColl2._id ? val.dfltSpecimenCollectionMethod : null,
|
|
23758
|
-
instructions: generateInstruction(val.instruction),
|
|
23759
|
-
Frequency_applicability: generateFrequency(val.frequency).length > 0 ? true : false,
|
|
23760
|
-
frequency: generateFrequency(val.frequency),
|
|
23761
|
-
editData: val._key,
|
|
23762
|
-
id: val.id,
|
|
23763
|
-
draftstatus: val.draftstatus,
|
|
23764
|
-
status: val.status,
|
|
23765
|
-
resourceList: (_generateResoure2 = generateResoure(val.resourcedefinition)) !== null && _generateResoure2 !== void 0 ? _generateResoure2 : [],
|
|
23766
|
-
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 : []
|
|
23767
23802
|
// observationList: val.observationdetails
|
|
23768
23803
|
};
|
|
23769
23804
|
};
|
|
23770
23805
|
|
|
23771
23806
|
var generateAttribute = function generateAttribute(data, state) {
|
|
23772
|
-
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;
|
|
23773
23809
|
return {
|
|
23774
|
-
Attcode: state.order_catalog_attrcode.data.find(function (sys) {
|
|
23775
|
-
|
|
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;
|
|
23776
23813
|
}),
|
|
23777
|
-
label: v.AttribComponents[0].attribLabel,
|
|
23778
|
-
type: v.AttribComponents[0].attribType,
|
|
23779
|
-
defaultValue: v.AttribComponents[0].attribType === "Number" || v.AttribComponents[0].attribType === "Text" ? {
|
|
23780
|
-
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
|
|
23781
23818
|
} : getDefautlValue(v, state.order_catalog_attrcode.data),
|
|
23782
23819
|
_id: v._key,
|
|
23783
|
-
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
|
|
23784
23821
|
};
|
|
23785
23822
|
});
|
|
23786
23823
|
return arr;
|
|
@@ -23808,11 +23845,14 @@ var generateObservation = function generateObservation(data) {
|
|
|
23808
23845
|
return arr;
|
|
23809
23846
|
};
|
|
23810
23847
|
var getDefautlValue = function getDefautlValue(v, attr) {
|
|
23811
|
-
var
|
|
23812
|
-
|
|
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;
|
|
23813
23852
|
});
|
|
23814
|
-
var value = obj.AttribValidValues.find(function (sys) {
|
|
23815
|
-
|
|
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;
|
|
23816
23856
|
});
|
|
23817
23857
|
return value;
|
|
23818
23858
|
};
|
|
@@ -24670,11 +24710,12 @@ var SAVE_RC_CHARGECODE = createAsyncThunk("orderCatalogApiSlice/savercchargecode
|
|
|
24670
24710
|
}
|
|
24671
24711
|
}, _callee14, null, [[2, 11]]);
|
|
24672
24712
|
})));
|
|
24673
|
-
var
|
|
24713
|
+
var SAVE_RC_CHARGERATE = createAsyncThunk("orderCatalogApiSlice/savercchargeRate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
24674
24714
|
var payload,
|
|
24675
24715
|
_ref27,
|
|
24676
24716
|
rejectWithValue,
|
|
24677
24717
|
list,
|
|
24718
|
+
rcchargeData,
|
|
24678
24719
|
rcchargeCode,
|
|
24679
24720
|
body,
|
|
24680
24721
|
data,
|
|
@@ -24686,12 +24727,8 @@ var SAVE_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/saveOrderCatalog
|
|
|
24686
24727
|
payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
|
|
24687
24728
|
_ref27 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref27.rejectWithValue;
|
|
24688
24729
|
_context15.prev = 2;
|
|
24689
|
-
list = payload.list, rcchargeCode = payload.rcchargeCode;
|
|
24690
|
-
|
|
24691
|
-
// { body: JSON.stringify(SaveChargeCode) },
|
|
24692
|
-
// __uspsertUrl__
|
|
24693
|
-
// );
|
|
24694
|
-
body = generateSaveJSON(list, rcchargeCode);
|
|
24730
|
+
list = payload.list, rcchargeData = payload.rcchargeData, rcchargeCode = payload.rcchargeCode;
|
|
24731
|
+
body = generateSaveChargeRate(list, rcchargeData, rcchargeCode);
|
|
24695
24732
|
_context15.next = 7;
|
|
24696
24733
|
return fetchData({
|
|
24697
24734
|
body: JSON.stringify(body)
|
|
@@ -24714,43 +24751,37 @@ var SAVE_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/saveOrderCatalog
|
|
|
24714
24751
|
}
|
|
24715
24752
|
}, _callee15, null, [[2, 11]]);
|
|
24716
24753
|
})));
|
|
24717
|
-
var
|
|
24754
|
+
var RC_CHARGERATE_SEARCH = createAsyncThunk("orderCatalogApiSlice/rcchargeRateSearch", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
|
|
24718
24755
|
var payload,
|
|
24719
24756
|
_ref29,
|
|
24720
24757
|
rejectWithValue,
|
|
24721
|
-
page,
|
|
24722
|
-
perPage,
|
|
24723
24758
|
search,
|
|
24759
|
+
body,
|
|
24724
24760
|
data,
|
|
24725
|
-
res,
|
|
24726
24761
|
_args16 = arguments;
|
|
24727
24762
|
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
24728
24763
|
while (1) {
|
|
24729
24764
|
switch (_context16.prev = _context16.next) {
|
|
24730
24765
|
case 0:
|
|
24731
24766
|
payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
|
|
24732
|
-
_ref29 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref29.rejectWithValue
|
|
24767
|
+
_ref29 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref29.rejectWithValue;
|
|
24733
24768
|
_context16.prev = 2;
|
|
24734
|
-
|
|
24735
|
-
|
|
24736
|
-
|
|
24737
|
-
|
|
24738
|
-
|
|
24769
|
+
search = payload.search;
|
|
24770
|
+
body = {
|
|
24771
|
+
"db_name": dbName$1,
|
|
24772
|
+
"filter": {
|
|
24773
|
+
"rcChargecode": search
|
|
24774
|
+
},
|
|
24775
|
+
"queryid": query_ids["rcChargeRateSearch"]
|
|
24776
|
+
};
|
|
24777
|
+
_context16.next = 7;
|
|
24739
24778
|
return fetchData({
|
|
24740
|
-
body: JSON.stringify(
|
|
24741
|
-
page: page,
|
|
24742
|
-
perPage: perPage,
|
|
24743
|
-
search: search
|
|
24744
|
-
}) : Query.order_catalog_read({
|
|
24745
|
-
page: page,
|
|
24746
|
-
perPage: perPage
|
|
24747
|
-
}))
|
|
24779
|
+
body: JSON.stringify(body)
|
|
24748
24780
|
}, __baseUrl__$1);
|
|
24749
|
-
case
|
|
24781
|
+
case 7:
|
|
24750
24782
|
data = _context16.sent;
|
|
24751
|
-
res = generateResJson(data);
|
|
24752
24783
|
return _context16.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24753
|
-
data:
|
|
24784
|
+
data: data
|
|
24754
24785
|
}));
|
|
24755
24786
|
case 11:
|
|
24756
24787
|
_context16.prev = 11;
|
|
@@ -24765,12 +24796,12 @@ var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead
|
|
|
24765
24796
|
}
|
|
24766
24797
|
}, _callee16, null, [[2, 11]]);
|
|
24767
24798
|
})));
|
|
24768
|
-
var
|
|
24799
|
+
var SAVE_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/saveOrderCatalog", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
24769
24800
|
var payload,
|
|
24770
24801
|
_ref31,
|
|
24771
24802
|
rejectWithValue,
|
|
24772
|
-
|
|
24773
|
-
|
|
24803
|
+
list,
|
|
24804
|
+
rcchargeCode,
|
|
24774
24805
|
body,
|
|
24775
24806
|
data,
|
|
24776
24807
|
_args17 = arguments;
|
|
@@ -24781,15 +24812,19 @@ var UPDATE_ORDER_CATALOG_STATUS = createAsyncThunk("orderCatalogApiSlice/orderCa
|
|
|
24781
24812
|
payload = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
|
|
24782
24813
|
_ref31 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref31.rejectWithValue;
|
|
24783
24814
|
_context17.prev = 2;
|
|
24784
|
-
|
|
24785
|
-
|
|
24815
|
+
list = payload.list, rcchargeCode = payload.rcchargeCode; // let SaveChargeCode =generateSaveChargeCode(list)
|
|
24816
|
+
// const SaveChargeCodedata = fetchData(
|
|
24817
|
+
// { body: JSON.stringify(SaveChargeCode) },
|
|
24818
|
+
// __uspsertUrl__
|
|
24819
|
+
// );
|
|
24820
|
+
body = generateSaveJSON(list, rcchargeCode);
|
|
24786
24821
|
_context17.next = 7;
|
|
24787
24822
|
return fetchData({
|
|
24788
24823
|
body: JSON.stringify(body)
|
|
24789
24824
|
}, __uspsertUrl__);
|
|
24790
24825
|
case 7:
|
|
24791
24826
|
data = _context17.sent;
|
|
24792
|
-
return _context17.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.
|
|
24827
|
+
return _context17.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.Info), {}, {
|
|
24793
24828
|
data: data
|
|
24794
24829
|
}));
|
|
24795
24830
|
case 11:
|
|
@@ -24805,14 +24840,13 @@ var UPDATE_ORDER_CATALOG_STATUS = createAsyncThunk("orderCatalogApiSlice/orderCa
|
|
|
24805
24840
|
}
|
|
24806
24841
|
}, _callee17, null, [[2, 11]]);
|
|
24807
24842
|
})));
|
|
24808
|
-
var
|
|
24843
|
+
var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
24809
24844
|
var payload,
|
|
24810
24845
|
_ref33,
|
|
24811
24846
|
rejectWithValue,
|
|
24812
|
-
|
|
24813
|
-
|
|
24814
|
-
|
|
24815
|
-
ccState,
|
|
24847
|
+
page,
|
|
24848
|
+
perPage,
|
|
24849
|
+
search,
|
|
24816
24850
|
data,
|
|
24817
24851
|
res,
|
|
24818
24852
|
_args18 = arguments;
|
|
@@ -24821,40 +24855,49 @@ var EDIT_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/editOrderCatalog
|
|
|
24821
24855
|
switch (_context18.prev = _context18.next) {
|
|
24822
24856
|
case 0:
|
|
24823
24857
|
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
24824
|
-
_ref33 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref33.rejectWithValue,
|
|
24858
|
+
_ref33 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref33.rejectWithValue, _ref33.getState;
|
|
24825
24859
|
_context18.prev = 2;
|
|
24826
|
-
|
|
24827
|
-
state = getState();
|
|
24828
|
-
ccState = state.
|
|
24829
|
-
|
|
24830
|
-
_context18.next =
|
|
24860
|
+
// const { encounter_id } = payload;
|
|
24861
|
+
// let state = getState();
|
|
24862
|
+
// let ccState = state.DiagnosisMasterSlice;
|
|
24863
|
+
page = payload.page, perPage = payload.perPage, search = payload.search;
|
|
24864
|
+
_context18.next = 6;
|
|
24831
24865
|
return fetchData({
|
|
24832
|
-
body: JSON.stringify(Query.
|
|
24866
|
+
body: JSON.stringify(search ? Query.order_catalog_read_search({
|
|
24867
|
+
page: page,
|
|
24868
|
+
perPage: perPage,
|
|
24869
|
+
search: search
|
|
24870
|
+
}) : Query.order_catalog_read({
|
|
24871
|
+
page: page,
|
|
24872
|
+
perPage: perPage
|
|
24873
|
+
}))
|
|
24833
24874
|
}, __baseUrl__$1);
|
|
24834
|
-
case
|
|
24875
|
+
case 6:
|
|
24835
24876
|
data = _context18.sent;
|
|
24836
|
-
res =
|
|
24877
|
+
res = generateResJson(data);
|
|
24837
24878
|
return _context18.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24838
24879
|
data: res
|
|
24839
24880
|
}));
|
|
24840
|
-
case
|
|
24841
|
-
_context18.prev =
|
|
24881
|
+
case 11:
|
|
24882
|
+
_context18.prev = 11;
|
|
24842
24883
|
_context18.t0 = _context18["catch"](2);
|
|
24843
24884
|
return _context18.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24844
24885
|
message: _context18.t0.message
|
|
24845
24886
|
})));
|
|
24846
|
-
case
|
|
24887
|
+
case 14:
|
|
24847
24888
|
case "end":
|
|
24848
24889
|
return _context18.stop();
|
|
24849
24890
|
}
|
|
24850
24891
|
}
|
|
24851
|
-
}, _callee18, null, [[2,
|
|
24892
|
+
}, _callee18, null, [[2, 11]]);
|
|
24852
24893
|
})));
|
|
24853
|
-
var
|
|
24894
|
+
var UPDATE_ORDER_CATALOG_STATUS = createAsyncThunk("orderCatalogApiSlice/orderCatalogUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
|
|
24854
24895
|
var payload,
|
|
24855
24896
|
_ref35,
|
|
24856
24897
|
rejectWithValue,
|
|
24857
|
-
|
|
24898
|
+
editId,
|
|
24899
|
+
status,
|
|
24900
|
+
body,
|
|
24858
24901
|
data,
|
|
24859
24902
|
_args19 = arguments;
|
|
24860
24903
|
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
@@ -24864,28 +24907,169 @@ var DELETE_ATTRIBUTE_DELETE = createAsyncThunk("orderCatalogApiSlice/attributesD
|
|
|
24864
24907
|
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
24865
24908
|
_ref35 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref35.rejectWithValue;
|
|
24866
24909
|
_context19.prev = 2;
|
|
24910
|
+
editId = payload.editId, status = payload.status;
|
|
24911
|
+
body = generateUpdateJSON(editId, status);
|
|
24912
|
+
_context19.next = 7;
|
|
24913
|
+
return fetchData({
|
|
24914
|
+
body: JSON.stringify(body)
|
|
24915
|
+
}, __uspsertUrl__);
|
|
24916
|
+
case 7:
|
|
24917
|
+
data = _context19.sent;
|
|
24918
|
+
return _context19.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24919
|
+
data: data
|
|
24920
|
+
}));
|
|
24921
|
+
case 11:
|
|
24922
|
+
_context19.prev = 11;
|
|
24923
|
+
_context19.t0 = _context19["catch"](2);
|
|
24924
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24925
|
+
message: _context19.t0.message
|
|
24926
|
+
})));
|
|
24927
|
+
case 14:
|
|
24928
|
+
case "end":
|
|
24929
|
+
return _context19.stop();
|
|
24930
|
+
}
|
|
24931
|
+
}
|
|
24932
|
+
}, _callee19, null, [[2, 11]]);
|
|
24933
|
+
})));
|
|
24934
|
+
var EDIT_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/editOrderCatalog", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
|
|
24935
|
+
var payload,
|
|
24936
|
+
_ref37,
|
|
24937
|
+
rejectWithValue,
|
|
24938
|
+
getState,
|
|
24939
|
+
id,
|
|
24940
|
+
state,
|
|
24941
|
+
ccState,
|
|
24942
|
+
data,
|
|
24943
|
+
res,
|
|
24944
|
+
_args20 = arguments;
|
|
24945
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
24946
|
+
while (1) {
|
|
24947
|
+
switch (_context20.prev = _context20.next) {
|
|
24948
|
+
case 0:
|
|
24949
|
+
payload = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};
|
|
24950
|
+
_ref37 = _args20.length > 1 ? _args20[1] : undefined, rejectWithValue = _ref37.rejectWithValue, getState = _ref37.getState;
|
|
24951
|
+
_context20.prev = 2;
|
|
24867
24952
|
id = payload.id;
|
|
24868
|
-
|
|
24953
|
+
state = getState();
|
|
24954
|
+
ccState = state.orderCatalogSlice;
|
|
24955
|
+
state.resourceByAppointmentTypesSlice;
|
|
24956
|
+
_context20.next = 9;
|
|
24957
|
+
return fetchData({
|
|
24958
|
+
body: JSON.stringify(Query.editOrderCatalog(id))
|
|
24959
|
+
}, __baseUrl__$1);
|
|
24960
|
+
case 9:
|
|
24961
|
+
data = _context20.sent;
|
|
24962
|
+
res = generateReadResJsonData(data[0], ccState);
|
|
24963
|
+
return _context20.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24964
|
+
data: res
|
|
24965
|
+
}));
|
|
24966
|
+
case 14:
|
|
24967
|
+
_context20.prev = 14;
|
|
24968
|
+
_context20.t0 = _context20["catch"](2);
|
|
24969
|
+
return _context20.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24970
|
+
message: _context20.t0.message
|
|
24971
|
+
})));
|
|
24972
|
+
case 17:
|
|
24973
|
+
case "end":
|
|
24974
|
+
return _context20.stop();
|
|
24975
|
+
}
|
|
24976
|
+
}
|
|
24977
|
+
}, _callee20, null, [[2, 14]]);
|
|
24978
|
+
})));
|
|
24979
|
+
var DELETE_ATTRIBUTE_DELETE = createAsyncThunk("orderCatalogApiSlice/attributesDelete", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
|
24980
|
+
var payload,
|
|
24981
|
+
_ref39,
|
|
24982
|
+
rejectWithValue,
|
|
24983
|
+
id,
|
|
24984
|
+
data,
|
|
24985
|
+
_args21 = arguments;
|
|
24986
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
24987
|
+
while (1) {
|
|
24988
|
+
switch (_context21.prev = _context21.next) {
|
|
24989
|
+
case 0:
|
|
24990
|
+
payload = _args21.length > 0 && _args21[0] !== undefined ? _args21[0] : {};
|
|
24991
|
+
_ref39 = _args21.length > 1 ? _args21[1] : undefined, rejectWithValue = _ref39.rejectWithValue;
|
|
24992
|
+
_context21.prev = 2;
|
|
24993
|
+
id = payload.id;
|
|
24994
|
+
_context21.next = 6;
|
|
24869
24995
|
return fetchData({
|
|
24870
24996
|
body: JSON.stringify(Query.attributeDelete(id))
|
|
24871
24997
|
}, __softDelete__);
|
|
24872
24998
|
case 6:
|
|
24873
|
-
data =
|
|
24874
|
-
return
|
|
24999
|
+
data = _context21.sent;
|
|
25000
|
+
return _context21.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24875
25001
|
data: data.result
|
|
24876
25002
|
}));
|
|
24877
25003
|
case 10:
|
|
24878
|
-
|
|
24879
|
-
|
|
24880
|
-
return
|
|
24881
|
-
message:
|
|
25004
|
+
_context21.prev = 10;
|
|
25005
|
+
_context21.t0 = _context21["catch"](2);
|
|
25006
|
+
return _context21.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
25007
|
+
message: _context21.t0.message
|
|
24882
25008
|
})));
|
|
24883
25009
|
case 13:
|
|
24884
25010
|
case "end":
|
|
24885
|
-
return
|
|
25011
|
+
return _context21.stop();
|
|
25012
|
+
}
|
|
25013
|
+
}
|
|
25014
|
+
}, _callee21, null, [[2, 10]]);
|
|
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();
|
|
24886
25070
|
}
|
|
24887
25071
|
}
|
|
24888
|
-
},
|
|
25072
|
+
}, _callee22, null, [[2, 12]]);
|
|
24889
25073
|
})));
|
|
24890
25074
|
var orderCatalogSlice = createSlice({
|
|
24891
25075
|
name: "orderCatalogApiSlice",
|
|
@@ -24905,7 +25089,10 @@ var orderCatalogSlice = createSlice({
|
|
|
24905
25089
|
order_catalog_attrcode: _objectSpread2$1({}, defaultState.List),
|
|
24906
25090
|
order_catalog_agegroup: _objectSpread2$1({}, defaultState.List),
|
|
24907
25091
|
order_catalog_orderCategory: _objectSpread2$1({}, defaultState.List),
|
|
24908
|
-
savercchargecode: _objectSpread2$1({}, defaultState.List)
|
|
25092
|
+
savercchargecode: _objectSpread2$1({}, defaultState.List),
|
|
25093
|
+
savercchargeRate: _objectSpread2$1({}, defaultState.List),
|
|
25094
|
+
rcchargeRateSearch: _objectSpread2$1({}, defaultState.List),
|
|
25095
|
+
res_orderCatalog_vitalCode: _objectSpread2$1({}, defaultState.List)
|
|
24909
25096
|
},
|
|
24910
25097
|
extraReducers: (_extraReducers$u = {}, _defineProperty(_extraReducers$u, ENTITY_NAME_DATA.fulfilled, function (state, action) {
|
|
24911
25098
|
state.entityTypeName.loading = false, state.entityTypeName.error = false, state.entityTypeName = action.payload;
|
|
@@ -25003,6 +25190,24 @@ var orderCatalogSlice = createSlice({
|
|
|
25003
25190
|
state.savercchargecode.loading = true, state.savercchargecode.error = false, state.savercchargecode.loading = true;
|
|
25004
25191
|
}), _defineProperty(_extraReducers$u, SAVE_RC_CHARGECODE.rejected, function (state, action) {
|
|
25005
25192
|
state.savercchargecode.loading = false, state.savercchargecode.error = true, state.savercchargecode = action.payload;
|
|
25193
|
+
}), _defineProperty(_extraReducers$u, SAVE_RC_CHARGERATE.fulfilled, function (state, action) {
|
|
25194
|
+
state.savercchargeRate.loading = false, state.savercchargeRate.error = false, state.savercchargeRate = action.payload;
|
|
25195
|
+
}), _defineProperty(_extraReducers$u, SAVE_RC_CHARGERATE.pending, function (state, action) {
|
|
25196
|
+
state.savercchargeRate.loading = true, state.savercchargeRate.error = false, state.savercchargeRate.loading = true;
|
|
25197
|
+
}), _defineProperty(_extraReducers$u, SAVE_RC_CHARGERATE.rejected, function (state, action) {
|
|
25198
|
+
state.savercchargeRate.loading = false, state.savercchargeRate.error = true, state.savercchargeRate = action.payload;
|
|
25199
|
+
}), _defineProperty(_extraReducers$u, RC_CHARGERATE_SEARCH.fulfilled, function (state, action) {
|
|
25200
|
+
state.rcchargeRateSearch.loading = false, state.rcchargeRateSearch.error = false, state.rcchargeRateSearch = action.payload;
|
|
25201
|
+
}), _defineProperty(_extraReducers$u, RC_CHARGERATE_SEARCH.pending, function (state, action) {
|
|
25202
|
+
state.rcchargeRateSearch.loading = true, state.rcchargeRateSearch.error = false, state.rcchargeRateSearch.loading = true;
|
|
25203
|
+
}), _defineProperty(_extraReducers$u, RC_CHARGERATE_SEARCH.rejected, function (state, action) {
|
|
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;
|
|
25006
25211
|
}), _extraReducers$u)
|
|
25007
25212
|
});
|
|
25008
25213
|
var orderCatalogActions = {
|
|
@@ -25021,7 +25226,10 @@ var orderCatalogActions = {
|
|
|
25021
25226
|
ORDER_CATALOG_ATTRCODE: ORDER_CATALOG_ATTRCODE,
|
|
25022
25227
|
ORDER_CATALOG_AGEGROUP: ORDER_CATALOG_AGEGROUP,
|
|
25023
25228
|
ORDER_CATALOG_ORDERCATEGORY: ORDER_CATALOG_ORDERCATEGORY,
|
|
25024
|
-
SAVE_RC_CHARGECODE: SAVE_RC_CHARGECODE
|
|
25229
|
+
SAVE_RC_CHARGECODE: SAVE_RC_CHARGECODE,
|
|
25230
|
+
SAVE_RC_CHARGERATE: SAVE_RC_CHARGERATE,
|
|
25231
|
+
RC_CHARGERATE_SEARCH: RC_CHARGERATE_SEARCH,
|
|
25232
|
+
RES_ORDERCATALOG_VITAL_CODE: RES_ORDERCATALOG_VITAL_CODE
|
|
25025
25233
|
};
|
|
25026
25234
|
var orderCatalogSlice$1 = orderCatalogSlice.reducer;
|
|
25027
25235
|
|
|
@@ -39097,7 +39305,7 @@ var query$2 = {
|
|
|
39097
39305
|
};
|
|
39098
39306
|
},
|
|
39099
39307
|
updateListeffTo: function updateListeffTo(data) {
|
|
39100
|
-
var _data$effTo;
|
|
39308
|
+
var _data$effTo, _data$islastlevel;
|
|
39101
39309
|
return [{
|
|
39102
39310
|
"db_name": "".concat(dbName$1),
|
|
39103
39311
|
"entity": "Diagnosis",
|
|
@@ -39108,7 +39316,8 @@ var query$2 = {
|
|
|
39108
39316
|
"metadataId": metaDataId$1,
|
|
39109
39317
|
"metadata_dbname": metaDatadbName$1,
|
|
39110
39318
|
"doc": {
|
|
39111
|
-
"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
|
|
39112
39321
|
}
|
|
39113
39322
|
}];
|
|
39114
39323
|
},
|