FHIRPath conformance: R5 suite

Results of tests-fhir-r5.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 110621050111
STU16711660
Unsupported11800118
Total13471051167129

3 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
CDA logical model (out of scope)3
exception: 3.0.0 permits calendar year/month ordering after conversion; the suite expects empty (spec notes)3
exception: 3.0.0 counts items whose equality is undetermined as distinct; the suite expects empty (spec notes)2
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

Groups

GroupPhaseTestsPassedFailedSkipped
defineVariableSTU211200
commentsPhase 19900
testMiscellaneousAccessorTestsPhase 13300
testBasicsPhase 18800
testObservationsPhase 110901
testDollarPhase 15500
testLiteralsPhase 1838300
testTypesPhase 110810800
testExistsPhase 15500
testAllPhase 14400
testSubSetOfPhase 13300
testSuperSetOfPhase 12200
testQuantityPhase 1111100
testCollectionBooleanPhase 16600
testDistinctPhase 1363402
testCountPhase 14400
testWherePhase 14400
testSelectPhase 13300
testRepeatPhase 15500
testAggregateSTU4040
testIndexerPhase 13300
testSinglePhase 12200
testFirstLastPhase 12200
testTailPhase 12200
testSkipPhase 18800
testTakePhase 19900
testIifPhase 1121200
testToIntegerPhase 15500
testToDecimalPhase 15500
testToStringPhase 15500
testCasePhase 14400
testToCharsPhase 11100
testIndexOfPhase 16600
testSubstringPhase 1181800
testStartsWithPhase 1141400
testEndsWithPhase 1121200
testContainsStringPhase 1121200
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 1363501
testQuantityUnitComparisonPhase 18800
testLessOrEqualPhase 1333201
testGreatorOrEqualPhase 1323200
testGreaterThanPhase 1333201
testCombine()Phase 13300
testUnionPhase 1131300
testIntersectPhase 14400
testExcludePhase 14400
testInPhase 18800
testContainsCollectionPhase 19900
testBooleanLogicAndPhase 19900
testBooleanLogicOrPhase 19900
testBooleanLogicXOrPhase 19900
testBooleanImpliesPhase 19900
testPlusPhase 1363600
testConcatenatePhase 15500
testMinusPhase 1121200
testMultiplyPhase 16600
testDividePhase 1101000
testDivPhase 1101000
testModPhase 1121200
testRoundPhase 13300
testSqrtPhase 13300
testAbsPhase 14400
testCeilingPhase 14400
testExpPhase 13300
testFloorPhase 14400
testLnPhase 13300
testLogPhase 15500
testPowerPhase 16600
testTruncatePhase 14400
testPrecedencePhase 16600
testVariablesPhase 14400
testExtensionPhase 13300
testTypePhase 1, STU3016131
testConformsToPhase 13300
LowBoundarySTU370370
HighBoundarySTU330330
ComparableSTU3030
PrecisionSTU6060
from-ZulipPhase 12200
polymorphicsPhase 14400
index-partPhase 11100
periodPhase 1, STU2110
testInheritancePhase 1242202
miscEngineTestsPhase 14400
primitivesWithoutValuePhase 1121200
cdaTestsUnsupported3003
TerminologyTestsSTU3030
HTMLChecksPhase 14310
isSemanticChecksPhase 1383800
documentFunctionsUnsupported11500115

Failing tests

defineVariable

TestPhaseExpressionProblem
defineVariable1STU (T0026)defineVariable('v1', 'value1').select(%v1)not implemented
defineVariable2STU (T0026)defineVariable('n1', name.first()).select(%n1.given)not implemented
defineVariable3STU (T0026)defineVariable('n1', name.first()).select(%n1.given).first()not implemented
defineVariable4STU (T0026)`defineVariable('n1', name.first()).select(%n1.given)defineVariable('n1', name.skip(1).first()).s…`
defineVariable5STU (T0026)`defineVariable('n1', name.first()).where(active.not())defineVariable('n1', name.skip(1).first())…`
defineVariable6STU (T0026)`defineVariable('n1', name.first()).select(id & '-' & %n1.given.join(''))
defineVariable7STU (T0026)`defineVariable('n1', name.first()).activedefineVariable('n2', name.skip(1).first()).select(%n2.g…`
defineVariable8STU (T0026)defineVariable('v1', 'value1').select(%v1).trace('data').defineVariable('v2', 'value2').select($thi…not implemented
defineVariable9STU (T0026)`defineVariable('n1', name.first()).activedefineVariable('n2', name.skip(1).first()).select(%n1.g…`
dvRedefiningVariableThrowsErrorSTU (T0026)defineVariable('v1').defineVariable('v1').select(%v1)not implemented
defineVariable12STU (T0026)`Patient.name.defineVariable('n1', first()).activePatient.name.defineVariable('n2', skip(1).first…`
defineVariable13STU (T0026)Patient.name.defineVariable('n2', skip(1).first()).defineVariable('res', %n2.given+%n2.given).selec…not implemented
defineVariable14STU (T0026)`Patient.name.defineVariable('n1', first()).select(%n1).exists()Patient.name.defineVariable('n2',…`
defineVariable15STU (T0026)defineVariable('root', 'r1-').select(defineVariable('v1', 'v1').defineVariable('v2', 'v2').select(%…not implemented
defineVariable16STU (T0026)defineVariable('root', 'r1-').select(defineVariable('v1', 'v1').defineVariable('v2', 'v2').select(%…not implemented
dvCantOverwriteSystemVarSTU (T0026)defineVariable('context', 'oops')not implemented
dvConceptMapExampleSTU (T0026)group.select( defineVariable('grp') .element .select( defineVariable('ele') .target .select(%grp.so…not implemented
defineVariable19STU (T0026)defineVariable(defineVariable('param','ppp').select(%param), defineVariable('param','value').select…not implemented
dvParametersDontColideSTU (T0026)'aaa'.replace(defineVariable('param', 'aaa').select(%param), defineVariable('param','bbb').select(%…not implemented
dvUsageOutsideScopeThrowsSTU (T0026)`defineVariable('n1', 'v1').activedefineVariable('n2', 'v2').select(%n1)`

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
PrecisionEmptySTU (T0030){}.precision().empty()not implemented

period

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

TerminologyTests

TestPhaseExpressionProblem
txTest01STU (T0032)%terminologies.expand('http://hl7.org/fhir/ValueSet/administrative-gender').expansion.contains.coun…unexpected semantic error [semantic/unknown-function]
txTest02STU (T0032)%terminologies.validateVS('http://hl7.org/fhir/ValueSet/administrative-gender', $this.gender).param…unexpected semantic error [semantic/unknown-function]
txTest03STU (T0032)%terminologies.translate('http://hl7.org/fhir/ConceptMap/cm-address-use-v2', $this.address.use).par…unexpected semantic error [semantic/unknown-function]

HTMLChecks

TestPhaseExpressionProblem
htmlTest01Phase 1text.div.htmlChecks()unexpected syntax error [syntax/unexpected-token]