primary_care_admin_binder 0.1.22 → 0.1.23
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 +4 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11839,6 +11839,7 @@ var queries$m = {
|
|
|
11839
11839
|
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
11840
|
filter: "LocationMaster.activestatus==true",
|
|
11841
11841
|
isTraversal: "true",
|
|
11842
|
+
sort: "LocationMaster.createddate",
|
|
11842
11843
|
return_fields: "{vertices:v,orginatedata:LocationMaster}"
|
|
11843
11844
|
};
|
|
11844
11845
|
},
|
|
@@ -20758,7 +20759,7 @@ var query$8 = {
|
|
|
20758
20759
|
readQuery: function readQuery(_ref2) {
|
|
20759
20760
|
var entity_type = _ref2.entity_type,
|
|
20760
20761
|
entity_name = _ref2.entity_name;
|
|
20761
|
-
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 }");
|
|
20762
|
+
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 }");
|
|
20762
20763
|
},
|
|
20763
20764
|
readGroup: function readGroup() {
|
|
20764
20765
|
return "{\n \"db_name\": \"".concat(ruleDBName, "\",\n \"entity\": \"Groups\",\n \"filter\": \"Groups.activestatus==true\",\n \"return_fields\": \"{label : Groups.name, value:Groups.id}\"\n }");
|
|
@@ -26036,6 +26037,7 @@ var queries$a = {
|
|
|
26036
26037
|
"db_name": dbName,
|
|
26037
26038
|
"entity": "CodeableConceptMaster"
|
|
26038
26039
|
}, filter), {}, {
|
|
26040
|
+
"sort": "CodeableConceptMaster.createddate",
|
|
26039
26041
|
"return_fields": "MERGE(CodeableConceptMaster,{coding:(for cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})"
|
|
26040
26042
|
});
|
|
26041
26043
|
},
|
|
@@ -26873,6 +26875,7 @@ var queries$7 = {
|
|
|
26873
26875
|
"db_name": "primarycare",
|
|
26874
26876
|
"entity": "Person",
|
|
26875
26877
|
"filter": "Person.activestatus==true",
|
|
26878
|
+
"sort": "Person.createddate",
|
|
26876
26879
|
"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)})"
|
|
26877
26880
|
};
|
|
26878
26881
|
},
|