Skip to content

Fix for duplicate type field in ELM JSON #551

Fix for duplicate type field in ELM JSON

Fix for duplicate type field in ELM JSON #551

GitHub Actions / JUnit Test Report failed Aug 16, 2024 in 0s

3970 tests run, 3625 passed, 336 skipped, 9 failed.

Annotations

Check failure on line 35 in Src/java/cql-to-elm/src/test/java/org/cqframework/cql/cql2elm/ArchitectureTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

ArchitectureTest.ensureNoDirectElmConstruction()

java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'constructors that are declared in classes that are assignable to org.hl7.elm.r1.Element and are not declared in org.cqframework.cql.cql2elm.model.LibraryRef should only be called by classes that are assignable to org.cqframework.cql.elm.IdObjectFactory, because ELM classes should never be instantiated directly, use an ObjectFactory that ensures that the classes are initialized and tracked correctly.' was violated (1 times):
Method <org.cqframework.cql.cql2elm.elm.ElmEditTest.removeChoiceTypeSpecifierTypeIfEmpty()> calls constructor <org.cqframework.cql.cql2elm.elm.ElmEditTest$ExtChoiceTypeSpecifier.<init>()> in (ElmEditTest.java:15)
Raw output
java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'constructors that are declared in classes that are assignable to org.hl7.elm.r1.Element and are not declared in org.cqframework.cql.cql2elm.model.LibraryRef should only be called by classes that are assignable to org.cqframework.cql.elm.IdObjectFactory, because ELM classes should never be instantiated directly, use an ObjectFactory that ensures that the classes are initialized and tracked correctly.' was violated (1 times):
Method <org.cqframework.cql.cql2elm.elm.ElmEditTest.removeChoiceTypeSpecifierTypeIfEmpty()> calls constructor <org.cqframework.cql.cql2elm.elm.ElmEditTest$ExtChoiceTypeSpecifier.<init>()> in (ElmEditTest.java:15)
	at com.tngtech.archunit.lang.ArchRule$Assertions.assertNoViolation(ArchRule.java:94)
	at com.tngtech.archunit.lang.ArchRule$Assertions.check(ArchRule.java:86)
	at com.tngtech.archunit.lang.ArchRule$Factory$SimpleArchRule.check(ArchRule.java:165)
	at org.cqframework.cql.cql2elm.ArchitectureTest.ensureNoDirectElmConstruction(ArchitectureTest.java:35)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 40 in Src/java/cql-to-elm/src/test/java/org/cqframework/cql/cql2elm/CMS146JsonTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CMS146JsonTest.[1] CMS146v2_Expected_SignatureLevel_None.json, None

java.lang.AssertionError: library
Unexpected: localId
Raw output
java.lang.AssertionError: library
Unexpected: localId

	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:417)
	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:394)
	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:336)
	at org.cqframework.cql.cql2elm.CMS146JsonTest.cms146SignatureLevels(CMS146JsonTest.java:40)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 40 in Src/java/cql-to-elm/src/test/java/org/cqframework/cql/cql2elm/CMS146JsonTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CMS146JsonTest.[2] CMS146v2_Expected_SignatureLevel_Differing.json, Differing

java.lang.AssertionError: library
Unexpected: localId
Raw output
java.lang.AssertionError: library
Unexpected: localId

	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:417)
	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:394)
	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:336)
	at org.cqframework.cql.cql2elm.CMS146JsonTest.cms146SignatureLevels(CMS146JsonTest.java:40)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 40 in Src/java/cql-to-elm/src/test/java/org/cqframework/cql/cql2elm/CMS146JsonTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CMS146JsonTest.[3] CMS146v2_Expected_SignatureLevel_Overloads.json, Overloads

java.lang.AssertionError: library
Unexpected: localId
Raw output
java.lang.AssertionError: library
Unexpected: localId

	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:417)
	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:394)
	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:336)
	at org.cqframework.cql.cql2elm.CMS146JsonTest.cms146SignatureLevels(CMS146JsonTest.java:40)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 40 in Src/java/cql-to-elm/src/test/java/org/cqframework/cql/cql2elm/CMS146JsonTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CMS146JsonTest.[4] CMS146v2_Expected_SignatureLevel_All.json, All

java.lang.AssertionError: library
Unexpected: localId
Raw output
java.lang.AssertionError: library
Unexpected: localId

	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:417)
	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:394)
	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:336)
	at org.cqframework.cql.cql2elm.CMS146JsonTest.cms146SignatureLevels(CMS146JsonTest.java:40)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 40 in Src/java/cql-to-elm/src/test/java/org/cqframework/cql/cql2elm/CMS146XmlTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CMS146XmlTest.[1] CMS146v2_Expected_SignatureLevel_None.xml, None

java.lang.AssertionError: 
Expected: "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"None\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
     but: was "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\" localId=\"0\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"None\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
Raw output
java.lang.AssertionError: 
Expected: "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"None\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
     but: was "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\" localId=\"0\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"None\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
	at org.cqframework.cql.cql2elm.CMS146XmlTest.cms146SignatureLevels(CMS146XmlTest.java:40)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 40 in Src/java/cql-to-elm/src/test/java/org/cqframework/cql/cql2elm/CMS146XmlTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CMS146XmlTest.[2] CMS146v2_Expected_SignatureLevel_Differing.xml, Differing

java.lang.AssertionError: 
Expected: "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"Differing\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
     but: was "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\" localId=\"0\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"Differing\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
Raw output
java.lang.AssertionError: 
Expected: "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"Differing\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
     but: was "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\" localId=\"0\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"Differing\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
	at org.cqframework.cql.cql2elm.CMS146XmlTest.cms146SignatureLevels(CMS146XmlTest.java:40)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 40 in Src/java/cql-to-elm/src/test/java/org/cqframework/cql/cql2elm/CMS146XmlTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CMS146XmlTest.[3] CMS146v2_Expected_SignatureLevel_Overloads.xml, Overloads

java.lang.AssertionError: 
Expected: "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                          </wstxns7:signature>\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:signature>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                            </wstxns7:signature>\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Encounter\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Observation\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                      <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    </wstxns7:signature>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"Overloads\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
     but: was "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\" localId=\"0\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                          </wstxns7:signature>\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:signature>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                            </wstxns7:signature>\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Encounter\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Observation\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                      <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    </wstxns7:signature>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"Overloads\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
Raw output
java.lang.AssertionError: 
Expected: "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                          </wstxns7:signature>\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:signature>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                            </wstxns7:signature>\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Encounter\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Observation\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                      <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    </wstxns7:signature>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"Overloads\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
     but: was "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\" localId=\"0\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                          </wstxns7:signature>\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:signature>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                            </wstxns7:signature>\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Encounter\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Observation\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                      <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    </wstxns7:signature>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"Overloads\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
	at org.cqframework.cql.cql2elm.CMS146XmlTest.cms146SignatureLevels(CMS146XmlTest.java:40)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Check failure on line 40 in Src/java/cql-to-elm/src/test/java/org/cqframework/cql/cql2elm/CMS146XmlTest.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

CMS146XmlTest.[4] CMS146v2_Expected_SignatureLevel_All.xml, All

java.lang.AssertionError: 
Expected: "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:signature>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n            </wstxns4:signature>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:signature>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n            </wstxns4:signature>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Condition\"/>\n            </wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Condition\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                      <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                        <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                      </wstxns7:signature>\n                    </wstxns7:signature>\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                              <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            </wstxns7:signature>\n                          </wstxns7:signature>\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                          </wstxns7:signature>\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:signature>\n                                <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                                  <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                                </wstxns7:signature>\n                              </wstxns7:signature>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                            <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                          </wstxns7:signature>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:signature>\n              <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n              </wstxns7:signature>\n              <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n              </wstxns7:signature>\n            </wstxns7:signature>\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}MedicationPrescription\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:signature>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                            </wstxns7:signature>\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Encounter\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Observation\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                      <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    </wstxns7:signature>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"All\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
     but: was "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\" localId=\"0\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:signature>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n            </wstxns4:signature>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:signature>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n            </wstxns4:signature>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Condition\"/>\n            </wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Condition\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                      <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                        <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                      </wstxns7:signature>\n                    </wstxns7:signature>\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                              <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            </wstxns7:signature>\n                          </wstxns7:signature>\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                          </wstxns7:signature>\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:signature>\n                                <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                                  <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                                </wstxns7:signature>\n                              </wstxns7:signature>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                            <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                          </wstxns7:signature>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:signature>\n              <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n              </wstxns7:signature>\n              <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n              </wstxns7:signature>\n            </wstxns7:signature>\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}MedicationPrescription\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:signature>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                            </wstxns7:signature>\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Encounter\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Observation\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                      <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    </wstxns7:signature>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"All\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
Raw output
java.lang.AssertionError: 
Expected: "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:signature>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n            </wstxns4:signature>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:signature>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n            </wstxns4:signature>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Condition\"/>\n            </wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Condition\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                      <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                        <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                      </wstxns7:signature>\n                    </wstxns7:signature>\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                              <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            </wstxns7:signature>\n                          </wstxns7:signature>\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                          </wstxns7:signature>\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:signature>\n                                <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                                  <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                                </wstxns7:signature>\n                              </wstxns7:signature>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                            <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                          </wstxns7:signature>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:signature>\n              <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n              </wstxns7:signature>\n              <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n              </wstxns7:signature>\n            </wstxns7:signature>\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}MedicationPrescription\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:signature>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                            </wstxns7:signature>\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Encounter\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Observation\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                      <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    </wstxns7:signature>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"All\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
     but: was "<?xml version='1.1' encoding='UTF-8'?>\n<Library type=\"Library\" localId=\"0\">\n  <wstxns1:identifier xmlns:wstxns1=\"urn:hl7-org:elm:r1\" wstxns1:type=\"VersionedIdentifier\" id=\"CMS146\" version=\"2\"/>\n  <wstxns2:schemaIdentifier xmlns:wstxns2=\"urn:hl7-org:elm:r1\" wstxns2:type=\"VersionedIdentifier\" id=\"urn:hl7-org:elm\" version=\"r1\"/>\n  <wstxns3:usings xmlns:wstxns3=\"urn:hl7-org:elm:r1\" wstxns3:type=\"Library$Usings\">\n    <wstxns3:def>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"System\" uri=\"urn:hl7-org:elm-types:r1\"/>\n      <wstxns3:def wstxns3:type=\"UsingDef\" localIdentifier=\"QUICK\" uri=\"http://hl7.org/fhir\"/>\n    </wstxns3:def>\n  </wstxns3:usings>\n  <wstxns4:parameters xmlns:wstxns4=\"urn:hl7-org:elm:r1\" wstxns4:type=\"Library$Parameters\">\n    <wstxns4:def>\n      <wstxns4:def wstxns4:type=\"ParameterDef\" name=\"MeasurementPeriod\" accessLevel=\"Public\">\n        <wstxns4:default wstxns4:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n          <wstxns4:low wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2013\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:signature>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n            </wstxns4:signature>\n          </wstxns4:low>\n          <wstxns4:high wstxns4:type=\"DateTime\">\n            <wstxns4:year wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2014\"/>\n            <wstxns4:month wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:day wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"1\"/>\n            <wstxns4:hour wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:minute wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:second wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:millisecond wstxns4:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"0\"/>\n            <wstxns4:signature>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              <wstxns4:signature wstxns4:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n            </wstxns4:signature>\n          </wstxns4:high>\n        </wstxns4:default>\n      </wstxns4:def>\n    </wstxns4:def>\n  </wstxns4:parameters>\n  <wstxns5:valueSets xmlns:wstxns5=\"urn:hl7-org:elm:r1\" wstxns5:type=\"Library$ValueSets\">\n    <wstxns5:def>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Pharyngitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1011\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Acute Tonsillitis\" id=\"2.16.840.1.113883.3.464.1003.102.12.1012\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Ambulatory/ED Visit\" id=\"2.16.840.1.113883.3.464.1003.101.12.1061\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Antibiotic Medications\" id=\"2.16.840.1.113883.3.464.1003.196.12.1001\" accessLevel=\"Public\"/>\n      <wstxns5:def wstxns5:type=\"ValueSetDef\" name=\"Group A Streptococcus Test\" id=\"2.16.840.1.113883.3.464.1003.198.12.1012\" accessLevel=\"Public\"/>\n    </wstxns5:def>\n  </wstxns5:valueSets>\n  <wstxns6:contexts xmlns:wstxns6=\"urn:hl7-org:elm:r1\" wstxns6:type=\"Library$Contexts\">\n    <wstxns6:def>\n      <wstxns6:def wstxns6:type=\"ContextDef\" name=\"Patient\"/>\n    </wstxns6:def>\n  </wstxns6:contexts>\n  <wstxns7:statements xmlns:wstxns7=\"urn:hl7-org:elm:r1\" wstxns7:type=\"Library$Statements\">\n    <wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Patient\" context=\"Patient\">\n        <wstxns7:expression wstxns7:type=\"SingletonFrom\">\n          <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Patient\" templateId=\"patient-qicore-qicore-patient\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDemographic\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"GreaterOrEqual\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"2\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Less\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Integer\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"CalculateAgeAt\" precision=\"Year\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"birthDate\">\n                      <wstxns7:source wstxns7:type=\"ExpressionRef\" name=\"Patient\"/>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Start\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Integer\" value=\"18\"/>\n              </wstxns7:operand>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Pharyngitis\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Union\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Condition\"/>\n            </wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Condition\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Pharyngitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Condition\" templateId=\"condition-qicore-qicore-condition\" codeProperty=\"code\" codeComparator=\"in\">\n              <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Acute Tonsillitis\" preserve=\"true\"/>\n            </wstxns7:operand>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"Antibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}MedicationPrescription\" templateId=\"medicationprescription-qicore-qicore-medicationprescription\" codeProperty=\"medication.code\" codeComparator=\"in\">\n          <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Antibiotic Medications\" preserve=\"true\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetEncounters\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Encounter\" templateId=\"encounter-qicore-qicore-encounter\" codeProperty=\"type\" codeComparator=\"in\">\n                <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Ambulatory/ED Visit\" preserve=\"true\"/>\n              </wstxns7:expression>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"A\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              <wstxns7:suchThat wstxns7:type=\"And\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"In\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                      <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                        <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                      </wstxns7:signature>\n                    </wstxns7:signature>\n                    <wstxns7:operand>\n                      <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                      <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"false\" highClosed=\"true\">\n                        <wstxns7:low wstxns7:type=\"Start\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                              <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            </wstxns7:signature>\n                          </wstxns7:signature>\n                          <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                        </wstxns7:low>\n                        <wstxns7:high wstxns7:type=\"Add\">\n                          <wstxns7:signature>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                          </wstxns7:signature>\n                          <wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Start\">\n                              <wstxns7:signature>\n                                <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                                  <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                                </wstxns7:signature>\n                              </wstxns7:signature>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                            </wstxns7:operand>\n                            <wstxns7:operand wstxns7:type=\"Quantity\" value=\"3\" unit=\"days\"/>\n                          </wstxns7:operand>\n                        </wstxns7:high>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Not\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"IsNull\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"Start\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                            <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                          </wstxns7:signature>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n          <wstxns7:where wstxns7:type=\"IncludedIn\">\n            <wstxns7:signature>\n              <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n              </wstxns7:signature>\n              <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n              </wstxns7:signature>\n            </wstxns7:signature>\n            <wstxns7:operand>\n              <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n              <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n            </wstxns7:operand>\n          </wstxns7:where>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"TargetDiagnoses\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Query\">\n          <wstxns7:source>\n            <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"P\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Pharyngitis\"/>\n            </wstxns7:source>\n          </wstxns7:source>\n          <wstxns7:relationship>\n            <wstxns7:relationship wstxns7:type=\"With\" alias=\"E\">\n              <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n              <wstxns7:suchThat wstxns7:type=\"OverlapsAfter\">\n                <wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                  <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                    <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                  </wstxns7:signature>\n                </wstxns7:signature>\n                <wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"true\">\n                    <wstxns7:low wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"P\"/>\n                    <wstxns7:high wstxns7:type=\"Property\" path=\"abatementDate\" scope=\"P\"/>\n                  </wstxns7:operand>\n                  <wstxns7:operand wstxns7:type=\"Property\" path=\"period\" scope=\"E\"/>\n                </wstxns7:operand>\n              </wstxns7:suchThat>\n            </wstxns7:relationship>\n          </wstxns7:relationship>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasPriorAntibiotics\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}MedicationPrescription\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"A\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"Antibiotics\"/>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:relationship>\n              <wstxns7:relationship wstxns7:type=\"With\" alias=\"D\">\n                <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"TargetDiagnoses\"/>\n                <wstxns7:suchThat wstxns7:type=\"And\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"In\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                          <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                        </wstxns7:signature>\n                      </wstxns7:signature>\n                      <wstxns7:operand>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"dateWritten\" scope=\"A\"/>\n                        <wstxns7:operand wstxns7:type=\"Interval\" lowClosed=\"true\" highClosed=\"false\">\n                          <wstxns7:low wstxns7:type=\"Subtract\">\n                            <wstxns7:signature>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                              <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Quantity\"/>\n                            </wstxns7:signature>\n                            <wstxns7:operand>\n                              <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                              <wstxns7:operand wstxns7:type=\"Quantity\" value=\"30\" unit=\"days\"/>\n                            </wstxns7:operand>\n                          </wstxns7:low>\n                          <wstxns7:high wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                        </wstxns7:operand>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Not\">\n                      <wstxns7:signature>\n                        <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                      </wstxns7:signature>\n                      <wstxns7:operand wstxns7:type=\"IsNull\">\n                        <wstxns7:signature>\n                          <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                        </wstxns7:signature>\n                        <wstxns7:operand wstxns7:type=\"Property\" path=\"onsetDateTime\" scope=\"D\"/>\n                      </wstxns7:operand>\n                    </wstxns7:operand>\n                  </wstxns7:operand>\n                </wstxns7:suchThat>\n              </wstxns7:relationship>\n            </wstxns7:relationship>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"HasTargetEncounter\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Encounter\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"TargetEncounters\"/>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InInitialPopulation\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"And\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n            <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n          </wstxns7:signature>\n          <wstxns7:operand>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"InDemographic\"/>\n            <wstxns7:operand wstxns7:type=\"ExpressionRef\" name=\"HasTargetEncounter\"/>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Literal\" valueType=\"{urn:hl7-org:elm-types:r1}Boolean\" value=\"true\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InDenominatorExclusions\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"ExpressionRef\" name=\"HasPriorAntibiotics\"/>\n      </wstxns7:def>\n      <wstxns7:def wstxns7:type=\"ExpressionDef\" name=\"InNumerator\" context=\"Patient\" accessLevel=\"Public\">\n        <wstxns7:expression wstxns7:type=\"Exists\">\n          <wstxns7:signature>\n            <wstxns7:signature wstxns7:type=\"ListTypeSpecifier\">\n              <wstxns7:elementType wstxns7:type=\"NamedTypeSpecifier\" name=\"{http://hl7.org/fhir}Observation\"/>\n            </wstxns7:signature>\n          </wstxns7:signature>\n          <wstxns7:operand wstxns7:type=\"Query\">\n            <wstxns7:source>\n              <wstxns7:source wstxns7:type=\"AliasedQuerySource\" alias=\"R\">\n                <wstxns7:expression wstxns7:type=\"Retrieve\" dataType=\"{http://hl7.org/fhir}Observation\" templateId=\"observation-qicore-qicore-observation\" codeProperty=\"code\" codeComparator=\"in\">\n                  <wstxns7:codes wstxns7:type=\"ValueSetRef\" name=\"Group A Streptococcus Test\" preserve=\"true\"/>\n                </wstxns7:expression>\n              </wstxns7:source>\n            </wstxns7:source>\n            <wstxns7:where wstxns7:type=\"And\">\n              <wstxns7:signature>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n              </wstxns7:signature>\n              <wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"In\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    <wstxns7:signature wstxns7:type=\"IntervalTypeSpecifier\">\n                      <wstxns7:pointType wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}DateTime\"/>\n                    </wstxns7:signature>\n                  </wstxns7:signature>\n                  <wstxns7:operand>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"issued\" scope=\"R\"/>\n                    <wstxns7:operand wstxns7:type=\"ParameterRef\" name=\"MeasurementPeriod\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n                <wstxns7:operand wstxns7:type=\"Not\">\n                  <wstxns7:signature>\n                    <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Boolean\"/>\n                  </wstxns7:signature>\n                  <wstxns7:operand wstxns7:type=\"IsNull\">\n                    <wstxns7:signature>\n                      <wstxns7:signature wstxns7:type=\"NamedTypeSpecifier\" name=\"{urn:hl7-org:elm-types:r1}Any\"/>\n                    </wstxns7:signature>\n                    <wstxns7:operand wstxns7:type=\"Property\" path=\"valueQuantity\" scope=\"R\"/>\n                  </wstxns7:operand>\n                </wstxns7:operand>\n              </wstxns7:operand>\n            </wstxns7:where>\n          </wstxns7:operand>\n        </wstxns7:expression>\n      </wstxns7:def>\n    </wstxns7:def>\n  </wstxns7:statements>\n  <wstxns8:annotation xmlns:wstxns8=\"urn:hl7-org:elm:r1\">\n    <wstxns8:annotation wstxns8:type=\"CqlToElmInfo\" translatorOptions=\"\" signatureLevel=\"All\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve code path medication.code for the type of the retrieve QUICK.MedicationPrescription.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n    <wstxns8:annotation wstxns8:type=\"CqlToElmError\" libraryId=\"CMS146\" libraryVersion=\"2\" startLine=\"22\" startChar=\"5\" endLine=\"22\" endChar=\"54\" message=\"Could not resolve membership operator for terminology target of the retrieve.\" errorType=\"semantic\" errorSeverity=\"warning\"/>\n  </wstxns8:annotation>\n</Library>"
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
	at org.cqframework.cql.cql2elm.CMS146XmlTest.cms146SignatureLevels(CMS146XmlTest.java:40)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.stream.ReferencePipe