diff --git a/src/main/java/gov/cms/madie/madiefhirservice/services/HumanReadableService.java b/src/main/java/gov/cms/madie/madiefhirservice/services/HumanReadableService.java index a2dc7ddb..e000ead3 100644 --- a/src/main/java/gov/cms/madie/madiefhirservice/services/HumanReadableService.java +++ b/src/main/java/gov/cms/madie/madiefhirservice/services/HumanReadableService.java @@ -62,8 +62,15 @@ private void escapeTopLevelProperties(org.hl7.fhir.r5.model.Measure measure) { measure.setSubtitle(escapeStr(measure.getSubtitle())); measure.setRiskAdjustment(escapeStr(measure.getRiskAdjustment())); measure.setRateAggregation(escapeStr(measure.getRateAggregation())); - measure.setClinicalRecommendationStatement( - escapeStr(measure.getClinicalRecommendationStatement())); + if (measure.hasAuthor()) { + measure.setAuthor( + measure.getAuthor().stream() + .map( + contactDetail -> { + return contactDetail.setName(escapeStr(contactDetail.getName())); + }) + .collect(Collectors.toList())); + } } private void escapeIdentifiers(org.hl7.fhir.r5.model.Measure measure) {