cds-hooks/sandbox-cds-services

View on GitHub
services/pama-imaging.js

Summary

Maintainability
A
1 hr
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status