services/pama-imaging.js
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 [];