Locations of Care

An interesting problem came up this week.  We encountered a situation where the we needed a document’s location abbreviation instead of the full name.

Centricity supports several expressions that retrieve the locations, but not all methods include the abbreviation:

  1. DOCUMENT.LOCOFCARENAME
  2. DOCUMENT.LOCOFCARE (undocumented)
  3. PATIENT.HOMELOCATIONNAME
  4. PATIENT.HOMELOCATIONABBREVNAME
  5. USER.CURLOCATIONNAME
  6. USER.CURLOCATIONABBREVNAME
  7. USER.HOMELOCATIONNAME

To get the abbreviation for the document’s location, this expression appears to work well with a single call:

{find('AllLocation', 'ABBREVNAME', 'LOCID', DOCUMENT.LOCOFCARE)}

DOCUMENT.LOCOFCARE actually returns the LOCID for the document’s location of care. This allows find to use the location abbreviation using the table’s key.