primary_care_admin_binder 0.1.21 → 0.1.25
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 +112 -74
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8050,7 +8050,8 @@ var queries$n = {
|
|
|
8050
8050
|
db_name: dbName,
|
|
8051
8051
|
entity: "CodeableConceptMaster",
|
|
8052
8052
|
filter: "CodeableConceptMaster.Type=='".concat(type, "'"),
|
|
8053
|
-
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
8053
|
+
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
8054
|
+
sort: "CodeableConceptMaster.createddate"
|
|
8054
8055
|
};
|
|
8055
8056
|
},
|
|
8056
8057
|
upsert: function upsert(data) {
|
|
@@ -11839,6 +11840,7 @@ var queries$m = {
|
|
|
11839
11840
|
entity: "LocationMaster,LocationMaster_CodeableConceptMaster_E,CodeableConceptMaster_CodingMaster_E,LocationMaster_LocationRoleType_E,LocationMaster_Organization_E,Organization_CodeableConceptMaster_E,LocationMaster_ContactPointMaster_E,LocationMaster_AddressMaster_E,LocationMaster_AttachmentMaster_E",
|
|
11840
11841
|
filter: "LocationMaster.activestatus==true",
|
|
11841
11842
|
isTraversal: "true",
|
|
11843
|
+
sort: "LocationMaster.createddate",
|
|
11842
11844
|
return_fields: "{vertices:v,orginatedata:LocationMaster}"
|
|
11843
11845
|
};
|
|
11844
11846
|
},
|
|
@@ -18998,7 +19000,7 @@ var masterQuery$4 = {
|
|
|
18998
19000
|
gender: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
18999
19001
|
ageGroup: "{\n\"db_name\": \"".concat(dbName, "\",\n\"entity\": \"AgeRanges\",\n\"sort\":\"AgeRanges.agerangecode\",\n\"filter\":\"AgeRanges.activestatus == true\",\n\"return_fields\": \"{id:AgeRanges.id, _id:AgeRanges._id, agerangecode:AgeRanges.agerangecode, longdesc:AgeRanges.longdesc, shortdesc:AgeRanges.shortdesc,AgeCategory:DOCUMENT(AgeRanges.AgeCategory)}\"\n}"),
|
|
19000
19002
|
checkaction: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='CHECKACTION' && CodeableConceptMaster.status==true && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
19001
|
-
attrcode: "{\n \"db_name\": \"primarycare\",\n \"entity\": \"CA_OrderAttribMaster\",\n \"sort\":\"CA_OrderAttribMaster.attribcode\",\n \"filter\": \"CA_OrderAttribMaster.activestatus==true\",\n \"return_fields\": \"{id:CA_OrderAttribMaster.id,_id:CA_OrderAttribMaster._id,attribcode:CA_OrderAttribMaster.attribcode,attriblabel:CA_OrderAttribMaster.attriblabel,attribtype:CA_OrderAttribMaster.attribtype,AttribValidValues:CA_OrderAttribMaster.AttribValidValues}\"\n}"
|
|
19003
|
+
attrcode: "{\n \"db_name\": \"primarycare\",\n \"entity\": \"CA_OrderAttribMaster\",\n \"sort\":\"CA_OrderAttribMaster.attribcode\",\n \"filter\": \"CA_OrderAttribMaster.activestatus==true\",\n \"return_fields\": \"{id:CA_OrderAttribMaster.id,_id:CA_OrderAttribMaster._id,attribcode:CA_OrderAttribMaster.attribcode,attriblabel:CA_OrderAttribMaster.attriblabel,attribtype: document(CA_OrderAttribMaster.attribtype),AttribValidValues:CA_OrderAttribMaster.AttribValidValues}\"\n}"
|
|
19002
19004
|
};
|
|
19003
19005
|
var orderTypedata = {
|
|
19004
19006
|
ordertype: function ordertype(type) {
|
|
@@ -19024,7 +19026,21 @@ var Query = {
|
|
|
19024
19026
|
return_fields: "DOCUMENT( AgeRanges.AgeCategory)"
|
|
19025
19027
|
};
|
|
19026
19028
|
},
|
|
19027
|
-
order_catalog_read:
|
|
19029
|
+
order_catalog_read: function order_catalog_read(_ref) {
|
|
19030
|
+
var page = _ref.page,
|
|
19031
|
+
perPage = _ref.perPage;
|
|
19032
|
+
return {
|
|
19033
|
+
"db_name": dbName,
|
|
19034
|
+
"entity": "OrderCatalog",
|
|
19035
|
+
"sort": "OrderCatalog.createddate ASC",
|
|
19036
|
+
"limit": {
|
|
19037
|
+
"offset": page,
|
|
19038
|
+
"count": perPage
|
|
19039
|
+
},
|
|
19040
|
+
"filter": "OrderCatalog.activestatus==true",
|
|
19041
|
+
"return_fields": "MERGE(OrderCatalog,{TotalCount:COUNT(FOR cnt IN OrderCatalog RETURN cnt._key)},{ordercategory:(document(OrderCatalog.ordercategory)),ordertype:(document(OrderCatalog.ordertype)),healthcareservicecode:(document(OrderCatalog.healthcareservicecode)),OrderCatalogByEncounterTypeAge:(for doc in CA_OrderCatalogByEncounterTypeAge filter doc._id in OrderCatalog.OrderCatalogByEncounterTypeAge return doc),OrderAttribApplicability:(for doc in CA_OrderAttribApplicability filter doc._id in OrderCatalog.OrderAttribApplicability return doc),dfltFastingPeriodUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltFastingPeriodUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenBodySite:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenBodySite return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenCollectionMethod:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenCollectionMethod return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenType:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenType return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenVolumeUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenVolumeUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),maxorderqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.maxorderqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),repeatCheckUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.repeatCheckUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),AvailablebyPerOrganization:(for doc in to_array(OrderCatalog.AvailablebyPerOrganization) return merge(doc,{perforganizationId:(document(doc.perforganizationId)),perfOrganizationEntity:(for docs in CodeableConceptMaster filter docs._id==doc.perfOrganizationEntity return merge(doc,{coding:(for cod in CodingMaster filter cod._id in docs.coding return cod.display)}))})),dfltSpecimenContainer:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenContainer return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)}))})"
|
|
19042
|
+
};
|
|
19043
|
+
},
|
|
19028
19044
|
editOrderCatalog: function editOrderCatalog(id) {
|
|
19029
19045
|
return {
|
|
19030
19046
|
db_name: "primarycare",
|
|
@@ -19127,13 +19143,15 @@ var generateSaveJSON = function generateSaveJSON(data) {
|
|
|
19127
19143
|
|
|
19128
19144
|
var getAvailability = function getAvailability(data) {
|
|
19129
19145
|
var arr = data.map(function (v) {
|
|
19146
|
+
var _v$entity_name$value, _v$entity_name, _v$appointment, _parseInt, _v$entity_type$value, _v$entity_type;
|
|
19147
|
+
|
|
19130
19148
|
return {
|
|
19131
|
-
perforganizationId: v.entity_name.value,
|
|
19132
|
-
apptreqd: v.appointment,
|
|
19133
|
-
apptDurnInMinutes: parseInt(v.duration),
|
|
19134
|
-
perfOrganizationEntity: v.entity_type.value,
|
|
19135
|
-
EffFrDate: v.effective_from ? getUtcTime(moment(v.effective_from)) : null,
|
|
19136
|
-
EffToDate: v.effective_to ? getUtcTime(moment(v.effective_to)) : null
|
|
19149
|
+
perforganizationId: (_v$entity_name$value = v === null || v === void 0 ? void 0 : (_v$entity_name = v.entity_name) === null || _v$entity_name === void 0 ? void 0 : _v$entity_name.value) !== null && _v$entity_name$value !== void 0 ? _v$entity_name$value : null,
|
|
19150
|
+
apptreqd: (_v$appointment = v === null || v === void 0 ? void 0 : v.appointment) !== null && _v$appointment !== void 0 ? _v$appointment : false,
|
|
19151
|
+
apptDurnInMinutes: (_parseInt = parseInt(v.duration)) !== null && _parseInt !== void 0 ? _parseInt : null,
|
|
19152
|
+
perfOrganizationEntity: (_v$entity_type$value = v === null || v === void 0 ? void 0 : (_v$entity_type = v.entity_type) === null || _v$entity_type === void 0 ? void 0 : _v$entity_type.value) !== null && _v$entity_type$value !== void 0 ? _v$entity_type$value : null,
|
|
19153
|
+
EffFrDate: v !== null && v !== void 0 && v.effective_from ? getUtcTime(moment(v.effective_from, "DD/MM/YYYY")) : null,
|
|
19154
|
+
EffToDate: v !== null && v !== void 0 && v.effective_to ? getUtcTime(moment(v === null || v === void 0 ? void 0 : v.effective_to, "DD/MM/YYYY")) : null
|
|
19137
19155
|
};
|
|
19138
19156
|
});
|
|
19139
19157
|
return arr;
|
|
@@ -19505,6 +19523,8 @@ var generateFrequency = function generateFrequency(data, state) {
|
|
|
19505
19523
|
|
|
19506
19524
|
var generatefaciltity = function generatefaciltity(data, state) {
|
|
19507
19525
|
var facilityArr = data.map(function (v) {
|
|
19526
|
+
var _v$apptreqd, _v$apptDurnInMinutes;
|
|
19527
|
+
|
|
19508
19528
|
return {
|
|
19509
19529
|
entity_type: v.perfOrganizationEntity && v.perfOrganizationEntity._id ? state.order_catalog_masters.data.entityType.find(function (sys) {
|
|
19510
19530
|
return v.perfOrganizationEntity._id.indexOf(sys.value) > -1;
|
|
@@ -19518,10 +19538,10 @@ var generatefaciltity = function generatefaciltity(data, state) {
|
|
|
19518
19538
|
label: v.perforganizationId.name,
|
|
19519
19539
|
value: v.perforganizationId._id
|
|
19520
19540
|
} : null,
|
|
19521
|
-
appointment: v.apptreqd,
|
|
19522
|
-
duration: v.apptDurnInMinutes,
|
|
19523
|
-
effective_from: new Date(utcTOLocal(v.EffFrDate)).toLocaleDateString(),
|
|
19524
|
-
effective_to: new Date(utcTOLocal(v.EffToDate)).toLocaleDateString()
|
|
19541
|
+
appointment: (_v$apptreqd = v === null || v === void 0 ? void 0 : v.apptreqd) !== null && _v$apptreqd !== void 0 ? _v$apptreqd : false,
|
|
19542
|
+
duration: (_v$apptDurnInMinutes = v === null || v === void 0 ? void 0 : v.apptDurnInMinutes) !== null && _v$apptDurnInMinutes !== void 0 ? _v$apptDurnInMinutes : "",
|
|
19543
|
+
effective_from: v !== null && v !== void 0 && v.EffFrDate ? new Date(utcTOLocal(v.EffFrDate)).toLocaleDateString() : "",
|
|
19544
|
+
effective_to: v !== null && v !== void 0 && v.EffToDate ? new Date(utcTOLocal(v.EffToDate)).toLocaleDateString() : ""
|
|
19525
19545
|
};
|
|
19526
19546
|
});
|
|
19527
19547
|
return facilityArr;
|
|
@@ -19927,8 +19947,11 @@ var SAVE_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/saveOrderCatalog
|
|
|
19927
19947
|
}, _callee8, null, [[2, 11]]);
|
|
19928
19948
|
})));
|
|
19929
19949
|
var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
19930
|
-
var
|
|
19950
|
+
var payload,
|
|
19951
|
+
_ref15,
|
|
19931
19952
|
rejectWithValue,
|
|
19953
|
+
page,
|
|
19954
|
+
perPage,
|
|
19932
19955
|
data,
|
|
19933
19956
|
res,
|
|
19934
19957
|
_args9 = arguments;
|
|
@@ -19937,33 +19960,41 @@ var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead
|
|
|
19937
19960
|
while (1) {
|
|
19938
19961
|
switch (_context9.prev = _context9.next) {
|
|
19939
19962
|
case 0:
|
|
19963
|
+
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
19940
19964
|
_ref15 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref15.rejectWithValue;
|
|
19941
19965
|
_context9.prev = 2;
|
|
19942
|
-
|
|
19966
|
+
// const { encounter_id } = payload;
|
|
19967
|
+
// let state = getState();
|
|
19968
|
+
// let ccState = state.DiagnosisMasterSlice;
|
|
19969
|
+
page = payload.page, perPage = payload.perPage;
|
|
19970
|
+
_context9.next = 6;
|
|
19943
19971
|
return fetchData({
|
|
19944
|
-
body: Query.order_catalog_read
|
|
19972
|
+
body: JSON.stringify(Query.order_catalog_read({
|
|
19973
|
+
page: page,
|
|
19974
|
+
perPage: perPage
|
|
19975
|
+
}))
|
|
19945
19976
|
}, __readDocumentUrl__);
|
|
19946
19977
|
|
|
19947
|
-
case
|
|
19978
|
+
case 6:
|
|
19948
19979
|
data = _context9.sent;
|
|
19949
19980
|
res = generateResJson(data.result);
|
|
19950
19981
|
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
19951
19982
|
data: res
|
|
19952
19983
|
}));
|
|
19953
19984
|
|
|
19954
|
-
case
|
|
19955
|
-
_context9.prev =
|
|
19985
|
+
case 11:
|
|
19986
|
+
_context9.prev = 11;
|
|
19956
19987
|
_context9.t0 = _context9["catch"](2);
|
|
19957
19988
|
return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19958
19989
|
message: _context9.t0.message
|
|
19959
19990
|
})));
|
|
19960
19991
|
|
|
19961
|
-
case
|
|
19992
|
+
case 14:
|
|
19962
19993
|
case "end":
|
|
19963
19994
|
return _context9.stop();
|
|
19964
19995
|
}
|
|
19965
19996
|
}
|
|
19966
|
-
}, _callee9, null, [[2,
|
|
19997
|
+
}, _callee9, null, [[2, 11]]);
|
|
19967
19998
|
})));
|
|
19968
19999
|
var UPDATE_ORDER_CATALOG_STATUS = createAsyncThunk("orderCatalogApiSlice/orderCatalogUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
19969
20000
|
var payload,
|
|
@@ -20733,7 +20764,7 @@ var query$8 = {
|
|
|
20733
20764
|
readQuery: function readQuery(_ref2) {
|
|
20734
20765
|
var entity_type = _ref2.entity_type,
|
|
20735
20766
|
entity_name = _ref2.entity_name;
|
|
20736
|
-
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"ResourceTimeTable\",\n \"filter\": \"ResourceTimeTable.activestatus==true ").concat(entity_type ? "&& ResourceTimeTable.entityType=='".concat(entity_type.value, "'") : "", " ").concat(entity_name ? "&& ResourceTimeTable.organization_id=='".concat(entity_name.value, "'") : "", "\",\n \"return_fields\": \"MERGE(ResourceTimeTable,{organization_id:DOCUMENT(ResourceTimeTable.organization_id),ResourceRole:DOCUMENT(ResourceTimeTable.ResourceRole) ,ResourceType:DOCUMENT(ResourceTimeTable.ResourceType) ,applicable_app_type:(FOR apptype IN TO_ARRAY(ResourceTimeTable.applicable_app_type) RETURN DOCUMENT(apptype)) ,AppointmentDuration:(FOR appdur IN TO_ARRAY(ResourceTimeTable.AppointmentDuration) RETURN MERGE(appdur, {DayType:DOCUMENT(appdur.DayType),consultType:DOCUMENT(appdur.consultType)} )) })\"\n }");
|
|
20767
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"ResourceTimeTable\",\n \"filter\": \"ResourceTimeTable.activestatus==true ").concat(entity_type ? "&& ResourceTimeTable.entityType=='".concat(entity_type.value, "'") : "", " ").concat(entity_name ? "&& ResourceTimeTable.organization_id=='".concat(entity_name.value, "'") : "", "\",\n \"sort\": \"ResourceTimeTable.createddate\",\n \"return_fields\": \"MERGE(ResourceTimeTable,{organization_id:DOCUMENT(ResourceTimeTable.organization_id),ResourceRole:DOCUMENT(ResourceTimeTable.ResourceRole) ,ResourceType:DOCUMENT(ResourceTimeTable.ResourceType) ,applicable_app_type:(FOR apptype IN TO_ARRAY(ResourceTimeTable.applicable_app_type) RETURN DOCUMENT(apptype)) ,AppointmentDuration:(FOR appdur IN TO_ARRAY(ResourceTimeTable.AppointmentDuration) RETURN MERGE(appdur, {DayType:DOCUMENT(appdur.DayType),consultType:DOCUMENT(appdur.consultType)} )) })\"\n }");
|
|
20737
20768
|
},
|
|
20738
20769
|
readGroup: function readGroup() {
|
|
20739
20770
|
return "{\n \"db_name\": \"".concat(ruleDBName, "\",\n \"entity\": \"Groups\",\n \"filter\": \"Groups.activestatus==true\",\n \"return_fields\": \"{label : Groups.name, value:Groups.id}\"\n }");
|
|
@@ -24125,7 +24156,8 @@ var queries$b = {
|
|
|
24125
24156
|
db_name: dbName,
|
|
24126
24157
|
entity: "LevelOfCare",
|
|
24127
24158
|
filter: "LevelOfCare.activestatus==true",
|
|
24128
|
-
return_fields: "{id:LevelOfCare.id,_id:LevelOfCare._id,levelofcareCode:LevelOfCare.levelofcareCode,description:LevelOfCare.description,careType:document(LevelOfCare.careType),active:LevelOfCare.active,key:LevelOfCare._key}"
|
|
24159
|
+
return_fields: "{id:LevelOfCare.id,_id:LevelOfCare._id,levelofcareCode:LevelOfCare.levelofcareCode,description:LevelOfCare.description,careType:document(LevelOfCare.careType),active:LevelOfCare.active,key:LevelOfCare._key}",
|
|
24160
|
+
sort: "LevelOfCare.createddate"
|
|
24129
24161
|
};
|
|
24130
24162
|
},
|
|
24131
24163
|
levelOfCareSinleRead: function levelOfCareSinleRead(key) {
|
|
@@ -24182,7 +24214,8 @@ var queries$b = {
|
|
|
24182
24214
|
db_name: dbName,
|
|
24183
24215
|
entity: "HealthcareService",
|
|
24184
24216
|
filter: "HealthcareService.activestatus==true",
|
|
24185
|
-
return_fields: " {id:HealthcareService.id,_id:HealthcareService._id,_key:HealthcareService._key,active:HealthcareService.active,comment:HealthcareService.comment,SpecialtyID:document(HealthcareService.SpecialtyID),healthcareservicecode:HealthcareService.healthcareservicecode,name:HealthcareService.name,notes:HealthcareService.notes,category:document(HealthcareService.category),Type:document(HealthcareService.Type),applicablefacilities:HealthcareService.applicablefacilities ==null?null :(for hs in TO_ARRAY( HealthcareService.applicablefacilities) return {facility:document(hs.facility),locationtype:document(hs.locationtype),locationid:document(hs.locationid)})}"
|
|
24217
|
+
return_fields: " {id:HealthcareService.id,_id:HealthcareService._id,_key:HealthcareService._key,active:HealthcareService.active,comment:HealthcareService.comment,SpecialtyID:document(HealthcareService.SpecialtyID),healthcareservicecode:HealthcareService.healthcareservicecode,name:HealthcareService.name,notes:HealthcareService.notes,category:document(HealthcareService.category),Type:document(HealthcareService.Type),applicablefacilities:HealthcareService.applicablefacilities ==null?null :(for hs in TO_ARRAY( HealthcareService.applicablefacilities) return {facility:document(hs.facility),locationtype:document(hs.locationtype),locationid:document(hs.locationid)})}",
|
|
24218
|
+
sort: "HealthcareService.createddate"
|
|
24186
24219
|
};
|
|
24187
24220
|
},
|
|
24188
24221
|
//HEALTH CARE SERVICE STATUS CHANGE
|
|
@@ -26011,6 +26044,7 @@ var queries$a = {
|
|
|
26011
26044
|
"db_name": dbName,
|
|
26012
26045
|
"entity": "CodeableConceptMaster"
|
|
26013
26046
|
}, filter), {}, {
|
|
26047
|
+
"sort": "CodeableConceptMaster.createddate",
|
|
26014
26048
|
"return_fields": "MERGE(CodeableConceptMaster,{coding:(for cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})"
|
|
26015
26049
|
});
|
|
26016
26050
|
},
|
|
@@ -26848,6 +26882,7 @@ var queries$7 = {
|
|
|
26848
26882
|
"db_name": "primarycare",
|
|
26849
26883
|
"entity": "Person",
|
|
26850
26884
|
"filter": "Person.activestatus==true",
|
|
26885
|
+
"sort": "Person.createddate",
|
|
26851
26886
|
"return_fields": "merge(Person,{name:(for nam in HumanNameMaster filter nam._id in Person.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)}))},{gender:document(Person.gender)},{telecom:(for con in ContactPointMaster filter con._id in Person.telecom return merge(con,{use:document(con.use),rank:document(con.rank)}))},{photo:document(Person.photo)},{address:document(Person.address)},{identifier:(for iden in IdentifierMaster filter iden._id in Person.identifier return merge(iden,{user:document(iden.user),Type:document(iden.Type)}))},{OrgID:document(Person.OrgID)},{orgType:document(Person.orgType)})"
|
|
26852
26887
|
};
|
|
26853
26888
|
},
|
|
@@ -29574,7 +29609,8 @@ var query$5 = {
|
|
|
29574
29609
|
db_name: "".concat(dbName),
|
|
29575
29610
|
entity: "CA_OrderSet",
|
|
29576
29611
|
filter: "CA_OrderSet.activestatus == true",
|
|
29577
|
-
return_fields: "keep(CA_OrderSet,'id','_key','_id','longDesc','shortDesc','orderSetCode','status')"
|
|
29612
|
+
return_fields: "keep(CA_OrderSet,'id','_key','_id','longDesc','shortDesc','orderSetCode','status')",
|
|
29613
|
+
sort: "CA_OrderSet.createddate"
|
|
29578
29614
|
};
|
|
29579
29615
|
},
|
|
29580
29616
|
orderSetListById: function orderSetListById(_key) {
|
|
@@ -29610,7 +29646,7 @@ var query$5 = {
|
|
|
29610
29646
|
|
|
29611
29647
|
var masterQuery$2 = {
|
|
29612
29648
|
orderCategory: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"OrderCategory\",\n \"filter\": \"OrderCategory.activestatus == true && OrderCategory.status==true\",\n \"return_fields\": \"keep(OrderCategory,'id','_id','_key','shortdesc','ordercategory','longdesc')\",\n \"sort\": \"OrderCategory.shortdesc\"\n }"),
|
|
29613
|
-
commonUOM: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"
|
|
29649
|
+
commonUOM: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\": \"DrugUOM.status == true && DrugUOM.activestatus == true\",\n \"return_fields\": \"keep(DrugUOM,'_key','_id','UOM','shortdesc','longdesc','status')\"\n }"),
|
|
29614
29650
|
route: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugRoutes\",\n \"filter\": \"DrugRoutes.activestatus==true && DrugRoutes.status==true\",\n \"return_fields\": \"keep(DrugRoutes,'id','_key','_id','longdesc','routeadverb','routecode','shortdesc')\",\n \"sort\": \"DrugRoutes.shortdesc\"\n }"),
|
|
29615
29651
|
drugFreqCode: "{\n \"db_name\": \"primarycare\",\n \"entity\": \"FrequencyMaster\",\n \"filter\": \"FrequencyMaster.activestatus == true && FrequencyMaster.status == true\",\n \"return_fields\": \"keep(FrequencyMaster,'id','_key','_id','longdesc','shortdesc','freqcode')\",\n \"sort\": \"FrequencyMaster.shortdesc\"\n }"
|
|
29616
29652
|
};
|
|
@@ -29907,34 +29943,34 @@ var constructTabelData = function constructTabelData(data) {
|
|
|
29907
29943
|
} : val !== null && val !== void 0 && (_val$orderCatalog5 = val.orderCatalog) !== null && _val$orderCatalog5 !== void 0 && _val$orderCatalog5._id && val !== null && val !== void 0 && (_val$orderCatalog6 = val.orderCatalog) !== null && _val$orderCatalog6 !== void 0 && _val$orderCatalog6.ShortDesc ? {
|
|
29908
29944
|
value: val === null || val === void 0 ? void 0 : (_val$orderCatalog7 = val.orderCatalog) === null || _val$orderCatalog7 === void 0 ? void 0 : _val$orderCatalog7._id,
|
|
29909
29945
|
label: val === null || val === void 0 ? void 0 : (_val$orderCatalog8 = val.orderCatalog) === null || _val$orderCatalog8 === void 0 ? void 0 : _val$orderCatalog8.ShortDesc
|
|
29910
|
-
} : {}), _defineProperty(_obj, "required", val !== null && val !== void 0 && val.required ? val === null || val === void 0 ? void 0 : val.required : false), _defineProperty(_obj, "requiredT", val !== null && val !== void 0 && val.required ? (val === null || val === void 0 ? void 0 : val.required) === true ? "Yes" : "No" : "No"), _defineProperty(_obj, "quantity_number", val !== null && val !== void 0 && val.dfltOrderQty ? val === null || val === void 0 ? void 0 : val.dfltOrderQty : ""), _defineProperty(_obj, "quantity_type", val !== null && val !== void 0 && (_val$dfltOrderUOM = val.dfltOrderUOM) !== null && _val$dfltOrderUOM !== void 0 && _val$dfltOrderUOM._id && val !== null && val !== void 0 && (_val$dfltOrderUOM2 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM2 !== void 0 && _val$dfltOrderUOM2.
|
|
29946
|
+
} : {}), _defineProperty(_obj, "required", val !== null && val !== void 0 && val.required ? val === null || val === void 0 ? void 0 : val.required : false), _defineProperty(_obj, "requiredT", val !== null && val !== void 0 && val.required ? (val === null || val === void 0 ? void 0 : val.required) === true ? "Yes" : "No" : "No"), _defineProperty(_obj, "quantity_number", val !== null && val !== void 0 && val.dfltOrderQty ? val === null || val === void 0 ? void 0 : val.dfltOrderQty : ""), _defineProperty(_obj, "quantity_type", val !== null && val !== void 0 && (_val$dfltOrderUOM = val.dfltOrderUOM) !== null && _val$dfltOrderUOM !== void 0 && _val$dfltOrderUOM._id && val !== null && val !== void 0 && (_val$dfltOrderUOM2 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM2 !== void 0 && _val$dfltOrderUOM2.shortdesc ? {
|
|
29911
29947
|
value: val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM3 = val.dfltOrderUOM) === null || _val$dfltOrderUOM3 === void 0 ? void 0 : _val$dfltOrderUOM3._id,
|
|
29912
|
-
label: val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM4 = val.dfltOrderUOM) === null || _val$dfltOrderUOM4 === void 0 ? void 0 : _val$dfltOrderUOM4.
|
|
29913
|
-
} : {}), _defineProperty(_obj, "quantityT", val !== null && val !== void 0 && (_val$dfltOrderUOM5 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM5 !== void 0 && _val$dfltOrderUOM5.
|
|
29948
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM4 = val.dfltOrderUOM) === null || _val$dfltOrderUOM4 === void 0 ? void 0 : _val$dfltOrderUOM4.shortdesc
|
|
29949
|
+
} : {}), _defineProperty(_obj, "quantityT", val !== null && val !== void 0 && (_val$dfltOrderUOM5 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM5 !== void 0 && _val$dfltOrderUOM5.shortdesc && val !== null && val !== void 0 && val.dfltOrderQty ? (val === null || val === void 0 ? void 0 : val.dfltOrderQty) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM6 = val.dfltOrderUOM) === null || _val$dfltOrderUOM6 === void 0 ? void 0 : _val$dfltOrderUOM6.shortdesc) : "-"), _defineProperty(_obj, "in_infusion_rate_volume_number", (_val$IVInfusRateVol = val === null || val === void 0 ? void 0 : val.IVInfusRateVol) !== null && _val$IVInfusRateVol !== void 0 ? _val$IVInfusRateVol : ""), _defineProperty(_obj, "in_infusion_rate_volume_type", val !== null && val !== void 0 && (_val$IVInfusRateVolUO = val.IVInfusRateVolUOM) !== null && _val$IVInfusRateVolUO !== void 0 && _val$IVInfusRateVolUO._id && val !== null && val !== void 0 && (_val$IVInfusRateVolUO2 = val.IVInfusRateVolUOM) !== null && _val$IVInfusRateVolUO2 !== void 0 && _val$IVInfusRateVolUO2.shortdesc ? {
|
|
29914
29950
|
value: val === null || val === void 0 ? void 0 : (_val$IVInfusRateVolUO3 = val.IVInfusRateVolUOM) === null || _val$IVInfusRateVolUO3 === void 0 ? void 0 : _val$IVInfusRateVolUO3._id,
|
|
29915
|
-
label: val === null || val === void 0 ? void 0 : (_val$IVInfusRateVolUO4 = val.IVInfusRateVolUOM) === null || _val$IVInfusRateVolUO4 === void 0 ? void 0 : _val$IVInfusRateVolUO4.
|
|
29916
|
-
} : {}), _defineProperty(_obj, "in_infusion_rate_duration_number", (_val$IVDosDurValue = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue !== void 0 ? _val$IVDosDurValue : ""), _defineProperty(_obj, "in_infusion_rate_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM = val.IVDosDurUOM) !== null && _val$IVDosDurUOM !== void 0 && _val$IVDosDurUOM._id && val !== null && val !== void 0 && (_val$IVDosDurUOM2 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM2 !== void 0 && _val$IVDosDurUOM2.
|
|
29951
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVInfusRateVolUO4 = val.IVInfusRateVolUOM) === null || _val$IVInfusRateVolUO4 === void 0 ? void 0 : _val$IVInfusRateVolUO4.shortdesc
|
|
29952
|
+
} : {}), _defineProperty(_obj, "in_infusion_rate_duration_number", (_val$IVDosDurValue = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue !== void 0 ? _val$IVDosDurValue : ""), _defineProperty(_obj, "in_infusion_rate_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM = val.IVDosDurUOM) !== null && _val$IVDosDurUOM !== void 0 && _val$IVDosDurUOM._id && val !== null && val !== void 0 && (_val$IVDosDurUOM2 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM2 !== void 0 && _val$IVDosDurUOM2.shortdesc ? {
|
|
29917
29953
|
value: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM3 = val.IVDosDurUOM) === null || _val$IVDosDurUOM3 === void 0 ? void 0 : _val$IVDosDurUOM3._id,
|
|
29918
|
-
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM4 = val.IVDosDurUOM) === null || _val$IVDosDurUOM4 === void 0 ? void 0 : _val$IVDosDurUOM4.
|
|
29919
|
-
} : {}), _defineProperty(_obj, "iv_dosage_duration_number", (_val$IVDosDurValue2 = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue2 !== void 0 ? _val$IVDosDurValue2 : ""), _defineProperty(_obj, "iv_dosage_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM5 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM5 !== void 0 && _val$IVDosDurUOM5._id && val !== null && val !== void 0 && (_val$IVDosDurUOM6 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM6 !== void 0 && _val$IVDosDurUOM6.
|
|
29954
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM4 = val.IVDosDurUOM) === null || _val$IVDosDurUOM4 === void 0 ? void 0 : _val$IVDosDurUOM4.shortdesc
|
|
29955
|
+
} : {}), _defineProperty(_obj, "iv_dosage_duration_number", (_val$IVDosDurValue2 = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue2 !== void 0 ? _val$IVDosDurValue2 : ""), _defineProperty(_obj, "iv_dosage_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM5 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM5 !== void 0 && _val$IVDosDurUOM5._id && val !== null && val !== void 0 && (_val$IVDosDurUOM6 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM6 !== void 0 && _val$IVDosDurUOM6.shortdesc ? {
|
|
29920
29956
|
value: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM7 = val.IVDosDurUOM) === null || _val$IVDosDurUOM7 === void 0 ? void 0 : _val$IVDosDurUOM7._id,
|
|
29921
|
-
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM8 = val.IVDosDurUOM) === null || _val$IVDosDurUOM8 === void 0 ? void 0 : _val$IVDosDurUOM8.
|
|
29957
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM8 = val.IVDosDurUOM) === null || _val$IVDosDurUOM8 === void 0 ? void 0 : _val$IVDosDurUOM8.shortdesc
|
|
29922
29958
|
} : {}), _defineProperty(_obj, "dosage_freq_code", val !== null && val !== void 0 && (_val$dosageFreqCode = val.dosageFreqCode) !== null && _val$dosageFreqCode !== void 0 && _val$dosageFreqCode._id && val !== null && val !== void 0 && (_val$dosageFreqCode2 = val.dosageFreqCode) !== null && _val$dosageFreqCode2 !== void 0 && _val$dosageFreqCode2.shortdesc ? {
|
|
29923
29959
|
value: val === null || val === void 0 ? void 0 : (_val$dosageFreqCode3 = val.dosageFreqCode) === null || _val$dosageFreqCode3 === void 0 ? void 0 : _val$dosageFreqCode3._id,
|
|
29924
29960
|
label: val === null || val === void 0 ? void 0 : (_val$dosageFreqCode4 = val.dosageFreqCode) === null || _val$dosageFreqCode4 === void 0 ? void 0 : _val$dosageFreqCode4.shortdesc
|
|
29925
|
-
} : {}), _defineProperty(_obj, "startDay", (_val$startDay = val === null || val === void 0 ? void 0 : val.startDay) !== null && _val$startDay !== void 0 ? _val$startDay : ""), _defineProperty(_obj, "duration_number", (_val$dfltDuration = val === null || val === void 0 ? void 0 : val.dfltDuration) !== null && _val$dfltDuration !== void 0 ? _val$dfltDuration : ""), _defineProperty(_obj, "duration_type", val !== null && val !== void 0 && (_val$dfltDurUOM = val.dfltDurUOM) !== null && _val$dfltDurUOM !== void 0 && _val$dfltDurUOM._id && val !== null && val !== void 0 && (_val$dfltDurUOM2 = val.dfltDurUOM) !== null && _val$dfltDurUOM2 !== void 0 && _val$dfltDurUOM2.
|
|
29961
|
+
} : {}), _defineProperty(_obj, "startDay", (_val$startDay = val === null || val === void 0 ? void 0 : val.startDay) !== null && _val$startDay !== void 0 ? _val$startDay : ""), _defineProperty(_obj, "duration_number", (_val$dfltDuration = val === null || val === void 0 ? void 0 : val.dfltDuration) !== null && _val$dfltDuration !== void 0 ? _val$dfltDuration : ""), _defineProperty(_obj, "duration_type", val !== null && val !== void 0 && (_val$dfltDurUOM = val.dfltDurUOM) !== null && _val$dfltDurUOM !== void 0 && _val$dfltDurUOM._id && val !== null && val !== void 0 && (_val$dfltDurUOM2 = val.dfltDurUOM) !== null && _val$dfltDurUOM2 !== void 0 && _val$dfltDurUOM2.shortdesc ? {
|
|
29926
29962
|
value: val === null || val === void 0 ? void 0 : (_val$dfltDurUOM3 = val.dfltDurUOM) === null || _val$dfltDurUOM3 === void 0 ? void 0 : _val$dfltDurUOM3._id,
|
|
29927
|
-
label: val === null || val === void 0 ? void 0 : (_val$dfltDurUOM4 = val.dfltDurUOM) === null || _val$dfltDurUOM4 === void 0 ? void 0 : _val$dfltDurUOM4.
|
|
29928
|
-
} : {}), _defineProperty(_obj, "durationT", val !== null && val !== void 0 && val.dfltDuration && val !== null && val !== void 0 && (_val$dfltDurUOM5 = val.dfltDurUOM) !== null && _val$dfltDurUOM5 !== void 0 && _val$dfltDurUOM5.
|
|
29963
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltDurUOM4 = val.dfltDurUOM) === null || _val$dfltDurUOM4 === void 0 ? void 0 : _val$dfltDurUOM4.shortdesc
|
|
29964
|
+
} : {}), _defineProperty(_obj, "durationT", val !== null && val !== void 0 && val.dfltDuration && val !== null && val !== void 0 && (_val$dfltDurUOM5 = val.dfltDurUOM) !== null && _val$dfltDurUOM5 !== void 0 && _val$dfltDurUOM5.shortdesc ? (val === null || val === void 0 ? void 0 : val.dfltDuration) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltDurUOM6 = val.dfltDurUOM) === null || _val$dfltDurUOM6 === void 0 ? void 0 : _val$dfltDurUOM6.shortdesc) : "-"), _defineProperty(_obj, "route", val !== null && val !== void 0 && (_val$route = val.route) !== null && _val$route !== void 0 && _val$route._id && val !== null && val !== void 0 && (_val$route2 = val.route) !== null && _val$route2 !== void 0 && _val$route2.shortdesc ? {
|
|
29929
29965
|
value: val === null || val === void 0 ? void 0 : (_val$route3 = val.route) === null || _val$route3 === void 0 ? void 0 : _val$route3._id,
|
|
29930
29966
|
label: val === null || val === void 0 ? void 0 : (_val$route4 = val.route) === null || _val$route4 === void 0 ? void 0 : _val$route4.shortdesc
|
|
29931
|
-
} : {}), _defineProperty(_obj, "routeT", (_val$route$shortdesc = val === null || val === void 0 ? void 0 : (_val$route5 = val.route) === null || _val$route5 === void 0 ? void 0 : _val$route5.shortdesc) !== null && _val$route$shortdesc !== void 0 ? _val$route$shortdesc : "-"), _defineProperty(_obj, "frequency_number", (_val$dfltFreqVal = val === null || val === void 0 ? void 0 : val.dfltFreqVal) !== null && _val$dfltFreqVal !== void 0 ? _val$dfltFreqVal : 0), _defineProperty(_obj, "frequency_type", val !== null && val !== void 0 && (_val$dfltFreqValUnit = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit !== void 0 && _val$dfltFreqValUnit._id && val !== null && val !== void 0 && (_val$dfltFreqValUnit2 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit2 !== void 0 && _val$dfltFreqValUnit2.
|
|
29967
|
+
} : {}), _defineProperty(_obj, "routeT", (_val$route$shortdesc = val === null || val === void 0 ? void 0 : (_val$route5 = val.route) === null || _val$route5 === void 0 ? void 0 : _val$route5.shortdesc) !== null && _val$route$shortdesc !== void 0 ? _val$route$shortdesc : "-"), _defineProperty(_obj, "frequency_number", (_val$dfltFreqVal = val === null || val === void 0 ? void 0 : val.dfltFreqVal) !== null && _val$dfltFreqVal !== void 0 ? _val$dfltFreqVal : 0), _defineProperty(_obj, "frequency_type", val !== null && val !== void 0 && (_val$dfltFreqValUnit = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit !== void 0 && _val$dfltFreqValUnit._id && val !== null && val !== void 0 && (_val$dfltFreqValUnit2 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit2 !== void 0 && _val$dfltFreqValUnit2.shortdesc ? {
|
|
29932
29968
|
value: val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit3 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit3 === void 0 ? void 0 : _val$dfltFreqValUnit3._id,
|
|
29933
|
-
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit4 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit4 === void 0 ? void 0 : _val$dfltFreqValUnit4.
|
|
29934
|
-
} : {}), _defineProperty(_obj, "frequencyT", val !== null && val !== void 0 && val.dfltFreqVal && val !== null && val !== void 0 && (_val$dfltFreqValUnit5 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit5 !== void 0 && _val$dfltFreqValUnit5.
|
|
29969
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit4 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit4 === void 0 ? void 0 : _val$dfltFreqValUnit4.shortdesc
|
|
29970
|
+
} : {}), _defineProperty(_obj, "frequencyT", val !== null && val !== void 0 && val.dfltFreqVal && val !== null && val !== void 0 && (_val$dfltFreqValUnit5 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit5 !== void 0 && _val$dfltFreqValUnit5.shortdesc ? (val === null || val === void 0 ? void 0 : val.dfltFreqVal) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit6 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit6 === void 0 ? void 0 : _val$dfltFreqValUnit6.shortdesc) : "-"), _defineProperty(_obj, "rate_number", (_val$dfltFreqRate = val === null || val === void 0 ? void 0 : val.dfltFreqRate) !== null && _val$dfltFreqRate !== void 0 ? _val$dfltFreqRate : ""), _defineProperty(_obj, "rate_type", val !== null && val !== void 0 && (_val$dfltFreqRateUnit = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit !== void 0 && _val$dfltFreqRateUnit._id && val !== null && val !== void 0 && (_val$dfltFreqRateUnit2 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit2 !== void 0 && _val$dfltFreqRateUnit2.shortdesc ? {
|
|
29935
29971
|
value: val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit3 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit3 === void 0 ? void 0 : _val$dfltFreqRateUnit3._id,
|
|
29936
|
-
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit4 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit4 === void 0 ? void 0 : _val$dfltFreqRateUnit4.
|
|
29937
|
-
} : {}), _defineProperty(_obj, "rateT", val !== null && val !== void 0 && val.dfltFreqRate && val !== null && val !== void 0 && (_val$dfltFreqRateUnit5 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit5 !== void 0 && _val$dfltFreqRateUnit5.
|
|
29972
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit4 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit4 === void 0 ? void 0 : _val$dfltFreqRateUnit4.shortdesc
|
|
29973
|
+
} : {}), _defineProperty(_obj, "rateT", val !== null && val !== void 0 && val.dfltFreqRate && val !== null && val !== void 0 && (_val$dfltFreqRateUnit5 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit5 !== void 0 && _val$dfltFreqRateUnit5.shortdesc ? (val === null || val === void 0 ? void 0 : val.dfltFreqRate) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit6 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit6 === void 0 ? void 0 : _val$dfltFreqRateUnit6.shortdesc) : "-"), _defineProperty(_obj, "additive", (_val$additive = val === null || val === void 0 ? void 0 : val.additive) !== null && _val$additive !== void 0 ? _val$additive : false), _defineProperty(_obj, "additivT", val !== null && val !== void 0 && val.additive ? (val === null || val === void 0 ? void 0 : val.additive) === true ? "Yes" : "No" : "No"), _defineProperty(_obj, "parentSequence", (_val$parentSequence = val === null || val === void 0 ? void 0 : val.parentSequence) !== null && _val$parentSequence !== void 0 ? _val$parentSequence : ""), _defineProperty(_obj, "parentSequenceT", (_val$parentSequence2 = val === null || val === void 0 ? void 0 : val.parentSequence) !== null && _val$parentSequence2 !== void 0 ? _val$parentSequence2 : "-"), _defineProperty(_obj, "explanatoryNote", (_val$explNote = val === null || val === void 0 ? void 0 : val.explNote) !== null && _val$explNote !== void 0 ? _val$explNote : ""), _defineProperty(_obj, "practitionerInstructions", (_val$practInstr = val === null || val === void 0 ? void 0 : val.practInstr) !== null && _val$practInstr !== void 0 ? _val$practInstr : ""), _defineProperty(_obj, "children", (_constructChildrenTab = constructChildrenTabelData(data, val === null || val === void 0 ? void 0 : val.seqNo)) !== null && _constructChildrenTab !== void 0 ? _constructChildrenTab : []), _obj);
|
|
29938
29974
|
arr.push(obj);
|
|
29939
29975
|
}
|
|
29940
29976
|
});
|
|
@@ -29969,34 +30005,34 @@ var constructChildrenTabelData = function constructChildrenTabelData(data, paren
|
|
|
29969
30005
|
} : val !== null && val !== void 0 && (_val$orderCatalog13 = val.orderCatalog) !== null && _val$orderCatalog13 !== void 0 && _val$orderCatalog13._id && val !== null && val !== void 0 && (_val$orderCatalog14 = val.orderCatalog) !== null && _val$orderCatalog14 !== void 0 && _val$orderCatalog14.ShortDesc ? {
|
|
29970
30006
|
value: val === null || val === void 0 ? void 0 : (_val$orderCatalog15 = val.orderCatalog) === null || _val$orderCatalog15 === void 0 ? void 0 : _val$orderCatalog15._id,
|
|
29971
30007
|
label: val === null || val === void 0 ? void 0 : (_val$orderCatalog16 = val.orderCatalog) === null || _val$orderCatalog16 === void 0 ? void 0 : _val$orderCatalog16.ShortDesc
|
|
29972
|
-
} : {}), _defineProperty(_obj_, "required", val !== null && val !== void 0 && val.required ? val === null || val === void 0 ? void 0 : val.required : false), _defineProperty(_obj_, "requiredT", val !== null && val !== void 0 && val.required ? (val === null || val === void 0 ? void 0 : val.required) === true ? "Yes" : "No" : "No"), _defineProperty(_obj_, "quantity_number", val !== null && val !== void 0 && val.dfltOrderQty ? val === null || val === void 0 ? void 0 : val.dfltOrderQty : ""), _defineProperty(_obj_, "quantity_type", val !== null && val !== void 0 && (_val$dfltOrderUOM7 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM7 !== void 0 && _val$dfltOrderUOM7._id && val !== null && val !== void 0 && (_val$dfltOrderUOM8 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM8 !== void 0 && _val$dfltOrderUOM8.
|
|
30008
|
+
} : {}), _defineProperty(_obj_, "required", val !== null && val !== void 0 && val.required ? val === null || val === void 0 ? void 0 : val.required : false), _defineProperty(_obj_, "requiredT", val !== null && val !== void 0 && val.required ? (val === null || val === void 0 ? void 0 : val.required) === true ? "Yes" : "No" : "No"), _defineProperty(_obj_, "quantity_number", val !== null && val !== void 0 && val.dfltOrderQty ? val === null || val === void 0 ? void 0 : val.dfltOrderQty : ""), _defineProperty(_obj_, "quantity_type", val !== null && val !== void 0 && (_val$dfltOrderUOM7 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM7 !== void 0 && _val$dfltOrderUOM7._id && val !== null && val !== void 0 && (_val$dfltOrderUOM8 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM8 !== void 0 && _val$dfltOrderUOM8.shortdesc ? {
|
|
29973
30009
|
value: val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM9 = val.dfltOrderUOM) === null || _val$dfltOrderUOM9 === void 0 ? void 0 : _val$dfltOrderUOM9._id,
|
|
29974
|
-
label: val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM10 = val.dfltOrderUOM) === null || _val$dfltOrderUOM10 === void 0 ? void 0 : _val$dfltOrderUOM10.
|
|
29975
|
-
} : {}), _defineProperty(_obj_, "quantityT", val !== null && val !== void 0 && (_val$dfltOrderUOM11 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM11 !== void 0 && _val$dfltOrderUOM11.
|
|
30010
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM10 = val.dfltOrderUOM) === null || _val$dfltOrderUOM10 === void 0 ? void 0 : _val$dfltOrderUOM10.shortdesc
|
|
30011
|
+
} : {}), _defineProperty(_obj_, "quantityT", val !== null && val !== void 0 && (_val$dfltOrderUOM11 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM11 !== void 0 && _val$dfltOrderUOM11.shortdesc && val !== null && val !== void 0 && val.dfltOrderQty ? (val === null || val === void 0 ? void 0 : val.dfltOrderQty) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM12 = val.dfltOrderUOM) === null || _val$dfltOrderUOM12 === void 0 ? void 0 : _val$dfltOrderUOM12.shortdesc) : "-"), _defineProperty(_obj_, "in_infusion_rate_volume_number", (_val$IVInfusRateVol2 = val === null || val === void 0 ? void 0 : val.IVInfusRateVol) !== null && _val$IVInfusRateVol2 !== void 0 ? _val$IVInfusRateVol2 : ""), _defineProperty(_obj_, "in_infusion_rate_volume_type", val !== null && val !== void 0 && (_val$IVInfusRateVolUO5 = val.IVInfusRateVolUOM) !== null && _val$IVInfusRateVolUO5 !== void 0 && _val$IVInfusRateVolUO5._id && val !== null && val !== void 0 && (_val$IVInfusRateVolUO6 = val.IVInfusRateVolUOM) !== null && _val$IVInfusRateVolUO6 !== void 0 && _val$IVInfusRateVolUO6.shortdesc ? {
|
|
29976
30012
|
value: val === null || val === void 0 ? void 0 : (_val$IVInfusRateVolUO7 = val.IVInfusRateVolUOM) === null || _val$IVInfusRateVolUO7 === void 0 ? void 0 : _val$IVInfusRateVolUO7._id,
|
|
29977
|
-
label: val === null || val === void 0 ? void 0 : (_val$IVInfusRateVolUO8 = val.IVInfusRateVolUOM) === null || _val$IVInfusRateVolUO8 === void 0 ? void 0 : _val$IVInfusRateVolUO8.
|
|
29978
|
-
} : {}), _defineProperty(_obj_, "in_infusion_rate_duration_number", (_val$IVDosDurValue3 = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue3 !== void 0 ? _val$IVDosDurValue3 : ""), _defineProperty(_obj_, "in_infusion_rate_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM9 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM9 !== void 0 && _val$IVDosDurUOM9._id && val !== null && val !== void 0 && (_val$IVDosDurUOM10 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM10 !== void 0 && _val$IVDosDurUOM10.
|
|
30013
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVInfusRateVolUO8 = val.IVInfusRateVolUOM) === null || _val$IVInfusRateVolUO8 === void 0 ? void 0 : _val$IVInfusRateVolUO8.shortdesc
|
|
30014
|
+
} : {}), _defineProperty(_obj_, "in_infusion_rate_duration_number", (_val$IVDosDurValue3 = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue3 !== void 0 ? _val$IVDosDurValue3 : ""), _defineProperty(_obj_, "in_infusion_rate_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM9 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM9 !== void 0 && _val$IVDosDurUOM9._id && val !== null && val !== void 0 && (_val$IVDosDurUOM10 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM10 !== void 0 && _val$IVDosDurUOM10.shortdesc ? {
|
|
29979
30015
|
value: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM11 = val.IVDosDurUOM) === null || _val$IVDosDurUOM11 === void 0 ? void 0 : _val$IVDosDurUOM11._id,
|
|
29980
|
-
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM12 = val.IVDosDurUOM) === null || _val$IVDosDurUOM12 === void 0 ? void 0 : _val$IVDosDurUOM12.
|
|
29981
|
-
} : {}), _defineProperty(_obj_, "iv_dosage_duration_number", (_val$IVDosDurValue4 = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue4 !== void 0 ? _val$IVDosDurValue4 : ""), _defineProperty(_obj_, "iv_dosage_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM13 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM13 !== void 0 && _val$IVDosDurUOM13._id && val !== null && val !== void 0 && (_val$IVDosDurUOM14 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM14 !== void 0 && _val$IVDosDurUOM14.
|
|
30016
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM12 = val.IVDosDurUOM) === null || _val$IVDosDurUOM12 === void 0 ? void 0 : _val$IVDosDurUOM12.shortdesc
|
|
30017
|
+
} : {}), _defineProperty(_obj_, "iv_dosage_duration_number", (_val$IVDosDurValue4 = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue4 !== void 0 ? _val$IVDosDurValue4 : ""), _defineProperty(_obj_, "iv_dosage_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM13 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM13 !== void 0 && _val$IVDosDurUOM13._id && val !== null && val !== void 0 && (_val$IVDosDurUOM14 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM14 !== void 0 && _val$IVDosDurUOM14.shortdesc ? {
|
|
29982
30018
|
value: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM15 = val.IVDosDurUOM) === null || _val$IVDosDurUOM15 === void 0 ? void 0 : _val$IVDosDurUOM15._id,
|
|
29983
|
-
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM16 = val.IVDosDurUOM) === null || _val$IVDosDurUOM16 === void 0 ? void 0 : _val$IVDosDurUOM16.
|
|
30019
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM16 = val.IVDosDurUOM) === null || _val$IVDosDurUOM16 === void 0 ? void 0 : _val$IVDosDurUOM16.shortdesc
|
|
29984
30020
|
} : {}), _defineProperty(_obj_, "dosage_freq_code", val !== null && val !== void 0 && (_val$dosageFreqCode5 = val.dosageFreqCode) !== null && _val$dosageFreqCode5 !== void 0 && _val$dosageFreqCode5._id && val !== null && val !== void 0 && (_val$dosageFreqCode6 = val.dosageFreqCode) !== null && _val$dosageFreqCode6 !== void 0 && _val$dosageFreqCode6.shortdesc ? {
|
|
29985
30021
|
value: val === null || val === void 0 ? void 0 : (_val$dosageFreqCode7 = val.dosageFreqCode) === null || _val$dosageFreqCode7 === void 0 ? void 0 : _val$dosageFreqCode7._id,
|
|
29986
30022
|
label: val === null || val === void 0 ? void 0 : (_val$dosageFreqCode8 = val.dosageFreqCode) === null || _val$dosageFreqCode8 === void 0 ? void 0 : _val$dosageFreqCode8.shortdesc
|
|
29987
|
-
} : {}), _defineProperty(_obj_, "startDay", (_val$startDay2 = val === null || val === void 0 ? void 0 : val.startDay) !== null && _val$startDay2 !== void 0 ? _val$startDay2 : ""), _defineProperty(_obj_, "duration_number", (_val$dfltDuration2 = val === null || val === void 0 ? void 0 : val.dfltDuration) !== null && _val$dfltDuration2 !== void 0 ? _val$dfltDuration2 : ""), _defineProperty(_obj_, "duration_type", val !== null && val !== void 0 && (_val$dfltDurUOM7 = val.dfltDurUOM) !== null && _val$dfltDurUOM7 !== void 0 && _val$dfltDurUOM7._id && val !== null && val !== void 0 && (_val$dfltDurUOM8 = val.dfltDurUOM) !== null && _val$dfltDurUOM8 !== void 0 && _val$dfltDurUOM8.
|
|
30023
|
+
} : {}), _defineProperty(_obj_, "startDay", (_val$startDay2 = val === null || val === void 0 ? void 0 : val.startDay) !== null && _val$startDay2 !== void 0 ? _val$startDay2 : ""), _defineProperty(_obj_, "duration_number", (_val$dfltDuration2 = val === null || val === void 0 ? void 0 : val.dfltDuration) !== null && _val$dfltDuration2 !== void 0 ? _val$dfltDuration2 : ""), _defineProperty(_obj_, "duration_type", val !== null && val !== void 0 && (_val$dfltDurUOM7 = val.dfltDurUOM) !== null && _val$dfltDurUOM7 !== void 0 && _val$dfltDurUOM7._id && val !== null && val !== void 0 && (_val$dfltDurUOM8 = val.dfltDurUOM) !== null && _val$dfltDurUOM8 !== void 0 && _val$dfltDurUOM8.shortdesc ? {
|
|
29988
30024
|
value: val === null || val === void 0 ? void 0 : (_val$dfltDurUOM9 = val.dfltDurUOM) === null || _val$dfltDurUOM9 === void 0 ? void 0 : _val$dfltDurUOM9._id,
|
|
29989
|
-
label: val === null || val === void 0 ? void 0 : (_val$dfltDurUOM10 = val.dfltDurUOM) === null || _val$dfltDurUOM10 === void 0 ? void 0 : _val$dfltDurUOM10.
|
|
29990
|
-
} : {}), _defineProperty(_obj_, "durationT", val !== null && val !== void 0 && val.dfltDuration && val !== null && val !== void 0 && (_val$dfltDurUOM11 = val.dfltDurUOM) !== null && _val$dfltDurUOM11 !== void 0 && _val$dfltDurUOM11.
|
|
30025
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltDurUOM10 = val.dfltDurUOM) === null || _val$dfltDurUOM10 === void 0 ? void 0 : _val$dfltDurUOM10.shortdesc
|
|
30026
|
+
} : {}), _defineProperty(_obj_, "durationT", val !== null && val !== void 0 && val.dfltDuration && val !== null && val !== void 0 && (_val$dfltDurUOM11 = val.dfltDurUOM) !== null && _val$dfltDurUOM11 !== void 0 && _val$dfltDurUOM11.shortdesc ? (val === null || val === void 0 ? void 0 : val.dfltDuration) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltDurUOM12 = val.dfltDurUOM) === null || _val$dfltDurUOM12 === void 0 ? void 0 : _val$dfltDurUOM12.shortdesc) : "-"), _defineProperty(_obj_, "route", val !== null && val !== void 0 && (_val$route6 = val.route) !== null && _val$route6 !== void 0 && _val$route6._id && val !== null && val !== void 0 && (_val$route7 = val.route) !== null && _val$route7 !== void 0 && _val$route7.shortdesc ? {
|
|
29991
30027
|
value: val === null || val === void 0 ? void 0 : (_val$route8 = val.route) === null || _val$route8 === void 0 ? void 0 : _val$route8._id,
|
|
29992
30028
|
label: val === null || val === void 0 ? void 0 : (_val$route9 = val.route) === null || _val$route9 === void 0 ? void 0 : _val$route9.shortdesc
|
|
29993
|
-
} : {}), _defineProperty(_obj_, "routeT", (_val$route$shortdesc2 = val === null || val === void 0 ? void 0 : (_val$route10 = val.route) === null || _val$route10 === void 0 ? void 0 : _val$route10.shortdesc) !== null && _val$route$shortdesc2 !== void 0 ? _val$route$shortdesc2 : "-"), _defineProperty(_obj_, "frequency_number", (_val$dfltFreqVal2 = val === null || val === void 0 ? void 0 : val.dfltFreqVal) !== null && _val$dfltFreqVal2 !== void 0 ? _val$dfltFreqVal2 : 0), _defineProperty(_obj_, "frequency_type", val !== null && val !== void 0 && (_val$dfltFreqValUnit7 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit7 !== void 0 && _val$dfltFreqValUnit7._id && val !== null && val !== void 0 && (_val$dfltFreqValUnit8 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit8 !== void 0 && _val$dfltFreqValUnit8.
|
|
30029
|
+
} : {}), _defineProperty(_obj_, "routeT", (_val$route$shortdesc2 = val === null || val === void 0 ? void 0 : (_val$route10 = val.route) === null || _val$route10 === void 0 ? void 0 : _val$route10.shortdesc) !== null && _val$route$shortdesc2 !== void 0 ? _val$route$shortdesc2 : "-"), _defineProperty(_obj_, "frequency_number", (_val$dfltFreqVal2 = val === null || val === void 0 ? void 0 : val.dfltFreqVal) !== null && _val$dfltFreqVal2 !== void 0 ? _val$dfltFreqVal2 : 0), _defineProperty(_obj_, "frequency_type", val !== null && val !== void 0 && (_val$dfltFreqValUnit7 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit7 !== void 0 && _val$dfltFreqValUnit7._id && val !== null && val !== void 0 && (_val$dfltFreqValUnit8 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit8 !== void 0 && _val$dfltFreqValUnit8.shortdesc ? {
|
|
29994
30030
|
value: val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit9 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit9 === void 0 ? void 0 : _val$dfltFreqValUnit9._id,
|
|
29995
|
-
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit10 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit10 === void 0 ? void 0 : _val$dfltFreqValUnit10.
|
|
29996
|
-
} : {}), _defineProperty(_obj_, "frequencyT", val !== null && val !== void 0 && val.dfltFreqVal && val !== null && val !== void 0 && (_val$dfltFreqValUnit11 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit11 !== void 0 && _val$dfltFreqValUnit11.
|
|
30031
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit10 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit10 === void 0 ? void 0 : _val$dfltFreqValUnit10.shortdesc
|
|
30032
|
+
} : {}), _defineProperty(_obj_, "frequencyT", val !== null && val !== void 0 && val.dfltFreqVal && val !== null && val !== void 0 && (_val$dfltFreqValUnit11 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit11 !== void 0 && _val$dfltFreqValUnit11.shortdesc ? (val === null || val === void 0 ? void 0 : val.dfltFreqVal) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit12 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit12 === void 0 ? void 0 : _val$dfltFreqValUnit12.shortdesc) : "-"), _defineProperty(_obj_, "rate_number", (_val$dfltFreqRate2 = val === null || val === void 0 ? void 0 : val.dfltFreqRate) !== null && _val$dfltFreqRate2 !== void 0 ? _val$dfltFreqRate2 : ""), _defineProperty(_obj_, "rate_type", val !== null && val !== void 0 && (_val$dfltFreqRateUnit7 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit7 !== void 0 && _val$dfltFreqRateUnit7._id && val !== null && val !== void 0 && (_val$dfltFreqRateUnit8 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit8 !== void 0 && _val$dfltFreqRateUnit8.shortdesc ? {
|
|
29997
30033
|
value: val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit9 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit9 === void 0 ? void 0 : _val$dfltFreqRateUnit9._id,
|
|
29998
|
-
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit10 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit10 === void 0 ? void 0 : _val$dfltFreqRateUnit10.
|
|
29999
|
-
} : {}), _defineProperty(_obj_, "rateT", val !== null && val !== void 0 && val.dfltFreqRate && val !== null && val !== void 0 && (_val$dfltFreqRateUnit11 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit11 !== void 0 && _val$dfltFreqRateUnit11.
|
|
30034
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit10 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit10 === void 0 ? void 0 : _val$dfltFreqRateUnit10.shortdesc
|
|
30035
|
+
} : {}), _defineProperty(_obj_, "rateT", val !== null && val !== void 0 && val.dfltFreqRate && val !== null && val !== void 0 && (_val$dfltFreqRateUnit11 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit11 !== void 0 && _val$dfltFreqRateUnit11.shortdesc ? (val === null || val === void 0 ? void 0 : val.dfltFreqRate) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit12 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit12 === void 0 ? void 0 : _val$dfltFreqRateUnit12.shortdesc) : "-"), _defineProperty(_obj_, "additive", (_val$additive2 = val === null || val === void 0 ? void 0 : val.additive) !== null && _val$additive2 !== void 0 ? _val$additive2 : false), _defineProperty(_obj_, "additivT", val !== null && val !== void 0 && val.additive ? (val === null || val === void 0 ? void 0 : val.additive) === true ? "Yes" : "No" : "No"), _defineProperty(_obj_, "parentSequence", (_val$parentCatSeqNo = val === null || val === void 0 ? void 0 : val.parentCatSeqNo) !== null && _val$parentCatSeqNo !== void 0 ? _val$parentCatSeqNo : ""), _defineProperty(_obj_, "parentSequenceT", (_val$parentCatSeqNo2 = val === null || val === void 0 ? void 0 : val.parentCatSeqNo) !== null && _val$parentCatSeqNo2 !== void 0 ? _val$parentCatSeqNo2 : "-"), _defineProperty(_obj_, "explanatoryNote", (_val$explNote2 = val === null || val === void 0 ? void 0 : val.explNote) !== null && _val$explNote2 !== void 0 ? _val$explNote2 : ""), _defineProperty(_obj_, "practitionerInstructions", (_val$practInstr2 = val === null || val === void 0 ? void 0 : val.practInstr) !== null && _val$practInstr2 !== void 0 ? _val$practInstr2 : ""), _obj_);
|
|
30000
30036
|
arr_.push(obj_);
|
|
30001
30037
|
}
|
|
30002
30038
|
});
|
|
@@ -30061,7 +30097,7 @@ var loopMasters$3 = function loopMasters() {
|
|
|
30061
30097
|
});
|
|
30062
30098
|
} else if ("commonUOM" === val.name) {
|
|
30063
30099
|
arr.push({
|
|
30064
|
-
label: value.
|
|
30100
|
+
label: value.shortdesc,
|
|
30065
30101
|
value: value._id
|
|
30066
30102
|
});
|
|
30067
30103
|
}
|
|
@@ -31653,7 +31689,8 @@ var query$3 = {
|
|
|
31653
31689
|
offset: page,
|
|
31654
31690
|
count: perpage
|
|
31655
31691
|
},
|
|
31656
|
-
return_fields: "{TotalCount:COUNT(AllergyMaster),AllergyMaster:merge(AllergyMaster,{extsystemsourceid:document(AllergyMaster.extsystemsourceid)},{conceptidtype:document(AllergyMaster.conceptidtype)},{allergytypeind:document(AllergyMaster.allergytypeind)})}"
|
|
31692
|
+
return_fields: "{TotalCount:COUNT(AllergyMaster),AllergyMaster:merge(AllergyMaster,{extsystemsourceid:document(AllergyMaster.extsystemsourceid)},{conceptidtype:document(AllergyMaster.conceptidtype)},{allergytypeind:document(AllergyMaster.allergytypeind)})}" // sort: "AllergyMaster.createddate"
|
|
31693
|
+
|
|
31657
31694
|
};
|
|
31658
31695
|
}
|
|
31659
31696
|
};
|
|
@@ -32589,22 +32626,22 @@ var flexCriteriaQuery = {
|
|
|
32589
32626
|
flexCriteriaFullRead: function flexCriteriaFullRead(page, perpage, search) {
|
|
32590
32627
|
return {
|
|
32591
32628
|
db_name: "primarycare",
|
|
32592
|
-
entity: "
|
|
32593
|
-
filter: "(LIKE (
|
|
32629
|
+
entity: "CA_FlexAttribApplicability",
|
|
32630
|
+
filter: "(LIKE (CA_FlexAttribApplicability.winlabelName,'%".concat(search, "%', true)) && CA_FlexAttribApplicability.activestatus == true"),
|
|
32594
32631
|
limit: {
|
|
32595
32632
|
offset: page,
|
|
32596
32633
|
count: perpage
|
|
32597
32634
|
},
|
|
32598
|
-
return_fields: "merge(
|
|
32599
|
-
sort: "
|
|
32635
|
+
return_fields: "merge(CA_FlexAttribApplicability, {TotalCount:COUNT(FOR cnt IN CA_FlexAttribApplicability RETURN cnt._key)},{AttribComponents:( for att in CA_FlexAttribApplicability.AttribComponents return merge(att,{attribCode:merge(document(att.attribCode),{attribtype:document(document(att.attribCode).attribtype)})}) )})",
|
|
32636
|
+
sort: "CA_FlexAttribApplicability.createddate desc"
|
|
32600
32637
|
};
|
|
32601
32638
|
},
|
|
32602
32639
|
flexCriteriaSingleRead: function flexCriteriaSingleRead(key) {
|
|
32603
32640
|
return {
|
|
32604
32641
|
db_name: dbName,
|
|
32605
|
-
entity: "
|
|
32606
|
-
filter: "
|
|
32607
|
-
return_fields: "merge(
|
|
32642
|
+
entity: "CA_FlexAttribApplicability",
|
|
32643
|
+
filter: "CA_FlexAttribApplicability._key == '".concat(key, "' && CA_FlexAttribApplicability.activestatus == true"),
|
|
32644
|
+
return_fields: "merge(CA_FlexAttribApplicability,{AttribComponents:(for att in CA_FlexAttribApplicability.AttribComponents return merge(att,{attribCode:document((CA_FlexAttribApplicability.AttribComponents)[*].attribCode)}))})"
|
|
32608
32645
|
};
|
|
32609
32646
|
},
|
|
32610
32647
|
flexCriteriaInsert: function flexCriteriaInsert(list) {
|
|
@@ -32612,7 +32649,7 @@ var flexCriteriaQuery = {
|
|
|
32612
32649
|
|
|
32613
32650
|
return [{
|
|
32614
32651
|
db_name: dbName,
|
|
32615
|
-
entity: "
|
|
32652
|
+
entity: "CA_FlexAttribApplicability",
|
|
32616
32653
|
is_metadata: true,
|
|
32617
32654
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
32618
32655
|
doc: {
|
|
@@ -32635,7 +32672,7 @@ var flexCriteriaQuery = {
|
|
|
32635
32672
|
flexCriteriaStatus: function flexCriteriaStatus(status, key) {
|
|
32636
32673
|
return [{
|
|
32637
32674
|
db_name: dbName,
|
|
32638
|
-
entity: "
|
|
32675
|
+
entity: "CA_FlexAttribApplicability",
|
|
32639
32676
|
filter: {
|
|
32640
32677
|
_key: key
|
|
32641
32678
|
},
|
|
@@ -32651,7 +32688,7 @@ var flexCriteriaQuery = {
|
|
|
32651
32688
|
|
|
32652
32689
|
return [{
|
|
32653
32690
|
db_name: "primarycare",
|
|
32654
|
-
entity: "
|
|
32691
|
+
entity: "CA_FlexAttribApplicability",
|
|
32655
32692
|
filter: {
|
|
32656
32693
|
_key: list === null || list === void 0 ? void 0 : list.key
|
|
32657
32694
|
},
|
|
@@ -32680,9 +32717,9 @@ var flexCriteriaQuery = {
|
|
|
32680
32717
|
flexCriteriaSearch: function flexCriteriaSearch(search) {
|
|
32681
32718
|
return {
|
|
32682
32719
|
db_name: dbName,
|
|
32683
|
-
entity: "
|
|
32684
|
-
filter: "(LIKE (
|
|
32685
|
-
return_fields: "merge(
|
|
32720
|
+
entity: "CA_FlexAttribApplicability",
|
|
32721
|
+
filter: "(LIKE (CA_FlexAttribApplicability.winlabelName,'%".concat(search, "%', true)) && CA_FlexAttribApplicability.activestatus == true"),
|
|
32722
|
+
return_fields: "merge(CA_FlexAttribApplicability,{AttribComponents:(for att in CA_FlexAttribApplicability.AttribComponents return merge(att,{attribCode:document((CA_FlexAttribApplicability.AttribComponents)[*].attribCode)}))})"
|
|
32686
32723
|
};
|
|
32687
32724
|
}
|
|
32688
32725
|
};
|
|
@@ -35548,7 +35585,8 @@ var queries$1 = {
|
|
|
35548
35585
|
db_name: dbName,
|
|
35549
35586
|
entity: "SymptomsMapping",
|
|
35550
35587
|
filter: "SymptomsMapping.activestatus==true",
|
|
35551
|
-
return_fields: "merge(SymptomsMapping,{specialty:(FOR cod IN CodeableConceptMaster filter cod._id in SymptomsMapping.specialty RETURN merge(cod,{coding:document(cod.coding)}))})"
|
|
35588
|
+
return_fields: "merge(SymptomsMapping,{specialty:(FOR cod IN CodeableConceptMaster filter cod._id in SymptomsMapping.specialty RETURN merge(cod,{coding:document(cod.coding)}))})",
|
|
35589
|
+
sort: "SymptomsMapping.createddate"
|
|
35552
35590
|
};
|
|
35553
35591
|
},
|
|
35554
35592
|
symptom_and_specialty_single_read: function symptom_and_specialty_single_read(_key) {
|