cds-hooks/sandbox-cds-services

View on GitHub

Showing 2 of 2 total issues

Function constructCard has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function constructCard(summary, suggestionResource) {
  const card = {
    uuid: uuidv4(),
    summary,
    source: { label: 'CMS Public Use Files' },
Severity: Minor
Found in services/cms-price-check.js - About 1 hr to fix

    Function getRatings has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    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 [];
    Severity: Minor
    Found in services/pama-imaging.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language