lib/export/formatters/commons.js
function shorthandFromCodesystem(cs) {
  if (!cs) {
    return '';
  }

  if (shorthands[cs]) {
    return shorthands[cs];
  } else if (cs.match(/http:\/\/standardhealthrecord.org\/shr\/[A-Za-z]*\/cs\/(#[A-Za-z]*CS)/)) {
    return '';
  } else {
    return cs;
  }
}
function shorthandFromCodesystem(cs) {
  if (!cs) {
    return '';
  }

  if (shorthands[cs]) {
    return shorthands[cs];
  } else if (cs.match(/http:\/\/standardhealthrecord.org\/shr\/[A-Za-z]*\/cs\/(#[A-Za-z]*CS)/)) {
    return '';
  } else {
    return cs;
  }
}
function shorthandFromCodesystem ( cs ) { if ( ! cs ) { return '' ; } if ( shorthands [ cs ] ) { return shorthands [ cs ] ; } else if ( cs . match ( / http:\/\/standardhealthrecord.org\/shr\/[A-Za-z]*\/cs\/(#[A-Za-z]*CS) / ) ) { return '' ; } else { return cs ; } }
Converts a code system URI to a shorthand symbol.

This contains popularly used shorthands. For other code systems,
it will generate a generic shorthand.

For URI's that match the project's URL, we omit a shorthand as
that is unnecessary in CIMPL 5.

@todo Aggregate generic shorthands
@todo Convert shr.org to config project URL

@param {uri} cs - the code system's URI
@returns {string} Shorthand symbol for code system URI
Converts a code system URI to a shorthand symbol .