lib/export/formatters/commons.js
function formattedCodeFromConcept(concept) {
  var formattedConceptCode = `${shorthandFromCodesystem(concept.system)}#${concept.code}`;
  if (concept.display) {
    formattedConceptCode = `${formattedConceptCode} "${concept.display}"`;
  } else if (concept.description) {
    formattedConceptCode = `${formattedConceptCode} "${concept.description}"`;
  }

  return formattedConceptCode;
}
function formattedCodeFromConcept(concept) {
  var formattedConceptCode = `${shorthandFromCodesystem(concept.system)}#${concept.code}`;
  if (concept.display) {
    formattedConceptCode = `${formattedConceptCode} "${concept.display}"`;
  } else if (concept.description) {
    formattedConceptCode = `${formattedConceptCode} "${concept.description}"`;
  }

  return formattedConceptCode;
}
function formattedCodeFromConcept ( concept ) { var formattedConceptCode = ` ${ shorthandFromCodesystem ( concept . system ) } ${ concept . code } ` ; if ( concept . display ) { formattedConceptCode = ` ${ formattedConceptCode } ${ concept . display } ` ; } else if ( concept . description ) { formattedConceptCode = ` ${ formattedConceptCode } ${ concept . description } ` ; } return formattedConceptCode ; }
Outputs concept code text fragment

@param {Concept} concept
@returns {string} - formatted concept code text fragment
Outputs concept code text fragment