primary_care_admin_binder 0.1.55 → 0.1.58
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 +42 -27
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11519,7 +11519,14 @@ var vitalsApplicableSlice$1 = vitalsApplicableSlice.reducer;
|
|
|
11519
11519
|
var query$9 = {
|
|
11520
11520
|
gender: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
11521
11521
|
unitAllowed: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"VitalsMeasureCodes\",\n \"sort\":\"VitalsMeasureCodes.ObsValMeasCode\",\n \"filter\": \"VitalsMeasureCodes.activestatus==true && VitalsMeasureCodes.status==true\",\n \"return_fields\": \"VitalsMeasureCodes\"\n }"),
|
|
11522
|
-
referenceUnitAllowed:
|
|
11522
|
+
// referenceUnitAllowed: `{
|
|
11523
|
+
// "db_name": "${dbName}",
|
|
11524
|
+
// "entity": "CodeableConceptMaster",
|
|
11525
|
+
// "sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
11526
|
+
// "filter": "CodeableConceptMaster.Type=='VITALSUOM'",
|
|
11527
|
+
// "return_fields": "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
11528
|
+
// }`,
|
|
11529
|
+
referenceUnitAllowed: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type == 'VITALSUOM' && CodingMaster.status == true && CodingMaster.activestatus == true\",\n \"return_fields\": \"KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','shortdesc','longdesc','activestatus')\",\n \"sort\": \"CodingMaster.display\"\n }"),
|
|
11523
11530
|
ageRanges: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"AgeRanges\",\n \"filter\": {\n \"AgeRanges\":\"AgeRanges.activestatus==true \"\n },\n \"return_fields\": \"{'AgeRangesDtl':AgeRanges,'AgeCategoryDtl':DOCUMENT(AgeRanges.AgeCategory)}\"\n }"),
|
|
11524
11531
|
ageCategory: function ageCategory(ageRangeId) {
|
|
11525
11532
|
return {
|
|
@@ -11821,8 +11828,8 @@ var REFERENCE_UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/refer
|
|
|
11821
11828
|
arr = [];
|
|
11822
11829
|
data && data.result.map(function (val) {
|
|
11823
11830
|
arr.push({
|
|
11824
|
-
value: val._id,
|
|
11825
|
-
label: val
|
|
11831
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
11832
|
+
label: val === null || val === void 0 ? void 0 : val.display
|
|
11826
11833
|
});
|
|
11827
11834
|
});
|
|
11828
11835
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -12367,13 +12374,15 @@ var queries$m = {
|
|
|
12367
12374
|
// "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",
|
|
12368
12375
|
// filter: "LocationMaster.activestatus==true",
|
|
12369
12376
|
// isTraversal: "true",
|
|
12370
|
-
// sort: "LocationMaster.createddate",
|
|
12377
|
+
// sort: "LocationMaster.createddate",
|
|
12371
12378
|
// return_fields: "{vertices:v,orginatedata:LocationMaster}",
|
|
12372
12379
|
// };
|
|
12373
12380
|
return {
|
|
12374
12381
|
db_name: dbName$1,
|
|
12375
12382
|
entity: "LocationMaster",
|
|
12376
|
-
|
|
12383
|
+
filter: "LocationMaster.activestatus==true",
|
|
12384
|
+
return_fields: "merge(keep(LocationMaster,'locationID','_key','_id','id','activestatus','status','longdesc','shortdesc'),{locationType:(for cod in document(to_array(LocationMaster.locationType)) return merge(cod,{coding:document(cod.coding)}))})" // return_fields: "merge(LocationMaster,{operationalStatus:(for ops in CodeableConceptMaster filter ops._id==LocationMaster.operationalStatus return merge(ops,{coding:document(ops.coding)}))},{managingOrgEntityType:(for moe in CodeableConceptMaster filter moe._id==LocationMaster.managingOrgEntityType return merge(moe,{coding:document(moe.coding)}))}, {parentLocationID_desc:document(to_array(LocationMaster.parentLocationID_desc))},{address:document(LocationMaster.address)},{locationType:(for lt in CodeableConceptMaster filter lt._id==LocationMaster.locationType return (merge(lt,{coding:document(lt.coding)})))},{managingOrgID:document(to_array(LocationMaster.managingOrgID))},{locationRoletype:document(to_array(LocationMaster.locationRoletype))},{specialty:document(to_array(LocationMaster.specialty))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in LocationMaster.pharmacy return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
|
|
12385
|
+
|
|
12377
12386
|
};
|
|
12378
12387
|
},
|
|
12379
12388
|
locationlistupsert: function locationlistupsert(data) {
|
|
@@ -12710,19 +12719,21 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12710
12719
|
|
|
12711
12720
|
case 6:
|
|
12712
12721
|
data = _context.sent;
|
|
12722
|
+
debugger;
|
|
12713
12723
|
arry = [];
|
|
12714
|
-
|
|
12724
|
+
console.log("data", data.result);
|
|
12725
|
+
_context.next = 12;
|
|
12715
12726
|
return data.result.map(function (val) {
|
|
12716
12727
|
if (val.locationID) {
|
|
12717
|
-
var _val$locationType, _val$locationType$, _val$
|
|
12728
|
+
var _val$locationType, _val$locationType$, _val$locationType2, _val$locationType2$, _val$locationType2$$c, _val$locationType2$$c2, _val$locationType3, _val$locationType3$, _val$locationType4, _val$locationType4$, _val$locationType4$$c, _val$locationType4$$c2, _val$locationType5, _val$locationType5$, _val$locationType5$$c, _val$locationType5$$c2, _val$locationType6, _val$locationType6$, _val$locationType6$$c, _val$locationType6$$c2, _val$locationType7, _val$locationType7$, _val$locationType7$$c, _val$locationType7$$c2, _val$locationType8, _val$locationType8$, _val$locationType8$$c, _val$locationType8$$c2;
|
|
12718
12729
|
|
|
12719
12730
|
arry.push({
|
|
12720
12731
|
location_id: val.locationID,
|
|
12721
|
-
location_type: ((_val$locationType = val.locationType) === null || _val$locationType === void 0 ? void 0 : (_val$locationType$ = _val$locationType[0]) === null || _val$locationType$ === void 0 ? void 0 : (_val$locationType$$
|
|
12722
|
-
location_type_code: (_val$
|
|
12723
|
-
location_type_name: (_val$
|
|
12724
|
-
location_type_id: (_val$
|
|
12725
|
-
location_type_key: (_val$
|
|
12732
|
+
location_type: val.locationType.length > 0 ? (((_val$locationType = val.locationType) === null || _val$locationType === void 0 ? void 0 : (_val$locationType$ = _val$locationType[0]) === null || _val$locationType$ === void 0 ? void 0 : _val$locationType$.coding) !== null ? (_val$locationType2 = val.locationType) === null || _val$locationType2 === void 0 ? void 0 : (_val$locationType2$ = _val$locationType2[0]) === null || _val$locationType2$ === void 0 ? void 0 : (_val$locationType2$$c = _val$locationType2$.coding) === null || _val$locationType2$$c === void 0 ? void 0 : (_val$locationType2$$c2 = _val$locationType2$$c[0]) === null || _val$locationType2$$c2 === void 0 ? void 0 : _val$locationType2$$c2.code : "") + " - " + (((_val$locationType3 = val.locationType) === null || _val$locationType3 === void 0 ? void 0 : (_val$locationType3$ = _val$locationType3[0]) === null || _val$locationType3$ === void 0 ? void 0 : _val$locationType3$.coding) !== null ? (_val$locationType4 = val.locationType) === null || _val$locationType4 === void 0 ? void 0 : (_val$locationType4$ = _val$locationType4[0]) === null || _val$locationType4$ === void 0 ? void 0 : (_val$locationType4$$c = _val$locationType4$.coding) === null || _val$locationType4$$c === void 0 ? void 0 : (_val$locationType4$$c2 = _val$locationType4$$c[0]) === null || _val$locationType4$$c2 === void 0 ? void 0 : _val$locationType4$$c2.Type : "") : "-",
|
|
12733
|
+
location_type_code: (_val$locationType5 = val.locationType) === null || _val$locationType5 === void 0 ? void 0 : (_val$locationType5$ = _val$locationType5[0]) === null || _val$locationType5$ === void 0 ? void 0 : (_val$locationType5$$c = _val$locationType5$.coding) === null || _val$locationType5$$c === void 0 ? void 0 : (_val$locationType5$$c2 = _val$locationType5$$c[0]) === null || _val$locationType5$$c2 === void 0 ? void 0 : _val$locationType5$$c2.code,
|
|
12734
|
+
location_type_name: (_val$locationType6 = val.locationType) === null || _val$locationType6 === void 0 ? void 0 : (_val$locationType6$ = _val$locationType6[0]) === null || _val$locationType6$ === void 0 ? void 0 : (_val$locationType6$$c = _val$locationType6$.coding) === null || _val$locationType6$$c === void 0 ? void 0 : (_val$locationType6$$c2 = _val$locationType6$$c[0]) === null || _val$locationType6$$c2 === void 0 ? void 0 : _val$locationType6$$c2.Type,
|
|
12735
|
+
location_type_id: (_val$locationType7 = val.locationType) === null || _val$locationType7 === void 0 ? void 0 : (_val$locationType7$ = _val$locationType7[0]) === null || _val$locationType7$ === void 0 ? void 0 : (_val$locationType7$$c = _val$locationType7$.coding) === null || _val$locationType7$$c === void 0 ? void 0 : (_val$locationType7$$c2 = _val$locationType7$$c[0]) === null || _val$locationType7$$c2 === void 0 ? void 0 : _val$locationType7$$c2._id,
|
|
12736
|
+
location_type_key: (_val$locationType8 = val.locationType) === null || _val$locationType8 === void 0 ? void 0 : (_val$locationType8$ = _val$locationType8[0]) === null || _val$locationType8$ === void 0 ? void 0 : (_val$locationType8$$c = _val$locationType8$.coding) === null || _val$locationType8$$c === void 0 ? void 0 : (_val$locationType8$$c2 = _val$locationType8$$c[0]) === null || _val$locationType8$$c2 === void 0 ? void 0 : _val$locationType8$$c2._key,
|
|
12726
12737
|
long_description: val.longdesc,
|
|
12727
12738
|
short_description: val.shortdesc,
|
|
12728
12739
|
_key: val._key,
|
|
@@ -12734,24 +12745,24 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12734
12745
|
}
|
|
12735
12746
|
});
|
|
12736
12747
|
|
|
12737
|
-
case
|
|
12748
|
+
case 12:
|
|
12738
12749
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
12739
12750
|
data: arry
|
|
12740
12751
|
}));
|
|
12741
12752
|
|
|
12742
|
-
case
|
|
12743
|
-
_context.prev =
|
|
12753
|
+
case 15:
|
|
12754
|
+
_context.prev = 15;
|
|
12744
12755
|
_context.t0 = _context["catch"](2);
|
|
12745
12756
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
12746
12757
|
message: _context.t0.message
|
|
12747
12758
|
})));
|
|
12748
12759
|
|
|
12749
|
-
case
|
|
12760
|
+
case 18:
|
|
12750
12761
|
case "end":
|
|
12751
12762
|
return _context.stop();
|
|
12752
12763
|
}
|
|
12753
12764
|
}
|
|
12754
|
-
}, _callee, null, [[2,
|
|
12765
|
+
}, _callee, null, [[2, 15]]);
|
|
12755
12766
|
})));
|
|
12756
12767
|
var LOCATION_LIST_UPSERT = createAsyncThunk("locationSlice/locationlistupsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
12757
12768
|
var payload,
|
|
@@ -12818,32 +12829,33 @@ var LOCATION_MASTER_INSERT = createAsyncThunk("locationApiSlice/locationinsert",
|
|
|
12818
12829
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
12819
12830
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
12820
12831
|
_context3.prev = 2;
|
|
12832
|
+
debugger;
|
|
12821
12833
|
data = payload.data, _key = payload._key;
|
|
12822
12834
|
queriesjson = generateJSON(data, _key);
|
|
12823
|
-
_context3.next =
|
|
12835
|
+
_context3.next = 8;
|
|
12824
12836
|
return fetchData({
|
|
12825
12837
|
body: JSON.stringify(queriesjson)
|
|
12826
12838
|
}, __uspsertUrl__);
|
|
12827
12839
|
|
|
12828
|
-
case
|
|
12840
|
+
case 8:
|
|
12829
12841
|
dataRes = _context3.sent;
|
|
12830
12842
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
12831
12843
|
data: dataRes
|
|
12832
12844
|
}));
|
|
12833
12845
|
|
|
12834
|
-
case
|
|
12835
|
-
_context3.prev =
|
|
12846
|
+
case 12:
|
|
12847
|
+
_context3.prev = 12;
|
|
12836
12848
|
_context3.t0 = _context3["catch"](2);
|
|
12837
12849
|
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
12838
12850
|
message: _context3.t0.message
|
|
12839
12851
|
})));
|
|
12840
12852
|
|
|
12841
|
-
case
|
|
12853
|
+
case 15:
|
|
12842
12854
|
case "end":
|
|
12843
12855
|
return _context3.stop();
|
|
12844
12856
|
}
|
|
12845
12857
|
}
|
|
12846
|
-
}, _callee3, null, [[2,
|
|
12858
|
+
}, _callee3, null, [[2, 12]]);
|
|
12847
12859
|
})));
|
|
12848
12860
|
var locationSlice = createSlice({
|
|
12849
12861
|
name: "locationApiSlice",
|
|
@@ -29732,9 +29744,12 @@ var queries$6 = {
|
|
|
29732
29744
|
practitioner_by_id: function practitioner_by_id(data) {
|
|
29733
29745
|
return {
|
|
29734
29746
|
"db_name": dbName$1,
|
|
29735
|
-
"entity": "Practitioner",
|
|
29736
|
-
"
|
|
29737
|
-
|
|
29747
|
+
// "entity": "Practitioner",
|
|
29748
|
+
"entity": "Person",
|
|
29749
|
+
// "filter": `Practitioner.PersonID==${data.id} && Practitioner.activestatus==true`,
|
|
29750
|
+
"filter": "Person._id =='".concat(data.id, "' && Person.activestatus == true "),
|
|
29751
|
+
// "return_fields": "merge(Practitioner,{identifier:(for doc in IdentifierMaster filter doc._id in Practitioner.identifier return merge(doc,{period:(for cod in doc.period return document(cod))})),address:(for a in Practitioner.address return document(a)),communication:( FOR cod IN CodeableConceptMaster filter cod._id in Practitioner.communication RETURN MERGE(cod,{coding:(FOR d IN cod.coding RETURN DOCUMENT(d))})),marital_status:(FOR cod IN CodeableConceptMaster filter cod._id==Practitioner.marital_status RETURN MERGE(cod,{coding:(FOR d IN cod.coding RETURN DOCUMENT(d))})),name:(for a in Practitioner.name return MERGE(document(a),{period:DOCUMENT(document(a).period)})),nationality:(FOR cod IN SMGeographicMaster filter cod._id==Practitioner.nationality RETURN cod),photo:(for a in Practitioner.photo return document(a)),position:(for pt in CodeableConceptMaster filter pt._id==Practitioner.position return merge(pt,{coding:(FOR d IN pt.coding RETURN DOCUMENT(d))})),practitioner_type:(for pt in CodeableConceptMaster filter pt._id==Practitioner.practitioner_type return merge(pt,{coding:(FOR d IN pt.coding RETURN DOCUMENT(d))})),telecom:(for a in Practitioner.telecom return document(a)),job_experience:(for c in Practitioner.job_experience RETURN merge(c,{jobexperience_contact_details:(for con in c.jobexperience_contact_details return document(con)), jobexperience_address:(for add in c.jobexperience_address return document(add))})),training_details:(for c in Practitioner.training_details RETURN merge(c,{training_contact_details:(for con in c.training_contact_details return document(con)), training_address:(for add in c.training_address return document(add))})),practitioner_role:(for doc in PractitionerRole filter doc._id IN Practitioner.practitioner_role return MERGE(doc,{telecom:(for rol in ContactPointMaster filter rol._id in doc.telecom return rol),role:(for cod in CodeableConceptMaster filter cod._id==doc.role return merge(cod,{coding:(for code in CodingMaster filter code._id in cod.coding return code)})),period:(for per in periodMaster filter per._id in doc.period return per)})),gender:(FOR cod IN CodeableConceptMaster filter cod._id==Practitioner.gender RETURN MERGE(cod,{coding:(FOR d IN cod.coding RETURN DOCUMENT(d))})),employee_status:(for pt in CodeableConceptMaster filter pt._id==Practitioner.employee_status return merge(pt,{coding:(FOR d IN pt.coding RETURN DOCUMENT(d))}))})"
|
|
29752
|
+
"return_fields": "merge(Person,{OrgID: document(Person.OrgID)},{address: document(Person.address)},{gender: document(Person.gender)},{orgType: document(Person.orgType)},{name: (for doc in document(Person.name) return merge(doc,{period: document(doc.period)},{ use: document(doc.use)},{prefix: document(doc.prefix)},{ suffix: document(doc.suffix)}))},{identifier: (for ide in document(Person.identifier)return merge(ide,{ period: document(ide.period)}))},{ telecom: (for doc in document(Person.telecom) return merge(doc, { system: document(doc.system)},{use: document(document(doc.use).coding)},{ period: document(Person.Person)},{ valueprefix: document(doc.valueprefix) }, {rank: document(document(doc.rank).coding)}))})"
|
|
29738
29753
|
};
|
|
29739
29754
|
}
|
|
29740
29755
|
};
|
|
@@ -35110,7 +35125,7 @@ var query$2 = {
|
|
|
35110
35125
|
return {
|
|
35111
35126
|
"db_name": "".concat(dbName$1),
|
|
35112
35127
|
"entity": "Diagnosis",
|
|
35113
|
-
"filter": "Diagnosis.levelnumber ==
|
|
35128
|
+
"filter": "Diagnosis.levelnumber == ".concat(level, " && Diagnosis.activestatus == true"),
|
|
35114
35129
|
"return_fields": "Diagnosis",
|
|
35115
35130
|
"sort": "Diagnosis.icdname"
|
|
35116
35131
|
};
|