diff --git a/examples/browser/cql4browsers.js b/examples/browser/cql4browsers.js index 5b803f89..16ae36a5 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 180278d7..0de15f99 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 4ab843a2..36ed401c 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 d2bf7c59..9394d349 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 c62bfb76..7ece16f4 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] overlaps Interval[6, 10] +define OverlapsClosedNullIntervalRHS: Interval[6, 10] overlaps Interval[null, null] 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] 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 67228ef6..72a2e14e 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] overlaps Interval[6, 10] +define OverlapsClosedNullIntervalRHS: Interval[6, 10] overlaps Interval[null, null] define OverlapsIsNull: Interval[6, 10] overlaps (null as Interval) */ @@ -139799,7 +139801,7 @@ module.exports['Overlaps'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "358", + "r" : "408", "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,42 +140909,23 @@ module.exports['Overlaps'] = { "s" : { "r" : "358", "s" : [ { - "value" : [ "", "define ", "OverlapsIsNull", ": " ] + "value" : [ "", "define ", "OverlapsClosedNullIntervalLHS", ": " ] }, { - "r" : "374", + "r" : "369", "s" : [ { "r" : "361", "s" : [ { "r" : "359", - "value" : [ "Interval[", "6", ", ", "10", "]" ] + "value" : [ "Interval[", "null", ", ", "null", "]" ] } ] }, { - "r" : "374", + "r" : "369", "value" : [ " ", "overlaps", " " ] }, { - "r" : "364", + "r" : "366", "s" : [ { - "value" : [ "(" ] - }, { "r" : "364", - "s" : [ { - "r" : "365", - "value" : [ "null", " as " ] - }, { - "r" : "366", - "s" : [ { - "value" : [ "Interval<" ] - }, { - "r" : "367", - "s" : [ { - "value" : [ "Integer" ] - } ] - }, { - "value" : [ ">" ] - } ] - } ] - }, { - "value" : [ ")" ] + "value" : [ "Interval[", "6", ", ", "10", "]" ] } ] } ] } ] @@ -140950,50 +140933,212 @@ module.exports['Overlaps'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "374", + "localId" : "369", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "375", + "localId" : "377", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "376", + "localId" : "378", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "377", + "localId" : "379", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "378", + "localId" : "380", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } } ], "operand" : [ { "type" : "Interval", - "localId" : "361", + "localId" : "370", + "annotation" : [ ], + "low" : { + "type" : "As", + "localId" : "372", + "asType" : "{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" : [ ] + } + } + } + }, + "lowClosedExpression" : { + "type" : "Property", + "localId" : "373", + "path" : "lowClosed", + "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" : [ ] + } + } + }, + "high" : { + "type" : "As", + "localId" : "375", + "asType" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ], + "signature" : [ ], + "operand" : { + "type" : "Property", + "localId" : "374", + "path" : "high", + "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" : [ ] + } + } + } + }, + "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" : [ ] + } + } + } + }, { + "type" : "Interval", + "localId" : "366", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "362", + "localId" : "367", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "363", + "localId" : "368", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } }, "low" : { "type" : "Literal", - "localId" : "359", + "localId" : "364", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "6", @@ -141001,68 +141146,439 @@ module.exports['Overlaps'] = { }, "high" : { "type" : "Literal", - "localId" : "360", + "localId" : "365", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "10", "annotation" : [ ] } - }, { - "type" : "As", - "localId" : "364", - "strict" : false, - "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "372", - "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "373", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - } - }, - "signature" : [ ], - "operand" : { - "type" : "Null", - "localId" : "365", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", - "annotation" : [ ] - }, - "asTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "366", - "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "368", - "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "369", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - } - }, - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "367", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - } - } } ] } - } ] - } - } -} - -/* OverlapsDateTime -library TestSnippet version '1' -using Simple version '1.0.0' + }, { + "localId" : "383", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "name" : "OverlapsClosedNullIntervalRHS", + "context" : "Patient", + "accessLevel" : "Public", + "annotation" : [ { + "type" : "Annotation", + "t" : [ ], + "s" : { + "r" : "383", + "s" : [ { + "value" : [ "", "define ", "OverlapsClosedNullIntervalRHS", ": " ] + }, { + "r" : "394", + "s" : [ { + "r" : "386", + "s" : [ { + "r" : "384", + "value" : [ "Interval[", "6", ", ", "10", "]" ] + } ] + }, { + "r" : "394", + "value" : [ " ", "overlaps", " " ] + }, { + "r" : "391", + "s" : [ { + "r" : "389", + "value" : [ "Interval[", "null", ", ", "null", "]" ] + } ] + } ] + } ] + } + } ], + "expression" : { + "type" : "Overlaps", + "localId" : "394", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "annotation" : [ ], + "signature" : [ { + "type" : "IntervalTypeSpecifier", + "localId" : "402", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "403", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, { + "type" : "IntervalTypeSpecifier", + "localId" : "404", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "405", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + } ], + "operand" : [ { + "type" : "Interval", + "localId" : "386", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "387", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "388", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Literal", + "localId" : "384", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "6", + "annotation" : [ ] + }, + "high" : { + "type" : "Literal", + "localId" : "385", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "10", + "annotation" : [ ] + } + }, { + "type" : "Interval", + "localId" : "395", + "annotation" : [ ], + "low" : { + "type" : "As", + "localId" : "397", + "asType" : "{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" : [ ] + } + } + } + }, + "lowClosedExpression" : { + "type" : "Property", + "localId" : "398", + "path" : "lowClosed", + "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" : [ ] + } + } + }, + "high" : { + "type" : "As", + "localId" : "400", + "asType" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ], + "signature" : [ ], + "operand" : { + "type" : "Property", + "localId" : "399", + "path" : "high", + "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" : [ ] + } + } + } + }, + "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" : [ ] + } + } + } + } ] + } + }, { + "localId" : "408", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "name" : "OverlapsIsNull", + "context" : "Patient", + "accessLevel" : "Public", + "annotation" : [ { + "type" : "Annotation", + "t" : [ ], + "s" : { + "r" : "408", + "s" : [ { + "value" : [ "", "define ", "OverlapsIsNull", ": " ] + }, { + "r" : "424", + "s" : [ { + "r" : "411", + "s" : [ { + "r" : "409", + "value" : [ "Interval[", "6", ", ", "10", "]" ] + } ] + }, { + "r" : "424", + "value" : [ " ", "overlaps", " " ] + }, { + "r" : "414", + "s" : [ { + "value" : [ "(" ] + }, { + "r" : "414", + "s" : [ { + "r" : "415", + "value" : [ "null", " as " ] + }, { + "r" : "416", + "s" : [ { + "value" : [ "Interval<" ] + }, { + "r" : "417", + "s" : [ { + "value" : [ "Integer" ] + } ] + }, { + "value" : [ ">" ] + } ] + } ] + }, { + "value" : [ ")" ] + } ] + } ] + } ] + } + } ], + "expression" : { + "type" : "Overlaps", + "localId" : "424", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "annotation" : [ ], + "signature" : [ { + "type" : "IntervalTypeSpecifier", + "localId" : "425", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "426", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, { + "type" : "IntervalTypeSpecifier", + "localId" : "427", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "428", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + } ], + "operand" : [ { + "type" : "Interval", + "localId" : "411", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "412", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "413", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, + "low" : { + "type" : "Literal", + "localId" : "409", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "6", + "annotation" : [ ] + }, + "high" : { + "type" : "Literal", + "localId" : "410", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "10", + "annotation" : [ ] + } + }, { + "type" : "As", + "localId" : "414", + "strict" : false, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "422", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "423", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, + "signature" : [ ], + "operand" : { + "type" : "Null", + "localId" : "415", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Any", + "annotation" : [ ] + }, + "asTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "416", + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "418", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "419", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + }, + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "417", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } + } + } ] + } + } ] + } + } +} + +/* OverlapsDateTime +library TestSnippet version '1' +using Simple version '1.0.0' context Patient define ivlA: Interval[DateTime(2012, 1, 1, 0, 0, 0, 0), DateTime(2012, 6, 1, 0, 0, 0, 0)) define ivlB: Interval[DateTime(2012, 3, 1, 0, 0, 0, 0), DateTime(2012, 9, 1, 0, 0, 0, 0)) @@ -141081,6 +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] 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)] @@ -141105,7 +141623,7 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1083", + "r" : "1129", "s" : [ { "value" : [ "", "library TestSnippet version '1'" ] } ] @@ -141145,67 +141663,328 @@ module.exports['OverlapsDateTime'] = { "value" : [ " version '1.0.0'" ] } ] } - } ] - } ] - }, - "contexts" : { - "def" : [ { - "localId" : "211", - "name" : "Patient", - "annotation" : [ ] - } ] - }, - "statements" : { - "def" : [ { - "localId" : "209", - "name" : "Patient", - "context" : "Patient", - "annotation" : [ ], + } ] + } ] + }, + "contexts" : { + "def" : [ { + "localId" : "211", + "name" : "Patient", + "annotation" : [ ] + } ] + }, + "statements" : { + "def" : [ { + "localId" : "209", + "name" : "Patient", + "context" : "Patient", + "annotation" : [ ], + "expression" : { + "type" : "SingletonFrom", + "localId" : "210", + "annotation" : [ ], + "signature" : [ ], + "operand" : { + "type" : "Retrieve", + "localId" : "208", + "dataType" : "{https://github.com/cqframework/cql-execution/simple}Patient", + "annotation" : [ ], + "include" : [ ], + "codeFilter" : [ ], + "dateFilter" : [ ], + "otherFilter" : [ ] + } + } + }, { + "localId" : "214", + "name" : "ivlA", + "context" : "Patient", + "accessLevel" : "Public", + "annotation" : [ { + "type" : "Annotation", + "t" : [ ], + "s" : { + "r" : "214", + "s" : [ { + "value" : [ "", "define ", "ivlA", ": " ] + }, { + "r" : "263", + "s" : [ { + "value" : [ "Interval[" ] + }, { + "r" : "231", + "s" : [ { + "r" : "215", + "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] + } ] + }, { + "value" : [ ", " ] + }, { + "r" : "255", + "s" : [ { + "r" : "239", + "value" : [ "DateTime", "(", "2012", ", ", "6", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] + } ] + }, { + "value" : [ ")" ] + } ] + } ] + } + } ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "266", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "267", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + }, "expression" : { - "type" : "SingletonFrom", - "localId" : "210", + "type" : "Interval", + "localId" : "263", + "lowClosed" : true, + "highClosed" : false, "annotation" : [ ], - "signature" : [ ], - "operand" : { - "type" : "Retrieve", - "localId" : "208", - "dataType" : "{https://github.com/cqframework/cql-execution/simple}Patient", + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "264", "annotation" : [ ], - "include" : [ ], - "codeFilter" : [ ], - "dateFilter" : [ ], - "otherFilter" : [ ] + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "265", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + }, + "low" : { + "type" : "DateTime", + "localId" : "231", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ], + "signature" : [ { + "type" : "NamedTypeSpecifier", + "localId" : "232", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "233", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "234", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "235", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "236", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "237", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "238", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } ], + "year" : { + "type" : "Literal", + "localId" : "215", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "2012", + "annotation" : [ ] + }, + "month" : { + "type" : "Literal", + "localId" : "216", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "1", + "annotation" : [ ] + }, + "day" : { + "type" : "Literal", + "localId" : "217", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "1", + "annotation" : [ ] + }, + "hour" : { + "type" : "Literal", + "localId" : "218", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "0", + "annotation" : [ ] + }, + "minute" : { + "type" : "Literal", + "localId" : "219", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "0", + "annotation" : [ ] + }, + "second" : { + "type" : "Literal", + "localId" : "220", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "0", + "annotation" : [ ] + }, + "millisecond" : { + "type" : "Literal", + "localId" : "221", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "0", + "annotation" : [ ] + } + }, + "high" : { + "type" : "DateTime", + "localId" : "255", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ], + "signature" : [ { + "type" : "NamedTypeSpecifier", + "localId" : "256", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "257", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "258", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "259", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "260", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "261", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "262", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + } ], + "year" : { + "type" : "Literal", + "localId" : "239", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "2012", + "annotation" : [ ] + }, + "month" : { + "type" : "Literal", + "localId" : "240", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "6", + "annotation" : [ ] + }, + "day" : { + "type" : "Literal", + "localId" : "241", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "1", + "annotation" : [ ] + }, + "hour" : { + "type" : "Literal", + "localId" : "242", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "0", + "annotation" : [ ] + }, + "minute" : { + "type" : "Literal", + "localId" : "243", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "0", + "annotation" : [ ] + }, + "second" : { + "type" : "Literal", + "localId" : "244", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "0", + "annotation" : [ ] + }, + "millisecond" : { + "type" : "Literal", + "localId" : "245", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "0", + "annotation" : [ ] + } } } }, { - "localId" : "214", - "name" : "ivlA", + "localId" : "270", + "name" : "ivlB", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "214", + "r" : "270", "s" : [ { - "value" : [ "", "define ", "ivlA", ": " ] + "value" : [ "", "define ", "ivlB", ": " ] }, { - "r" : "263", + "r" : "319", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "231", + "r" : "287", "s" : [ { - "r" : "215", - "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] + "r" : "271", + "value" : [ "DateTime", "(", "2012", ", ", "3", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "255", + "r" : "311", "s" : [ { - "r" : "239", - "value" : [ "DateTime", "(", "2012", ", ", "6", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] + "r" : "295", + "value" : [ "DateTime", "(", "2012", ", ", "9", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ")" ] @@ -141215,76 +141994,76 @@ module.exports['OverlapsDateTime'] = { } ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "266", + "localId" : "322", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "267", + "localId" : "323", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "expression" : { "type" : "Interval", - "localId" : "263", + "localId" : "319", "lowClosed" : true, "highClosed" : false, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "264", + "localId" : "320", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "265", + "localId" : "321", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "231", + "localId" : "287", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "232", + "localId" : "288", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "233", + "localId" : "289", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "234", + "localId" : "290", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "235", + "localId" : "291", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "236", + "localId" : "292", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "237", + "localId" : "293", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "238", + "localId" : "294", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "215", + "localId" : "271", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -141292,15 +142071,15 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "216", + "localId" : "272", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "1", + "value" : "3", "annotation" : [ ] }, "day" : { "type" : "Literal", - "localId" : "217", + "localId" : "273", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -141308,7 +142087,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "218", + "localId" : "274", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141316,7 +142095,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "219", + "localId" : "275", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141324,7 +142103,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "220", + "localId" : "276", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141332,7 +142111,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "221", + "localId" : "277", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141341,48 +142120,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "255", + "localId" : "311", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "256", + "localId" : "312", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "257", + "localId" : "313", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "258", + "localId" : "314", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "259", + "localId" : "315", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "260", + "localId" : "316", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "261", + "localId" : "317", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "262", + "localId" : "318", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "239", + "localId" : "295", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -141390,15 +142169,15 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "240", + "localId" : "296", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "6", + "value" : "9", "annotation" : [ ] }, "day" : { "type" : "Literal", - "localId" : "241", + "localId" : "297", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -141406,7 +142185,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "242", + "localId" : "298", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141414,7 +142193,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "243", + "localId" : "299", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141422,7 +142201,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "244", + "localId" : "300", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141430,7 +142209,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "245", + "localId" : "301", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141439,34 +142218,34 @@ module.exports['OverlapsDateTime'] = { } } }, { - "localId" : "270", - "name" : "ivlB", + "localId" : "326", + "name" : "ivlC", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "270", + "r" : "326", "s" : [ { - "value" : [ "", "define ", "ivlB", ": " ] + "value" : [ "", "define ", "ivlC", ": " ] }, { - "r" : "319", + "r" : "375", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "287", + "r" : "343", "s" : [ { - "r" : "271", - "value" : [ "DateTime", "(", "2012", ", ", "3", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] + "r" : "327", + "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "311", + "r" : "367", "s" : [ { - "r" : "295", - "value" : [ "DateTime", "(", "2012", ", ", "9", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] + "r" : "351", + "value" : [ "DateTime", "(", "2013", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ")" ] @@ -141476,76 +142255,76 @@ module.exports['OverlapsDateTime'] = { } ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "322", + "localId" : "378", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "323", + "localId" : "379", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "expression" : { "type" : "Interval", - "localId" : "319", + "localId" : "375", "lowClosed" : true, "highClosed" : false, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "320", + "localId" : "376", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "321", + "localId" : "377", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "287", + "localId" : "343", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "288", + "localId" : "344", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "289", + "localId" : "345", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "290", + "localId" : "346", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "291", + "localId" : "347", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "292", + "localId" : "348", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "293", + "localId" : "349", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "294", + "localId" : "350", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "271", + "localId" : "327", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -141553,15 +142332,15 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "272", + "localId" : "328", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "3", + "value" : "1", "annotation" : [ ] }, "day" : { "type" : "Literal", - "localId" : "273", + "localId" : "329", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -141569,7 +142348,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "274", + "localId" : "330", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141577,7 +142356,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "275", + "localId" : "331", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141585,7 +142364,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "276", + "localId" : "332", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141593,7 +142372,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "277", + "localId" : "333", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141602,64 +142381,64 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "311", + "localId" : "367", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "312", + "localId" : "368", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "313", + "localId" : "369", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "314", + "localId" : "370", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "315", + "localId" : "371", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "316", + "localId" : "372", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "317", + "localId" : "373", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "318", + "localId" : "374", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "295", + "localId" : "351", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2012", + "value" : "2013", "annotation" : [ ] }, "month" : { "type" : "Literal", - "localId" : "296", + "localId" : "352", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "9", + "value" : "1", "annotation" : [ ] }, "day" : { "type" : "Literal", - "localId" : "297", + "localId" : "353", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -141667,7 +142446,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "298", + "localId" : "354", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141675,7 +142454,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "299", + "localId" : "355", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141683,7 +142462,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "300", + "localId" : "356", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141691,7 +142470,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "301", + "localId" : "357", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141700,34 +142479,34 @@ module.exports['OverlapsDateTime'] = { } } }, { - "localId" : "326", - "name" : "ivlC", + "localId" : "382", + "name" : "ivlD", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "326", + "r" : "382", "s" : [ { - "value" : [ "", "define ", "ivlC", ": " ] + "value" : [ "", "define ", "ivlD", ": " ] }, { - "r" : "375", + "r" : "431", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "343", + "r" : "399", "s" : [ { - "r" : "327", - "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] + "r" : "383", + "value" : [ "DateTime", "(", "2013", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "367", + "r" : "423", "s" : [ { - "r" : "351", - "value" : [ "DateTime", "(", "2013", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] + "r" : "407", + "value" : [ "DateTime", "(", "2014", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ")" ] @@ -141737,84 +142516,84 @@ module.exports['OverlapsDateTime'] = { } ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "378", + "localId" : "434", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "379", + "localId" : "435", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "expression" : { "type" : "Interval", - "localId" : "375", + "localId" : "431", "lowClosed" : true, "highClosed" : false, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "376", + "localId" : "432", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "377", + "localId" : "433", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "343", + "localId" : "399", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "344", + "localId" : "400", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "345", + "localId" : "401", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "346", + "localId" : "402", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "347", + "localId" : "403", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "348", + "localId" : "404", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "349", + "localId" : "405", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "350", + "localId" : "406", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "327", + "localId" : "383", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2012", + "value" : "2013", "annotation" : [ ] }, "month" : { "type" : "Literal", - "localId" : "328", + "localId" : "384", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -141822,7 +142601,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "329", + "localId" : "385", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -141830,7 +142609,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "330", + "localId" : "386", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141838,7 +142617,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "331", + "localId" : "387", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141846,7 +142625,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "332", + "localId" : "388", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141854,7 +142633,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "333", + "localId" : "389", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141863,56 +142642,56 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "367", + "localId" : "423", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "368", + "localId" : "424", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "369", + "localId" : "425", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "370", + "localId" : "426", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "371", + "localId" : "427", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "372", + "localId" : "428", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "373", + "localId" : "429", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "374", + "localId" : "430", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "351", + "localId" : "407", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2013", + "value" : "2014", "annotation" : [ ] }, "month" : { "type" : "Literal", - "localId" : "352", + "localId" : "408", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -141920,7 +142699,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "353", + "localId" : "409", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -141928,7 +142707,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "354", + "localId" : "410", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141936,7 +142715,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "355", + "localId" : "411", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141944,7 +142723,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "356", + "localId" : "412", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141952,7 +142731,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "357", + "localId" : "413", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -141961,295 +142740,349 @@ module.exports['OverlapsDateTime'] = { } } }, { - "localId" : "382", - "name" : "ivlD", + "localId" : "438", + "name" : "ivlE", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "382", + "r" : "438", "s" : [ { - "value" : [ "", "define ", "ivlD", ": " ] + "value" : [ "", "define ", "ivlE", ": " ] }, { - "r" : "431", + "r" : "451", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "399", + "r" : "443", "s" : [ { - "r" : "383", - "value" : [ "DateTime", "(", "2013", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] + "r" : "439", + "value" : [ "DateTime", "(", "2013", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "423", + "r" : "449", "s" : [ { - "r" : "407", - "value" : [ "DateTime", "(", "2014", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] + "r" : "445", + "value" : [ "DateTime", "(", "2015", ")" ] } ] }, { - "value" : [ ")" ] + "value" : [ "]" ] } ] } ] } } ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "434", + "localId" : "454", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "435", + "localId" : "455", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "expression" : { "type" : "Interval", - "localId" : "431", + "localId" : "451", "lowClosed" : true, - "highClosed" : false, + "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "432", + "localId" : "452", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "433", + "localId" : "453", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "399", + "localId" : "443", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "400", + "localId" : "444", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] - }, { + } ], + "year" : { + "type" : "Literal", + "localId" : "439", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "2013", + "annotation" : [ ] + } + }, + "high" : { + "type" : "DateTime", + "localId" : "449", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ], + "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "401", + "localId" : "450", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] + } ], + "year" : { + "type" : "Literal", + "localId" : "445", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "2015", + "annotation" : [ ] + } + } + } + }, { + "localId" : "458", + "name" : "ivlF", + "context" : "Patient", + "accessLevel" : "Public", + "annotation" : [ { + "type" : "Annotation", + "t" : [ ], + "s" : { + "r" : "458", + "s" : [ { + "value" : [ "", "define ", "ivlF", ": " ] }, { + "r" : "471", + "s" : [ { + "value" : [ "Interval[" ] + }, { + "r" : "463", + "s" : [ { + "r" : "459", + "value" : [ "DateTime", "(", "2014", ")" ] + } ] + }, { + "value" : [ ", " ] + }, { + "r" : "469", + "s" : [ { + "r" : "465", + "value" : [ "DateTime", "(", "2016", ")" ] + } ] + }, { + "value" : [ "]" ] + } ] + } ] + } + } ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "474", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "475", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + }, + "expression" : { + "type" : "Interval", + "localId" : "471", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "472", + "annotation" : [ ], + "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "402", - "name" : "{urn:hl7-org:elm-types:r1}Integer", + "localId" : "473", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] - }, { + } + }, + "low" : { + "type" : "DateTime", + "localId" : "463", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ], + "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "403", + "localId" : "464", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] - }, { + } ], + "year" : { + "type" : "Literal", + "localId" : "459", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "2014", + "annotation" : [ ] + } + }, + "high" : { + "type" : "DateTime", + "localId" : "469", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ], + "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "404", + "localId" : "470", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] + } ], + "year" : { + "type" : "Literal", + "localId" : "465", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "2016", + "annotation" : [ ] + } + } + } + }, { + "localId" : "478", + "name" : "ivlG", + "context" : "Patient", + "accessLevel" : "Public", + "annotation" : [ { + "type" : "Annotation", + "t" : [ ], + "s" : { + "r" : "478", + "s" : [ { + "value" : [ "", "define ", "ivlG", ": " ] }, { - "type" : "NamedTypeSpecifier", - "localId" : "405", - "name" : "{urn:hl7-org:elm-types:r1}Integer", + "r" : "491", + "s" : [ { + "value" : [ "Interval[" ] + }, { + "r" : "483", + "s" : [ { + "r" : "479", + "value" : [ "DateTime", "(", "2016", ")" ] + } ] + }, { + "value" : [ ", " ] + }, { + "r" : "489", + "s" : [ { + "r" : "485", + "value" : [ "DateTime", "(", "2017", ")" ] + } ] + }, { + "value" : [ "]" ] + } ] + } ] + } + } ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "494", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "495", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + }, + "expression" : { + "type" : "Interval", + "localId" : "491", + "lowClosed" : true, + "highClosed" : true, + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "492", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "493", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] - }, { + } + }, + "low" : { + "type" : "DateTime", + "localId" : "483", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ], + "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "406", + "localId" : "484", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "383", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2013", - "annotation" : [ ] - }, - "month" : { - "type" : "Literal", - "localId" : "384", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "1", - "annotation" : [ ] - }, - "day" : { - "type" : "Literal", - "localId" : "385", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "1", - "annotation" : [ ] - }, - "hour" : { - "type" : "Literal", - "localId" : "386", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "0", - "annotation" : [ ] - }, - "minute" : { - "type" : "Literal", - "localId" : "387", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "0", - "annotation" : [ ] - }, - "second" : { - "type" : "Literal", - "localId" : "388", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "0", - "annotation" : [ ] - }, - "millisecond" : { - "type" : "Literal", - "localId" : "389", + "localId" : "479", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "0", + "value" : "2016", "annotation" : [ ] } }, "high" : { "type" : "DateTime", - "localId" : "423", + "localId" : "489", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "424", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - }, { - "type" : "NamedTypeSpecifier", - "localId" : "425", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - }, { - "type" : "NamedTypeSpecifier", - "localId" : "426", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - }, { - "type" : "NamedTypeSpecifier", - "localId" : "427", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - }, { - "type" : "NamedTypeSpecifier", - "localId" : "428", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - }, { - "type" : "NamedTypeSpecifier", - "localId" : "429", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - }, { - "type" : "NamedTypeSpecifier", - "localId" : "430", + "localId" : "490", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "407", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2014", - "annotation" : [ ] - }, - "month" : { - "type" : "Literal", - "localId" : "408", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "1", - "annotation" : [ ] - }, - "day" : { - "type" : "Literal", - "localId" : "409", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "1", - "annotation" : [ ] - }, - "hour" : { - "type" : "Literal", - "localId" : "410", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "0", - "annotation" : [ ] - }, - "minute" : { - "type" : "Literal", - "localId" : "411", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "0", - "annotation" : [ ] - }, - "second" : { - "type" : "Literal", - "localId" : "412", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "0", - "annotation" : [ ] - }, - "millisecond" : { - "type" : "Literal", - "localId" : "413", + "localId" : "485", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "0", + "value" : "2017", "annotation" : [ ] } } } }, { - "localId" : "438", - "name" : "ivlE", + "localId" : "498", + "name" : "ivlH", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "438", + "r" : "498", "s" : [ { - "value" : [ "", "define ", "ivlE", ": " ] + "value" : [ "", "define ", "ivlH", ": " ] }, { - "r" : "451", + "r" : "520", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "443", + "r" : "507", "s" : [ { - "r" : "439", - "value" : [ "DateTime", "(", "2013", ")" ] + "r" : "499", + "value" : [ "DateTime", "(", "2012", ", ", "2", ", ", "3", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "449", + "r" : "517", "s" : [ { - "r" : "445", - "value" : [ "DateTime", "(", "2015", ")" ] + "r" : "511", + "value" : [ "DateTime", "(", "2013", ", ", "3", ")" ] } ] }, { "value" : [ "]" ] @@ -142259,452 +143092,413 @@ module.exports['OverlapsDateTime'] = { } ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "454", + "localId" : "523", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "455", + "localId" : "524", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "expression" : { "type" : "Interval", - "localId" : "451", + "localId" : "520", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "452", + "localId" : "521", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "453", + "localId" : "522", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "443", + "localId" : "507", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "444", + "localId" : "508", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "509", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "510", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "439", + "localId" : "499", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2013", + "value" : "2012", + "annotation" : [ ] + }, + "month" : { + "type" : "Literal", + "localId" : "500", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "2", + "annotation" : [ ] + }, + "day" : { + "type" : "Literal", + "localId" : "501", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "3", "annotation" : [ ] } }, "high" : { "type" : "DateTime", - "localId" : "449", + "localId" : "517", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "450", + "localId" : "518", + "name" : "{urn:hl7-org:elm-types:r1}Integer", + "annotation" : [ ] + }, { + "type" : "NamedTypeSpecifier", + "localId" : "519", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "445", + "localId" : "511", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2015", + "value" : "2013", + "annotation" : [ ] + }, + "month" : { + "type" : "Literal", + "localId" : "512", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", + "valueType" : "{urn:hl7-org:elm-types:r1}Integer", + "value" : "3", "annotation" : [ ] } } } }, { - "localId" : "458", - "name" : "ivlF", + "localId" : "527", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "name" : "OverlapsBefore", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "458", + "r" : "527", "s" : [ { - "value" : [ "", "define ", "ivlF", ": " ] + "value" : [ "", "define ", "OverlapsBefore", ": " ] }, { - "r" : "471", + "r" : "534", "s" : [ { - "value" : [ "Interval[" ] - }, { - "r" : "463", + "r" : "528", "s" : [ { - "r" : "459", - "value" : [ "DateTime", "(", "2014", ")" ] + "value" : [ "ivlA" ] } ] }, { - "value" : [ ", " ] + "r" : "534", + "value" : [ " ", "overlaps", " " ] }, { - "r" : "469", + "r" : "531", "s" : [ { - "r" : "465", - "value" : [ "DateTime", "(", "2016", ")" ] + "value" : [ "ivlB" ] } ] - }, { - "value" : [ "]" ] } ] } ] } } ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "474", - "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "475", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", - "annotation" : [ ] - } - }, "expression" : { - "type" : "Interval", - "localId" : "471", - "lowClosed" : true, - "highClosed" : true, + "type" : "Overlaps", + "localId" : "534", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], - "resultTypeSpecifier" : { + "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "472", + "localId" : "535", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "473", + "localId" : "536", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } - }, - "low" : { - "type" : "DateTime", - "localId" : "463", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + }, { + "type" : "IntervalTypeSpecifier", + "localId" : "537", "annotation" : [ ], - "signature" : [ { + "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "464", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - } ], - "year" : { - "type" : "Literal", - "localId" : "459", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2014", + "localId" : "538", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } - }, - "high" : { - "type" : "DateTime", - "localId" : "469", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + } ], + "operand" : [ { + "type" : "ExpressionRef", + "localId" : "528", + "name" : "ivlA", "annotation" : [ ], - "signature" : [ { - "type" : "NamedTypeSpecifier", - "localId" : "470", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - } ], - "year" : { - "type" : "Literal", - "localId" : "465", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2016", - "annotation" : [ ] + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "529", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "530", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } } - } + }, { + "type" : "ExpressionRef", + "localId" : "531", + "name" : "ivlB", + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "532", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "533", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + } + } ] } }, { - "localId" : "478", - "name" : "ivlG", + "localId" : "541", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "name" : "OverlapsAfter", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "478", + "r" : "541", "s" : [ { - "value" : [ "", "define ", "ivlG", ": " ] + "value" : [ "", "define ", "OverlapsAfter", ": " ] }, { - "r" : "491", + "r" : "548", "s" : [ { - "value" : [ "Interval[" ] - }, { - "r" : "483", + "r" : "542", "s" : [ { - "r" : "479", - "value" : [ "DateTime", "(", "2016", ")" ] + "value" : [ "ivlB" ] } ] }, { - "value" : [ ", " ] + "r" : "548", + "value" : [ " ", "overlaps", " " ] }, { - "r" : "489", + "r" : "545", "s" : [ { - "r" : "485", - "value" : [ "DateTime", "(", "2017", ")" ] + "value" : [ "ivlA" ] } ] - }, { - "value" : [ "]" ] } ] } ] } } ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "494", - "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "495", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", - "annotation" : [ ] - } - }, "expression" : { - "type" : "Interval", - "localId" : "491", - "lowClosed" : true, - "highClosed" : true, + "type" : "Overlaps", + "localId" : "548", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], - "resultTypeSpecifier" : { + "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "492", + "localId" : "549", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "493", + "localId" : "550", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } - }, - "low" : { - "type" : "DateTime", - "localId" : "483", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + }, { + "type" : "IntervalTypeSpecifier", + "localId" : "551", "annotation" : [ ], - "signature" : [ { + "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "484", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - } ], - "year" : { - "type" : "Literal", - "localId" : "479", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2016", + "localId" : "552", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } - }, - "high" : { - "type" : "DateTime", - "localId" : "489", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + } ], + "operand" : [ { + "type" : "ExpressionRef", + "localId" : "542", + "name" : "ivlB", "annotation" : [ ], - "signature" : [ { - "type" : "NamedTypeSpecifier", - "localId" : "490", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - } ], - "year" : { - "type" : "Literal", - "localId" : "485", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2017", - "annotation" : [ ] + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "543", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "544", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } } - } + }, { + "type" : "ExpressionRef", + "localId" : "545", + "name" : "ivlA", + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "546", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "547", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + } + } ] } }, { - "localId" : "498", - "name" : "ivlH", + "localId" : "555", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", + "name" : "OverlapsContained", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "498", + "r" : "555", "s" : [ { - "value" : [ "", "define ", "ivlH", ": " ] + "value" : [ "", "define ", "OverlapsContained", ": " ] }, { - "r" : "520", + "r" : "562", "s" : [ { - "value" : [ "Interval[" ] - }, { - "r" : "507", + "r" : "556", "s" : [ { - "r" : "499", - "value" : [ "DateTime", "(", "2012", ", ", "2", ", ", "3", ")" ] + "value" : [ "ivlB" ] } ] }, { - "value" : [ ", " ] + "r" : "562", + "value" : [ " ", "overlaps", " " ] }, { - "r" : "517", + "r" : "559", "s" : [ { - "r" : "511", - "value" : [ "DateTime", "(", "2013", ", ", "3", ")" ] + "value" : [ "ivlC" ] } ] - }, { - "value" : [ "]" ] } ] } ] } } ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "523", - "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "524", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", - "annotation" : [ ] - } - }, "expression" : { - "type" : "Interval", - "localId" : "520", - "lowClosed" : true, - "highClosed" : true, + "type" : "Overlaps", + "localId" : "562", + "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], - "resultTypeSpecifier" : { + "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "521", + "localId" : "563", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "522", + "localId" : "564", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } - }, - "low" : { - "type" : "DateTime", - "localId" : "507", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + }, { + "type" : "IntervalTypeSpecifier", + "localId" : "565", "annotation" : [ ], - "signature" : [ { - "type" : "NamedTypeSpecifier", - "localId" : "508", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - }, { - "type" : "NamedTypeSpecifier", - "localId" : "509", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - }, { + "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "510", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - } ], - "year" : { - "type" : "Literal", - "localId" : "499", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2012", - "annotation" : [ ] - }, - "month" : { - "type" : "Literal", - "localId" : "500", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2", - "annotation" : [ ] - }, - "day" : { - "type" : "Literal", - "localId" : "501", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "3", + "localId" : "566", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } - }, - "high" : { - "type" : "DateTime", - "localId" : "517", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", + } ], + "operand" : [ { + "type" : "ExpressionRef", + "localId" : "556", + "name" : "ivlB", "annotation" : [ ], - "signature" : [ { - "type" : "NamedTypeSpecifier", - "localId" : "518", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - }, { - "type" : "NamedTypeSpecifier", - "localId" : "519", - "name" : "{urn:hl7-org:elm-types:r1}Integer", - "annotation" : [ ] - } ], - "year" : { - "type" : "Literal", - "localId" : "511", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "2013", - "annotation" : [ ] - }, - "month" : { - "type" : "Literal", - "localId" : "512", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", - "valueType" : "{urn:hl7-org:elm-types:r1}Integer", - "value" : "3", - "annotation" : [ ] + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "557", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "558", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } } - } + }, { + "type" : "ExpressionRef", + "localId" : "559", + "name" : "ivlC", + "annotation" : [ ], + "resultTypeSpecifier" : { + "type" : "IntervalTypeSpecifier", + "localId" : "560", + "annotation" : [ ], + "pointType" : { + "type" : "NamedTypeSpecifier", + "localId" : "561", + "name" : "{urn:hl7-org:elm-types:r1}DateTime", + "annotation" : [ ] + } + } + } ] } }, { - "localId" : "527", + "localId" : "569", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", - "name" : "OverlapsBefore", + "name" : "OverlapsContains", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "527", + "r" : "569", "s" : [ { - "value" : [ "", "define ", "OverlapsBefore", ": " ] + "value" : [ "", "define ", "OverlapsContains", ": " ] }, { - "r" : "534", + "r" : "576", "s" : [ { - "r" : "528", + "r" : "570", "s" : [ { - "value" : [ "ivlA" ] + "value" : [ "ivlC" ] } ] }, { - "r" : "534", + "r" : "576", "value" : [ " ", "overlaps", " " ] }, { - "r" : "531", + "r" : "573", "s" : [ { "value" : [ "ivlB" ] } ] @@ -142714,58 +143508,58 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "534", + "localId" : "576", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "535", + "localId" : "577", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "536", + "localId" : "578", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "537", + "localId" : "579", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "538", + "localId" : "580", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "528", - "name" : "ivlA", + "localId" : "570", + "name" : "ivlC", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "529", + "localId" : "571", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "530", + "localId" : "572", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "ExpressionRef", - "localId" : "531", + "localId" : "573", "name" : "ivlB", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "532", + "localId" : "574", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "533", + "localId" : "575", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } @@ -142773,32 +143567,32 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "541", + "localId" : "583", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", - "name" : "OverlapsAfter", + "name" : "ImpreciseOverlap", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "541", + "r" : "583", "s" : [ { - "value" : [ "", "define ", "OverlapsAfter", ": " ] + "value" : [ "", "define ", "ImpreciseOverlap", ": " ] }, { - "r" : "548", + "r" : "590", "s" : [ { - "r" : "542", + "r" : "584", "s" : [ { - "value" : [ "ivlB" ] + "value" : [ "ivlD" ] } ] }, { - "r" : "548", + "r" : "590", "value" : [ " ", "overlaps", " " ] }, { - "r" : "545", + "r" : "587", "s" : [ { - "value" : [ "ivlA" ] + "value" : [ "ivlH" ] } ] } ] } ] @@ -142806,58 +143600,58 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "548", + "localId" : "590", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "549", + "localId" : "591", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "550", + "localId" : "592", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "551", + "localId" : "593", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "552", + "localId" : "594", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "542", - "name" : "ivlB", + "localId" : "584", + "name" : "ivlD", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "543", + "localId" : "585", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "544", + "localId" : "586", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "ExpressionRef", - "localId" : "545", - "name" : "ivlA", + "localId" : "587", + "name" : "ivlH", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "546", + "localId" : "588", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "547", + "localId" : "589", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } @@ -142865,32 +143659,32 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "555", + "localId" : "597", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", - "name" : "OverlapsContained", + "name" : "NoOverlap", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "555", + "r" : "597", "s" : [ { - "value" : [ "", "define ", "OverlapsContained", ": " ] + "value" : [ "", "define ", "NoOverlap", ": " ] }, { - "r" : "562", + "r" : "604", "s" : [ { - "r" : "556", + "r" : "598", "s" : [ { - "value" : [ "ivlB" ] + "value" : [ "ivlC" ] } ] }, { - "r" : "562", + "r" : "604", "value" : [ " ", "overlaps", " " ] }, { - "r" : "559", + "r" : "601", "s" : [ { - "value" : [ "ivlC" ] + "value" : [ "ivlD" ] } ] } ] } ] @@ -142898,58 +143692,58 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "562", + "localId" : "604", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "563", + "localId" : "605", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "564", + "localId" : "606", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "565", + "localId" : "607", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "566", + "localId" : "608", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "556", - "name" : "ivlB", + "localId" : "598", + "name" : "ivlC", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "557", + "localId" : "599", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "558", + "localId" : "600", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "ExpressionRef", - "localId" : "559", - "name" : "ivlC", + "localId" : "601", + "name" : "ivlD", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "560", + "localId" : "602", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "561", + "localId" : "603", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } @@ -142957,32 +143751,32 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "569", + "localId" : "611", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", - "name" : "OverlapsContains", + "name" : "NoImpreciseOverlap", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "569", + "r" : "611", "s" : [ { - "value" : [ "", "define ", "OverlapsContains", ": " ] + "value" : [ "", "define ", "NoImpreciseOverlap", ": " ] }, { - "r" : "576", + "r" : "618", "s" : [ { - "r" : "570", + "r" : "612", "s" : [ { - "value" : [ "ivlC" ] + "value" : [ "ivlE" ] } ] }, { - "r" : "576", + "r" : "618", "value" : [ " ", "overlaps", " " ] }, { - "r" : "573", + "r" : "615", "s" : [ { - "value" : [ "ivlB" ] + "value" : [ "ivlG" ] } ] } ] } ] @@ -142990,58 +143784,58 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "576", + "localId" : "618", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "577", + "localId" : "619", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "578", + "localId" : "620", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "579", + "localId" : "621", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "580", + "localId" : "622", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "570", - "name" : "ivlC", + "localId" : "612", + "name" : "ivlE", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "571", + "localId" : "613", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "572", + "localId" : "614", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "ExpressionRef", - "localId" : "573", - "name" : "ivlB", + "localId" : "615", + "name" : "ivlG", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "574", + "localId" : "616", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "575", + "localId" : "617", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } @@ -143049,30 +143843,30 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "583", + "localId" : "625", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", - "name" : "ImpreciseOverlap", + "name" : "UnknownOverlap", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "583", + "r" : "625", "s" : [ { - "value" : [ "", "define ", "ImpreciseOverlap", ": " ] + "value" : [ "", "define ", "UnknownOverlap", ": " ] }, { - "r" : "590", + "r" : "632", "s" : [ { - "r" : "584", + "r" : "626", "s" : [ { - "value" : [ "ivlD" ] + "value" : [ "ivlE" ] } ] }, { - "r" : "590", + "r" : "632", "value" : [ " ", "overlaps", " " ] }, { - "r" : "587", + "r" : "629", "s" : [ { "value" : [ "ivlH" ] } ] @@ -143082,58 +143876,58 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "590", + "localId" : "632", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "591", + "localId" : "633", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "592", + "localId" : "634", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "593", + "localId" : "635", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "594", + "localId" : "636", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "584", - "name" : "ivlD", + "localId" : "626", + "name" : "ivlE", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "585", + "localId" : "627", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "586", + "localId" : "628", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "ExpressionRef", - "localId" : "587", + "localId" : "629", "name" : "ivlH", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "588", + "localId" : "630", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "589", + "localId" : "631", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } @@ -143141,32 +143935,32 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "597", + "localId" : "639", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", - "name" : "NoOverlap", + "name" : "MatchingPrecisionOverlap", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "597", + "r" : "639", "s" : [ { - "value" : [ "", "define ", "NoOverlap", ": " ] + "value" : [ "", "define ", "MatchingPrecisionOverlap", ": " ] }, { - "r" : "604", + "r" : "646", "s" : [ { - "r" : "598", + "r" : "640", "s" : [ { - "value" : [ "ivlC" ] + "value" : [ "ivlF" ] } ] }, { - "r" : "604", + "r" : "646", "value" : [ " ", "overlaps", " " ] }, { - "r" : "601", + "r" : "643", "s" : [ { - "value" : [ "ivlD" ] + "value" : [ "ivlG" ] } ] } ] } ] @@ -143174,58 +143968,58 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "604", + "localId" : "646", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "605", + "localId" : "647", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "606", + "localId" : "648", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "607", + "localId" : "649", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "608", + "localId" : "650", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "598", - "name" : "ivlC", + "localId" : "640", + "name" : "ivlF", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "599", + "localId" : "641", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "600", + "localId" : "642", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "ExpressionRef", - "localId" : "601", - "name" : "ivlD", + "localId" : "643", + "name" : "ivlG", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "602", + "localId" : "644", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "603", + "localId" : "645", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } @@ -143233,32 +144027,33 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "611", + "localId" : "653", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", - "name" : "NoImpreciseOverlap", + "name" : "OverlapsClosedNullIntervalLHS", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "611", + "r" : "653", "s" : [ { - "value" : [ "", "define ", "NoImpreciseOverlap", ": " ] + "value" : [ "", "define ", "OverlapsClosedNullIntervalLHS", ": " ] }, { - "r" : "618", + "r" : "662", "s" : [ { - "r" : "612", + "r" : "656", "s" : [ { - "value" : [ "ivlE" ] + "r" : "654", + "value" : [ "Interval[", "null", ", ", "null", "]" ] } ] }, { - "r" : "618", + "r" : "662", "value" : [ " ", "overlaps", " " ] }, { - "r" : "615", + "r" : "659", "s" : [ { - "value" : [ "ivlG" ] + "value" : [ "ivlA" ] } ] } ] } ] @@ -143266,58 +144061,204 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "618", + "localId" : "662", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "619", + "localId" : "670", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "620", + "localId" : "671", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "621", + "localId" : "672", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "622", + "localId" : "673", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { - "type" : "ExpressionRef", - "localId" : "612", - "name" : "ivlE", + "type" : "Interval", + "localId" : "663", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "613", + "low" : { + "type" : "As", + "localId" : "665", + "asType" : "{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" : [ ] + } + } + } + }, + "lowClosedExpression" : { + "type" : "Property", + "localId" : "666", + "path" : "lowClosed", + "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" : [ ] + } + } + }, + "high" : { + "type" : "As", + "localId" : "668", + "asType" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "614", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", - "annotation" : [ ] + "signature" : [ ], + "operand" : { + "type" : "Property", + "localId" : "667", + "path" : "high", + "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" : [ ] + } + } + } + }, + "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" : [ ] + } } } }, { "type" : "ExpressionRef", - "localId" : "615", - "name" : "ivlG", + "localId" : "659", + "name" : "ivlA", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "616", + "localId" : "660", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "617", + "localId" : "661", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } @@ -143325,32 +144266,33 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "625", + "localId" : "676", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", - "name" : "UnknownOverlap", + "name" : "OverlapsClosedNullIntervalRHS", "context" : "Patient", "accessLevel" : "Public", "annotation" : [ { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "625", + "r" : "676", "s" : [ { - "value" : [ "", "define ", "UnknownOverlap", ": " ] + "value" : [ "", "define ", "OverlapsClosedNullIntervalRHS", ": " ] }, { - "r" : "632", + "r" : "685", "s" : [ { - "r" : "626", + "r" : "677", "s" : [ { - "value" : [ "ivlE" ] + "value" : [ "ivlA" ] } ] }, { - "r" : "632", + "r" : "685", "value" : [ " ", "overlaps", " " ] }, { - "r" : "629", + "r" : "682", "s" : [ { - "value" : [ "ivlH" ] + "r" : "680", + "value" : [ "Interval[", "null", ", ", "null", "]" ] } ] } ] } ] @@ -143358,158 +144300,212 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "632", + "localId" : "685", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "633", + "localId" : "693", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "634", + "localId" : "694", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "635", + "localId" : "695", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "636", + "localId" : "696", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "626", - "name" : "ivlE", + "localId" : "677", + "name" : "ivlA", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "627", + "localId" : "678", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "628", + "localId" : "679", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { - "type" : "ExpressionRef", - "localId" : "629", - "name" : "ivlH", + "type" : "Interval", + "localId" : "686", "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "630", + "low" : { + "type" : "As", + "localId" : "688", + "asType" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "631", - "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" : [ ] + } + } } - } - } ] - } - }, { - "localId" : "639", - "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", - "name" : "MatchingPrecisionOverlap", - "context" : "Patient", - "accessLevel" : "Public", - "annotation" : [ { - "type" : "Annotation", - "t" : [ ], - "s" : { - "r" : "639", - "s" : [ { - "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", + }, + "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" : [ ] + } + } + }, + "high" : { + "type" : "As", + "localId" : "691", + "asType" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "642", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", - "annotation" : [ ] + "signature" : [ ], + "operand" : { + "type" : "Property", + "localId" : "690", + "path" : "high", + "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" : [ ] + } + } } - } - }, { - "type" : "ExpressionRef", - "localId" : "643", - "name" : "ivlG", - "annotation" : [ ], - "resultTypeSpecifier" : { - "type" : "IntervalTypeSpecifier", - "localId" : "644", + }, + "highClosedExpression" : { + "type" : "Property", + "localId" : "692", + "path" : "highClosed", "annotation" : [ ], - "pointType" : { - "type" : "NamedTypeSpecifier", - "localId" : "645", - "name" : "{urn:hl7-org:elm-types:r1}DateTime", - "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" : [ ] + } } } } ] } }, { - "localId" : "653", + "localId" : "699", "name" : "PrecisionDateIvl", "context" : "Patient", "accessLevel" : "Public", @@ -143517,25 +144513,25 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "653", + "r" : "699", "s" : [ { "value" : [ "", "define ", "PrecisionDateIvl", ": " ] }, { - "r" : "702", + "r" : "748", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "670", + "r" : "716", "s" : [ { - "r" : "654", + "r" : "700", "value" : [ "DateTime", "(", "2012", ", ", "3", ", ", "2", ", ", "12", ", ", "34", ", ", "56", ", ", "789", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "694", + "r" : "740", "s" : [ { - "r" : "678", + "r" : "724", "value" : [ "DateTime", "(", "2012", ", ", "9", ", ", "2", ", ", "1", ", ", "23", ", ", "45", ", ", "678", ")" ] } ] }, { @@ -143546,76 +144542,76 @@ module.exports['OverlapsDateTime'] = { } ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "705", + "localId" : "751", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "706", + "localId" : "752", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "expression" : { "type" : "Interval", - "localId" : "702", + "localId" : "748", "lowClosed" : true, "highClosed" : false, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "703", + "localId" : "749", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "704", + "localId" : "750", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "670", + "localId" : "716", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "671", + "localId" : "717", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "672", + "localId" : "718", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "673", + "localId" : "719", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "674", + "localId" : "720", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "675", + "localId" : "721", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "676", + "localId" : "722", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "677", + "localId" : "723", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "654", + "localId" : "700", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -143623,7 +144619,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "655", + "localId" : "701", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "3", @@ -143631,7 +144627,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "656", + "localId" : "702", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -143639,7 +144635,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "657", + "localId" : "703", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "12", @@ -143647,7 +144643,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "658", + "localId" : "704", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "34", @@ -143655,7 +144651,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "659", + "localId" : "705", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "56", @@ -143663,7 +144659,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "660", + "localId" : "706", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "789", @@ -143672,48 +144668,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "694", + "localId" : "740", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "695", + "localId" : "741", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "696", + "localId" : "742", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "697", + "localId" : "743", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "698", + "localId" : "744", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "699", + "localId" : "745", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "700", + "localId" : "746", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "701", + "localId" : "747", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "678", + "localId" : "724", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -143721,7 +144717,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "679", + "localId" : "725", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "9", @@ -143729,7 +144725,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "680", + "localId" : "726", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -143737,7 +144733,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "681", + "localId" : "727", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -143745,7 +144741,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "682", + "localId" : "728", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "23", @@ -143753,7 +144749,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "683", + "localId" : "729", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "45", @@ -143761,7 +144757,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "684", + "localId" : "730", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "678", @@ -143770,7 +144766,7 @@ module.exports['OverlapsDateTime'] = { } } }, { - "localId" : "709", + "localId" : "755", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsBeforeDayOfIvlEdge", "context" : "Patient", @@ -143779,35 +144775,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "709", + "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" : "764", + "r" : "810", "s" : [ { - "r" : "710", + "r" : "756", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "764", + "r" : "810", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "761", + "r" : "807", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "729", + "r" : "775", "s" : [ { - "r" : "713", + "r" : "759", "value" : [ "DateTime", "(", "2012", ", ", "9", ", ", "2", ", ", "23", ", ", "59", ", ", "59", ", ", "999", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "753", + "r" : "799", "s" : [ { - "r" : "737", + "r" : "783", "value" : [ "DateTime", "(", "2012", ", ", "10", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -143819,108 +144815,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "764", + "localId" : "810", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "765", + "localId" : "811", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "766", + "localId" : "812", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "767", + "localId" : "813", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "768", + "localId" : "814", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "710", + "localId" : "756", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "711", + "localId" : "757", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "712", + "localId" : "758", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "761", + "localId" : "807", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "762", + "localId" : "808", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "763", + "localId" : "809", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "729", + "localId" : "775", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "730", + "localId" : "776", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "731", + "localId" : "777", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "732", + "localId" : "778", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "733", + "localId" : "779", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "734", + "localId" : "780", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "735", + "localId" : "781", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "736", + "localId" : "782", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "713", + "localId" : "759", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -143928,7 +144924,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "714", + "localId" : "760", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "9", @@ -143936,7 +144932,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "715", + "localId" : "761", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -143944,7 +144940,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "716", + "localId" : "762", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "23", @@ -143952,7 +144948,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "717", + "localId" : "763", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "59", @@ -143960,7 +144956,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "718", + "localId" : "764", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "59", @@ -143968,7 +144964,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "719", + "localId" : "765", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "999", @@ -143977,48 +144973,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "753", + "localId" : "799", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "754", + "localId" : "800", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "755", + "localId" : "801", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "756", + "localId" : "802", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "757", + "localId" : "803", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "758", + "localId" : "804", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "759", + "localId" : "805", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "760", + "localId" : "806", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "737", + "localId" : "783", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144026,7 +145022,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "738", + "localId" : "784", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "10", @@ -144034,7 +145030,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "739", + "localId" : "785", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144042,7 +145038,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "740", + "localId" : "786", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144050,7 +145046,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "741", + "localId" : "787", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144058,7 +145054,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "742", + "localId" : "788", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144066,7 +145062,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "743", + "localId" : "789", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144076,7 +145072,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "771", + "localId" : "817", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsAfterDayOfIvlEdge", "context" : "Patient", @@ -144085,35 +145081,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "771", + "r" : "817", "s" : [ { "value" : [ "", "define ", "OverlapsAfterDayOfIvlEdge", ": " ] }, { - "r" : "826", + "r" : "872", "s" : [ { - "r" : "772", + "r" : "818", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "826", + "r" : "872", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "823", + "r" : "869", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "791", + "r" : "837", "s" : [ { - "r" : "775", + "r" : "821", "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "2", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "815", + "r" : "861", "s" : [ { - "r" : "799", + "r" : "845", "value" : [ "DateTime", "(", "2012", ", ", "3", ", ", "2", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -144125,108 +145121,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "826", + "localId" : "872", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "827", + "localId" : "873", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "828", + "localId" : "874", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "829", + "localId" : "875", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "830", + "localId" : "876", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "772", + "localId" : "818", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "773", + "localId" : "819", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "774", + "localId" : "820", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "823", + "localId" : "869", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "824", + "localId" : "870", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "825", + "localId" : "871", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "791", + "localId" : "837", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "792", + "localId" : "838", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "793", + "localId" : "839", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "794", + "localId" : "840", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "795", + "localId" : "841", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "796", + "localId" : "842", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "797", + "localId" : "843", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "798", + "localId" : "844", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "775", + "localId" : "821", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144234,7 +145230,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "776", + "localId" : "822", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144242,7 +145238,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "777", + "localId" : "823", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -144250,7 +145246,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "778", + "localId" : "824", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144258,7 +145254,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "779", + "localId" : "825", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144266,7 +145262,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "780", + "localId" : "826", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144274,7 +145270,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "781", + "localId" : "827", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144283,48 +145279,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "815", + "localId" : "861", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "816", + "localId" : "862", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "817", + "localId" : "863", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "818", + "localId" : "864", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "819", + "localId" : "865", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "820", + "localId" : "866", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "821", + "localId" : "867", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "822", + "localId" : "868", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "799", + "localId" : "845", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144332,7 +145328,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "800", + "localId" : "846", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "3", @@ -144340,7 +145336,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "801", + "localId" : "847", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -144348,7 +145344,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "802", + "localId" : "848", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144356,7 +145352,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "803", + "localId" : "849", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144364,7 +145360,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "804", + "localId" : "850", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144372,7 +145368,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "805", + "localId" : "851", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144382,7 +145378,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "833", + "localId" : "879", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsContainsDayOfIvl", "context" : "Patient", @@ -144391,35 +145387,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "833", + "r" : "879", "s" : [ { "value" : [ "", "define ", "OverlapsContainsDayOfIvl", ": " ] }, { - "r" : "888", + "r" : "934", "s" : [ { - "r" : "834", + "r" : "880", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "888", + "r" : "934", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "885", + "r" : "931", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "853", + "r" : "899", "s" : [ { - "r" : "837", + "r" : "883", "value" : [ "DateTime", "(", "2012", ", ", "5", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "877", + "r" : "923", "s" : [ { - "r" : "861", + "r" : "907", "value" : [ "DateTime", "(", "2012", ", ", "6", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -144431,108 +145427,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "888", + "localId" : "934", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "889", + "localId" : "935", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "890", + "localId" : "936", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "891", + "localId" : "937", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "892", + "localId" : "938", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "834", + "localId" : "880", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "835", + "localId" : "881", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "836", + "localId" : "882", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "885", + "localId" : "931", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "886", + "localId" : "932", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "887", + "localId" : "933", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "853", + "localId" : "899", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "854", + "localId" : "900", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "855", + "localId" : "901", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "856", + "localId" : "902", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "857", + "localId" : "903", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "858", + "localId" : "904", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "859", + "localId" : "905", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "860", + "localId" : "906", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "837", + "localId" : "883", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144540,7 +145536,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "838", + "localId" : "884", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "5", @@ -144548,7 +145544,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "839", + "localId" : "885", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144556,7 +145552,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "840", + "localId" : "886", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144564,7 +145560,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "841", + "localId" : "887", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144572,7 +145568,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "842", + "localId" : "888", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144580,7 +145576,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "843", + "localId" : "889", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144589,48 +145585,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "877", + "localId" : "923", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "878", + "localId" : "924", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "879", + "localId" : "925", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "880", + "localId" : "926", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "881", + "localId" : "927", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "882", + "localId" : "928", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "883", + "localId" : "929", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "884", + "localId" : "930", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "861", + "localId" : "907", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144638,7 +145634,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "862", + "localId" : "908", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "6", @@ -144646,7 +145642,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "863", + "localId" : "909", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144654,7 +145650,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "864", + "localId" : "910", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144662,7 +145658,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "865", + "localId" : "911", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144670,7 +145666,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "866", + "localId" : "912", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144678,7 +145674,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "867", + "localId" : "913", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144688,7 +145684,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "895", + "localId" : "941", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsContainedByDayOfIvl", "context" : "Patient", @@ -144697,35 +145693,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "895", + "r" : "941", "s" : [ { "value" : [ "", "define ", "OverlapsContainedByDayOfIvl", ": " ] }, { - "r" : "950", + "r" : "996", "s" : [ { - "r" : "896", + "r" : "942", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "950", + "r" : "996", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "947", + "r" : "993", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "915", + "r" : "961", "s" : [ { - "r" : "899", + "r" : "945", "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "939", + "r" : "985", "s" : [ { - "r" : "923", + "r" : "969", "value" : [ "DateTime", "(", "2012", ", ", "12", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -144737,108 +145733,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "950", + "localId" : "996", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "951", + "localId" : "997", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "952", + "localId" : "998", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "953", + "localId" : "999", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "954", + "localId" : "1000", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "896", + "localId" : "942", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "897", + "localId" : "943", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "898", + "localId" : "944", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "947", + "localId" : "993", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "948", + "localId" : "994", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "949", + "localId" : "995", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "915", + "localId" : "961", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "916", + "localId" : "962", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "917", + "localId" : "963", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "918", + "localId" : "964", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "919", + "localId" : "965", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "920", + "localId" : "966", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "921", + "localId" : "967", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "922", + "localId" : "968", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "899", + "localId" : "945", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144846,7 +145842,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "900", + "localId" : "946", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144854,7 +145850,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "901", + "localId" : "947", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144862,7 +145858,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "902", + "localId" : "948", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144870,7 +145866,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "903", + "localId" : "949", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144878,7 +145874,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "904", + "localId" : "950", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144886,7 +145882,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "905", + "localId" : "951", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144895,48 +145891,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "939", + "localId" : "985", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "940", + "localId" : "986", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "941", + "localId" : "987", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "942", + "localId" : "988", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "943", + "localId" : "989", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "944", + "localId" : "990", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "945", + "localId" : "991", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "946", + "localId" : "992", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "923", + "localId" : "969", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -144944,7 +145940,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "924", + "localId" : "970", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "12", @@ -144952,7 +145948,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "925", + "localId" : "971", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -144960,7 +145956,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "926", + "localId" : "972", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144968,7 +145964,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "927", + "localId" : "973", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144976,7 +145972,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "928", + "localId" : "974", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144984,7 +145980,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "929", + "localId" : "975", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -144994,7 +145990,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "957", + "localId" : "1003", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "NotOverlapsDayOfIvl", "context" : "Patient", @@ -145003,35 +145999,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "957", + "r" : "1003", "s" : [ { "value" : [ "", "define ", "NotOverlapsDayOfIvl", ": " ] }, { - "r" : "1012", + "r" : "1058", "s" : [ { - "r" : "958", + "r" : "1004", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1012", + "r" : "1058", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1009", + "r" : "1055", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "977", + "r" : "1023", "s" : [ { - "r" : "961", + "r" : "1007", "value" : [ "DateTime", "(", "2012", ", ", "1", ", ", "2", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1001", + "r" : "1047", "s" : [ { - "r" : "985", + "r" : "1031", "value" : [ "DateTime", "(", "2012", ", ", "3", ", ", "1", ", ", "0", ", ", "0", ", ", "0", ", ", "0", ")" ] } ] }, { @@ -145043,108 +146039,108 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1012", + "localId" : "1058", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1013", + "localId" : "1059", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1014", + "localId" : "1060", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1015", + "localId" : "1061", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1016", + "localId" : "1062", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "958", + "localId" : "1004", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "959", + "localId" : "1005", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "960", + "localId" : "1006", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1009", + "localId" : "1055", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1010", + "localId" : "1056", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1011", + "localId" : "1057", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "977", + "localId" : "1023", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "978", + "localId" : "1024", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "979", + "localId" : "1025", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "980", + "localId" : "1026", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "981", + "localId" : "1027", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "982", + "localId" : "1028", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "983", + "localId" : "1029", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "984", + "localId" : "1030", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "961", + "localId" : "1007", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145152,7 +146148,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "962", + "localId" : "1008", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145160,7 +146156,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "963", + "localId" : "1009", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2", @@ -145168,7 +146164,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "964", + "localId" : "1010", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145176,7 +146172,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "965", + "localId" : "1011", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145184,7 +146180,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "966", + "localId" : "1012", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145192,7 +146188,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "967", + "localId" : "1013", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145201,48 +146197,48 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1001", + "localId" : "1047", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1002", + "localId" : "1048", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1003", + "localId" : "1049", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1004", + "localId" : "1050", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1005", + "localId" : "1051", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1006", + "localId" : "1052", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1007", + "localId" : "1053", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1008", + "localId" : "1054", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "985", + "localId" : "1031", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145250,7 +146246,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "986", + "localId" : "1032", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "3", @@ -145258,7 +146254,7 @@ module.exports['OverlapsDateTime'] = { }, "day" : { "type" : "Literal", - "localId" : "987", + "localId" : "1033", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145266,7 +146262,7 @@ module.exports['OverlapsDateTime'] = { }, "hour" : { "type" : "Literal", - "localId" : "988", + "localId" : "1034", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145274,7 +146270,7 @@ module.exports['OverlapsDateTime'] = { }, "minute" : { "type" : "Literal", - "localId" : "989", + "localId" : "1035", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145282,7 +146278,7 @@ module.exports['OverlapsDateTime'] = { }, "second" : { "type" : "Literal", - "localId" : "990", + "localId" : "1036", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145290,7 +146286,7 @@ module.exports['OverlapsDateTime'] = { }, "millisecond" : { "type" : "Literal", - "localId" : "991", + "localId" : "1037", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "0", @@ -145300,7 +146296,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "1019", + "localId" : "1065", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "OverlapsAfterDayOfImpreciseInterval", "context" : "Patient", @@ -145309,35 +146305,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1019", + "r" : "1065", "s" : [ { "value" : [ "", "define ", "OverlapsAfterDayOfImpreciseInterval", ": " ] }, { - "r" : "1044", + "r" : "1090", "s" : [ { - "r" : "1020", + "r" : "1066", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1044", + "r" : "1090", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1041", + "r" : "1087", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "1029", + "r" : "1075", "s" : [ { - "r" : "1023", + "r" : "1069", "value" : [ "DateTime", "(", "2012", ", ", "1", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1038", + "r" : "1084", "s" : [ { - "r" : "1032", + "r" : "1078", "value" : [ "DateTime", "(", "2012", ", ", "4", ")" ] } ] }, { @@ -145349,83 +146345,83 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1044", + "localId" : "1090", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1045", + "localId" : "1091", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1046", + "localId" : "1092", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1047", + "localId" : "1093", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1048", + "localId" : "1094", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "1020", + "localId" : "1066", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1021", + "localId" : "1067", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1022", + "localId" : "1068", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1041", + "localId" : "1087", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1042", + "localId" : "1088", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1043", + "localId" : "1089", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "1029", + "localId" : "1075", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1030", + "localId" : "1076", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1031", + "localId" : "1077", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1023", + "localId" : "1069", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145433,7 +146429,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1024", + "localId" : "1070", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145442,23 +146438,23 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1038", + "localId" : "1084", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1039", + "localId" : "1085", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1040", + "localId" : "1086", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1032", + "localId" : "1078", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145466,7 +146462,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1033", + "localId" : "1079", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "4", @@ -145476,7 +146472,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "1051", + "localId" : "1097", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "MayOverlapBeforeDayOfImpreciseIvl", "context" : "Patient", @@ -145485,35 +146481,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1051", + "r" : "1097", "s" : [ { "value" : [ "", "define ", "MayOverlapBeforeDayOfImpreciseIvl", ": " ] }, { - "r" : "1076", + "r" : "1122", "s" : [ { - "r" : "1052", + "r" : "1098", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1076", + "r" : "1122", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1073", + "r" : "1119", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "1061", + "r" : "1107", "s" : [ { - "r" : "1055", + "r" : "1101", "value" : [ "DateTime", "(", "2012", ", ", "9", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1070", + "r" : "1116", "s" : [ { - "r" : "1064", + "r" : "1110", "value" : [ "DateTime", "(", "2012", ", ", "10", ")" ] } ] }, { @@ -145525,83 +146521,83 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1076", + "localId" : "1122", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1077", + "localId" : "1123", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1078", + "localId" : "1124", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1079", + "localId" : "1125", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1080", + "localId" : "1126", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "1052", + "localId" : "1098", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1053", + "localId" : "1099", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1054", + "localId" : "1100", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1073", + "localId" : "1119", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1074", + "localId" : "1120", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1075", + "localId" : "1121", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "1061", + "localId" : "1107", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1062", + "localId" : "1108", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1063", + "localId" : "1109", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1055", + "localId" : "1101", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145609,7 +146605,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1056", + "localId" : "1102", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "9", @@ -145618,23 +146614,23 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1070", + "localId" : "1116", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1071", + "localId" : "1117", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1072", + "localId" : "1118", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1064", + "localId" : "1110", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145642,7 +146638,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1065", + "localId" : "1111", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "10", @@ -145652,7 +146648,7 @@ module.exports['OverlapsDateTime'] = { } ] } }, { - "localId" : "1083", + "localId" : "1129", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "name" : "MayOverlapAfterDayOfImpreciseIvl", "context" : "Patient", @@ -145661,35 +146657,35 @@ module.exports['OverlapsDateTime'] = { "type" : "Annotation", "t" : [ ], "s" : { - "r" : "1083", + "r" : "1129", "s" : [ { "value" : [ "", "define ", "MayOverlapAfterDayOfImpreciseIvl", ": " ] }, { - "r" : "1108", + "r" : "1154", "s" : [ { - "r" : "1084", + "r" : "1130", "s" : [ { "value" : [ "PrecisionDateIvl" ] } ] }, { - "r" : "1108", + "r" : "1154", "value" : [ " ", "overlaps day of", " " ] }, { - "r" : "1105", + "r" : "1151", "s" : [ { "value" : [ "Interval[" ] }, { - "r" : "1093", + "r" : "1139", "s" : [ { - "r" : "1087", + "r" : "1133", "value" : [ "DateTime", "(", "2012", ", ", "1", ")" ] } ] }, { "value" : [ ", " ] }, { - "r" : "1102", + "r" : "1148", "s" : [ { - "r" : "1096", + "r" : "1142", "value" : [ "DateTime", "(", "2012", ", ", "3", ")" ] } ] }, { @@ -145701,83 +146697,83 @@ module.exports['OverlapsDateTime'] = { } ], "expression" : { "type" : "Overlaps", - "localId" : "1108", + "localId" : "1154", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Boolean", "precision" : "Day", "annotation" : [ ], "signature" : [ { "type" : "IntervalTypeSpecifier", - "localId" : "1109", + "localId" : "1155", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1110", + "localId" : "1156", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, { "type" : "IntervalTypeSpecifier", - "localId" : "1111", + "localId" : "1157", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1112", + "localId" : "1158", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } ], "operand" : [ { "type" : "ExpressionRef", - "localId" : "1084", + "localId" : "1130", "name" : "PrecisionDateIvl", "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1085", + "localId" : "1131", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1086", + "localId" : "1132", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } } }, { "type" : "Interval", - "localId" : "1105", + "localId" : "1151", "lowClosed" : true, "highClosed" : true, "annotation" : [ ], "resultTypeSpecifier" : { "type" : "IntervalTypeSpecifier", - "localId" : "1106", + "localId" : "1152", "annotation" : [ ], "pointType" : { "type" : "NamedTypeSpecifier", - "localId" : "1107", + "localId" : "1153", "name" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ] } }, "low" : { "type" : "DateTime", - "localId" : "1093", + "localId" : "1139", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1094", + "localId" : "1140", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1095", + "localId" : "1141", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1087", + "localId" : "1133", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145785,7 +146781,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1088", + "localId" : "1134", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "1", @@ -145794,23 +146790,23 @@ module.exports['OverlapsDateTime'] = { }, "high" : { "type" : "DateTime", - "localId" : "1102", + "localId" : "1148", "resultTypeName" : "{urn:hl7-org:elm-types:r1}DateTime", "annotation" : [ ], "signature" : [ { "type" : "NamedTypeSpecifier", - "localId" : "1103", + "localId" : "1149", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] }, { "type" : "NamedTypeSpecifier", - "localId" : "1104", + "localId" : "1150", "name" : "{urn:hl7-org:elm-types:r1}Integer", "annotation" : [ ] } ], "year" : { "type" : "Literal", - "localId" : "1096", + "localId" : "1142", "resultTypeName" : "{urn:hl7-org:elm-types:r1}Integer", "valueType" : "{urn:hl7-org:elm-types:r1}Integer", "value" : "2012", @@ -145818,7 +146814,7 @@ module.exports['OverlapsDateTime'] = { }, "month" : { "type" : "Literal", - "localId" : "1097", + "localId" : "1143", "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 536f9605..16a7a527 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 0ed5cc58..0b2b0e4a 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 66415594..0ed0932e 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 74120b09..6cd2dd31 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)