FHIRPath conformance: R4 suite

Results of tests-fhir-r4.xml from FHIR/fhir-test-cases@cb4eac4, evaluated with the @callis/core (internal API) adapter. How tests are classified, run and compared is described in tools/conformance.

Summary

PhaseTestsPassedFailedSkipped
Phase 1934924010
STU14201420
Unsupported11500115
Total1191924142125

2 of the passed tests expect a semantic error that was only detected during evaluation ("detected late"; N1 §11).

Skipped tests

ReasonTests
HL7 Java engine document functions (out of scope)115
exception: 3.0.0 permits calendar year/month ordering after conversion; the suite expects empty (spec notes)3
exception: a value without an offset is UTC (ADR-0012); the suite expects empty (spec notes)2
exception: code derives from string, so as(string) and ofType(string) keep the code; the suite expects empty (spec notes)2
exception: 3.0.0 makes is on empty input false; the suite expects empty, as N1 says (spec notes)1
exception: System.Patient does not resolve, so is() raises eval/unknown-type; the suite expects false (spec notes)1
exception: the R4 copy ignores the 0.1 s fraction; Callis follows R5 and 3.0.0 (spec notes)1

Groups

GroupPhaseTestsPassedFailedSkipped
commentsPhase 19900
testMiscellaneousAccessorTestsPhase 13300
testBasicsPhase 18800
testObservationsPhase 110901
testDollarPhase 15500
testLiteralsPhase 1838300
testTypesPhase 110110100
testExistsPhase 15500
testAllPhase 14400
testSubSetOfPhase 13300
testSuperSetOfPhase 12200
testQuantityPhase 1111100
testCollectionBooleanPhase 16600
testDistinctPhase 16600
testCountPhase 14400
testWherePhase 14400
testSelectPhase 13300
testRepeatPhase 15500
testAggregateSTU4040
testIndexerPhase 13300
testSinglePhase 12200
testFirstLastPhase 12200
testTailPhase 12200
testSkipPhase 18800
testTakePhase 19900
testIifPhase 1111100
testToIntegerPhase 15500
testToDecimalPhase 15500
testToStringPhase 15500
testCasePhase 14400
testToCharsPhase 11100
testIndexOfPhase 16600
testSubstringPhase 1161600
testStartsWithPhase 1121200
testEndsWithPhase 1101000
testContainsStringPhase 1101000
testMatchesPhase 1, STU161150
testReplaceMatchesPhase 17700
testReplacePhase 16600
testLengthPhase 16600
testEncodeDecodeSTU8080
testEscapeUnescapeSTU7070
testTrimSTU6060
testSplitSTU8080
testJoinSTU2020
testTracePhase 12200
testTodayPhase 12200
testNowPhase 12200
testSortSTU100100
testEqualityPhase 1403901
testNEqualityPhase 1272601
testHasValuePhase 13300
testEquivalentPhase 1313100
testNotEquivalentPhase 1242400
testLessThanPhase 1333201
testQuantityUnitComparisonPhase 18800
testLessOrEqualPhase 1302901
testGreatorOrEqualPhase 1292900
testGreaterThanPhase 1302901
testCombine()Phase 13300
testUnionPhase 1121200
testIntersectPhase 14400
testExcludePhase 14400
testInPhase 14400
testContainsCollectionPhase 14400
testBooleanLogicAndPhase 19900
testBooleanLogicOrPhase 19900
testBooleanLogicXOrPhase 19900
testBooleanImpliesPhase 19900
testPlusPhase 1292801
testConcatenatePhase 14400
testMinusPhase 17700
testMultiplyPhase 13300
testDividePhase 17700
testDivPhase 16600
testModPhase 18800
testRoundPhase 12200
testSqrtPhase 12200
testAbsPhase 13300
testCeilingPhase 13300
testExpPhase 13300
testFloorPhase 13300
testLnPhase 12200
testLogPhase 12200
testPowerPhase 13300
testTruncatePhase 13300
testPrecedencePhase 16600
testVariablesPhase 14400
testExtensionPhase 13300
testTypePhase 1, STU3016131
testConformsToPhase 13300
LowBoundarySTU370370
HighBoundarySTU330330
ComparableSTU3030
PrecisionSTU5050
from-ZulipPhase 12200
polymorphicsPhase 12200
index-partPhase 11100
periodPhase 1, STU2110
testInheritancePhase 1242202
miscEngineTestsPhase 12200
isSemanticChecksPhase 1383800
documentFunctionsUnsupported11500115

Failing tests

testAggregate

TestPhaseExpressionProblem
testAggregate1STU (T0026)`(12
testAggregate2STU (T0026)`(12
testAggregate3STU (T0026)`(12
testAggregate4STU (T0026)`(12

testMatches

testEncodeDecode

TestPhaseExpressionProblem
testEncodeBase64ASTU'test'.encode('base64')not implemented
testEncodeHexSTU'test'.encode('hex')not implemented
testEncodeBase64BSTU'subjects?_d'.encode('base64')not implemented
testEncodeUrlBase64STU'subjects?_d'.encode('urlbase64')not implemented
testDecodeBase64ASTU'dGVzdA=='.decode('base64')not implemented
testDecodeHexSTU'74657374'.decode('hex')not implemented
testDecodeBase64BSTU'c3ViamVjdHM/X2Q='.decode('base64')not implemented
testDecodeUrlBase64STU'c3ViamVjdHM_X2Q='.decode('urlbase64')not implemented

testEscapeUnescape

TestPhaseExpressionProblem
testEscapeHtmlSTU'"1<2"'.escape('html')not implemented
testEscapeJsonSTU'"1<2"'.escape('json')not implemented
testUnescapeHtmlSTU'&quot;1&lt;2&quot;'.unescape('html')not implemented
testUnescapeJsonSTU'\"1<2\"'.unescape('json')not implemented
testUnescapeJson2STU'"1<2"'.escape('json').unescape('json')not implemented
testUnescapeJson3STU'\u0041B'.unescape('json')not implemented
testUnescapeJson4STU'\"1<2\"'.unescape('json')not implemented

testTrim

TestPhaseExpressionProblem
testTrim1STU'123456'.trim().length() = 6not implemented
testTrim2STU'123 456'.trim().length() = 7not implemented
testTrim3STU' 123456 '.trim().length() = 6not implemented
testTrim4STU' '.trim().length() = 0not implemented
testTrim5STU{}.trim().empty() = truenot implemented
testTrim6STU' '.trim() = ''not implemented

testSplit

TestPhaseExpressionProblem
testSplit1STU'Peter,James,Jim,Peter,James'.split(',').count() = 5not implemented
testSplit2STU'A,,C'.split(',').join(',') = 'A,,C'not implemented
testSplit3STU'[stop]ONE[stop][stop]TWO[stop][stop][stop]THREE[stop][stop]'.split('[stop]').trace('n').count() = 9not implemented
testSplit4STU'[stop]ONE[stop][stop]TWO[stop][stop][stop]THREE[stop][stop]'.split('[stop]').join('[stop]')not implemented
testSplit5STU'fr-BE'.split('-').first() = 'fr'not implemented
testSplit6STU'fr-BE'.split('-').last() = 'BE'not implemented
testSplit7STU'a-b-c'.split('-').skip(1).first() = 'b'not implemented
testSplit8STU'a-b-c'.split('-').take(2).join('-') = 'a-b'not implemented

testJoin

TestPhaseExpressionProblem
testJoinSTUname.given.join(',')not implemented
testJoinEmptySTUname.prefix.join(',')not implemented

testSort

TestPhaseExpressionProblem
testSort1STU (T0027)`(12
testSort2STU (T0027)`(32
testSort3STU (T0027)`(12
testSort4STU (T0027)`(32
testSort5STU (T0027)`(12
testSort6STU (T0027)`('a''b'
testSort7STU (T0027)`('c''b'
testSort8STU (T0027)`('a''b'
testSort9STU (T0027)`Patient.name[0].given.sort() = ('James''Peter')`
testSort10STU (T0027)Patient.name.sort(-family, -given.first()).first().use = 'usual'not implemented

testType

TestPhaseExpressionProblem
testType1STU (T0031)1.type().namespace = 'System'not implemented
testType1aSTU (T0031)1.type().name = 'Integer'not implemented
testType2STU (T0031)'1'.type().namespace = 'System'not implemented
testType2aSTU (T0031)'1'.type().name = 'String'not implemented
testType3STU (T0031)true.type().namespace = 'System'not implemented
testType4STU (T0031)true.type().name = 'Boolean'not implemented
testType9STU (T0031)Patient.active.type().namespace = 'FHIR'not implemented
testType10STU (T0031)Patient.active.type().name = 'boolean'not implemented
testType15STU (T0031)Patient.type().namespace = 'FHIR'not implemented
testType16STU (T0031)Patient.type().name = 'Patient'not implemented
testType20STU (T0031)Patient.ofType(Patient).type().namenot implemented
testType21STU (T0031)Patient.ofType(FHIR.Patient).type().namenot implemented
testType23STU (T0031)Patient.ofType(FHIR.`Patient`).type().namenot implemented

LowBoundary

TestPhaseExpressionProblem
LowBoundaryDecimalDefaultSTU (T0030)1.587.lowBoundary()not implemented
LowBoundaryDecimal1STU (T0030)1.587.lowBoundary(6)not implemented
LowBoundaryDecimal2STU (T0030)1.587.lowBoundary(2)not implemented
LowBoundaryDecimal3STU (T0030)1.587.lowBoundary(-1)not implemented
LowBoundaryDecimal4STU (T0030)1.587.lowBoundary(0)not implemented
LowBoundaryDecimal5STU (T0030)1.587.lowBoundary(32)not implemented
LowBoundaryNegDecimalDefaultSTU (T0030)(-1.587).lowBoundary()not implemented
LowBoundaryNegDecimal1STU (T0030)(-1.587).lowBoundary(6)not implemented
LowBoundaryNegDecimal2STU (T0030)(-1.587).lowBoundary(2)not implemented
LowBoundaryNegDecimal3STU (T0030)(-1.587).lowBoundary(-1)not implemented
LowBoundaryNegDecimal4STU (T0030)(-1.587).lowBoundary(0)not implemented
LowBoundaryNegDecimal5STU (T0030)(-1.587).lowBoundary(32)not implemented
LowBoundaryDecimal6STU (T0030)1.587.lowBoundary(39)not implemented
LowBoundaryDecimal7STU (T0030)1.toDecimal().lowBoundary()not implemented
LowBoundaryDecimal8STU (T0030)1.lowBoundary(0)not implemented
LowBoundaryDecimal9STU (T0030)1.lowBoundary(5)not implemented
LowBoundaryDecimal10STU (T0030)12.587.lowBoundary(2)not implemented
LowBoundaryDecimal11STU (T0030)12.500.lowBoundary(4)not implemented
LowBoundaryDecimal12STU (T0030)120.lowBoundary(2)not implemented
LowBoundaryDecimal13STU (T0030)(-120).lowBoundary(2)not implemented
LowBoundaryDecimal14STU (T0030)0.0034.lowBoundary(1)not implemented
LowBoundaryDecimal15STU (T0030)(-0.0034).lowBoundary(1)not implemented
LowBoundaryDecimalCarry1STU (T0030)(-9.96).lowBoundary(1)not implemented
LowBoundaryDecimalCarry2STU (T0030)(-99.96).lowBoundary(1)not implemented
LowBoundaryDecimalCarry3STU (T0030)(-9).lowBoundary(0)not implemented
LowBoundaryDecimalBorrow1STU (T0030)10.lowBoundary(0)not implemented
LowBoundaryDecimalBorrow2STU (T0030)100.lowBoundary(2)not implemented
LowBoundaryDecimalExponent1STU (T0030)Parameters.parameter[0].value.lowBoundary(0)not implemented
LowBoundaryDecimalExponent2STU (T0030)Parameters.parameter[1].value.lowBoundary()not implemented
LowBoundaryDecimalExponent3STU (T0030)Parameters.parameter[2].value.lowBoundary(0)not implemented
LowBoundaryDecimalExponent4STU (T0030)Parameters.parameter[3].value.lowBoundary(1)not implemented
LowBoundaryQuantitySTU (T0030)1.587 'cm'.lowBoundary(8)not implemented
LowBoundaryDateMonthSTU (T0030)@2014.lowBoundary(6)not implemented
LowBoundaryDateTimeMillisecond1STU (T0030)@2014-01-01T08.lowBoundary(17)not implemented
LowBoundaryDateTimeMillisecond2STU (T0030)@2014-01-01T08:05+08:00.lowBoundary(17)not implemented
LowBoundaryDateTimeMillisecond3STU (T0030)@2014-01-01T08.lowBoundary(8)not implemented
LowBoundaryTimeMillisecondSTU (T0030)@T10:30.lowBoundary(9)not implemented

HighBoundary

TestPhaseExpressionProblem
HighBoundaryDecimalDefaultSTU (T0030)1.587.highBoundary()not implemented
HighBoundaryDecimal1STU (T0030)1.587.highBoundary(2)not implemented
HighBoundaryDecimal2STU (T0030)1.587.highBoundary(6)not implemented
HighBoundaryDecimal3STU (T0030)1.587.highBoundary(-1)not implemented
HighBoundaryDecimal4STU (T0030)(-1.587).highBoundary()not implemented
HighBoundaryDecimal5STU (T0030)(-1.587).highBoundary(2)not implemented
HighBoundaryDecimal6STU (T0030)(-1.587).highBoundary(6)not implemented
HighBoundaryDecimal7STU (T0030)1.587.highBoundary(39)not implemented
HighBoundaryDecimal8STU (T0030)1.highBoundary()not implemented
HighBoundaryDecimal9STU (T0030)1.highBoundary(0)not implemented
HighBoundaryDecimal10STU (T0030)1.highBoundary(5)not implemented
HighBoundaryDecimal11STU (T0030)12.587.highBoundary(2)not implemented
HighBoundaryDecimal12STU (T0030)12.500.highBoundary(4)not implemented
HighBoundaryDecimal13STU (T0030)120.highBoundary(2)not implemented
HighBoundaryDecimal14STU (T0030)-120.highBoundary(2)not implemented
HighBoundaryDecimal15STU (T0030)0.0034.highBoundary(1)not implemented
HighBoundaryDecimal16STU (T0030)-0.0034.highBoundary(1)not implemented
HighBoundaryDecimalSTU (T0030)1.587.highBoundary(8)not implemented
HighBoundaryDecimalCarry1STU (T0030)9.95.highBoundary(1)not implemented
HighBoundaryDecimalCarry2STU (T0030)0.996.highBoundary(1)not implemented
HighBoundaryDecimalCarry3STU (T0030)99.96.highBoundary(1)not implemented
HighBoundaryDecimalCarry4STU (T0030)9.highBoundary(0)not implemented
HighBoundaryDecimalExponent1STU (T0030)Parameters.parameter[0].value.highBoundary(0)not implemented
HighBoundaryDecimalExponent2STU (T0030)Parameters.parameter[0].value.highBoundary()not implemented
HighBoundaryDecimalExponent3STU (T0030)Parameters.parameter[1].value.highBoundary()not implemented
HighBoundaryDecimalExponent4STU (T0030)Parameters.parameter[2].value.highBoundary(0)not implemented
HighBoundaryDecimalExponent5STU (T0030)Parameters.parameter[3].value.highBoundary(1)not implemented
HighBoundaryQuantitySTU (T0030)1.587 'm'.highBoundary(8)not implemented
HighBoundaryDateMonthSTU (T0030)@2014.highBoundary(6)not implemented
HighBoundaryDateTimeMillisecond1STU (T0030)@2014-01-01T08.highBoundary(17)not implemented
HighBoundaryDateTimeMillisecond2STU (T0030)@2014-01-01T08:05-05:00.highBoundary(17)not implemented
HighBoundaryDateTimeMillisecond3STU (T0030)@2014-01-01T08.highBoundary(17)not implemented
HighBoundaryTimeMillisecondSTU (T0030)@T10:30.highBoundary(9)not implemented

Comparable

TestPhaseExpressionProblem
Comparable1STU (T0030)1 'cm'.comparable(1 '[in_i]')not implemented
Comparable2STU (T0030)1 'cm'.comparable(1 '[s]')not implemented
Comparable3STU (T0030)1 'cm'.comparable(1 's')not implemented

Precision

TestPhaseExpressionProblem
PrecisionDecimalSTU (T0030)1.58700.precision()not implemented
PrecisionYearSTU (T0030)@2014.precision()not implemented
PrecisionDateTimeMillisecondsSTU (T0030)@2014-01-05T10:30:00.000.precision()not implemented
PrecisionTimeMinutesSTU (T0030)@T10:30.precision()not implemented
PrecisionTimeMillisecondsSTU (T0030)@T10:30:00.000.precision()not implemented

period

TestPhaseExpressionProblem
testPeriodInvariantNewSTU (T0030)Patient.identifier.period.all(start.empty() or end.empty() or (start.lowBoundary() < end.highBounda…not implemented