{"id":855,"date":"2018-02-23T20:56:48","date_gmt":"2018-02-24T04:56:48","guid":{"rendered":"http:\/\/blackbirdsolutions.com\/?p=855"},"modified":"2018-02-23T20:56:48","modified_gmt":"2018-02-24T04:56:48","slug":"locations-of-care","status":"publish","type":"post","link":"https:\/\/blackbirdsolutions.com\/?p=855","title":{"rendered":"Locations of Care"},"content":{"rendered":"<p>An interesting problem came up this week.\u00a0 We encountered a situation where the we needed a document&#8217;s location abbreviation instead of the full name.<\/p>\n<p>Centricity supports several expressions that retrieve the locations, but not all methods include the abbreviation:<\/p>\n<ol>\n<li>DOCUMENT.LOCOFCARENAME<\/li>\n<li>DOCUMENT.LOCOFCARE (undocumented)<\/li>\n<li>PATIENT.HOMELOCATIONNAME<\/li>\n<li>PATIENT.HOMELOCATIONABBREVNAME<\/li>\n<li>USER.CURLOCATIONNAME<\/li>\n<li>USER.CURLOCATIONABBREVNAME<\/li>\n<li>USER.HOMELOCATIONNAME<\/li>\n<\/ol>\n<p>To get the abbreviation for the document&#8217;s location, this expression appears to work well with a single call:<\/p>\n<pre>{find('AllLocation', 'ABBREVNAME', 'LOCID', DOCUMENT.LOCOFCARE)}<\/pre>\n<p>DOCUMENT.LOCOFCARE actually returns the\u00a0LOCID for the document&#8217;s location of care. This allows find to use the location abbreviation using the table&#8217;s key.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An interesting problem came up this week.\u00a0 We encountered a situation where the we needed a document&#8217;s location abbreviation instead of the full name. Centricity supports several expressions that retrieve the locations, but not all methods include the abbreviation: DOCUMENT.LOCOFCARENAME DOCUMENT.LOCOFCARE (undocumented) PATIENT.HOMELOCATIONNAME PATIENT.HOMELOCATIONABBREVNAME USER.CURLOCATIONNAME USER.CURLOCATIONABBREVNAME USER.HOMELOCATIONNAME To get the abbreviation for the document&#8217;s location, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-855","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blackbirdsolutions.com\/index.php?rest_route=\/wp\/v2\/posts\/855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blackbirdsolutions.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blackbirdsolutions.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blackbirdsolutions.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blackbirdsolutions.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=855"}],"version-history":[{"count":2,"href":"https:\/\/blackbirdsolutions.com\/index.php?rest_route=\/wp\/v2\/posts\/855\/revisions"}],"predecessor-version":[{"id":857,"href":"https:\/\/blackbirdsolutions.com\/index.php?rest_route=\/wp\/v2\/posts\/855\/revisions\/857"}],"wp:attachment":[{"href":"https:\/\/blackbirdsolutions.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blackbirdsolutions.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blackbirdsolutions.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}