Showing 2 of 2 total issues
Function constructCard
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function constructCard(summary, suggestionResource) {
const card = {
uuid: uuidv4(),
summary,
source: { label: 'CMS Public Use Files' },
Function getRatings
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getRatings(resource) {
const cpt = findCodes([resource.code], CPT._FHIR_CODING_SYSTEM);
const reasons = new Set(findCodes(resource.reasonCode, SNOMED._FHIR_CODING_SYSTEM));
if (!(cpt[0] in cptReasons)) {
return [];