lib/export.js
function makeConceptEntry(concept) {
  if (concept instanceof TBD) {
    const ret = { code: 'TBD', codeSystem: 'urn:tbd' };
    if (concept.text) {
      ret.displayText = concept.text;
    }
    return ret;
  } else {
    const ret = { code: concept.code, codeSystem: concept.system };
    if (concept.display) {
      ret.displayText = concept.display;
    }
    return ret;
  }
}
function makeConceptEntry(concept) {
  if (concept instanceof TBD) {
    const ret = { code: 'TBD', codeSystem: 'urn:tbd' };
    if (concept.text) {
      ret.displayText = concept.text;
    }
    return ret;
  } else {
    const ret = { code: concept.code, codeSystem: concept.system };
    if (concept.display) {
      ret.displayText = concept.display;
    }
    return ret;
  }
}
function makeConceptEntry ( concept ) { if ( concept instanceof TBD ) { const ret = { code : 'TBD' , codeSystem : 'urn:tbd' } ; if ( concept . text ) { ret . displayText = concept . text ; } return ret ; } else { const ret = { code : concept . code , codeSystem : concept . system } ; if ( concept . display ) { ret . displayText = concept . display ; } return ret ; } }
Converts a concept into a code entry for the schema. (Codes are also represented as Concepts in the object model.)

@param {Concept|TBD} concept - The concept to convert.
@return {{code: string, codeSystem: string, displayText: (string|undefined)}} The converted object. Display is optional.
Converts a concept into a code entry for the schema . ( Codes are also represented as Concepts in the object model . )