primary_care_admin_binder 0.1.121 → 0.1.123
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 +144 -65
- 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 = {
|
|
@@ -23357,6 +23358,11 @@ var Query = {
|
|
|
23357
23358
|
}
|
|
23358
23359
|
};
|
|
23359
23360
|
|
|
23361
|
+
var CodingMasterIDs = {
|
|
23362
|
+
CHARGE_IND: "CodingMaster/11286",
|
|
23363
|
+
RATE_DEFN_TYPE: "CodingMaster/11287"
|
|
23364
|
+
};
|
|
23365
|
+
|
|
23360
23366
|
var generateSaveChargeCode = function generateSaveChargeCode(data) {
|
|
23361
23367
|
var _data$healthcareServi, _data$code, _data$longdes, _data$DuplicatePeriod, _data$shortdes;
|
|
23362
23368
|
var filter = {};
|
|
@@ -23404,14 +23410,15 @@ var generateSaveChargeRate = function generateSaveChargeRate(data, rcchargeData,
|
|
|
23404
23410
|
db_name: dbName$1,
|
|
23405
23411
|
entity: "RC_ChargeRates",
|
|
23406
23412
|
is_metadata: true,
|
|
23407
|
-
metadataId: metaDataId$1
|
|
23413
|
+
metadataId: metaDataId$1,
|
|
23414
|
+
metaDatadbName: metaDatadbName$1
|
|
23408
23415
|
}, filter), {}, {
|
|
23409
23416
|
doc: {
|
|
23410
|
-
baserate: data !== null && data !== void 0 && data.baseRate ? parseFloat(data === null || data === void 0 ? void 0 : data.baseRate) :
|
|
23411
|
-
chargeind: (_data$chargeInd = data === null || data === void 0 ? void 0 : data.chargeInd) !== null && _data$chargeInd !== void 0 ? _data$chargeInd :
|
|
23417
|
+
baserate: data !== null && data !== void 0 && data.baseRate ? parseFloat(data === null || data === void 0 ? void 0 : data.baseRate) : 1000,
|
|
23418
|
+
chargeind: (_data$chargeInd = data === null || data === void 0 ? void 0 : data.chargeInd) !== null && _data$chargeInd !== void 0 ? _data$chargeInd : CodingMasterIDs.CHARGE_IND,
|
|
23412
23419
|
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) :
|
|
23414
|
-
ratedefntype: data !== null && data !== void 0 && data.rateDefinitionType ? data === null || data === void 0 ? void 0 : data.rateDefinitionType.value :
|
|
23420
|
+
costprice: data !== null && data !== void 0 && data.costPrice ? parseFloat(data === null || data === void 0 ? void 0 : data.costPrice) : 1000,
|
|
23421
|
+
ratedefntype: data !== null && data !== void 0 && data.rateDefinitionType ? data === null || data === void 0 ? void 0 : data.rateDefinitionType.value : CodingMasterIDs.RATE_DEFN_TYPE,
|
|
23415
23422
|
ratebycriteria: [{
|
|
23416
23423
|
ratecondition: data !== null && data !== void 0 && data.rateCondition ? data === null || data === void 0 ? void 0 : data.rateCondition.value : "",
|
|
23417
23424
|
chargerate: data !== null && data !== void 0 && data.chargerate ? data === null || data === void 0 ? void 0 : data.chargerate : "",
|
|
@@ -23733,87 +23740,89 @@ var photoData = function photoData(data) {
|
|
|
23733
23740
|
var generateReadResJsonData = function generateReadResJsonData(val, state, resState) {
|
|
23734
23741
|
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
23742
|
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 : "",
|
|
23743
|
+
code: val === null || val === void 0 ? void 0 : val.ordercatalog,
|
|
23744
|
+
longdes: val === null || val === void 0 ? void 0 : val.longdesc,
|
|
23745
|
+
shortdes: val === null || val === void 0 ? void 0 : val.shortdesc,
|
|
23746
|
+
catalogSynonym: (_val$catalogsynonym2 = val === null || val === void 0 ? void 0 : val.catalogsynonym) !== null && _val$catalogsynonym2 !== void 0 ? _val$catalogsynonym2 : "",
|
|
23740
23747
|
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,
|
|
23748
|
+
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,
|
|
23749
|
+
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,
|
|
23750
|
+
Qtyno: val === null || val === void 0 ? void 0 : val.dfltqty,
|
|
23751
|
+
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,
|
|
23752
|
+
AllowQtyCheck: val === null || val === void 0 ? void 0 : val.allowqtychange,
|
|
23753
|
+
maxno: val === null || val === void 0 ? void 0 : val.maxorderqty,
|
|
23754
|
+
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,
|
|
23755
|
+
explantorymsg: val === null || val === void 0 ? void 0 : val.explanatorynote,
|
|
23749
23756
|
photo: (_photoData = photoData(val === null || val === void 0 ? void 0 : val.photo)) !== null && _photoData !== void 0 ? _photoData : [],
|
|
23750
23757
|
characteristicJson: [{
|
|
23751
23758
|
label: "Complete On Order",
|
|
23752
|
-
checked: val.completeonorder
|
|
23759
|
+
checked: val === null || val === void 0 ? void 0 : val.completeonorder
|
|
23753
23760
|
}, {
|
|
23754
23761
|
label: "Hold Applicable",
|
|
23755
|
-
checked: val.holdappl
|
|
23762
|
+
checked: val === null || val === void 0 ? void 0 : val.holdappl
|
|
23756
23763
|
}, {
|
|
23757
23764
|
label: "Discontinue Applicable",
|
|
23758
|
-
checked: val.discontinuappl
|
|
23765
|
+
checked: val === null || val === void 0 ? void 0 : val.discontinuappl
|
|
23759
23766
|
}, {
|
|
23760
23767
|
label: "Chargeable",
|
|
23761
|
-
checked: val.chargeable
|
|
23768
|
+
checked: val === null || val === void 0 ? void 0 : val.chargeable
|
|
23762
23769
|
}, {
|
|
23763
23770
|
label: "Result Applicable",
|
|
23764
|
-
checked: val.resultappl
|
|
23771
|
+
checked: val === null || val === void 0 ? void 0 : val.resultappl
|
|
23765
23772
|
}, {
|
|
23766
23773
|
label: "Result Authentication Required",
|
|
23767
|
-
checked: val.resultauthreqd
|
|
23774
|
+
checked: val === null || val === void 0 ? void 0 : val.resultauthreqd
|
|
23768
23775
|
}],
|
|
23769
23776
|
// itemdesc:(val.itemdesc)
|
|
23770
23777
|
// ? state.order_catalog_serviceItem.data.find(
|
|
23771
23778
|
// (sys) => val.itemdesc.indexOf(sys.value) > -1
|
|
23772
23779
|
// )
|
|
23773
23780
|
// : 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,
|
|
23781
|
+
checkSwitch: val === null || val === void 0 ? void 0 : val.checkforrepeatorders,
|
|
23782
|
+
no: val === null || val === void 0 ? void 0 : val.repeatcheckperiod,
|
|
23783
|
+
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,
|
|
23784
|
+
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,
|
|
23785
|
+
consentSwitch: val === null || val === void 0 ? void 0 : val.consentreqd,
|
|
23779
23786
|
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 : []
|
|
23787
|
+
attribute: (val === null || val === void 0 ? void 0 : val.OrderAttribApplicability.length) > 0 ? val === null || val === void 0 ? void 0 : val.OrderAttribApplicability[0].winlabelName : "",
|
|
23788
|
+
AttributeList: (_generateAttribute2 = generateAttribute(val === null || val === void 0 ? void 0 : val.OrderAttribApplicability, state)) !== null && _generateAttribute2 !== void 0 ? _generateAttribute2 : [],
|
|
23789
|
+
FacilityData: generatefaciltity(val === null || val === void 0 ? void 0 : val.AvailablebyPerOrganization),
|
|
23790
|
+
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,
|
|
23791
|
+
VolumeQuantity: val === null || val === void 0 ? void 0 : val.dfltSpecimenVolume,
|
|
23792
|
+
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,
|
|
23793
|
+
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,
|
|
23794
|
+
FastingPeriodQuantity: val === null || val === void 0 ? void 0 : val.dfltFastingPeriod,
|
|
23795
|
+
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,
|
|
23796
|
+
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,
|
|
23797
|
+
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,
|
|
23798
|
+
instructions: generateInstruction(val === null || val === void 0 ? void 0 : val.instruction),
|
|
23799
|
+
Frequency_applicability: generateFrequency(val === null || val === void 0 ? void 0 : val.frequency).length > 0 ? true : false,
|
|
23800
|
+
frequency: generateFrequency(val === null || val === void 0 ? void 0 : val.frequency),
|
|
23801
|
+
editData: val === null || val === void 0 ? void 0 : val._key,
|
|
23802
|
+
id: val === null || val === void 0 ? void 0 : val.id,
|
|
23803
|
+
draftstatus: val === null || val === void 0 ? void 0 : val.draftstatus,
|
|
23804
|
+
status: val === null || val === void 0 ? void 0 : val.status,
|
|
23805
|
+
resourceList: (_generateResoure2 = generateResoure(val === null || val === void 0 ? void 0 : val.resourcedefinition)) !== null && _generateResoure2 !== void 0 ? _generateResoure2 : [],
|
|
23806
|
+
observationList: (_generateObservation2 = generateObservation(val === null || val === void 0 ? void 0 : val.observationdetails)) !== null && _generateObservation2 !== void 0 ? _generateObservation2 : []
|
|
23800
23807
|
// observationList: val.observationdetails
|
|
23801
23808
|
};
|
|
23802
23809
|
};
|
|
23803
23810
|
|
|
23804
23811
|
var generateAttribute = function generateAttribute(data, state) {
|
|
23805
|
-
var arr = data.map(function (v) {
|
|
23812
|
+
var arr = data === null || data === void 0 ? void 0 : data.map(function (v) {
|
|
23813
|
+
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
23814
|
return {
|
|
23807
|
-
Attcode: state.order_catalog_attrcode.data.find(function (sys) {
|
|
23808
|
-
|
|
23815
|
+
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) {
|
|
23816
|
+
var _v$AttribComponents$, _v$AttribComponents$$;
|
|
23817
|
+
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
23818
|
}),
|
|
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
|
|
23819
|
+
label: (_v$AttribComponents$2 = v.AttribComponents[0]) === null || _v$AttribComponents$2 === void 0 ? void 0 : _v$AttribComponents$2.attribLabel,
|
|
23820
|
+
type: (_v$AttribComponents$3 = v.AttribComponents[0]) === null || _v$AttribComponents$3 === void 0 ? void 0 : _v$AttribComponents$3.attribType,
|
|
23821
|
+
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" ? {
|
|
23822
|
+
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
23823
|
} : getDefautlValue(v, state.order_catalog_attrcode.data),
|
|
23815
23824
|
_id: v._key,
|
|
23816
|
-
isMandatory: v.AttribComponents[0].mandatory
|
|
23825
|
+
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
23826
|
};
|
|
23818
23827
|
});
|
|
23819
23828
|
return arr;
|
|
@@ -23841,11 +23850,14 @@ var generateObservation = function generateObservation(data) {
|
|
|
23841
23850
|
return arr;
|
|
23842
23851
|
};
|
|
23843
23852
|
var getDefautlValue = function getDefautlValue(v, attr) {
|
|
23844
|
-
var
|
|
23845
|
-
|
|
23853
|
+
var _obj$AttribValidValue;
|
|
23854
|
+
var obj = attr === null || attr === void 0 ? void 0 : attr.find(function (sys) {
|
|
23855
|
+
var _v$AttribComponents$8, _v$AttribComponents$9;
|
|
23856
|
+
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
23857
|
});
|
|
23847
|
-
var value = obj.AttribValidValues.find(function (sys) {
|
|
23848
|
-
|
|
23858
|
+
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) {
|
|
23859
|
+
var _v$AttribComponents$10, _v$AttribComponents$11;
|
|
23860
|
+
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
23861
|
});
|
|
23850
23862
|
return value;
|
|
23851
23863
|
};
|
|
@@ -25006,6 +25018,64 @@ var DELETE_ATTRIBUTE_DELETE = createAsyncThunk("orderCatalogApiSlice/attributesD
|
|
|
25006
25018
|
}
|
|
25007
25019
|
}, _callee21, null, [[2, 10]]);
|
|
25008
25020
|
})));
|
|
25021
|
+
var RES_ORDERCATALOG_VITAL_CODE = createAsyncThunk("orderCatalogApiSlice/res_orderCatalog_vitalCode", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
25022
|
+
var payload,
|
|
25023
|
+
_ref41,
|
|
25024
|
+
rejectWithValue,
|
|
25025
|
+
_payload$label,
|
|
25026
|
+
body,
|
|
25027
|
+
data,
|
|
25028
|
+
arry,
|
|
25029
|
+
_args22 = arguments;
|
|
25030
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
25031
|
+
while (1) {
|
|
25032
|
+
switch (_context22.prev = _context22.next) {
|
|
25033
|
+
case 0:
|
|
25034
|
+
payload = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};
|
|
25035
|
+
_ref41 = _args22.length > 1 ? _args22[1] : undefined, rejectWithValue = _ref41.rejectWithValue;
|
|
25036
|
+
_context22.prev = 2;
|
|
25037
|
+
body = {
|
|
25038
|
+
db_name: dbName$1,
|
|
25039
|
+
filter: {
|
|
25040
|
+
OrderType: (_payload$label = payload === null || payload === void 0 ? void 0 : payload.label) !== null && _payload$label !== void 0 ? _payload$label : ""
|
|
25041
|
+
},
|
|
25042
|
+
queryid: query_ids["resOrderCatalogVitalCode"]
|
|
25043
|
+
};
|
|
25044
|
+
_context22.next = 6;
|
|
25045
|
+
return fetchData({
|
|
25046
|
+
body: JSON.stringify(body)
|
|
25047
|
+
}, __baseUrl__$1);
|
|
25048
|
+
case 6:
|
|
25049
|
+
data = _context22.sent;
|
|
25050
|
+
arry = [];
|
|
25051
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
25052
|
+
var _item$loadtype, _item$resultcodeset;
|
|
25053
|
+
return arry.push({
|
|
25054
|
+
_id: item._id,
|
|
25055
|
+
value: item._id,
|
|
25056
|
+
label: item.longdesc,
|
|
25057
|
+
resultreportdesc: item.resultreportdesc,
|
|
25058
|
+
resultreport: item.resultreport,
|
|
25059
|
+
loadtype: (_item$loadtype = item === null || item === void 0 ? void 0 : item.loadtype) !== null && _item$loadtype !== void 0 ? _item$loadtype : "",
|
|
25060
|
+
resultcodeset: (_item$resultcodeset = item === null || item === void 0 ? void 0 : item.resultcodeset) !== null && _item$resultcodeset !== void 0 ? _item$resultcodeset : ""
|
|
25061
|
+
});
|
|
25062
|
+
});
|
|
25063
|
+
return _context22.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
25064
|
+
data: arry
|
|
25065
|
+
}));
|
|
25066
|
+
case 12:
|
|
25067
|
+
_context22.prev = 12;
|
|
25068
|
+
_context22.t0 = _context22["catch"](2);
|
|
25069
|
+
return _context22.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
25070
|
+
message: _context22.t0.message
|
|
25071
|
+
})));
|
|
25072
|
+
case 15:
|
|
25073
|
+
case "end":
|
|
25074
|
+
return _context22.stop();
|
|
25075
|
+
}
|
|
25076
|
+
}
|
|
25077
|
+
}, _callee22, null, [[2, 12]]);
|
|
25078
|
+
})));
|
|
25009
25079
|
var orderCatalogSlice = createSlice({
|
|
25010
25080
|
name: "orderCatalogApiSlice",
|
|
25011
25081
|
initialState: {
|
|
@@ -25026,7 +25096,8 @@ var orderCatalogSlice = createSlice({
|
|
|
25026
25096
|
order_catalog_orderCategory: _objectSpread2$1({}, defaultState.List),
|
|
25027
25097
|
savercchargecode: _objectSpread2$1({}, defaultState.List),
|
|
25028
25098
|
savercchargeRate: _objectSpread2$1({}, defaultState.List),
|
|
25029
|
-
rcchargeRateSearch: _objectSpread2$1({}, defaultState.List)
|
|
25099
|
+
rcchargeRateSearch: _objectSpread2$1({}, defaultState.List),
|
|
25100
|
+
res_orderCatalog_vitalCode: _objectSpread2$1({}, defaultState.List)
|
|
25030
25101
|
},
|
|
25031
25102
|
extraReducers: (_extraReducers$u = {}, _defineProperty(_extraReducers$u, ENTITY_NAME_DATA.fulfilled, function (state, action) {
|
|
25032
25103
|
state.entityTypeName.loading = false, state.entityTypeName.error = false, state.entityTypeName = action.payload;
|
|
@@ -25136,6 +25207,12 @@ var orderCatalogSlice = createSlice({
|
|
|
25136
25207
|
state.rcchargeRateSearch.loading = true, state.rcchargeRateSearch.error = false, state.rcchargeRateSearch.loading = true;
|
|
25137
25208
|
}), _defineProperty(_extraReducers$u, RC_CHARGERATE_SEARCH.rejected, function (state, action) {
|
|
25138
25209
|
state.rcchargeRateSearch.loading = false, state.rcchargeRateSearch.error = true, state.rcchargeRateSearch = action.payload;
|
|
25210
|
+
}), _defineProperty(_extraReducers$u, RES_ORDERCATALOG_VITAL_CODE.fulfilled, function (state, action) {
|
|
25211
|
+
state.res_orderCatalog_vitalCode.loading = false, state.res_orderCatalog_vitalCode.error = false, state.res_orderCatalog_vitalCode = action.payload;
|
|
25212
|
+
}), _defineProperty(_extraReducers$u, RES_ORDERCATALOG_VITAL_CODE.pending, function (state, action) {
|
|
25213
|
+
state.res_orderCatalog_vitalCode.loading = true, state.res_orderCatalog_vitalCode.error = false, state.res_orderCatalog_vitalCode.loading = true;
|
|
25214
|
+
}), _defineProperty(_extraReducers$u, RES_ORDERCATALOG_VITAL_CODE.rejected, function (state, action) {
|
|
25215
|
+
state.res_orderCatalog_vitalCode.loading = false, state.res_orderCatalog_vitalCode.error = true, state.res_orderCatalog_vitalCode = action.payload;
|
|
25139
25216
|
}), _extraReducers$u)
|
|
25140
25217
|
});
|
|
25141
25218
|
var orderCatalogActions = {
|
|
@@ -25156,7 +25233,8 @@ var orderCatalogActions = {
|
|
|
25156
25233
|
ORDER_CATALOG_ORDERCATEGORY: ORDER_CATALOG_ORDERCATEGORY,
|
|
25157
25234
|
SAVE_RC_CHARGECODE: SAVE_RC_CHARGECODE,
|
|
25158
25235
|
SAVE_RC_CHARGERATE: SAVE_RC_CHARGERATE,
|
|
25159
|
-
RC_CHARGERATE_SEARCH: RC_CHARGERATE_SEARCH
|
|
25236
|
+
RC_CHARGERATE_SEARCH: RC_CHARGERATE_SEARCH,
|
|
25237
|
+
RES_ORDERCATALOG_VITAL_CODE: RES_ORDERCATALOG_VITAL_CODE
|
|
25160
25238
|
};
|
|
25161
25239
|
var orderCatalogSlice$1 = orderCatalogSlice.reducer;
|
|
25162
25240
|
|
|
@@ -39232,7 +39310,7 @@ var query$2 = {
|
|
|
39232
39310
|
};
|
|
39233
39311
|
},
|
|
39234
39312
|
updateListeffTo: function updateListeffTo(data) {
|
|
39235
|
-
var _data$effTo;
|
|
39313
|
+
var _data$effTo, _data$islastlevel;
|
|
39236
39314
|
return [{
|
|
39237
39315
|
"db_name": "".concat(dbName$1),
|
|
39238
39316
|
"entity": "Diagnosis",
|
|
@@ -39243,7 +39321,8 @@ var query$2 = {
|
|
|
39243
39321
|
"metadataId": metaDataId$1,
|
|
39244
39322
|
"metadata_dbname": metaDatadbName$1,
|
|
39245
39323
|
"doc": {
|
|
39246
|
-
"effTo": (_data$effTo = data === null || data === void 0 ? void 0 : data.effTo) !== null && _data$effTo !== void 0 ? _data$effTo : null
|
|
39324
|
+
"effTo": (_data$effTo = data === null || data === void 0 ? void 0 : data.effTo) !== null && _data$effTo !== void 0 ? _data$effTo : null,
|
|
39325
|
+
"islastlevel": (_data$islastlevel = data === null || data === void 0 ? void 0 : data.islastlevel) !== null && _data$islastlevel !== void 0 ? _data$islastlevel : false
|
|
39247
39326
|
}
|
|
39248
39327
|
}];
|
|
39249
39328
|
},
|