Added text/cql.identifier media type to Measure validation.

This commit is contained in:
Bryn Rhodes 2020-06-29 16:27:27 -06:00
parent 7f7e83f6f8
commit 59dd3ceae3
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ public class MeasureValidator extends BaseValidator {
private void validateMeasureCriteria(ValidatorHostContext hostContext, List<ValidationMessage> errors, MeasureContext mctxt, Element crit, NodeStack nsc) {
String mimeType = crit.getChildValue("language");
if (!Utilities.noString(mimeType)) { // that would be an error elsewhere
if ("text/cql".equals(mimeType)) {
if ("text/cql".equals(mimeType) || "text/cql.identifier".equals(mimeType)) {
String cqlRef = crit.getChildValue("expression");
Library lib = null;
if (rule(errors, IssueType.INVALID, crit.line(), crit.col(), nsc.getLiteralPath(), mctxt.libraries().size()> 0, I18nConstants.MEASURE_M_CRITERIA_CQL_NO_LIB)) {