From 38af59daca463acd331aaa93e58c562b4eba5364 Mon Sep 17 00:00:00 2001 From: Chris Moesel Date: Fri, 29 May 2026 17:46:17 -0400 Subject: [PATCH 1/2] Fix overlaps for boundless and unknown intervals --- examples/browser/cql4browsers.js | 34 +- package-lock.json | 14 +- src/datatypes/interval.ts | 33 +- test/datatypes/interval-test.ts | 90 + test/elm/interval/data.cql | 4 + test/elm/interval/data.js | 1606 ++++++++++++----- test/elm/interval/interval-test.ts | 10 + .../cql/CqlIntervalOperatorsTest.cql | 16 +- .../cql/CqlIntervalOperatorsTest.json | 192 +- test/spec-tests/skip-list.txt | 4 + 10 files changed, 1371 insertions(+), 632 deletions(-) diff --git a/examples/browser/cql4browsers.js b/examples/browser/cql4browsers.js index 5b803f89d..16ae36a5a 100644 --- a/examples/browser/cql4browsers.js +++ b/examples/browser/cql4browsers.js @@ -1799,6 +1799,12 @@ class Interval { get isInterval() { return true; } + get isBoundlessInterval() { + return this.low == null && this.lowClosed && this.high == null && this.highClosed; + } + get isUnknownInterval() { + return this.low == null && !this.lowClosed && this.high == null && !this.highClosed; + } get pointType() { let pointType = null; const point = this.low != null ? this.low : this.high; @@ -1894,6 +1900,12 @@ class Interval { } } overlaps(item, precision) { + if (this.isUnknownInterval || item == null || item.isUnknownInterval) { + return null; + } + else if (this.isBoundlessInterval || (item === null || item === void 0 ? void 0 : item.isBoundlessInterval)) { + return true; + } const closed = this.toClosed(); const [low, high] = (() => { if (item != null && item.isInterval) { @@ -1907,13 +1919,31 @@ class Interval { return logic_1.ThreeValuedLogic.and(cmp.lessThanOrEquals(closed.low, high, precision), cmp.greaterThanOrEquals(closed.high, low, precision)); } overlapsAfter(item, precision) { - const closed = this.toClosed(); + if (this.isUnknownInterval || item == null || item.isUnknownInterval) { + return null; + } const high = item != null && item.isInterval ? item.toClosed().high : item; + if (this.isBoundlessInterval) { + return cmp.lessThan(high, (0, math_1.maxValueForInstance)(high), precision); + } + else if (item === null || item === void 0 ? void 0 : item.isBoundlessInterval) { + return false; + } + const closed = this.toClosed(); return logic_1.ThreeValuedLogic.and(cmp.lessThanOrEquals(closed.low, high, precision), cmp.greaterThan(closed.high, high, precision)); } overlapsBefore(item, precision) { - const closed = this.toClosed(); + if (this.isUnknownInterval || item == null || item.isUnknownInterval) { + return null; + } const low = item != null && item.isInterval ? item.toClosed().low : item; + if (this.isBoundlessInterval) { + return cmp.greaterThan(low, (0, math_1.minValueForInstance)(low), precision); + } + else if (item === null || item === void 0 ? void 0 : item.isBoundlessInterval) { + return false; + } + const closed = this.toClosed(); return logic_1.ThreeValuedLogic.and(cmp.lessThan(closed.low, low, precision), cmp.greaterThanOrEquals(closed.high, low, precision)); } union(other) { diff --git a/package-lock.json b/package-lock.json index 180278d78..0de15f99e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1742,13 +1742,13 @@ } }, "node_modules/browserify-sign": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.5.tgz", - "integrity": "sha512-C2AUdAJg6rlM2W5QMp2Q4KGQMVBwR1lIimTsUnutJ8bMpW5B52pGpR2gEnNBNwijumDo5FojQ0L9JrXA8m4YEw==", + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.6.tgz", + "integrity": "sha512-sd+Q65fjlWCYWtZKXiKfrUc8d+4jtp/8f0W2NkwzLtoW4bI6UDnWusLWIurHnmurW0XShIRxpwiOX4EoPtXUAg==", "dev": true, "license": "ISC", "dependencies": { - "bn.js": "^5.2.2", + "bn.js": "^5.2.3", "browserify-rsa": "^4.1.1", "create-hash": "^1.2.0", "create-hmac": "^1.1.7", @@ -5161,9 +5161,9 @@ "license": "MIT" }, "node_modules/qs": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.0.tgz", - "integrity": "sha512-mAZTtNCeetKMH+pSjrb76NAM8V9a05I9aBZOHztWy/UqcJdQYNsf59vrRKWnojAT9Y+GbIvoTBC++CPHqpDBhQ==", + "version": "6.15.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.2.tgz", + "integrity": "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw==", "dev": true, "license": "BSD-3-Clause", "dependencies": { diff --git a/src/datatypes/interval.ts b/src/datatypes/interval.ts index 4ab843a23..36ed401ca 100644 --- a/src/datatypes/interval.ts +++ b/src/datatypes/interval.ts @@ -27,6 +27,14 @@ export class Interval { return true; } + get isBoundlessInterval() { + return this.low == null && this.lowClosed && this.high == null && this.highClosed; + } + + get isUnknownInterval() { + return this.low == null && !this.lowClosed && this.high == null && !this.highClosed; + } + get pointType() { let pointType = null; const point = this.low != null ? this.low : this.high; @@ -129,6 +137,11 @@ export class Interval { } overlaps(item: any, precision?: any) { + if (this.isUnknownInterval || item == null || item.isUnknownInterval) { + return null; + } else if (this.isBoundlessInterval || item?.isBoundlessInterval) { + return true; + } const closed = this.toClosed(); const [low, high] = (() => { if (item != null && item.isInterval) { @@ -145,8 +158,16 @@ export class Interval { } overlapsAfter(item: any, precision?: any) { - const closed = this.toClosed(); + if (this.isUnknownInterval || item == null || item.isUnknownInterval) { + return null; + } const high = item != null && item.isInterval ? item.toClosed().high : item; + if (this.isBoundlessInterval) { + return cmp.lessThan(high, maxValueForInstance(high), precision); + } else if (item?.isBoundlessInterval) { + return false; + } + const closed = this.toClosed(); return ThreeValuedLogic.and( cmp.lessThanOrEquals(closed.low, high, precision), cmp.greaterThan(closed.high, high, precision) @@ -154,8 +175,16 @@ export class Interval { } overlapsBefore(item: any, precision?: any) { - const closed = this.toClosed(); + if (this.isUnknownInterval || item == null || item.isUnknownInterval) { + return null; + } const low = item != null && item.isInterval ? item.toClosed().low : item; + if (this.isBoundlessInterval) { + return cmp.greaterThan(low, minValueForInstance(low), precision); + } else if (item?.isBoundlessInterval) { + return false; + } + const closed = this.toClosed(); return ThreeValuedLogic.and( cmp.lessThan(closed.low, low, precision), cmp.greaterThanOrEquals(closed.high, low, precision) diff --git a/test/datatypes/interval-test.ts b/test/datatypes/interval-test.ts index d2bf7c59a..9394d3491 100644 --- a/test/datatypes/interval-test.ts +++ b/test/datatypes/interval-test.ts @@ -5,6 +5,8 @@ import { Uncertainty } from '../../src/datatypes/uncertainty'; import data from './interval-data'; const xy = (obj: any) => [obj.x, obj.y]; +const boundlessInterval = () => new Interval(null, null); +const unknownInterval = () => new Interval(null, null, false, false); describe('Interval', () => { it('should properly set all properties when constructed as DateTime interval', () => { @@ -451,6 +453,15 @@ describe('DateTimeInterval.overlaps(DateTimeInterval)', () => { y.open.overlaps(x.open).should.be.true(); }); + it('should properly handle boundless and unknown intervals', () => { + boundlessInterval().overlaps(boundlessInterval()).should.be.true(); + boundlessInterval().overlaps(d.all2012.closed).should.be.true(); + d.all2012.closed.overlaps(boundlessInterval()).should.be.true(); + should(boundlessInterval().overlaps(unknownInterval())).be.null(); + should(unknownInterval().overlaps(boundlessInterval())).be.null(); + should(unknownInterval().overlaps(d.all2012.closed)).be.null(); + }); + it('should properly handle imprecision', () => { let [x, y] = Array.from(xy(d.dIvl.sameAs)); x.closed.overlaps(y.toMinute).should.be.true(); @@ -511,6 +522,12 @@ describe('DateTimeInterval.overlaps(DateTime)', () => { d.all2012.closed.overlaps(d.aft2012.full).should.be.false(); }); + it('should properly handle boundless and unknown intervals', () => { + boundlessInterval().overlaps(d.mid2012.full).should.be.true(); + should(boundlessInterval().overlaps(null)).be.null(); + should(unknownInterval().overlaps(d.mid2012.full)).be.null(); + }); + it('should properly handle imprecision', () => { d.all2012.closed.overlaps(d.bef2012.toMonth).should.be.false(); should.not.exist(d.all2012.closed.overlaps(d.beg2012.toMonth)); @@ -534,6 +551,34 @@ describe('DateTimeInterval.overlaps(DateTime)', () => { }); }); +describe('DateTimeInterval.overlapsBefore', () => { + let d: any; + beforeEach(() => { + d = data(); + }); + + it('should properly handle boundless intervals', () => { + boundlessInterval().overlapsBefore(d.mid2012.full).should.be.true(); + d.all2012.closed.overlapsBefore(boundlessInterval()).should.be.false(); + should(boundlessInterval().overlapsBefore(unknownInterval())).be.null(); + should(unknownInterval().overlapsBefore(boundlessInterval())).be.null(); + }); +}); + +describe('DateTimeInterval.overlapsAfter', () => { + let d: any; + beforeEach(() => { + d = data(); + }); + + it('should properly handle boundless intervals', () => { + boundlessInterval().overlapsAfter(d.mid2012.full).should.be.true(); + d.all2012.closed.overlapsAfter(boundlessInterval()).should.be.false(); + should(boundlessInterval().overlapsAfter(unknownInterval())).be.null(); + should(unknownInterval().overlapsAfter(boundlessInterval())).be.null(); + }); +}); + describe('DateTimeInterval.equals', () => { let d: any; beforeEach(() => { @@ -2171,6 +2216,15 @@ describe('IntegerInterval.overlaps(IntegerInterval)', () => { y.open.overlaps(x.open).should.be.true(); }); + it('should properly handle boundless and unknown intervals', () => { + boundlessInterval().overlaps(boundlessInterval()).should.be.true(); + boundlessInterval().overlaps(d.zeroToHundred.closed).should.be.true(); + d.zeroToHundred.closed.overlaps(boundlessInterval()).should.be.true(); + should(boundlessInterval().overlaps(unknownInterval())).be.null(); + should(unknownInterval().overlaps(boundlessInterval())).be.null(); + should(unknownInterval().overlaps(d.zeroToHundred.closed)).be.null(); + }); + it('should properly handle imprecision', () => { const uIvl = new Interval(new Uncertainty(5, 10), new Uncertainty(15, 20)); @@ -2222,6 +2276,12 @@ describe('IntegerInterval.overlaps(Integer)', () => { d.zeroToHundred.closed.overlaps(105).should.be.false(); }); + it('should properly handle boundless and unknown intervals', () => { + boundlessInterval().overlaps(5).should.be.true(); + should(boundlessInterval().overlaps(null)).be.null(); + should(unknownInterval().overlaps(5)).be.null(); + }); + it('should properly handle imprecision', () => { d.zeroToHundred.closed.overlaps(new Uncertainty(-20, -10)).should.be.false(); should.not.exist(d.zeroToHundred.closed.overlaps(new Uncertainty(-20, 20))); @@ -2252,6 +2312,36 @@ describe('IntegerInterval.overlaps(Integer)', () => { }); }); +describe('IntegerInterval.overlapsBefore', () => { + let d: any; + beforeEach(() => { + d = data(); + }); + + it('should properly handle boundless intervals', () => { + boundlessInterval().overlapsBefore(d.zeroToHundred.closed).should.be.true(); + boundlessInterval().overlapsBefore(5).should.be.true(); + d.zeroToHundred.closed.overlapsBefore(boundlessInterval()).should.be.false(); + should(boundlessInterval().overlapsBefore(unknownInterval())).be.null(); + should(unknownInterval().overlapsBefore(boundlessInterval)).be.null(); + }); +}); + +describe('IntegerInterval.overlapsAfter', () => { + let d: any; + beforeEach(() => { + d = data(); + }); + + it('should properly handle boundless intervals', () => { + boundlessInterval().overlapsAfter(d.zeroToHundred.closed).should.be.true(); + boundlessInterval().overlapsAfter(5).should.be.true(); + d.zeroToHundred.closed.overlapsAfter(boundlessInterval()).should.be.false(); + should(boundlessInterval().overlapsAfter(unknownInterval())).be.null(); + should(unknownInterval().overlapsAfter(boundlessInterval)).be.null(); + }); +}); + describe('IntegerInterval.equals', () => { let d: any; beforeEach(() => { diff --git a/test/elm/interval/data.cql b/test/elm/interval/data.cql index c62bfb760..7b6f63bd4 100644 --- a/test/elm/interval/data.cql +++ b/test/elm/interval/data.cql @@ -643,6 +643,8 @@ define OverlapsBeforeRealIvl: Interval[1.234, 1.567] overlaps Interval[1.345, 1. define OverlapsAfterRealIvl: Interval[1.345, 1.678] overlaps Interval[1.234, 1.567] define OverlapsBoundaryRealIvl: Interval[1.0, 1.234] overlaps Interval[1.234, 2.0] define NoOverlapsRealIvl: Interval[1.0, 1.23456789) overlaps Interval[1.23456789, 2.0] +define OverlapsClosedNullIntervalLHS: (Interval[null, null] as Interval) overlaps Interval[6, 10] +define OverlapsClosedNullIntervalRHS: Interval[6, 10] overlaps (Interval[null, null] as Interval) define OverlapsIsNull: Interval[6, 10] overlaps (null as Interval) // @Test: OverlapsDateTime @@ -663,6 +665,8 @@ define NoOverlap: ivlC overlaps ivlD define NoImpreciseOverlap: ivlE overlaps ivlG define UnknownOverlap: ivlE overlaps ivlH define MatchingPrecisionOverlap: ivlF overlaps ivlG +define OverlapsClosedNullIntervalLHS: (Interval[null, null] as Interval) overlaps ivlA +define OverlapsClosedNullIntervalRHS: ivlA overlaps (Interval[null, null] as Interval) define PrecisionDateIvl: Interval[DateTime(2012, 3, 2, 12, 34, 56, 789), DateTime(2012, 9, 2, 1, 23, 45, 678)) // NOTE: There appears to be a bug in cql-to-elm that translates these 'overlaps' to 'OverlapsAfter'! define OverlapsBeforeDayOfIvlEdge: PrecisionDateIvl overlaps day of Interval[DateTime(2012, 9, 2, 23, 59, 59, 999), DateTime(2012, 10, 1, 0, 0, 0, 0)] diff --git a/test/elm/interval/data.js b/test/elm/interval/data.js index 67228ef67..0bb879a30 100644 --- a/test/elm/interval/data.js +++ b/test/elm/interval/data.js @@ -139784,6 +139784,8 @@ define OverlapsBeforeRealIvl: Interval[1.234, 1.567] overlaps Interval[1.345, 1. define OverlapsAfterRealIvl: Interval[1.345, 1.678] overlaps Interval[1.234, 1.567] define OverlapsBoundaryRealIvl: Interval[1.0, 1.234] overlaps Interval[1.234, 2.0] define NoOverlapsRealIvl: Interval[1.0, 1.23456789) overlaps Interval[1.23456789, 2.0] +define OverlapsClosedNullIntervalLHS: (Interval[null, null] as Interval) overlaps Interval[6, 10] +define OverlapsClosedNullIntervalRHS: Interval[6, 10] overlaps (Interval[null, null] as Interval) define OverlapsIsNull: Interval[6, 10] overlaps (null as Interval) */ @@ -139799,7 +139801,7 @@ module.exports['Overlaps'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "358", + "r" : "412", "s" : [ { "value" : [ "", "library TestSnippet version '1'" ] } ] @@ -140898,7 +140900,7 @@ module.exports['Overlaps'] = { }, { "localId" : "358", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", - "name" : "OverlapsIsNull", + "name" : "OverlapsClosedNullIntervalLHS", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { @@ -140907,33 +140909,411 @@ module.exports['Overlaps'] = { "s" : { "r" : "358", "s" : [ { - "value" : [ "", "define ", "OverlapsIsNull", ": " ] + "value" : [ "", "define ", "OverlapsClosedNullIntervalLHS", ": " ] }, { - "r" : "374", + "r" : "378", "s" : [ { - "r" : "361", + "r" : "359", "s" : [ { + "value" : [ "(" ] + }, { "r" : "359", + "s" : [ { + "r" : "362", + "s" : [ { + "r" : "360", + "value" : [ "Interval[", "null", ", ", "null", "]" ] + } ] + }, { + "value" : [ " as " ] + }, { + "r" : "365", + "s" : [ { + "value" : [ "Interval<" ] + }, { + "r" : "366", + "s" : [ { + "value" : [ "Integer" ] + } ] + }, { + "value" : [ ">" ] + } ] + } ] + }, { + "value" : [ ")" ] + } ] + }, { + "r" : "378", + "value" : [ " ", "overlaps", " " ] + }, { + "r" : "375", + "s" : [ { + "r" : "373", + "value" : [ "Interval[", "6", ", ", "10", "]" ] + } ] + } ] + } ] + } + } ], + "expression" : { + "type" : "Overlaps", + "localId" : "378", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "annotation" : [ ], + "signature" : [ { + "type" : "IntervalTypeSpecifier", + "localId" : "379", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "380", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, { + "type" : "IntervalTypeSpecifier", + "localId" : "381", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "382", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + } ], + "operand" : [ { + "type" : "As", + "localId" : "359", + "strict" : false, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "371", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "372", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, + "signature" : [ ], + "operand" : { + "type" : "Interval", + "localId" : "362", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "363", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "364", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "360", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "361", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "asTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "365", + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "367", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "368", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "366", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + } + }, { + "type" : "Interval", + "localId" : "375", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "376", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "377", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Literal", + "localId" : "373", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "6", + "annotation" : [ ] + }, + "high" : { + "type" : "Literal", + "localId" : "374", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "10", + "annotation" : [ ] + } + } ] + } + }, { + "localId" : "385", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "name" : "OverlapsClosedNullIntervalRHS", + "context" : "Patient", + "accessLevel" : "Public", + "annotation" : [ { + "type" : "Annotation", + "t" : [ ], + "s" : { + "r" : "385", + "s" : [ { + "value" : [ "", "define ", "OverlapsClosedNullIntervalRHS", ": " ] + }, { + "r" : "405", + "s" : [ { + "r" : "388", + "s" : [ { + "r" : "386", "value" : [ "Interval[", "6", ", ", "10", "]" ] } ] }, { - "r" : "374", + "r" : "405", "value" : [ " ", "overlaps", " " ] }, { - "r" : "364", + "r" : "391", "s" : [ { "value" : [ "(" ] }, { - "r" : "364", + "r" : "391", "s" : [ { - "r" : "365", + "r" : "394", + "s" : [ { + "r" : "392", + "value" : [ "Interval[", "null", ", ", "null", "]" ] + } ] + }, { + "value" : [ " as " ] + }, { + "r" : "397", + "s" : [ { + "value" : [ "Interval<" ] + }, { + "r" : "398", + "s" : [ { + "value" : [ "Integer" ] + } ] + }, { + "value" : [ ">" ] + } ] + } ] + }, { + "value" : [ ")" ] + } ] + } ] + } ] + } + } ], + "expression" : { + "type" : "Overlaps", + "localId" : "405", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "annotation" : [ ], + "signature" : [ { + "type" : "IntervalTypeSpecifier", + "localId" : "406", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "407", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, { + "type" : "IntervalTypeSpecifier", + "localId" : "408", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "409", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + } ], + "operand" : [ { + "type" : "Interval", + "localId" : "388", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "389", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "390", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Literal", + "localId" : "386", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "6", + "annotation" : [ ] + }, + "high" : { + "type" : "Literal", + "localId" : "387", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "10", + "annotation" : [ ] + } + }, { + "type" : "As", + "localId" : "391", + "strict" : false, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "403", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "404", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, + "signature" : [ ], + "operand" : { + "type" : "Interval", + "localId" : "394", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "395", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "396", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "392", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "393", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "asTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "397", + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "399", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "400", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "398", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + } + } ] + } + }, { + "localId" : "412", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "name" : "OverlapsIsNull", + "context" : "Patient", + "accessLevel" : "Public", + "annotation" : [ { + "type" : "Annotation", + "t" : [ ], + "s" : { + "r" : "412", + "s" : [ { + "value" : [ "", "define ", "OverlapsIsNull", ": " ] + }, { + "r" : "428", + "s" : [ { + "r" : "415", + "s" : [ { + "r" : "413", + "value" : [ "Interval[", "6", ", ", "10", "]" ] + } ] + }, { + "r" : "428", + "value" : [ " ", "overlaps", " " ] + }, { + "r" : "418", + "s" : [ { + "value" : [ "(" ] + }, { + "r" : "418", + "s" : [ { + "r" : "419", "value" : [ "null", " as " ] }, { - "r" : "366", + "r" : "420", "s" : [ { "value" : [ "Interval<" ] }, { - "r" : "367", + "r" : "421", "s" : [ { "value" : [ "Integer" ] } ] @@ -140950,50 +141330,50 @@ module.exports['Overlaps'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "374", + "localId" : "428", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "375", + "localId" : "429", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "376", + "localId" : "430", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "377", + "localId" : "431", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "378", + "localId" : "432", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } } ], "operand" : [ { "type" : "Interval", - "localId" : "361", + "localId" : "415", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "362", + "localId" : "416", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "363", + "localId" : "417", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, "low" : { "type" : "Literal", - "localId" : "359", + "localId" : "413", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "6", @@ -141001,7 +141381,7 @@ module.exports['Overlaps'] = { }, "high" : { "type" : "Literal", - "localId" : "360", + "localId" : "414", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "10", @@ -141009,16 +141389,16 @@ module.exports['Overlaps'] = { } }, { "type" : "As", - "localId" : "364", + "localId" : "418", "strict" : false, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "372", + "localId" : "426", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "373", + "localId" : "427", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } @@ -141026,28 +141406,28 @@ module.exports['Overlaps'] = { "signature" : [ ], "operand" : { "type" : "Null", - "localId" : "365", + "localId" : "419", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", "annotation" : [ ] }, "asTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "366", + "localId" : "420", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "368", + "localId" : "422", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "369", + "localId" : "423", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "367", + "localId" : "421", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] @@ -141081,6 +141461,8 @@ define NoOverlap: ivlC overlaps ivlD define NoImpreciseOverlap: ivlE overlaps ivlG define UnknownOverlap: ivlE overlaps ivlH define MatchingPrecisionOverlap: ivlF overlaps ivlG +define OverlapsClosedNullIntervalLHS: (Interval[null, null] as Interval) overlaps ivlA +define OverlapsClosedNullIntervalRHS: ivlA overlaps (Interval[null, null] as Interval) define PrecisionDateIvl: Interval[DateTime(2012, 3, 2, 12, 34, 56, 789), DateTime(2012, 9, 2, 1, 23, 45, 678)) // NOTE: There appears to be a bug in cql-to-elm that translates these 'overlaps' to 'OverlapsAfter'! define OverlapsBeforeDayOfIvlEdge: PrecisionDateIvl overlaps day of Interval[DateTime(2012, 9, 2, 23, 59, 59, 999), DateTime(2012, 10, 1, 0, 0, 0, 0)] @@ -141105,7 +141487,7 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1083", + "r" : "1133", "s" : [ { "value" : [ "", "library TestSnippet version '1'" ] } ] @@ -143428,21 +143810,309 @@ module.exports['OverlapsDateTime'] = { "s" : { "r" : "639", "s" : [ { - "value" : [ "", "define ", "MatchingPrecisionOverlap", ": " ] + "value" : [ "", "define ", "MatchingPrecisionOverlap", ": " ] + }, { + "r" : "646", + "s" : [ { + "r" : "640", + "s" : [ { + "value" : [ "ivlF" ] + } ] + }, { + "r" : "646", + "value" : [ " ", "overlaps", " " ] + }, { + "r" : "643", + "s" : [ { + "value" : [ "ivlG" ] + } ] + } ] + } ] + } + } ], + "expression" : { + "type" : "Overlaps", + "localId" : "646", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "annotation" : [ ], + "signature" : [ { + "type" : "IntervalTypeSpecifier", + "localId" : "647", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "648", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + }, { + "type" : "IntervalTypeSpecifier", + "localId" : "649", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "650", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + } ], + "operand" : [ { + "type" : "ExpressionRef", + "localId" : "640", + "name" : "ivlF", + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "641", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "642", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + } + }, { + "type" : "ExpressionRef", + "localId" : "643", + "name" : "ivlG", + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "644", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "645", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + } + } ] + } + }, { + "localId" : "653", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "name" : "OverlapsClosedNullIntervalLHS", + "context" : "Patient", + "accessLevel" : "Public", + "annotation" : [ { + "type" : "Annotation", + "t" : [ ], + "s" : { + "r" : "653", + "s" : [ { + "value" : [ "", "define ", "OverlapsClosedNullIntervalLHS", ": " ] + }, { + "r" : "671", + "s" : [ { + "r" : "654", + "s" : [ { + "value" : [ "(" ] + }, { + "r" : "654", + "s" : [ { + "r" : "657", + "s" : [ { + "r" : "655", + "value" : [ "Interval[", "null", ", ", "null", "]" ] + } ] + }, { + "value" : [ " as " ] + }, { + "r" : "660", + "s" : [ { + "value" : [ "Interval<" ] + }, { + "r" : "661", + "s" : [ { + "value" : [ "DateTime" ] + } ] + }, { + "value" : [ ">" ] + } ] + } ] + }, { + "value" : [ ")" ] + } ] + }, { + "r" : "671", + "value" : [ " ", "overlaps", " " ] + }, { + "r" : "668", + "s" : [ { + "value" : [ "ivlA" ] + } ] + } ] + } ] + } + } ], + "expression" : { + "type" : "Overlaps", + "localId" : "671", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "annotation" : [ ], + "signature" : [ { + "type" : "IntervalTypeSpecifier", + "localId" : "672", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "673", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + }, { + "type" : "IntervalTypeSpecifier", + "localId" : "674", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "675", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + } ], + "operand" : [ { + "type" : "As", + "localId" : "654", + "strict" : false, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "666", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "667", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + }, + "signature" : [ ], + "operand" : { + "type" : "Interval", + "localId" : "657", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "658", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "659", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "655", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "656", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "asTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "660", + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "662", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "663", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + }, + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "661", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + } + }, { + "type" : "ExpressionRef", + "localId" : "668", + "name" : "ivlA", + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "669", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "670", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + } + } ] + } + }, { + "localId" : "678", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "name" : "OverlapsClosedNullIntervalRHS", + "context" : "Patient", + "accessLevel" : "Public", + "annotation" : [ { + "type" : "Annotation", + "t" : [ ], + "s" : { + "r" : "678", + "s" : [ { + "value" : [ "", "define ", "OverlapsClosedNullIntervalRHS", ": " ] }, { - "r" : "646", + "r" : "696", "s" : [ { - "r" : "640", + "r" : "679", "s" : [ { - "value" : [ "ivlF" ] + "value" : [ "ivlA" ] } ] }, { - "r" : "646", + "r" : "696", "value" : [ " ", "overlaps", " " ] }, { - "r" : "643", + "r" : "682", "s" : [ { - "value" : [ "ivlG" ] + "value" : [ "(" ] + }, { + "r" : "682", + "s" : [ { + "r" : "685", + "s" : [ { + "r" : "683", + "value" : [ "Interval[", "null", ", ", "null", "]" ] + } ] + }, { + "value" : [ " as " ] + }, { + "r" : "688", + "s" : [ { + "value" : [ "Interval<" ] + }, { + "r" : "689", + "s" : [ { + "value" : [ "DateTime" ] + } ] + }, { + "value" : [ ">" ] + } ] + } ] + }, { + "value" : [ ")" ] } ] } ] } ] @@ -143450,58 +144120,112 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "646", + "localId" : "696", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "647", + "localId" : "697", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "648", + "localId" : "698", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "649", + "localId" : "699", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "650", + "localId" : "700", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "640", - "name" : "ivlF", + "localId" : "679", + "name" : "ivlA", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "641", + "localId" : "680", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "642", + "localId" : "681", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { - "type" : "ExpressionRef", - "localId" : "643", - "name" : "ivlG", + "type" : "As", + "localId" : "682", + "strict" : false, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "644", + "localId" : "694", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "645", + "localId" : "695", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + }, + "signature" : [ ], + "operand" : { + "type" : "Interval", + "localId" : "685", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "686", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "687", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "683", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "684", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "asTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "688", + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "690", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "691", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + }, + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "689", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } @@ -143509,7 +144233,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "653", + "localId" : "703", "name" : "PrecisionDateIvl", "context" : "Patient", "accessLevel" : "Public", @@ -143517,25 +144241,25 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "653", + "r" : "703", "s" : [ { "value" : [ "", "define ", "PrecisionDateIvl", ": " ] }, { - "r" : "702", + "r" : "752", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "670", + "r" : "720", "s" : [ { - "r" : "654", + "r" : "704", "value" : [ "DateTime", "(", "2012", ", ", "3", ", ", "2", ", ", "12", ", ", "34", ", ", "56", ", ", "789", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "694", + "r" : "744", "s" : [ { - "r" : "678", + "r" : "728", "value" : [ "DateTime", "(", "2012", ", ", "9", ", ", "2", ", ", "1", ", ", "23", ", ", "45", ", ", "678", ")" ] } ] }, { @@ -143546,76 +144270,76 @@ module.exports['OverlapsDateTime'] = { } ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "705", + "localId" : "755", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "706", + "localId" : "756", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "expression" : { "type" : "Interval", - "localId" : "702", + "localId" : "752", "lowClosed" : true, "highClosed" : false, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "703", + "localId" : "753", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "704", + "localId" : "754", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "670", + "localId" : "720", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "671", + "localId" : "721", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "672", + "localId" : "722", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "673", + "localId" : "723", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "674", + "localId" : "724", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "675", + "localId" : "725", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "676", + "localId" : "726", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "677", + "localId" : "727", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "654", + "localId" : "704", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -143623,7 +144347,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "655", + "localId" : "705", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "3", @@ -143631,7 +144355,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "656", + "localId" : "706", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -143639,7 +144363,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "657", + "localId" : "707", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "12", @@ -143647,7 +144371,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "658", + "localId" : "708", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "34", @@ -143655,7 +144379,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "659", + "localId" : "709", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "56", @@ -143663,7 +144387,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "660", + "localId" : "710", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "789", @@ -143672,48 +144396,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "694", + "localId" : "744", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "695", + "localId" : "745", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "696", + "localId" : "746", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "697", + "localId" : "747", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "698", + "localId" : "748", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "699", + "localId" : "749", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "700", + "localId" : "750", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "701", + "localId" : "751", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "678", + "localId" : "728", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -143721,7 +144445,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "679", + "localId" : "729", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "9", @@ -143729,7 +144453,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "680", + "localId" : "730", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -143737,7 +144461,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "681", + "localId" : "731", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -143745,7 +144469,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "682", + "localId" : "732", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "23", @@ -143753,7 +144477,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "683", + "localId" : "733", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "45", @@ -143761,7 +144485,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "684", + "localId" : "734", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "678", @@ -143770,7 +144494,7 @@ module.exports['OverlapsDateTime'] = { } } }, { - "localId" : "709", + "localId" : "759", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsBeforeDayOfIvlEdge", "context" : "Patient", @@ -143779,35 +144503,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "709", + "r" : "759", "s" : [ { "value" : [ "// NOTE: There appears to be a bug in cql-to-elm that translates these 'overlaps' to 'OverlapsAfter'!\n", "define ", "OverlapsBeforeDayOfIvlEdge", ": " ] }, { - "r" : "764", + "r" : "814", "s" : [ { - "r" : "710", + "r" : "760", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "764", + "r" : "814", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "761", + "r" : "811", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "729", + "r" : "779", "s" : [ { - "r" : "713", + "r" : "763", "value" : [ "DateTime", "(", "2012", ", ", "9", ", ", "2", ", ", "23", ", ", "59", ", ", "59", ", ", "999", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "753", + "r" : "803", "s" : [ { - "r" : "737", + "r" : "787", "value" : [ "DateTime", "(", "2012", ", ", "10", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -143819,108 +144543,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "764", + "localId" : "814", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "765", + "localId" : "815", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "766", + "localId" : "816", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "767", + "localId" : "817", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "768", + "localId" : "818", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "710", + "localId" : "760", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "711", + "localId" : "761", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "712", + "localId" : "762", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "761", + "localId" : "811", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "762", + "localId" : "812", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "763", + "localId" : "813", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "729", + "localId" : "779", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "730", + "localId" : "780", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "731", + "localId" : "781", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "732", + "localId" : "782", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "733", + "localId" : "783", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "734", + "localId" : "784", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "735", + "localId" : "785", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "736", + "localId" : "786", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "713", + "localId" : "763", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -143928,7 +144652,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "714", + "localId" : "764", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "9", @@ -143936,7 +144660,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "715", + "localId" : "765", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -143944,7 +144668,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "716", + "localId" : "766", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "23", @@ -143952,7 +144676,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "717", + "localId" : "767", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "59", @@ -143960,7 +144684,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "718", + "localId" : "768", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "59", @@ -143968,7 +144692,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "719", + "localId" : "769", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "999", @@ -143977,48 +144701,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "753", + "localId" : "803", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "754", + "localId" : "804", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "755", + "localId" : "805", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "756", + "localId" : "806", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "757", + "localId" : "807", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "758", + "localId" : "808", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "759", + "localId" : "809", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "760", + "localId" : "810", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "737", + "localId" : "787", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144026,7 +144750,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "738", + "localId" : "788", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "10", @@ -144034,7 +144758,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "739", + "localId" : "789", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144042,7 +144766,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "740", + "localId" : "790", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144050,7 +144774,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "741", + "localId" : "791", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144058,7 +144782,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "742", + "localId" : "792", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144066,7 +144790,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "743", + "localId" : "793", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144076,7 +144800,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "771", + "localId" : "821", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsAfterDayOfIvlEdge", "context" : "Patient", @@ -144085,35 +144809,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "771", + "r" : "821", "s" : [ { "value" : [ "", "define ", "OverlapsAfterDayOfIvlEdge", ": " ] }, { - "r" : "826", + "r" : "876", "s" : [ { - "r" : "772", + "r" : "822", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "826", + "r" : "876", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "823", + "r" : "873", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "791", + "r" : "841", "s" : [ { - "r" : "775", + "r" : "825", "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "2", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "815", + "r" : "865", "s" : [ { - "r" : "799", + "r" : "849", "value" : [ "DateTime", "(", "2012", ", ", "3", ", ", "2", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -144125,108 +144849,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "826", + "localId" : "876", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "827", + "localId" : "877", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "828", + "localId" : "878", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "829", + "localId" : "879", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "830", + "localId" : "880", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "772", + "localId" : "822", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "773", + "localId" : "823", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "774", + "localId" : "824", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "823", + "localId" : "873", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "824", + "localId" : "874", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "825", + "localId" : "875", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "791", + "localId" : "841", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "792", + "localId" : "842", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "793", + "localId" : "843", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "794", + "localId" : "844", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "795", + "localId" : "845", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "796", + "localId" : "846", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "797", + "localId" : "847", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "798", + "localId" : "848", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "775", + "localId" : "825", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144234,7 +144958,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "776", + "localId" : "826", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144242,7 +144966,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "777", + "localId" : "827", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -144250,7 +144974,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "778", + "localId" : "828", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144258,7 +144982,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "779", + "localId" : "829", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144266,7 +144990,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "780", + "localId" : "830", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144274,7 +144998,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "781", + "localId" : "831", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144283,48 +145007,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "815", + "localId" : "865", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "816", + "localId" : "866", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "817", + "localId" : "867", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "818", + "localId" : "868", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "819", + "localId" : "869", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "820", + "localId" : "870", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "821", + "localId" : "871", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "822", + "localId" : "872", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "799", + "localId" : "849", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144332,7 +145056,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "800", + "localId" : "850", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "3", @@ -144340,7 +145064,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "801", + "localId" : "851", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -144348,7 +145072,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "802", + "localId" : "852", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144356,7 +145080,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "803", + "localId" : "853", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144364,7 +145088,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "804", + "localId" : "854", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144372,7 +145096,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "805", + "localId" : "855", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144382,7 +145106,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "833", + "localId" : "883", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsContainsDayOfIvl", "context" : "Patient", @@ -144391,35 +145115,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "833", + "r" : "883", "s" : [ { "value" : [ "", "define ", "OverlapsContainsDayOfIvl", ": " ] }, { - "r" : "888", + "r" : "938", "s" : [ { - "r" : "834", + "r" : "884", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "888", + "r" : "938", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "885", + "r" : "935", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "853", + "r" : "903", "s" : [ { - "r" : "837", + "r" : "887", "value" : [ "DateTime", "(", "2012", ", ", "5", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "877", + "r" : "927", "s" : [ { - "r" : "861", + "r" : "911", "value" : [ "DateTime", "(", "2012", ", ", "6", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -144431,108 +145155,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "888", + "localId" : "938", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "889", + "localId" : "939", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "890", + "localId" : "940", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "891", + "localId" : "941", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "892", + "localId" : "942", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "834", + "localId" : "884", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "835", + "localId" : "885", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "836", + "localId" : "886", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "885", + "localId" : "935", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "886", + "localId" : "936", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "887", + "localId" : "937", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "853", + "localId" : "903", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "854", + "localId" : "904", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "855", + "localId" : "905", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "856", + "localId" : "906", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "857", + "localId" : "907", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "858", + "localId" : "908", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "859", + "localId" : "909", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "860", + "localId" : "910", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "837", + "localId" : "887", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144540,7 +145264,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "838", + "localId" : "888", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "5", @@ -144548,7 +145272,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "839", + "localId" : "889", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144556,7 +145280,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "840", + "localId" : "890", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144564,7 +145288,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "841", + "localId" : "891", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144572,7 +145296,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "842", + "localId" : "892", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144580,7 +145304,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "843", + "localId" : "893", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144589,48 +145313,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "877", + "localId" : "927", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "878", + "localId" : "928", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "879", + "localId" : "929", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "880", + "localId" : "930", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "881", + "localId" : "931", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "882", + "localId" : "932", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "883", + "localId" : "933", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "884", + "localId" : "934", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "861", + "localId" : "911", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144638,7 +145362,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "862", + "localId" : "912", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "6", @@ -144646,7 +145370,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "863", + "localId" : "913", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144654,7 +145378,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "864", + "localId" : "914", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144662,7 +145386,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "865", + "localId" : "915", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144670,7 +145394,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "866", + "localId" : "916", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144678,7 +145402,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "867", + "localId" : "917", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144688,7 +145412,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "895", + "localId" : "945", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsContainedByDayOfIvl", "context" : "Patient", @@ -144697,35 +145421,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "895", + "r" : "945", "s" : [ { "value" : [ "", "define ", "OverlapsContainedByDayOfIvl", ": " ] }, { - "r" : "950", + "r" : "1000", "s" : [ { - "r" : "896", + "r" : "946", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "950", + "r" : "1000", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "947", + "r" : "997", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "915", + "r" : "965", "s" : [ { - "r" : "899", + "r" : "949", "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "939", + "r" : "989", "s" : [ { - "r" : "923", + "r" : "973", "value" : [ "DateTime", "(", "2012", ", ", "12", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -144737,108 +145461,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "950", + "localId" : "1000", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "951", + "localId" : "1001", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "952", + "localId" : "1002", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "953", + "localId" : "1003", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "954", + "localId" : "1004", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "896", + "localId" : "946", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "897", + "localId" : "947", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "898", + "localId" : "948", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "947", + "localId" : "997", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "948", + "localId" : "998", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "949", + "localId" : "999", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "915", + "localId" : "965", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "916", + "localId" : "966", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "917", + "localId" : "967", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "918", + "localId" : "968", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "919", + "localId" : "969", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "920", + "localId" : "970", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "921", + "localId" : "971", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "922", + "localId" : "972", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "899", + "localId" : "949", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144846,7 +145570,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "900", + "localId" : "950", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144854,7 +145578,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "901", + "localId" : "951", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144862,7 +145586,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "902", + "localId" : "952", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144870,7 +145594,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "903", + "localId" : "953", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144878,7 +145602,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "904", + "localId" : "954", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144886,7 +145610,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "905", + "localId" : "955", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144895,48 +145619,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "939", + "localId" : "989", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "940", + "localId" : "990", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "941", + "localId" : "991", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "942", + "localId" : "992", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "943", + "localId" : "993", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "944", + "localId" : "994", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "945", + "localId" : "995", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "946", + "localId" : "996", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "923", + "localId" : "973", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144944,7 +145668,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "924", + "localId" : "974", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "12", @@ -144952,7 +145676,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "925", + "localId" : "975", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144960,7 +145684,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "926", + "localId" : "976", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144968,7 +145692,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "927", + "localId" : "977", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144976,7 +145700,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "928", + "localId" : "978", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144984,7 +145708,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "929", + "localId" : "979", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144994,7 +145718,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "957", + "localId" : "1007", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "NotOverlapsDayOfIvl", "context" : "Patient", @@ -145003,35 +145727,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "957", + "r" : "1007", "s" : [ { "value" : [ "", "define ", "NotOverlapsDayOfIvl", ": " ] }, { - "r" : "1012", + "r" : "1062", "s" : [ { - "r" : "958", + "r" : "1008", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1012", + "r" : "1062", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1009", + "r" : "1059", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "977", + "r" : "1027", "s" : [ { - "r" : "961", + "r" : "1011", "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "2", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1001", + "r" : "1051", "s" : [ { - "r" : "985", + "r" : "1035", "value" : [ "DateTime", "(", "2012", ", ", "3", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -145043,108 +145767,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1012", + "localId" : "1062", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1013", + "localId" : "1063", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1014", + "localId" : "1064", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1015", + "localId" : "1065", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1016", + "localId" : "1066", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "958", + "localId" : "1008", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "959", + "localId" : "1009", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "960", + "localId" : "1010", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1009", + "localId" : "1059", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1010", + "localId" : "1060", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1011", + "localId" : "1061", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "977", + "localId" : "1027", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "978", + "localId" : "1028", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "979", + "localId" : "1029", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "980", + "localId" : "1030", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "981", + "localId" : "1031", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "982", + "localId" : "1032", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "983", + "localId" : "1033", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "984", + "localId" : "1034", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "961", + "localId" : "1011", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145152,7 +145876,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "962", + "localId" : "1012", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145160,7 +145884,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "963", + "localId" : "1013", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -145168,7 +145892,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "964", + "localId" : "1014", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145176,7 +145900,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "965", + "localId" : "1015", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145184,7 +145908,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "966", + "localId" : "1016", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145192,7 +145916,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "967", + "localId" : "1017", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145201,48 +145925,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1001", + "localId" : "1051", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1002", + "localId" : "1052", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1003", + "localId" : "1053", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1004", + "localId" : "1054", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1005", + "localId" : "1055", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1006", + "localId" : "1056", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1007", + "localId" : "1057", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1008", + "localId" : "1058", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "985", + "localId" : "1035", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145250,7 +145974,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "986", + "localId" : "1036", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "3", @@ -145258,7 +145982,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "987", + "localId" : "1037", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145266,7 +145990,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "988", + "localId" : "1038", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145274,7 +145998,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "989", + "localId" : "1039", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145282,7 +146006,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "990", + "localId" : "1040", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145290,7 +146014,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "991", + "localId" : "1041", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145300,7 +146024,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "1019", + "localId" : "1069", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsAfterDayOfImpreciseInterval", "context" : "Patient", @@ -145309,35 +146033,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1019", + "r" : "1069", "s" : [ { "value" : [ "", "define ", "OverlapsAfterDayOfImpreciseInterval", ": " ] }, { - "r" : "1044", + "r" : "1094", "s" : [ { - "r" : "1020", + "r" : "1070", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1044", + "r" : "1094", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1041", + "r" : "1091", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "1029", + "r" : "1079", "s" : [ { - "r" : "1023", + "r" : "1073", "value" : [ "DateTime", "(", "2012", ", ", "1", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1038", + "r" : "1088", "s" : [ { - "r" : "1032", + "r" : "1082", "value" : [ "DateTime", "(", "2012", ", ", "4", ")" ] } ] }, { @@ -145349,83 +146073,83 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1044", + "localId" : "1094", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1045", + "localId" : "1095", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1046", + "localId" : "1096", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1047", + "localId" : "1097", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1048", + "localId" : "1098", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "1020", + "localId" : "1070", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1021", + "localId" : "1071", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1022", + "localId" : "1072", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1041", + "localId" : "1091", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1042", + "localId" : "1092", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1043", + "localId" : "1093", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "1029", + "localId" : "1079", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1030", + "localId" : "1080", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1031", + "localId" : "1081", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1023", + "localId" : "1073", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145433,7 +146157,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1024", + "localId" : "1074", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145442,23 +146166,23 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1038", + "localId" : "1088", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1039", + "localId" : "1089", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1040", + "localId" : "1090", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1032", + "localId" : "1082", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145466,7 +146190,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1033", + "localId" : "1083", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "4", @@ -145476,7 +146200,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "1051", + "localId" : "1101", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "MayOverlapBeforeDayOfImpreciseIvl", "context" : "Patient", @@ -145485,35 +146209,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1051", + "r" : "1101", "s" : [ { "value" : [ "", "define ", "MayOverlapBeforeDayOfImpreciseIvl", ": " ] }, { - "r" : "1076", + "r" : "1126", "s" : [ { - "r" : "1052", + "r" : "1102", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1076", + "r" : "1126", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1073", + "r" : "1123", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "1061", + "r" : "1111", "s" : [ { - "r" : "1055", + "r" : "1105", "value" : [ "DateTime", "(", "2012", ", ", "9", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1070", + "r" : "1120", "s" : [ { - "r" : "1064", + "r" : "1114", "value" : [ "DateTime", "(", "2012", ", ", "10", ")" ] } ] }, { @@ -145525,83 +146249,83 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1076", + "localId" : "1126", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1077", + "localId" : "1127", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1078", + "localId" : "1128", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1079", + "localId" : "1129", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1080", + "localId" : "1130", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "1052", + "localId" : "1102", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1053", + "localId" : "1103", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1054", + "localId" : "1104", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1073", + "localId" : "1123", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1074", + "localId" : "1124", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1075", + "localId" : "1125", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "1061", + "localId" : "1111", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1062", + "localId" : "1112", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1063", + "localId" : "1113", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1055", + "localId" : "1105", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145609,7 +146333,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1056", + "localId" : "1106", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "9", @@ -145618,23 +146342,23 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1070", + "localId" : "1120", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1071", + "localId" : "1121", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1072", + "localId" : "1122", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1064", + "localId" : "1114", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145642,7 +146366,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1065", + "localId" : "1115", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "10", @@ -145652,7 +146376,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "1083", + "localId" : "1133", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "MayOverlapAfterDayOfImpreciseIvl", "context" : "Patient", @@ -145661,35 +146385,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1083", + "r" : "1133", "s" : [ { "value" : [ "", "define ", "MayOverlapAfterDayOfImpreciseIvl", ": " ] }, { - "r" : "1108", + "r" : "1158", "s" : [ { - "r" : "1084", + "r" : "1134", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1108", + "r" : "1158", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1105", + "r" : "1155", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "1093", + "r" : "1143", "s" : [ { - "r" : "1087", + "r" : "1137", "value" : [ "DateTime", "(", "2012", ", ", "1", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1102", + "r" : "1152", "s" : [ { - "r" : "1096", + "r" : "1146", "value" : [ "DateTime", "(", "2012", ", ", "3", ")" ] } ] }, { @@ -145701,83 +146425,83 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1108", + "localId" : "1158", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1109", + "localId" : "1159", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1110", + "localId" : "1160", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1111", + "localId" : "1161", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1112", + "localId" : "1162", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "1084", + "localId" : "1134", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1085", + "localId" : "1135", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1086", + "localId" : "1136", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1105", + "localId" : "1155", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1106", + "localId" : "1156", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1107", + "localId" : "1157", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "1093", + "localId" : "1143", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1094", + "localId" : "1144", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1095", + "localId" : "1145", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1087", + "localId" : "1137", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145785,7 +146509,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1088", + "localId" : "1138", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145794,23 +146518,23 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1102", + "localId" : "1152", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1103", + "localId" : "1153", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1104", + "localId" : "1154", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1096", + "localId" : "1146", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145818,7 +146542,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1097", + "localId" : "1147", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "3", diff --git a/test/elm/interval/interval-test.ts b/test/elm/interval/interval-test.ts index 536f9605b..16a7a5279 100644 --- a/test/elm/interval/interval-test.ts +++ b/test/elm/interval/interval-test.ts @@ -1023,6 +1023,11 @@ describe('Overlaps', () => { (await this.noOverlapsRealIvl.exec(this.ctx)).should.be.false(); }); + it('should accept overlaps (closed null boundaries)', async function () { + (await this.overlapsClosedNullIntervalLHS.exec(this.ctx)).should.be.true(); + (await this.overlapsClosedNullIntervalRHS.exec(this.ctx)).should.be.true(); + }); + it('should return null for null value', async function () { should(await this.overlapsIsNull.exec(this.ctx)).be.null(); }); @@ -1060,6 +1065,11 @@ describe('OverlapsDateTime', () => { (await this.matchingPrecisionOverlap.exec(this.ctx)).should.be.true(); }); + it('should accept overlaps (closed null boundaries)', async function () { + (await this.overlapsClosedNullIntervalLHS.exec(this.ctx)).should.be.true(); + (await this.overlapsClosedNullIntervalRHS.exec(this.ctx)).should.be.true(); + }); + it('should correctly compare using the requested precision', async function () { (await this.overlapsBeforeDayOfIvlEdge.exec(this.ctx)).should.be.true(); (await this.overlapsAfterDayOfIvlEdge.exec(this.ctx)).should.be.true(); diff --git a/test/spec-tests/cql/CqlIntervalOperatorsTest.cql b/test/spec-tests/cql/CqlIntervalOperatorsTest.cql index 0ed5cc58e..0b2b0e4ad 100644 --- a/test/spec-tests/cql/CqlIntervalOperatorsTest.cql +++ b/test/spec-tests/cql/CqlIntervalOperatorsTest.cql @@ -1142,9 +1142,11 @@ define "OnOrBefore": Tuple{ define "Overlaps": Tuple{ "TestOverlapsNull": Tuple{ + skipped: 'Wrong answer (Interval[null, null] should overlap everything)' + /* expression: Interval[null, null] overlaps Interval[1, 10], output: null - }, + */ }, "IntegerIntervalOverlapsTrue": Tuple{ expression: Interval[1, 10] overlaps Interval[4, 10], output: true @@ -1249,9 +1251,11 @@ define "Overlaps": Tuple{ define "OverlapsBefore": Tuple{ "TestOverlapsBeforeNull": Tuple{ + skipped: 'Wrong answer (Interval[null, null] should overlap before anything but another interval w/ null low closed boundary)' + /* expression: Interval[null, null] overlaps before Interval[1, 10], output: null - }, + */ }, "IntegerIntervalOverlapsBeforeTrue": Tuple{ expression: Interval[1, 10] overlaps before Interval[4, 10], output: true @@ -1324,9 +1328,11 @@ define "OverlapsBefore": Tuple{ define "OverlapsAfter": Tuple{ "TestOverlapsAfterNull": Tuple{ + skipped: 'Wrong answer (Interval[null, null] should overlap after anything but another interval w/ null high closed boundary)' + /* expression: Interval[null, null] overlaps after Interval[1, 10], output: null - }, + */ }, "IntegerIntervalOverlapsAfterTrue": Tuple{ expression: Interval[4, 15] overlaps after Interval[1, 10], output: true @@ -1668,9 +1674,11 @@ define "Starts": Tuple{ define "Union": Tuple{ "TestUnionNull": Tuple{ + skipped: 'Wrong answer (Interval[null, null] union any valid interval of the same point type is Interval[null, null])' + /* expression: Interval[null, null] union Interval[1, 10], output: null - }, + */ }, "IntegerIntervalUnion1To15": Tuple{ expression: Interval[1, 10] union Interval[4, 15], output: Interval [ 1, 15 ] diff --git a/test/spec-tests/cql/CqlIntervalOperatorsTest.json b/test/spec-tests/cql/CqlIntervalOperatorsTest.json index 664155946..0ed0932e3 100644 --- a/test/spec-tests/cql/CqlIntervalOperatorsTest.json +++ b/test/spec-tests/cql/CqlIntervalOperatorsTest.json @@ -26699,51 +26699,11 @@ "annotation": [], "element": [ { - "name": "expression", - "value": { - "type": "Overlaps", - "annotation": [], - "signature": [], - "operand": [ - { - "type": "Interval", - "lowClosed": true, - "highClosed": true, - "annotation": [], - "low": { - "type": "Null", - "annotation": [] - }, - "high": { - "type": "Null", - "annotation": [] - } - }, - { - "type": "Interval", - "lowClosed": true, - "highClosed": true, - "annotation": [], - "low": { - "type": "Literal", - "valueType": "{urn:hl7-org:elm-types:r1}Integer", - "value": "1", - "annotation": [] - }, - "high": { - "type": "Literal", - "valueType": "{urn:hl7-org:elm-types:r1}Integer", - "value": "10", - "annotation": [] - } - } - ] - } - }, - { - "name": "output", + "name": "skipped", "value": { - "type": "Null", + "type": "Literal", + "valueType": "{urn:hl7-org:elm-types:r1}String", + "value": "Wrong answer (Interval[null, null] should overlap everything)", "annotation": [] } } @@ -28927,51 +28887,11 @@ "annotation": [], "element": [ { - "name": "expression", - "value": { - "type": "OverlapsBefore", - "annotation": [], - "signature": [], - "operand": [ - { - "type": "Interval", - "lowClosed": true, - "highClosed": true, - "annotation": [], - "low": { - "type": "Null", - "annotation": [] - }, - "high": { - "type": "Null", - "annotation": [] - } - }, - { - "type": "Interval", - "lowClosed": true, - "highClosed": true, - "annotation": [], - "low": { - "type": "Literal", - "valueType": "{urn:hl7-org:elm-types:r1}Integer", - "value": "1", - "annotation": [] - }, - "high": { - "type": "Literal", - "valueType": "{urn:hl7-org:elm-types:r1}Integer", - "value": "10", - "annotation": [] - } - } - ] - } - }, - { - "name": "output", + "name": "skipped", "value": { - "type": "Null", + "type": "Literal", + "valueType": "{urn:hl7-org:elm-types:r1}String", + "value": "Wrong answer (Interval[null, null] should overlap before anything but another interval w/ null low closed boundary)", "annotation": [] } } @@ -30405,51 +30325,11 @@ "annotation": [], "element": [ { - "name": "expression", - "value": { - "type": "OverlapsAfter", - "annotation": [], - "signature": [], - "operand": [ - { - "type": "Interval", - "lowClosed": true, - "highClosed": true, - "annotation": [], - "low": { - "type": "Null", - "annotation": [] - }, - "high": { - "type": "Null", - "annotation": [] - } - }, - { - "type": "Interval", - "lowClosed": true, - "highClosed": true, - "annotation": [], - "low": { - "type": "Literal", - "valueType": "{urn:hl7-org:elm-types:r1}Integer", - "value": "1", - "annotation": [] - }, - "high": { - "type": "Literal", - "valueType": "{urn:hl7-org:elm-types:r1}Integer", - "value": "10", - "annotation": [] - } - } - ] - } - }, - { - "name": "output", + "name": "skipped", "value": { - "type": "Null", + "type": "Literal", + "valueType": "{urn:hl7-org:elm-types:r1}String", + "value": "Wrong answer (Interval[null, null] should overlap after anything but another interval w/ null high closed boundary)", "annotation": [] } } @@ -35825,51 +35705,11 @@ "annotation": [], "element": [ { - "name": "expression", - "value": { - "type": "Union", - "annotation": [], - "signature": [], - "operand": [ - { - "type": "Interval", - "lowClosed": true, - "highClosed": true, - "annotation": [], - "low": { - "type": "Null", - "annotation": [] - }, - "high": { - "type": "Null", - "annotation": [] - } - }, - { - "type": "Interval", - "lowClosed": true, - "highClosed": true, - "annotation": [], - "low": { - "type": "Literal", - "valueType": "{urn:hl7-org:elm-types:r1}Integer", - "value": "1", - "annotation": [] - }, - "high": { - "type": "Literal", - "valueType": "{urn:hl7-org:elm-types:r1}Integer", - "value": "10", - "annotation": [] - } - } - ] - } - }, - { - "name": "output", + "name": "skipped", "value": { - "type": "Null", + "type": "Literal", + "valueType": "{urn:hl7-org:elm-types:r1}String", + "value": "Wrong answer (Interval[null, null] union any valid interval of the same point type is Interval[null, null])", "annotation": [] } } diff --git a/test/spec-tests/skip-list.txt b/test/spec-tests/skip-list.txt index 74120b094..6cd2dd313 100644 --- a/test/spec-tests/skip-list.txt +++ b/test/spec-tests/skip-list.txt @@ -36,6 +36,10 @@ CqlIntervalOperatorsTest.Expand.ExpandPer1IntervalOverload Wrong CqlIntervalOperatorsTest.Expand.ExpandPer1OpenIntervalOverload Wrong answer (single interval overload should return list of points) CqlIntervalOperatorsTest.Expand.ExpandPer2DaysIntervalOverload Wrong answer (single interval overload should return list of points) CqlIntervalOperatorsTest.Intersect.TestIntersectNull Wrong answer (Interval[5, 10] vs Interval[5, null)) +CqlIntervalOperatorsTest.Overlaps.TestOverlapsNull Wrong answer (Interval[null, null] should overlap everything) +CqlIntervalOperatorsTest.OverlapsBefore.TestOverlapsBeforeNull Wrong answer (Interval[null, null] should overlap before anything but another interval w/ null low closed boundary) +CqlIntervalOperatorsTest.OverlapsAfter.TestOverlapsAfterNull Wrong answer (Interval[null, null] should overlap after anything but another interval w/ null high closed boundary) +CqlIntervalOperatorsTest.Union.TestUnionNull Wrong answer (Interval[null, null] union any valid interval of the same point type is Interval[null, null]) CqlTypeOperatorsTest.Convert.StringToDateTime Wrong answer (different offsets) CqlTypeOperatorsTest.ToDateTime.ToDateTime1 Wrong answer (different offsets) CqlTypeOperatorsTest.ToDateTime.ToDateTime2 Wrong answer (different offsets) From 9dba1924cda5ac2e8b01fe8ec7110ca50b8dfcdf Mon Sep 17 00:00:00 2001 From: Chris Moesel Date: Fri, 29 May 2026 17:58:28 -0400 Subject: [PATCH 2/2] Remove interval cast in new overlaps tests --- test/elm/interval/data.cql | 8 +- test/elm/interval/data.js | 1862 +++++++++++++++++++++--------------- 2 files changed, 1071 insertions(+), 799 deletions(-) diff --git a/test/elm/interval/data.cql b/test/elm/interval/data.cql index 7b6f63bd4..7ece16f4a 100644 --- a/test/elm/interval/data.cql +++ b/test/elm/interval/data.cql @@ -643,8 +643,8 @@ define OverlapsBeforeRealIvl: Interval[1.234, 1.567] overlaps Interval[1.345, 1. define OverlapsAfterRealIvl: Interval[1.345, 1.678] overlaps Interval[1.234, 1.567] define OverlapsBoundaryRealIvl: Interval[1.0, 1.234] overlaps Interval[1.234, 2.0] define NoOverlapsRealIvl: Interval[1.0, 1.23456789) overlaps Interval[1.23456789, 2.0] -define OverlapsClosedNullIntervalLHS: (Interval[null, null] as Interval) overlaps Interval[6, 10] -define OverlapsClosedNullIntervalRHS: Interval[6, 10] overlaps (Interval[null, null] as Interval) +define OverlapsClosedNullIntervalLHS: Interval[null, null] overlaps Interval[6, 10] +define OverlapsClosedNullIntervalRHS: Interval[6, 10] overlaps Interval[null, null] define OverlapsIsNull: Interval[6, 10] overlaps (null as Interval) // @Test: OverlapsDateTime @@ -665,8 +665,8 @@ define NoOverlap: ivlC overlaps ivlD define NoImpreciseOverlap: ivlE overlaps ivlG define UnknownOverlap: ivlE overlaps ivlH define MatchingPrecisionOverlap: ivlF overlaps ivlG -define OverlapsClosedNullIntervalLHS: (Interval[null, null] as Interval) overlaps ivlA -define OverlapsClosedNullIntervalRHS: ivlA overlaps (Interval[null, null] as Interval) +define OverlapsClosedNullIntervalLHS: Interval[null, null] overlaps ivlA +define OverlapsClosedNullIntervalRHS: ivlA overlaps Interval[null, null] define PrecisionDateIvl: Interval[DateTime(2012, 3, 2, 12, 34, 56, 789), DateTime(2012, 9, 2, 1, 23, 45, 678)) // NOTE: There appears to be a bug in cql-to-elm that translates these 'overlaps' to 'OverlapsAfter'! define OverlapsBeforeDayOfIvlEdge: PrecisionDateIvl overlaps day of Interval[DateTime(2012, 9, 2, 23, 59, 59, 999), DateTime(2012, 10, 1, 0, 0, 0, 0)] diff --git a/test/elm/interval/data.js b/test/elm/interval/data.js index 0bb879a30..72a2e14eb 100644 --- a/test/elm/interval/data.js +++ b/test/elm/interval/data.js @@ -139784,8 +139784,8 @@ define OverlapsBeforeRealIvl: Interval[1.234, 1.567] overlaps Interval[1.345, 1. define OverlapsAfterRealIvl: Interval[1.345, 1.678] overlaps Interval[1.234, 1.567] define OverlapsBoundaryRealIvl: Interval[1.0, 1.234] overlaps Interval[1.234, 2.0] define NoOverlapsRealIvl: Interval[1.0, 1.23456789) overlaps Interval[1.23456789, 2.0] -define OverlapsClosedNullIntervalLHS: (Interval[null, null] as Interval) overlaps Interval[6, 10] -define OverlapsClosedNullIntervalRHS: Interval[6, 10] overlaps (Interval[null, null] as Interval) +define OverlapsClosedNullIntervalLHS: Interval[null, null] overlaps Interval[6, 10] +define OverlapsClosedNullIntervalRHS: Interval[6, 10] overlaps Interval[null, null] define OverlapsIsNull: Interval[6, 10] overlaps (null as Interval) */ @@ -139801,7 +139801,7 @@ module.exports['Overlaps'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "412", + "r" : "408", "s" : [ { "value" : [ "", "library TestSnippet version '1'" ] } ] @@ -140911,44 +140911,20 @@ module.exports['Overlaps'] = { "s" : [ { "value" : [ "", "define ", "OverlapsClosedNullIntervalLHS", ": " ] }, { - "r" : "378", + "r" : "369", "s" : [ { - "r" : "359", + "r" : "361", "s" : [ { - "value" : [ "(" ] - }, { "r" : "359", - "s" : [ { - "r" : "362", - "s" : [ { - "r" : "360", - "value" : [ "Interval[", "null", ", ", "null", "]" ] - } ] - }, { - "value" : [ " as " ] - }, { - "r" : "365", - "s" : [ { - "value" : [ "Interval<" ] - }, { - "r" : "366", - "s" : [ { - "value" : [ "Integer" ] - } ] - }, { - "value" : [ ">" ] - } ] - } ] - }, { - "value" : [ ")" ] + "value" : [ "Interval[", "null", ", ", "null", "]" ] } ] }, { - "r" : "378", + "r" : "369", "value" : [ " ", "overlaps", " " ] }, { - "r" : "375", + "r" : "366", "s" : [ { - "r" : "373", + "r" : "364", "value" : [ "Interval[", "6", ", ", "10", "]" ] } ] } ] @@ -140957,120 +140933,212 @@ module.exports['Overlaps'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "378", + "localId" : "369", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "379", + "localId" : "377", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "380", + "localId" : "378", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "381", + "localId" : "379", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "382", + "localId" : "380", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } } ], "operand" : [ { - "type" : "As", - "localId" : "359", - "strict" : false, + "type" : "Interval", + "localId" : "370", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "371", + "low" : { + "type" : "As", + "localId" : "372", + "asType" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "372", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] + "signature" : [ ], + "operand" : { + "type" : "Property", + "localId" : "371", + "path" : "low", + "annotation" : [ ], + "source" : { + "type" : "Interval", + "localId" : "361", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "362", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "363", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "359", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "360", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + } } }, - "signature" : [ ], - "operand" : { - "type" : "Interval", - "localId" : "362", - "lowClosed" : true, - "highClosed" : true, + "lowClosedExpression" : { + "type" : "Property", + "localId" : "373", + "path" : "lowClosed", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "363", + "source" : { + "type" : "Interval", + "localId" : "361", + "lowClosed" : true, + "highClosed" : true, "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "364", - "name" : "{urn:hl7-org:elm-types:r1}Any", + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "362", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "363", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "359", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "360", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", "annotation" : [ ] } - }, - "low" : { - "type" : "Null", - "localId" : "360", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", - "annotation" : [ ] - }, - "high" : { - "type" : "Null", - "localId" : "361", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", - "annotation" : [ ] } }, - "asTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "365", + "high" : { + "type" : "As", + "localId" : "375", + "asType" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "367", + "signature" : [ ], + "operand" : { + "type" : "Property", + "localId" : "374", + "path" : "high", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "368", - "name" : "{urn:hl7-org:elm-types:r1}Integer", + "source" : { + "type" : "Interval", + "localId" : "361", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "362", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "363", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "359", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "360", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + } + } + }, + "highClosedExpression" : { + "type" : "Property", + "localId" : "376", + "path" : "highClosed", + "annotation" : [ ], + "source" : { + "type" : "Interval", + "localId" : "361", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "362", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "363", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "359", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "360", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", "annotation" : [ ] } - }, - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "366", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "375", + "localId" : "366", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "376", + "localId" : "367", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "377", + "localId" : "368", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, "low" : { "type" : "Literal", - "localId" : "373", + "localId" : "364", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "6", @@ -141078,7 +141146,7 @@ module.exports['Overlaps'] = { }, "high" : { "type" : "Literal", - "localId" : "374", + "localId" : "365", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "10", @@ -141087,7 +141155,7 @@ module.exports['Overlaps'] = { } ] } }, { - "localId" : "385", + "localId" : "383", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsClosedNullIntervalRHS", "context" : "Patient", @@ -141096,49 +141164,25 @@ module.exports['Overlaps'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "385", + "r" : "383", "s" : [ { "value" : [ "", "define ", "OverlapsClosedNullIntervalRHS", ": " ] }, { - "r" : "405", + "r" : "394", "s" : [ { - "r" : "388", + "r" : "386", "s" : [ { - "r" : "386", + "r" : "384", "value" : [ "Interval[", "6", ", ", "10", "]" ] } ] }, { - "r" : "405", + "r" : "394", "value" : [ " ", "overlaps", " " ] }, { "r" : "391", "s" : [ { - "value" : [ "(" ] - }, { - "r" : "391", - "s" : [ { - "r" : "394", - "s" : [ { - "r" : "392", - "value" : [ "Interval[", "null", ", ", "null", "]" ] - } ] - }, { - "value" : [ " as " ] - }, { - "r" : "397", - "s" : [ { - "value" : [ "Interval<" ] - }, { - "r" : "398", - "s" : [ { - "value" : [ "Integer" ] - } ] - }, { - "value" : [ ">" ] - } ] - } ] - }, { - "value" : [ ")" ] + "r" : "389", + "value" : [ "Interval[", "null", ", ", "null", "]" ] } ] } ] } ] @@ -141146,50 +141190,50 @@ module.exports['Overlaps'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "405", + "localId" : "394", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "406", + "localId" : "402", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "407", + "localId" : "403", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "408", + "localId" : "404", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "409", + "localId" : "405", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } } ], "operand" : [ { "type" : "Interval", - "localId" : "388", + "localId" : "386", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "389", + "localId" : "387", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "390", + "localId" : "388", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, "low" : { "type" : "Literal", - "localId" : "386", + "localId" : "384", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "6", @@ -141197,86 +141241,178 @@ module.exports['Overlaps'] = { }, "high" : { "type" : "Literal", - "localId" : "387", + "localId" : "385", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "10", "annotation" : [ ] } }, { - "type" : "As", - "localId" : "391", - "strict" : false, + "type" : "Interval", + "localId" : "395", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "403", + "low" : { + "type" : "As", + "localId" : "397", + "asType" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "404", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] + "signature" : [ ], + "operand" : { + "type" : "Property", + "localId" : "396", + "path" : "low", + "annotation" : [ ], + "source" : { + "type" : "Interval", + "localId" : "391", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "392", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "393", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "389", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "390", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + } } }, - "signature" : [ ], - "operand" : { - "type" : "Interval", - "localId" : "394", - "lowClosed" : true, - "highClosed" : true, + "lowClosedExpression" : { + "type" : "Property", + "localId" : "398", + "path" : "lowClosed", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "395", + "source" : { + "type" : "Interval", + "localId" : "391", + "lowClosed" : true, + "highClosed" : true, "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "396", - "name" : "{urn:hl7-org:elm-types:r1}Any", + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "392", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "393", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "389", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "390", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", "annotation" : [ ] } - }, - "low" : { - "type" : "Null", - "localId" : "392", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", - "annotation" : [ ] - }, - "high" : { - "type" : "Null", - "localId" : "393", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", - "annotation" : [ ] } }, - "asTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "397", + "high" : { + "type" : "As", + "localId" : "400", + "asType" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", + "signature" : [ ], + "operand" : { + "type" : "Property", "localId" : "399", + "path" : "high", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "400", - "name" : "{urn:hl7-org:elm-types:r1}Integer", + "source" : { + "type" : "Interval", + "localId" : "391", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "392", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "393", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "389", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "390", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + } + } + }, + "highClosedExpression" : { + "type" : "Property", + "localId" : "401", + "path" : "highClosed", + "annotation" : [ ], + "source" : { + "type" : "Interval", + "localId" : "391", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "392", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "393", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "389", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "390", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", "annotation" : [ ] } - }, - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "398", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] } } } ] } }, { - "localId" : "412", + "localId" : "408", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsIsNull", "context" : "Patient", @@ -141285,35 +141421,35 @@ module.exports['Overlaps'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "412", + "r" : "408", "s" : [ { "value" : [ "", "define ", "OverlapsIsNull", ": " ] }, { - "r" : "428", + "r" : "424", "s" : [ { - "r" : "415", + "r" : "411", "s" : [ { - "r" : "413", + "r" : "409", "value" : [ "Interval[", "6", ", ", "10", "]" ] } ] }, { - "r" : "428", + "r" : "424", "value" : [ " ", "overlaps", " " ] }, { - "r" : "418", + "r" : "414", "s" : [ { "value" : [ "(" ] }, { - "r" : "418", + "r" : "414", "s" : [ { - "r" : "419", + "r" : "415", "value" : [ "null", " as " ] }, { - "r" : "420", + "r" : "416", "s" : [ { "value" : [ "Interval<" ] }, { - "r" : "421", + "r" : "417", "s" : [ { "value" : [ "Integer" ] } ] @@ -141330,50 +141466,50 @@ module.exports['Overlaps'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "428", + "localId" : "424", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "429", + "localId" : "425", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "430", + "localId" : "426", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "431", + "localId" : "427", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "432", + "localId" : "428", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } } ], "operand" : [ { "type" : "Interval", - "localId" : "415", + "localId" : "411", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "416", + "localId" : "412", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "417", + "localId" : "413", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, "low" : { "type" : "Literal", - "localId" : "413", + "localId" : "409", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "6", @@ -141381,7 +141517,7 @@ module.exports['Overlaps'] = { }, "high" : { "type" : "Literal", - "localId" : "414", + "localId" : "410", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "10", @@ -141389,16 +141525,16 @@ module.exports['Overlaps'] = { } }, { "type" : "As", - "localId" : "418", + "localId" : "414", "strict" : false, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "426", + "localId" : "422", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "427", + "localId" : "423", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } @@ -141406,28 +141542,28 @@ module.exports['Overlaps'] = { "signature" : [ ], "operand" : { "type" : "Null", - "localId" : "419", + "localId" : "415", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", "annotation" : [ ] }, "asTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "420", + "localId" : "416", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "422", + "localId" : "418", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "423", + "localId" : "419", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "421", + "localId" : "417", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] @@ -141461,8 +141597,8 @@ define NoOverlap: ivlC overlaps ivlD define NoImpreciseOverlap: ivlE overlaps ivlG define UnknownOverlap: ivlE overlaps ivlH define MatchingPrecisionOverlap: ivlF overlaps ivlG -define OverlapsClosedNullIntervalLHS: (Interval[null, null] as Interval) overlaps ivlA -define OverlapsClosedNullIntervalRHS: ivlA overlaps (Interval[null, null] as Interval) +define OverlapsClosedNullIntervalLHS: Interval[null, null] overlaps ivlA +define OverlapsClosedNullIntervalRHS: ivlA overlaps Interval[null, null] define PrecisionDateIvl: Interval[DateTime(2012, 3, 2, 12, 34, 56, 789), DateTime(2012, 9, 2, 1, 23, 45, 678)) // NOTE: There appears to be a bug in cql-to-elm that translates these 'overlaps' to 'OverlapsAfter'! define OverlapsBeforeDayOfIvlEdge: PrecisionDateIvl overlaps day of Interval[DateTime(2012, 9, 2, 23, 59, 59, 999), DateTime(2012, 10, 1, 0, 0, 0, 0)] @@ -141487,7 +141623,7 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1133", + "r" : "1129", "s" : [ { "value" : [ "", "library TestSnippet version '1'" ] } ] @@ -143904,42 +144040,18 @@ module.exports['OverlapsDateTime'] = { "s" : [ { "value" : [ "", "define ", "OverlapsClosedNullIntervalLHS", ": " ] }, { - "r" : "671", + "r" : "662", "s" : [ { - "r" : "654", + "r" : "656", "s" : [ { - "value" : [ "(" ] - }, { "r" : "654", - "s" : [ { - "r" : "657", - "s" : [ { - "r" : "655", - "value" : [ "Interval[", "null", ", ", "null", "]" ] - } ] - }, { - "value" : [ " as " ] - }, { - "r" : "660", - "s" : [ { - "value" : [ "Interval<" ] - }, { - "r" : "661", - "s" : [ { - "value" : [ "DateTime" ] - } ] - }, { - "value" : [ ">" ] - } ] - } ] - }, { - "value" : [ ")" ] + "value" : [ "Interval[", "null", ", ", "null", "]" ] } ] }, { - "r" : "671", + "r" : "662", "value" : [ " ", "overlaps", " " ] }, { - "r" : "668", + "r" : "659", "s" : [ { "value" : [ "ivlA" ] } ] @@ -143949,112 +144061,204 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "671", + "localId" : "662", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "672", + "localId" : "670", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "673", + "localId" : "671", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "674", + "localId" : "672", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "675", + "localId" : "673", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { - "type" : "As", - "localId" : "654", - "strict" : false, + "type" : "Interval", + "localId" : "663", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "666", + "low" : { + "type" : "As", + "localId" : "665", + "asType" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "667", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", - "annotation" : [ ] + "signature" : [ ], + "operand" : { + "type" : "Property", + "localId" : "664", + "path" : "low", + "annotation" : [ ], + "source" : { + "type" : "Interval", + "localId" : "656", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "657", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "658", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "654", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "655", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + } } }, - "signature" : [ ], - "operand" : { - "type" : "Interval", - "localId" : "657", - "lowClosed" : true, - "highClosed" : true, + "lowClosedExpression" : { + "type" : "Property", + "localId" : "666", + "path" : "lowClosed", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "658", + "source" : { + "type" : "Interval", + "localId" : "656", + "lowClosed" : true, + "highClosed" : true, "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "659", - "name" : "{urn:hl7-org:elm-types:r1}Any", + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "657", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "658", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "654", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "655", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", "annotation" : [ ] } - }, - "low" : { - "type" : "Null", - "localId" : "655", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", - "annotation" : [ ] - }, - "high" : { - "type" : "Null", - "localId" : "656", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", - "annotation" : [ ] } }, - "asTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "660", + "high" : { + "type" : "As", + "localId" : "668", + "asType" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "662", + "signature" : [ ], + "operand" : { + "type" : "Property", + "localId" : "667", + "path" : "high", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "663", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "source" : { + "type" : "Interval", + "localId" : "656", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "657", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "658", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "654", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "655", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + } + } + }, + "highClosedExpression" : { + "type" : "Property", + "localId" : "669", + "path" : "highClosed", + "annotation" : [ ], + "source" : { + "type" : "Interval", + "localId" : "656", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "657", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "658", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "654", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "655", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", "annotation" : [ ] } - }, - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "661", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", - "annotation" : [ ] } } }, { "type" : "ExpressionRef", - "localId" : "668", + "localId" : "659", "name" : "ivlA", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "669", + "localId" : "660", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "670", + "localId" : "661", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } @@ -144062,7 +144266,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "678", + "localId" : "676", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsClosedNullIntervalRHS", "context" : "Patient", @@ -144071,48 +144275,24 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "678", + "r" : "676", "s" : [ { "value" : [ "", "define ", "OverlapsClosedNullIntervalRHS", ": " ] }, { - "r" : "696", + "r" : "685", "s" : [ { - "r" : "679", + "r" : "677", "s" : [ { "value" : [ "ivlA" ] } ] }, { - "r" : "696", + "r" : "685", "value" : [ " ", "overlaps", " " ] }, { "r" : "682", "s" : [ { - "value" : [ "(" ] - }, { - "r" : "682", - "s" : [ { - "r" : "685", - "s" : [ { - "r" : "683", - "value" : [ "Interval[", "null", ", ", "null", "]" ] - } ] - }, { - "value" : [ " as " ] - }, { - "r" : "688", - "s" : [ { - "value" : [ "Interval<" ] - }, { - "r" : "689", - "s" : [ { - "value" : [ "DateTime" ] - } ] - }, { - "value" : [ ">" ] - } ] - } ] - }, { - "value" : [ ")" ] + "r" : "680", + "value" : [ "Interval[", "null", ", ", "null", "]" ] } ] } ] } ] @@ -144120,120 +144300,212 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "696", + "localId" : "685", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "697", + "localId" : "693", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "698", + "localId" : "694", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "699", + "localId" : "695", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "700", + "localId" : "696", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "679", + "localId" : "677", "name" : "ivlA", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "680", + "localId" : "678", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "681", + "localId" : "679", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { - "type" : "As", - "localId" : "682", - "strict" : false, + "type" : "Interval", + "localId" : "686", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "694", + "low" : { + "type" : "As", + "localId" : "688", + "asType" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "695", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", - "annotation" : [ ] + "signature" : [ ], + "operand" : { + "type" : "Property", + "localId" : "687", + "path" : "low", + "annotation" : [ ], + "source" : { + "type" : "Interval", + "localId" : "682", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "683", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "684", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "680", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "681", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + } + } + }, + "lowClosedExpression" : { + "type" : "Property", + "localId" : "689", + "path" : "lowClosed", + "annotation" : [ ], + "source" : { + "type" : "Interval", + "localId" : "682", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "683", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "684", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "680", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "681", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } } }, - "signature" : [ ], - "operand" : { - "type" : "Interval", - "localId" : "685", - "lowClosed" : true, - "highClosed" : true, + "high" : { + "type" : "As", + "localId" : "691", + "asType" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "686", + "signature" : [ ], + "operand" : { + "type" : "Property", + "localId" : "690", + "path" : "high", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "687", - "name" : "{urn:hl7-org:elm-types:r1}Any", - "annotation" : [ ] + "source" : { + "type" : "Interval", + "localId" : "682", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "683", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "684", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "680", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "681", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } } - }, - "low" : { - "type" : "Null", - "localId" : "683", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", - "annotation" : [ ] - }, - "high" : { - "type" : "Null", - "localId" : "684", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", - "annotation" : [ ] } }, - "asTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "688", + "highClosedExpression" : { + "type" : "Property", + "localId" : "692", + "path" : "highClosed", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "690", + "source" : { + "type" : "Interval", + "localId" : "682", + "lowClosed" : true, + "highClosed" : true, "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "691", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "683", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "684", + "name" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Null", + "localId" : "680", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "high" : { + "type" : "Null", + "localId" : "681", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", "annotation" : [ ] } - }, - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "689", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", - "annotation" : [ ] } } } ] } }, { - "localId" : "703", + "localId" : "699", "name" : "PrecisionDateIvl", "context" : "Patient", "accessLevel" : "Public", @@ -144241,25 +144513,25 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "703", + "r" : "699", "s" : [ { "value" : [ "", "define ", "PrecisionDateIvl", ": " ] }, { - "r" : "752", + "r" : "748", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "720", + "r" : "716", "s" : [ { - "r" : "704", + "r" : "700", "value" : [ "DateTime", "(", "2012", ", ", "3", ", ", "2", ", ", "12", ", ", "34", ", ", "56", ", ", "789", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "744", + "r" : "740", "s" : [ { - "r" : "728", + "r" : "724", "value" : [ "DateTime", "(", "2012", ", ", "9", ", ", "2", ", ", "1", ", ", "23", ", ", "45", ", ", "678", ")" ] } ] }, { @@ -144270,76 +144542,76 @@ module.exports['OverlapsDateTime'] = { } ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "755", + "localId" : "751", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "756", + "localId" : "752", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "expression" : { "type" : "Interval", - "localId" : "752", + "localId" : "748", "lowClosed" : true, "highClosed" : false, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "753", + "localId" : "749", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "754", + "localId" : "750", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "720", + "localId" : "716", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "721", + "localId" : "717", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "722", + "localId" : "718", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "723", + "localId" : "719", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "724", + "localId" : "720", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "725", + "localId" : "721", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "726", + "localId" : "722", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "727", + "localId" : "723", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "704", + "localId" : "700", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144347,7 +144619,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "705", + "localId" : "701", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "3", @@ -144355,7 +144627,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "706", + "localId" : "702", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -144363,7 +144635,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "707", + "localId" : "703", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "12", @@ -144371,7 +144643,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "708", + "localId" : "704", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "34", @@ -144379,7 +144651,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "709", + "localId" : "705", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "56", @@ -144387,7 +144659,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "710", + "localId" : "706", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "789", @@ -144396,48 +144668,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "744", + "localId" : "740", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "745", + "localId" : "741", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "746", + "localId" : "742", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "747", + "localId" : "743", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "748", + "localId" : "744", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "749", + "localId" : "745", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "750", + "localId" : "746", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "751", + "localId" : "747", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "728", + "localId" : "724", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144445,7 +144717,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "729", + "localId" : "725", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "9", @@ -144453,7 +144725,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "730", + "localId" : "726", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -144461,7 +144733,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "731", + "localId" : "727", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144469,7 +144741,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "732", + "localId" : "728", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "23", @@ -144477,7 +144749,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "733", + "localId" : "729", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "45", @@ -144485,7 +144757,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "734", + "localId" : "730", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "678", @@ -144494,7 +144766,7 @@ module.exports['OverlapsDateTime'] = { } } }, { - "localId" : "759", + "localId" : "755", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsBeforeDayOfIvlEdge", "context" : "Patient", @@ -144503,35 +144775,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "759", + "r" : "755", "s" : [ { "value" : [ "// NOTE: There appears to be a bug in cql-to-elm that translates these 'overlaps' to 'OverlapsAfter'!\n", "define ", "OverlapsBeforeDayOfIvlEdge", ": " ] }, { - "r" : "814", + "r" : "810", "s" : [ { - "r" : "760", + "r" : "756", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "814", + "r" : "810", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "811", + "r" : "807", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "779", + "r" : "775", "s" : [ { - "r" : "763", + "r" : "759", "value" : [ "DateTime", "(", "2012", ", ", "9", ", ", "2", ", ", "23", ", ", "59", ", ", "59", ", ", "999", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "803", + "r" : "799", "s" : [ { - "r" : "787", + "r" : "783", "value" : [ "DateTime", "(", "2012", ", ", "10", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -144543,108 +144815,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "814", + "localId" : "810", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "815", + "localId" : "811", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "816", + "localId" : "812", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "817", + "localId" : "813", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "818", + "localId" : "814", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "760", + "localId" : "756", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "761", + "localId" : "757", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "762", + "localId" : "758", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "811", + "localId" : "807", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "812", + "localId" : "808", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "813", + "localId" : "809", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "779", + "localId" : "775", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "780", + "localId" : "776", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "781", + "localId" : "777", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "782", + "localId" : "778", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "783", + "localId" : "779", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "784", + "localId" : "780", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "785", + "localId" : "781", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "786", + "localId" : "782", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "763", + "localId" : "759", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144652,7 +144924,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "764", + "localId" : "760", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "9", @@ -144660,7 +144932,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "765", + "localId" : "761", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -144668,7 +144940,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "766", + "localId" : "762", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "23", @@ -144676,7 +144948,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "767", + "localId" : "763", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "59", @@ -144684,7 +144956,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "768", + "localId" : "764", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "59", @@ -144692,7 +144964,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "769", + "localId" : "765", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "999", @@ -144701,48 +144973,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "803", + "localId" : "799", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "804", + "localId" : "800", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "805", + "localId" : "801", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "806", + "localId" : "802", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "807", + "localId" : "803", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "808", + "localId" : "804", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "809", + "localId" : "805", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "810", + "localId" : "806", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "787", + "localId" : "783", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144750,7 +145022,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "788", + "localId" : "784", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "10", @@ -144758,7 +145030,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "789", + "localId" : "785", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144766,7 +145038,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "790", + "localId" : "786", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144774,7 +145046,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "791", + "localId" : "787", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144782,7 +145054,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "792", + "localId" : "788", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144790,7 +145062,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "793", + "localId" : "789", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144800,7 +145072,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "821", + "localId" : "817", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsAfterDayOfIvlEdge", "context" : "Patient", @@ -144809,35 +145081,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "821", + "r" : "817", "s" : [ { "value" : [ "", "define ", "OverlapsAfterDayOfIvlEdge", ": " ] }, { - "r" : "876", + "r" : "872", "s" : [ { - "r" : "822", + "r" : "818", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "876", + "r" : "872", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "873", + "r" : "869", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "841", + "r" : "837", "s" : [ { - "r" : "825", + "r" : "821", "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "2", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "865", + "r" : "861", "s" : [ { - "r" : "849", + "r" : "845", "value" : [ "DateTime", "(", "2012", ", ", "3", ", ", "2", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -144849,108 +145121,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "876", + "localId" : "872", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "877", + "localId" : "873", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "878", + "localId" : "874", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "879", + "localId" : "875", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "880", + "localId" : "876", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "822", + "localId" : "818", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "823", + "localId" : "819", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "824", + "localId" : "820", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "873", + "localId" : "869", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "874", + "localId" : "870", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "875", + "localId" : "871", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "841", + "localId" : "837", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "842", + "localId" : "838", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "843", + "localId" : "839", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "844", + "localId" : "840", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "845", + "localId" : "841", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "846", + "localId" : "842", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "847", + "localId" : "843", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "848", + "localId" : "844", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "825", + "localId" : "821", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144958,7 +145230,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "826", + "localId" : "822", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144966,7 +145238,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "827", + "localId" : "823", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -144974,7 +145246,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "828", + "localId" : "824", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144982,7 +145254,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "829", + "localId" : "825", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144990,7 +145262,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "830", + "localId" : "826", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144998,7 +145270,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "831", + "localId" : "827", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145007,48 +145279,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "865", + "localId" : "861", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "866", + "localId" : "862", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "867", + "localId" : "863", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "868", + "localId" : "864", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "869", + "localId" : "865", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "870", + "localId" : "866", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "871", + "localId" : "867", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "872", + "localId" : "868", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "849", + "localId" : "845", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145056,7 +145328,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "850", + "localId" : "846", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "3", @@ -145064,7 +145336,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "851", + "localId" : "847", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -145072,7 +145344,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "852", + "localId" : "848", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145080,7 +145352,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "853", + "localId" : "849", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145088,7 +145360,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "854", + "localId" : "850", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145096,7 +145368,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "855", + "localId" : "851", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145106,7 +145378,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "883", + "localId" : "879", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsContainsDayOfIvl", "context" : "Patient", @@ -145115,35 +145387,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "883", + "r" : "879", "s" : [ { "value" : [ "", "define ", "OverlapsContainsDayOfIvl", ": " ] }, { - "r" : "938", + "r" : "934", "s" : [ { - "r" : "884", + "r" : "880", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "938", + "r" : "934", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "935", + "r" : "931", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "903", + "r" : "899", "s" : [ { - "r" : "887", + "r" : "883", "value" : [ "DateTime", "(", "2012", ", ", "5", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "927", + "r" : "923", "s" : [ { - "r" : "911", + "r" : "907", "value" : [ "DateTime", "(", "2012", ", ", "6", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -145155,108 +145427,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "938", + "localId" : "934", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "939", + "localId" : "935", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "940", + "localId" : "936", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "941", + "localId" : "937", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "942", + "localId" : "938", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "884", + "localId" : "880", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "885", + "localId" : "881", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "886", + "localId" : "882", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "935", + "localId" : "931", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "936", + "localId" : "932", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "937", + "localId" : "933", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "903", + "localId" : "899", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "904", + "localId" : "900", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "905", + "localId" : "901", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "906", + "localId" : "902", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "907", + "localId" : "903", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "908", + "localId" : "904", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "909", + "localId" : "905", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "910", + "localId" : "906", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "887", + "localId" : "883", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145264,7 +145536,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "888", + "localId" : "884", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "5", @@ -145272,7 +145544,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "889", + "localId" : "885", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145280,7 +145552,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "890", + "localId" : "886", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145288,7 +145560,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "891", + "localId" : "887", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145296,7 +145568,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "892", + "localId" : "888", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145304,7 +145576,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "893", + "localId" : "889", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145313,48 +145585,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "927", + "localId" : "923", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "928", + "localId" : "924", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "929", + "localId" : "925", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "930", + "localId" : "926", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "931", + "localId" : "927", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "932", + "localId" : "928", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "933", + "localId" : "929", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "934", + "localId" : "930", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "911", + "localId" : "907", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145362,7 +145634,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "912", + "localId" : "908", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "6", @@ -145370,7 +145642,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "913", + "localId" : "909", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145378,7 +145650,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "914", + "localId" : "910", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145386,7 +145658,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "915", + "localId" : "911", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145394,7 +145666,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "916", + "localId" : "912", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145402,7 +145674,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "917", + "localId" : "913", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145412,7 +145684,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "945", + "localId" : "941", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsContainedByDayOfIvl", "context" : "Patient", @@ -145421,35 +145693,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "945", + "r" : "941", "s" : [ { "value" : [ "", "define ", "OverlapsContainedByDayOfIvl", ": " ] }, { - "r" : "1000", + "r" : "996", "s" : [ { - "r" : "946", + "r" : "942", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1000", + "r" : "996", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "997", + "r" : "993", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "965", + "r" : "961", "s" : [ { - "r" : "949", + "r" : "945", "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "989", + "r" : "985", "s" : [ { - "r" : "973", + "r" : "969", "value" : [ "DateTime", "(", "2012", ", ", "12", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -145461,108 +145733,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1000", + "localId" : "996", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1001", + "localId" : "997", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1002", + "localId" : "998", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1003", + "localId" : "999", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1004", + "localId" : "1000", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "946", + "localId" : "942", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "947", + "localId" : "943", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "948", + "localId" : "944", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "997", + "localId" : "993", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "998", + "localId" : "994", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "999", + "localId" : "995", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "965", + "localId" : "961", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "966", + "localId" : "962", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "967", + "localId" : "963", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "968", + "localId" : "964", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "969", + "localId" : "965", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "970", + "localId" : "966", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "971", + "localId" : "967", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "972", + "localId" : "968", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "949", + "localId" : "945", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145570,7 +145842,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "950", + "localId" : "946", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145578,7 +145850,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "951", + "localId" : "947", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145586,7 +145858,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "952", + "localId" : "948", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145594,7 +145866,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "953", + "localId" : "949", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145602,7 +145874,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "954", + "localId" : "950", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145610,7 +145882,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "955", + "localId" : "951", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145619,48 +145891,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "989", + "localId" : "985", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "990", + "localId" : "986", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "991", + "localId" : "987", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "992", + "localId" : "988", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "993", + "localId" : "989", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "994", + "localId" : "990", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "995", + "localId" : "991", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "996", + "localId" : "992", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "973", + "localId" : "969", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145668,7 +145940,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "974", + "localId" : "970", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "12", @@ -145676,7 +145948,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "975", + "localId" : "971", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145684,7 +145956,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "976", + "localId" : "972", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145692,7 +145964,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "977", + "localId" : "973", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145700,7 +145972,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "978", + "localId" : "974", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145708,7 +145980,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "979", + "localId" : "975", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145718,7 +145990,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "1007", + "localId" : "1003", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "NotOverlapsDayOfIvl", "context" : "Patient", @@ -145727,35 +145999,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1007", + "r" : "1003", "s" : [ { "value" : [ "", "define ", "NotOverlapsDayOfIvl", ": " ] }, { - "r" : "1062", + "r" : "1058", "s" : [ { - "r" : "1008", + "r" : "1004", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1062", + "r" : "1058", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1059", + "r" : "1055", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "1027", + "r" : "1023", "s" : [ { - "r" : "1011", + "r" : "1007", "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "2", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1051", + "r" : "1047", "s" : [ { - "r" : "1035", + "r" : "1031", "value" : [ "DateTime", "(", "2012", ", ", "3", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -145767,108 +146039,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1062", + "localId" : "1058", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1063", + "localId" : "1059", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1064", + "localId" : "1060", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1065", + "localId" : "1061", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1066", + "localId" : "1062", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "1008", + "localId" : "1004", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1009", + "localId" : "1005", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1010", + "localId" : "1006", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1059", + "localId" : "1055", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1060", + "localId" : "1056", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1061", + "localId" : "1057", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "1027", + "localId" : "1023", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1028", + "localId" : "1024", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1029", + "localId" : "1025", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1030", + "localId" : "1026", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1031", + "localId" : "1027", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1032", + "localId" : "1028", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1033", + "localId" : "1029", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1034", + "localId" : "1030", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1011", + "localId" : "1007", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145876,7 +146148,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1012", + "localId" : "1008", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145884,7 +146156,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "1013", + "localId" : "1009", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -145892,7 +146164,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "1014", + "localId" : "1010", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145900,7 +146172,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "1015", + "localId" : "1011", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145908,7 +146180,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "1016", + "localId" : "1012", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145916,7 +146188,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "1017", + "localId" : "1013", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145925,48 +146197,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1051", + "localId" : "1047", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1052", + "localId" : "1048", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1053", + "localId" : "1049", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1054", + "localId" : "1050", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1055", + "localId" : "1051", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1056", + "localId" : "1052", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1057", + "localId" : "1053", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1058", + "localId" : "1054", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1035", + "localId" : "1031", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145974,7 +146246,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1036", + "localId" : "1032", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "3", @@ -145982,7 +146254,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "1037", + "localId" : "1033", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145990,7 +146262,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "1038", + "localId" : "1034", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145998,7 +146270,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "1039", + "localId" : "1035", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -146006,7 +146278,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "1040", + "localId" : "1036", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -146014,7 +146286,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "1041", + "localId" : "1037", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -146024,7 +146296,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "1069", + "localId" : "1065", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsAfterDayOfImpreciseInterval", "context" : "Patient", @@ -146033,35 +146305,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1069", + "r" : "1065", "s" : [ { "value" : [ "", "define ", "OverlapsAfterDayOfImpreciseInterval", ": " ] }, { - "r" : "1094", + "r" : "1090", "s" : [ { - "r" : "1070", + "r" : "1066", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1094", + "r" : "1090", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1091", + "r" : "1087", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "1079", + "r" : "1075", "s" : [ { - "r" : "1073", + "r" : "1069", "value" : [ "DateTime", "(", "2012", ", ", "1", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1088", + "r" : "1084", "s" : [ { - "r" : "1082", + "r" : "1078", "value" : [ "DateTime", "(", "2012", ", ", "4", ")" ] } ] }, { @@ -146073,83 +146345,83 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1094", + "localId" : "1090", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1095", + "localId" : "1091", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1096", + "localId" : "1092", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1097", + "localId" : "1093", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1098", + "localId" : "1094", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "1070", + "localId" : "1066", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1071", + "localId" : "1067", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1072", + "localId" : "1068", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1091", + "localId" : "1087", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1092", + "localId" : "1088", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1093", + "localId" : "1089", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "1079", + "localId" : "1075", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1080", + "localId" : "1076", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1081", + "localId" : "1077", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1073", + "localId" : "1069", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -146157,7 +146429,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1074", + "localId" : "1070", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -146166,23 +146438,23 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1088", + "localId" : "1084", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1089", + "localId" : "1085", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1090", + "localId" : "1086", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1082", + "localId" : "1078", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -146190,7 +146462,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1083", + "localId" : "1079", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "4", @@ -146200,7 +146472,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "1101", + "localId" : "1097", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "MayOverlapBeforeDayOfImpreciseIvl", "context" : "Patient", @@ -146209,35 +146481,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1101", + "r" : "1097", "s" : [ { "value" : [ "", "define ", "MayOverlapBeforeDayOfImpreciseIvl", ": " ] }, { - "r" : "1126", + "r" : "1122", "s" : [ { - "r" : "1102", + "r" : "1098", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1126", + "r" : "1122", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1123", + "r" : "1119", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "1111", + "r" : "1107", "s" : [ { - "r" : "1105", + "r" : "1101", "value" : [ "DateTime", "(", "2012", ", ", "9", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1120", + "r" : "1116", "s" : [ { - "r" : "1114", + "r" : "1110", "value" : [ "DateTime", "(", "2012", ", ", "10", ")" ] } ] }, { @@ -146249,83 +146521,83 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1126", + "localId" : "1122", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1127", + "localId" : "1123", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1128", + "localId" : "1124", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1129", + "localId" : "1125", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1130", + "localId" : "1126", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "1102", + "localId" : "1098", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1103", + "localId" : "1099", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1104", + "localId" : "1100", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1123", + "localId" : "1119", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1124", + "localId" : "1120", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1125", + "localId" : "1121", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "1111", + "localId" : "1107", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1112", + "localId" : "1108", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1113", + "localId" : "1109", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1105", + "localId" : "1101", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -146333,7 +146605,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1106", + "localId" : "1102", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "9", @@ -146342,23 +146614,23 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1120", + "localId" : "1116", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1121", + "localId" : "1117", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1122", + "localId" : "1118", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1114", + "localId" : "1110", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -146366,7 +146638,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1115", + "localId" : "1111", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "10", @@ -146376,7 +146648,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "1133", + "localId" : "1129", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "MayOverlapAfterDayOfImpreciseIvl", "context" : "Patient", @@ -146385,35 +146657,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1133", + "r" : "1129", "s" : [ { "value" : [ "", "define ", "MayOverlapAfterDayOfImpreciseIvl", ": " ] }, { - "r" : "1158", + "r" : "1154", "s" : [ { - "r" : "1134", + "r" : "1130", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1158", + "r" : "1154", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1155", + "r" : "1151", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "1143", + "r" : "1139", "s" : [ { - "r" : "1137", + "r" : "1133", "value" : [ "DateTime", "(", "2012", ", ", "1", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1152", + "r" : "1148", "s" : [ { - "r" : "1146", + "r" : "1142", "value" : [ "DateTime", "(", "2012", ", ", "3", ")" ] } ] }, { @@ -146425,83 +146697,83 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1158", + "localId" : "1154", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1159", + "localId" : "1155", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1160", + "localId" : "1156", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1161", + "localId" : "1157", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1162", + "localId" : "1158", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "1134", + "localId" : "1130", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1135", + "localId" : "1131", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1136", + "localId" : "1132", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1155", + "localId" : "1151", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1156", + "localId" : "1152", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1157", + "localId" : "1153", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "1143", + "localId" : "1139", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1144", + "localId" : "1140", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1145", + "localId" : "1141", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1137", + "localId" : "1133", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -146509,7 +146781,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1138", + "localId" : "1134", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -146518,23 +146790,23 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1152", + "localId" : "1148", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1153", + "localId" : "1149", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1154", + "localId" : "1150", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1146", + "localId" : "1142", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -146542,7 +146814,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1147", + "localId" : "1143", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "3",