mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-02 01:19:14 +00:00
Added text/cql.identifier media type to Measure validation.
This commit is contained in:
parent
7f7e83f6f8
commit
59dd3ceae3
@ -110,7 +110,7 @@ public class MeasureValidator extends BaseValidator {
|
|||||||
private void validateMeasureCriteria(ValidatorHostContext hostContext, List<ValidationMessage> errors, MeasureContext mctxt, Element crit, NodeStack nsc) {
|
private void validateMeasureCriteria(ValidatorHostContext hostContext, List<ValidationMessage> errors, MeasureContext mctxt, Element crit, NodeStack nsc) {
|
||||||
String mimeType = crit.getChildValue("language");
|
String mimeType = crit.getChildValue("language");
|
||||||
if (!Utilities.noString(mimeType)) { // that would be an error elsewhere
|
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");
|
String cqlRef = crit.getChildValue("expression");
|
||||||
Library lib = null;
|
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)) {
|
if (rule(errors, IssueType.INVALID, crit.line(), crit.col(), nsc.getLiteralPath(), mctxt.libraries().size()> 0, I18nConstants.MEASURE_M_CRITERIA_CQL_NO_LIB)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user