From 600a340f65ead6c47eb3902429e621dfaa007730 Mon Sep 17 00:00:00 2001 From: Yngvarr Date: Wed, 15 May 2024 11:37:31 +0200 Subject: [PATCH] add tests for extra constant types --- test_report/public/test-results.json | 2 +- tests/constant_types.json | 1018 ++++++++++++++++++++++++++ 2 files changed, 1019 insertions(+), 1 deletion(-) create mode 100644 tests/constant_types.json diff --git a/test_report/public/test-results.json b/test_report/public/test-results.json index 4f478db..9a9a215 100644 --- a/test_report/public/test-results.json +++ b/test_report/public/test-results.json @@ -1 +1 @@ -{"foreach.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"pt1","family":"F1.1"},{"id":"pt1","family":"F1.2"},{"id":"pt2","family":"F2.1"},{"id":"pt2","family":"F2.2"}],"actual":[{"family":"F1.1","id":"pt1"},{"family":"F1.2","id":"pt1"},{"family":"F2.1","id":"pt2"},{"family":"F2.2","id":"pt2"}]}},{"result":{"passed":true,"expected":[{"id":"pt1","family":"F1.1"},{"id":"pt1","family":"F1.2"},{"id":"pt2","family":"F2.1"},{"id":"pt2","family":"F2.2"},{"id":"pt3","family":null}],"actual":[{"family":"F1.1","id":"pt1"},{"family":"F1.2","id":"pt1"},{"family":"F2.1","id":"pt2"},{"family":"F2.2","id":"pt2"},{"family":null,"id":"pt3"}]}},{"result":{"passed":true,"expected":[],"actual":[]}},{"result":{"passed":true,"expected":[{"pat_family":"F1.1","cont_family":"FC1.1"},{"pat_family":"F1.1","cont_family":"FC1.2"},{"pat_family":"F1.2","cont_family":"FC1.1"},{"pat_family":"F1.2","cont_family":"FC1.2"}],"actual":[{"pat_family":"F1.1","cont_family":"FC1.1"},{"pat_family":"F1.1","cont_family":"FC1.2"},{"pat_family":"F1.2","cont_family":"FC1.1"},{"pat_family":"F1.2","cont_family":"FC1.2"}]}},{"result":{"passed":true,"expected":[],"actual":[]}},{"result":{"passed":true,"expected":[{"id":"pt1","value":null},{"id":"pt2","value":null},{"id":"pt3","value":null}],"actual":[{"value":null,"id":"pt1"},{"value":null,"id":"pt2"},{"value":null,"id":"pt3"}]}},{"result":{"passed":true,"expected":[{"id":"pt1","family":"F1.1","value":null},{"id":"pt1","family":"F1.2","value":null},{"id":"pt2","family":"F2.1","value":null},{"id":"pt2","family":"F2.2","value":null}],"actual":[{"family":"F1.1","value":null,"id":"pt1"},{"family":"F1.2","value":null,"id":"pt1"},{"family":"F2.1","value":null,"id":"pt2"},{"family":"F2.2","value":null,"id":"pt2"}]}},{"result":{"passed":true,"expected":[{"contact_type":"phone","name":"N1","id":"pt1"},{"contact_type":"phone","name":"N1`","id":"pt1"},{"contact_type":"email","name":"N2","id":"pt1"}],"actual":[{"name":"N1","contact_type":"phone","id":"pt1"},{"name":"N1`","contact_type":"phone","id":"pt1"},{"name":"N2","contact_type":"email","id":"pt1"}]}},{"result":{"passed":true,"expected":[{"contact_type":"phone","name":"N1","id":"pt1"},{"contact_type":"phone","name":"N1`","id":"pt1"},{"contact_type":"email","name":"N2","id":"pt1"}],"actual":[{"name":"N1","contact_type":"phone","id":"pt1"},{"name":"N1`","contact_type":"phone","id":"pt1"},{"name":"N2","contact_type":"email","id":"pt1"}]}},{"result":{"passed":true,"expected":[{"id":"pt1","name":"FC1.1"},{"id":"pt1","name":"N1"},{"id":"pt1","name":"N1`"},{"id":"pt1","name":"FC1.2"},{"id":"pt1","name":"N2"},{"id":"pt2","name":null},{"id":"pt3","name":null}],"actual":[{"name":"FC1.1","id":"pt1"},{"name":"N1","id":"pt1"},{"name":"N1`","id":"pt1"},{"name":"FC1.2","id":"pt1"},{"name":"N2","id":"pt1"},{"name":null,"id":"pt2"},{"name":null,"id":"pt3"}]}},{"result":{"passed":true,"expected":[{"id":"pt1","name":"FC1.1"},{"id":"pt1","name":"N1"},{"id":"pt1","name":"N1`"},{"id":"pt1","name":"FC1.2"},{"id":"pt1","name":"N2"}],"actual":[{"name":"FC1.1","id":"pt1"},{"name":"N1","id":"pt1"},{"name":"N1`","id":"pt1"},{"name":"FC1.2","id":"pt1"},{"name":"N2","id":"pt1"}]}},{"result":{"passed":true,"expected":[{"id":"pt1","name":"FC1.1","tel_system":"phone","gender":null},{"id":"pt1","name":"N1","tel_system":"phone","gender":null},{"id":"pt1","name":"N1`","tel_system":"phone","gender":null},{"id":"pt1","name":"FC1.2","tel_system":"email","gender":"unknown"},{"id":"pt1","name":"N2","tel_system":"email","gender":"unknown"}],"actual":[{"gender":null,"name":"FC1.1","tel_system":"phone","id":"pt1"},{"gender":null,"name":"N1","tel_system":"phone","id":"pt1"},{"gender":null,"name":"N1`","tel_system":"phone","id":"pt1"},{"gender":"unknown","name":"FC1.2","tel_system":"email","id":"pt1"},{"gender":"unknown","name":"N2","tel_system":"email","id":"pt1"}]}},{"result":{"passed":true,"expected":[{"id":"pt1","name":"FC1.1","tel_system":"phone","gender":null},{"id":"pt1","name":"N1","tel_system":"phone","gender":null},{"id":"pt1","name":"N1`","tel_system":"phone","gender":null},{"id":"pt1","name":"FC1.2","tel_system":"email","gender":"unknown"},{"id":"pt1","name":"N2","tel_system":"email","gender":"unknown"},{"id":"pt2","name":null,"tel_system":null,"gender":null},{"id":"pt3","name":null,"tel_system":null,"gender":null}],"actual":[{"gender":null,"name":"FC1.1","tel_system":"phone","id":"pt1"},{"gender":null,"name":"N1","tel_system":"phone","id":"pt1"},{"gender":null,"name":"N1`","tel_system":"phone","id":"pt1"},{"gender":"unknown","name":"FC1.2","tel_system":"email","id":"pt1"},{"gender":"unknown","name":"N2","tel_system":"email","id":"pt1"},{"gender":null,"name":null,"tel_system":null,"id":"pt2"},{"gender":null,"name":null,"tel_system":null,"id":"pt3"}]}}]},"fn_boundary.json":{"tests":[]},"validate.json":{"tests":[{"result":{"passed":true}},{"result":{"passed":true}},{"result":{"passed":true}},{"result":{"passed":true}},{"result":{"passed":true}}]},"fn_reference_keys.json":{"tests":[{"result":{"passed":true,"expected":[{"key_equal_ref":true},{"key_equal_ref":false}],"actual":[{"key_equal_ref":true},{"key_equal_ref":false}]}},{"result":{"passed":true,"expected":[{"key_equal_ref":true},{"key_equal_ref":false}],"actual":[{"key_equal_ref":true},{"key_equal_ref":false}]}},{"result":{"passed":true,"expected":[{"referenceKey":null,"key_equal_ref":null},{"referenceKey":null,"key_equal_ref":null}],"actual":[{"referenceKey":null,"key_equal_ref":null},{"referenceKey":null,"key_equal_ref":null}]}}]},"fn_join.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"p1","given":"p1.g1,p1.g2"}],"actual":[{"id":"p1","given":"p1.g1,p1.g2"}]}},{"result":{"passed":true,"expected":[{"id":"p1","given":"p1.g1p1.g2"}],"actual":[{"id":"p1","given":"p1.g1p1.g2"}]}},{"result":{"passed":true,"expected":[{"id":"p1","given":"p1.g1p1.g2"}],"actual":[{"id":"p1","given":"p1.g1p1.g2"}]}}]},"fn_empty.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"p1","name_empty":false},{"id":"p2","name_empty":true}],"actual":[{"id":"p1","name_empty":false},{"id":"p2","name_empty":true}]}}]},"fn_first.json":{"tests":[{"result":{"passed":true,"expected":[{"use":"official"}],"actual":[{"use":"official"}]}},{"result":{"passed":true,"expected":[{"given":"g1.1"}],"actual":[{"given":"g1.1"}]}}]},"constant.json":{"tests":[{"result":{"passed":true}},{"result":{"passed":true}},{"result":{"passed":true,"expected":[{"id":"pt1","official_name":"Smith"},{"id":"pt2","official_name":null}],"actual":[{"id":"pt1","official_name":"Smith"},{"id":"pt2","official_name":null}]}},{"result":{"passed":true,"expected":[{"official_name":"Smith"}],"actual":[{"official_name":"Smith"}]}},{"result":{"passed":true,"expected":[{"id":"pt1"}],"actual":[{"id":"pt1"}]}},{"result":{"passed":true,"expected":[{"name":"Smith"},{"name":"Block"},{"name":"Johnson"}],"actual":[{"name":"Smith"},{"name":"Block"},{"name":"Johnson"}]}},{"result":{"passed":true,"expected":[{"id":"pt1","official_name":"Smith"},{"id":"pt2","official_name":"Menendez"}],"actual":[{"id":"pt1","official_name":"Smith"},{"id":"pt2","official_name":"Menendez"}]}},{"result":{"passed":true,"expected":[{"id":"pt2"}],"actual":[{"id":"pt2"}]}}]},"fhirpath.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"pt1"},{"id":"pt2"},{"id":"pt3"}],"actual":[{"id":"pt1"},{"id":"pt2"},{"id":"pt3"}]}},{"result":{"passed":true,"expected":[{"v":"f1.1"},{"v":"f2.1"},{"v":null}],"actual":[{"v":"f1.1"},{"v":"f2.1"},{"v":null}]}},{"result":{"passed":true,"expected":[{"v":["f1.1","f1.2"]},{"v":["f2.1","f2.2"]},{"v":[]}],"actual":[{"v":["f1.1","f1.2"]},{"v":["f2.1","f2.2"]},{"v":[]}]}},{"result":{"passed":true,"expected":[{"v":"f1.1"},{"v":"f2.1"},{"v":null}],"actual":[{"v":"f1.1"},{"v":"f2.1"},{"v":null}]}},{"result":{"passed":true,"expected":[{"v":"f1.2"},{"v":"f2.2"},{"v":null}],"actual":[{"v":"f1.2"},{"v":"f2.2"},{"v":null}]}},{"result":{"passed":true,"expected":[{"v":null},{"v":null},{"v":null}],"actual":[{"v":null},{"v":null},{"v":null}]}},{"result":{"passed":true,"expected":[{"v":"f1.1"},{"v":"f2.2"},{"v":null}],"actual":[{"v":"f1.1"},{"v":"f2.2"},{"v":null}]}},{"result":{"passed":true,"expected":[{"id":"pt1","has_name":true},{"id":"pt2","has_name":true},{"id":"pt3","has_name":false}],"actual":[{"id":"pt1","has_name":true},{"id":"pt2","has_name":true},{"id":"pt3","has_name":false}]}},{"result":{"passed":true,"expected":[{"id":"pt1","has_given":true},{"id":"pt2","has_given":false},{"id":"pt3","has_given":false}],"actual":[{"id":"pt1","has_given":true},{"id":"pt2","has_given":false},{"id":"pt3","has_given":false}]}},{"result":{"passed":true,"expected":[{"id":"pt1","given":"g1.1.1, g1.1.2, g1.2.1"},{"id":"pt2","given":""},{"id":"pt3","given":""}],"actual":[{"id":"pt1","given":"g1.1.1, g1.1.2, g1.2.1"},{"id":"pt2","given":""},{"id":"pt3","given":""}]}},{"result":{"passed":true,"expected":[{"id":"pt1","given":"g1.1.1g1.1.2g1.2.1"},{"id":"pt2","given":""},{"id":"pt3","given":""}],"actual":[{"id":"pt1","given":"g1.1.1g1.1.2g1.2.1"},{"id":"pt2","given":""},{"id":"pt3","given":""}]}}]},"fhirpath_numbers.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"o1","add":5,"sub":1,"mul":6,"div":1.5,"eq":false,"gt":true,"ge":true,"lt":false,"le":false}],"actual":[{"id":"o1","add":5,"sub":1,"mul":6,"div":1.5,"eq":false,"gt":true,"ge":true,"lt":false,"le":false}]}}]},"combinations.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"pt1"},{"id":"pt2"},{"id":"pt3"}],"actual":[{"id":"pt1"},{"id":"pt2"},{"id":"pt3"}]}},{"result":{"passed":true,"expected":[{"column_id":"pt1","select_id":"pt1"},{"column_id":"pt2","select_id":"pt2"},{"column_id":"pt3","select_id":"pt3"}],"actual":[{"select_id":"pt1","column_id":"pt1"},{"select_id":"pt2","column_id":"pt2"},{"select_id":"pt3","column_id":"pt3"}]}},{"result":{"passed":true,"expected":[{"id_1":"pt1","id_2":"pt1"},{"id_1":"pt2","id_2":"pt2"},{"id_1":"pt3","id_2":"pt3"}],"actual":[{"id_2":"pt1","id_1":"pt1"},{"id_2":"pt2","id_1":"pt2"},{"id_2":"pt3","id_1":"pt3"}]}},{"result":{"passed":true,"expected":[{"id_1":"pt1","id_2":"pt1"},{"id_1":"pt2","id_2":"pt2"},{"id_1":"pt3","id_2":"pt3"}],"actual":[{"id_2":"pt1","id_1":"pt1"},{"id_2":"pt2","id_1":"pt2"},{"id_2":"pt3","id_1":"pt3"}]}},{"result":{"passed":true,"expected":[{"column_id":"pt1","select_id":"pt1"}],"actual":[{"select_id":"pt1","column_id":"pt1"}]}},{"result":{"passed":true,"expected":[{"id":"pt1"},{"id":"pt2"},{"id":"pt3"}],"actual":[{"id":"pt1"},{"id":"pt2"},{"id":"pt3"}]}}]},"where.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"p1"}],"actual":[{"id":"p1"}]}},{"result":{"passed":true,"expected":[],"actual":[]}},{"result":{"passed":true,"expected":[{"id":"o1"}],"actual":[{"id":"o1"}]}},{"result":{"passed":true,"expected":[{"id":"o2"}],"actual":[{"id":"o2"}]}},{"result":{"passed":true,"expected":[{"id":"p1"}],"actual":[{"id":"p1"}]}},{"result":{"passed":true,"expected":[{"id":"p1"}],"actual":[{"id":"p1"}]}},{"result":{"passed":true,"expected":[{"id":"p1"},{"id":"p2"}],"actual":[{"id":"p1"},{"id":"p2"}]}},{"result":{"passed":true,"expected":[{"id":"p1"},{"id":"p3"}],"actual":[{"id":"p1"},{"id":"p3"}]}}]},"fn_extension.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"pt1","birthsex":"F"},{"id":"pt2","birthsex":"M"},{"id":"pt3","birthsex":null}],"actual":[{"id":"pt1","birthsex":"F"},{"id":"pt2","birthsex":"M"},{"id":"pt3","birthsex":null}]}},{"result":{"passed":true,"expected":[{"id":"pt1","race_code":"2106-3"},{"id":"pt2","race_code":"2135-2"},{"id":"pt3","race_code":null}],"actual":[{"id":"pt1","race_code":"2106-3"},{"id":"pt2","race_code":"2135-2"},{"id":"pt3","race_code":null}]}}]},"logic.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"m0"}],"actual":[{"id":"m0"}]}},{"result":{"passed":true,"expected":[{"id":"m0"},{"id":"f0"},{"id":"m1"}],"actual":[{"id":"m0"},{"id":"f0"},{"id":"m1"}]}},{"result":{"passed":true,"expected":[{"id":"f0"},{"id":"f1"}],"actual":[{"id":"f0"},{"id":"f1"}]}}]},"collection.json":{"tests":[{"result":{"passed":true}},{"result":{"passed":true,"expected":[{"id":"pt1","last_name":["f1.1","f1.2"],"first_name":["g1.1","g1.2","g1.3"]},{"id":"pt2","last_name":["f2.1","f2.2"],"first_name":["g2.1","g2.2","g2.3"]}],"actual":[{"id":"pt1","last_name":["f1.1","f1.2"],"first_name":["g1.1","g1.2","g1.3"]},{"id":"pt2","last_name":["f2.1","f2.2"],"first_name":["g2.1","g2.2","g2.3"]}]}},{"result":{"passed":true,"expected":[{"id":"pt1","last_name":"f1.1","first_name":["g1.1"]},{"id":"pt1","last_name":"f1.2","first_name":["g1.2","g1.3"]},{"id":"pt2","last_name":"f2.1","first_name":["g2.1"]},{"id":"pt2","last_name":"f2.2","first_name":["g2.2","g2.3"]}],"actual":[{"last_name":"f1.1","first_name":["g1.1"],"id":"pt1"},{"last_name":"f1.2","first_name":["g1.2","g1.3"],"id":"pt1"},{"last_name":"f2.1","first_name":["g2.1"],"id":"pt2"},{"last_name":"f2.2","first_name":["g2.2","g2.3"],"id":"pt2"}]}},{"result":{"passed":true,"expected":[{"id":"pt1","last_name":"f1.1","first_name":["g1.1"]},{"id":"pt1","last_name":"f1.2","first_name":["g1.2","g1.3"]},{"id":"pt2","last_name":"f2.1","first_name":["g2.1"]},{"id":"pt2","last_name":"f2.2","first_name":["g2.2","g2.3"]}],"actual":[{"last_name":"f1.1","first_name":["g1.1"],"id":"pt1"},{"last_name":"f1.2","first_name":["g1.2","g1.3"],"id":"pt1"},{"last_name":"f2.1","first_name":["g2.1"],"id":"pt2"},{"last_name":"f2.2","first_name":["g2.2","g2.3"],"id":"pt2"}]}}]},"fn_oftype.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"o1","string_value":"foo"},{"id":"o2","string_value":null},{"id":"o3","string_value":null}],"actual":[{"id":"o1","string_value":"foo"},{"id":"o2","string_value":null},{"id":"o3","string_value":null}]}},{"result":{"passed":true,"expected":[{"id":"o1","integer_value":null},{"id":"o2","integer_value":42},{"id":"o3","integer_value":null}],"actual":[{"id":"o1","integer_value":null},{"id":"o2","integer_value":42},{"id":"o3","integer_value":null}]}}]},"view_resource.json":{"tests":[{"result":{"passed":true}},{"result":{"passed":true,"expected":[{"id":"pt1"},{"id":"pt2"}],"actual":[{"id":"pt1"},{"id":"pt2"}]}},{"result":{"passed":true,"expected":[{"id":"ob1"}],"actual":[{"id":"ob1"}]}}]},"union.json":{"tests":[{"result":{"passed":true}},{"result":{"passed":true}},{"result":{"passed":true,"expected":[{"tel":"t1.1","sys":"phone","id":"pt1"},{"tel":"t1.2","sys":"fax","id":"pt1"},{"tel":"t1.3","sys":"email","id":"pt1"},{"tel":"t1.c1.1","sys":"pager","id":"pt1"},{"tel":"t1.c2.1","sys":"url","id":"pt1"},{"tel":"t1.c2.2","sys":"sms","id":"pt1"},{"tel":"t2.1","sys":"phone","id":"pt2"},{"tel":"t2.2","sys":"fax","id":"pt2"},{"tel":"t3.c1.1","sys":"email","id":"pt3"},{"tel":"t3.c1.2","sys":"pager","id":"pt3"},{"tel":"t3.c2.1","sys":"sms","id":"pt3"}],"actual":[{"tel":"t1.1","sys":"phone","id":"pt1"},{"tel":"t1.2","sys":"fax","id":"pt1"},{"tel":"t1.3","sys":"email","id":"pt1"},{"tel":"t1.c1.1","sys":"pager","id":"pt1"},{"tel":"t1.c2.1","sys":"url","id":"pt1"},{"tel":"t1.c2.2","sys":"sms","id":"pt1"},{"tel":"t2.1","sys":"phone","id":"pt2"},{"tel":"t2.2","sys":"fax","id":"pt2"},{"tel":"t3.c1.1","sys":"email","id":"pt3"},{"tel":"t3.c1.2","sys":"pager","id":"pt3"},{"tel":"t3.c2.1","sys":"sms","id":"pt3"}]}},{"result":{"passed":true,"expected":[{"tel":"t1.1","sys":"phone","id":"pt1"},{"tel":"t1.2","sys":"fax","id":"pt1"},{"tel":"t1.3","sys":"email","id":"pt1"},{"tel":"t1.c1.1","sys":"pager","id":"pt1"},{"tel":"t1.c2.1","sys":"url","id":"pt1"},{"tel":"t1.c2.2","sys":"sms","id":"pt1"},{"tel":"t2.1","sys":"phone","id":"pt2"},{"tel":"t2.2","sys":"fax","id":"pt2"},{"tel":"t3.c1.1","sys":"email","id":"pt3"},{"tel":"t3.c1.2","sys":"pager","id":"pt3"},{"tel":"t3.c2.1","sys":"sms","id":"pt3"}],"actual":[{"tel":"t1.1","sys":"phone","id":"pt1"},{"tel":"t1.2","sys":"fax","id":"pt1"},{"tel":"t1.3","sys":"email","id":"pt1"},{"tel":"t1.c1.1","sys":"pager","id":"pt1"},{"tel":"t1.c2.1","sys":"url","id":"pt1"},{"tel":"t1.c2.2","sys":"sms","id":"pt1"},{"tel":"t2.1","sys":"phone","id":"pt2"},{"tel":"t2.2","sys":"fax","id":"pt2"},{"tel":"t3.c1.1","sys":"email","id":"pt3"},{"tel":"t3.c1.2","sys":"pager","id":"pt3"},{"tel":"t3.c2.1","sys":"sms","id":"pt3"}]}},{"result":{"passed":true,"expected":[{"tel":"t1.1","sys":"phone","id":"pt1"},{"tel":"t1.2","sys":"fax","id":"pt1"},{"tel":"t1.3","sys":"email","id":"pt1"},{"tel":"t1.1","sys":"phone","id":"pt1"},{"tel":"t1.2","sys":"fax","id":"pt1"},{"tel":"t1.3","sys":"email","id":"pt1"},{"tel":"t2.1","sys":"phone","id":"pt2"},{"tel":"t2.2","sys":"fax","id":"pt2"},{"tel":"t2.1","sys":"phone","id":"pt2"},{"tel":"t2.2","sys":"fax","id":"pt2"}],"actual":[{"tel":"t1.1","sys":"phone","id":"pt1"},{"tel":"t1.2","sys":"fax","id":"pt1"},{"tel":"t1.3","sys":"email","id":"pt1"},{"tel":"t1.1","sys":"phone","id":"pt1"},{"tel":"t1.2","sys":"fax","id":"pt1"},{"tel":"t1.3","sys":"email","id":"pt1"},{"tel":"t2.1","sys":"phone","id":"pt2"},{"tel":"t2.2","sys":"fax","id":"pt2"},{"tel":"t2.1","sys":"phone","id":"pt2"},{"tel":"t2.2","sys":"fax","id":"pt2"}]}},{"result":{"passed":true,"expected":[],"actual":[]}},{"result":{"passed":true,"expected":[{"given":null,"id":"pt1"},{"given":null,"id":"pt1"},{"given":null,"id":"pt2"},{"given":null,"id":"pt2"},{"given":null,"id":"pt3"},{"given":null,"id":"pt3"},{"given":null,"id":"pt4"},{"given":null,"id":"pt4"}],"actual":[{"given":null,"id":"pt1"},{"given":null,"id":"pt1"},{"given":null,"id":"pt2"},{"given":null,"id":"pt2"},{"given":null,"id":"pt3"},{"given":null,"id":"pt3"},{"given":null,"id":"pt4"},{"given":null,"id":"pt4"}]}},{"result":{"passed":true,"expected":[{"given":null,"id":"pt1"},{"given":null,"id":"pt2"},{"given":null,"id":"pt3"},{"given":null,"id":"pt4"}],"actual":[{"given":null,"id":"pt1"},{"given":null,"id":"pt2"},{"given":null,"id":"pt3"},{"given":null,"id":"pt4"}]}},{"result":{"passed":true,"expected":[{"id":"pt1","tel":"t1.1"},{"id":"pt1","tel":"t1.1"},{"id":"pt1","tel":"t1.c1.1"},{"id":"pt2","tel":"t2.1"},{"id":"pt2","tel":"t2.1"},{"id":"pt3","tel":"t3.c1.1"}],"actual":[{"tel":"t1.1","id":"pt1"},{"tel":"t1.1","id":"pt1"},{"tel":"t1.c1.1","id":"pt1"},{"tel":"t2.1","id":"pt2"},{"tel":"t2.1","id":"pt2"},{"tel":"t3.c1.1","id":"pt3"}]}},{"result":{"passed":true,"expected":[{"id":"pt1","sys":"pager","tel":"t1.c1.1"},{"id":"pt1","sys":"url","tel":"t1.c2.1"},{"id":"pt1","sys":"sms","tel":"t1.c2.2"},{"id":"pt3","sys":"email","tel":"t3.c1.1"},{"id":"pt3","sys":"pager","tel":"t3.c1.2"},{"id":"pt3","sys":"sms","tel":"t3.c2.1"}],"actual":[{"tel":"t1.c1.1","sys":"pager","id":"pt1"},{"tel":"t1.c2.1","sys":"url","id":"pt1"},{"tel":"t1.c2.2","sys":"sms","id":"pt1"},{"tel":"t3.c1.1","sys":"email","id":"pt3"},{"tel":"t3.c1.2","sys":"pager","id":"pt3"},{"tel":"t3.c2.1","sys":"sms","id":"pt3"}]}}]},"basic.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"pt1"},{"id":"pt2"},{"id":"pt3"}],"actual":[{"id":"pt1"},{"id":"pt2"},{"id":"pt3"}]}},{"result":{"passed":true,"expected":[{"id":"pt1","active":true},{"id":"pt2","active":false},{"id":"pt3","active":null}],"actual":[{"id":"pt1","active":true},{"id":"pt2","active":false},{"id":"pt3","active":null}]}},{"result":{"passed":true,"expected":[{"id":"pt1","last_name":"F1"},{"id":"pt2","last_name":"F2"},{"id":"pt3","last_name":null}],"actual":[{"id":"pt1","last_name":"F1"},{"id":"pt2","last_name":"F2"},{"id":"pt3","last_name":null}]}},{"result":{"passed":true,"expected":[{"id":"pt1","last_name":"F1"},{"id":"pt2","last_name":"F2"},{"id":"pt3","last_name":null}],"actual":[{"last_name":"F1","id":"pt1"},{"last_name":"F2","id":"pt2"},{"last_name":null,"id":"pt3"}]}},{"result":{"passed":true,"expected":[{"id":"pt1"}],"actual":[{"id":"pt1"}]}},{"result":{"passed":true,"expected":[{"id":"pt2"}],"actual":[{"id":"pt2"}]}},{"result":{"passed":true,"expected":[{"id":"pt1"}],"actual":[{"id":"pt1"}]}},{"result":{"passed":true,"expected":[{"id":"pt2"}],"actual":[{"id":"pt2"}]}},{"result":{"passed":true,"expected":[{"id":"pt1"}],"actual":[{"id":"pt1"}]}},{"result":{"passed":true,"expected":[{"c_id":"pt1","s_id":"pt1"},{"c_id":"pt2","s_id":"pt2"},{"c_id":"pt3","s_id":"pt3"}],"actual":[{"s_id":"pt1","c_id":"pt1"},{"s_id":"pt2","c_id":"pt2"},{"s_id":"pt3","c_id":"pt3"}]}}]}} \ No newline at end of file +{"foreach.json":{"tests":[]},"fn_join.json":{"tests":[]},"where.json":{"tests":[]},"basic.json":{"tests":[]},"collection.json":{"tests":[{"result":{"passed":true}}]},"combinations.json":{"tests":[]},"fn_first.json":{"tests":[]},"fhirpath_numbers.json":{"tests":[]},"fn_empty.json":{"tests":[]},"fn_reference_keys.json":{"tests":[]},"fhirpath.json":{"tests":[]},"fn_boundary.json":{"tests":[]},"fn_extension.json":{"tests":[]},"logic.json":{"tests":[]},"constant_types.json":{"tests":[{"result":{"passed":true,"expected":[{"id":"d1","aidc":true},{"id":"d2","aidc":false},{"id":"d3","aidc":null}],"actual":[{"id":"d1","aidc":true},{"id":"d2","aidc":false},{"id":"d3","aidc":null}]}},{"result":{"passed":true,"expected":[{"id":"pt1","bool":true},{"id":"pt2","bool":false},{"id":"pt3","bool":null}],"actual":[{"id":"pt1","bool":true},{"id":"pt2","bool":false},{"id":"pt3","bool":null}]}},{"result":{"passed":true,"expected":[{"id":"pt1","bool":true},{"id":"pt2","bool":false},{"id":"pt3","bool":null}],"actual":[{"id":"pt1","bool":true},{"id":"pt2","bool":false},{"id":"pt3","bool":null}]}},{"result":{"passed":true,"expected":[{"id":"di1","bool":false},{"id":"di2","bool":true},{"id":"di3","bool":null}],"actual":[{"id":"di1","bool":false},{"id":"di2","bool":true},{"id":"di3","bool":null}]}},{"result":{"passed":true,"expected":[{"id":"o1","bool":true},{"id":"o2","bool":false},{"id":"o3","bool":null},{"id":"o4","bool":null},{"id":"o5","bool":null}],"actual":[{"id":"o1","bool":true},{"id":"o2","bool":false},{"id":"o3","bool":null},{"id":"o4","bool":null},{"id":"o5","bool":null}]}},{"result":{"passed":true,"expected":[{"id":"t1","bool":null},{"id":"t2","bool":null},{"id":"t3","bool":null},{"id":"t4","bool":null},{"id":"t5","bool":null},{"id":"t6","bool":null},{"id":"t7","bool":null},{"id":"t8","bool":true},{"id":"t9","bool":false}],"actual":[{"id":"t1","bool":null},{"id":"t2","bool":null},{"id":"t3","bool":null},{"id":"t4","bool":null},{"id":"t5","bool":null},{"id":"t6","bool":null},{"id":"t7","bool":null},{"id":"t8","bool":true},{"id":"t9","bool":false}]}},{"result":{"passed":true,"expected":[{"id":"o1","bool":true},{"id":"o2","bool":false},{"id":"o3","bool":null},{"id":"o4","bool":null},{"id":"o5","bool":null}],"actual":[{"id":"o1","bool":true},{"id":"o2","bool":false},{"id":"o3","bool":null},{"id":"o4","bool":null},{"id":"o5","bool":null}]}},{"result":{"passed":true,"expected":[{"id":"t1","bool":null},{"id":"t2","bool":null},{"id":"t3","bool":null},{"id":"t4","bool":true},{"id":"t5","bool":false},{"id":"t6","bool":null},{"id":"t7","bool":null},{"id":"t8","bool":null},{"id":"t9","bool":null}],"actual":[{"id":"t1","bool":null},{"id":"t2","bool":null},{"id":"t3","bool":null},{"id":"t4","bool":true},{"id":"t5","bool":false},{"id":"t6","bool":null},{"id":"t7","bool":null},{"id":"t8","bool":null},{"id":"t9","bool":null}]}},{"result":{"passed":true,"expected":[{"id":"cr1","bool":true},{"id":"cr2","bool":false},{"id":"cr3","bool":null}],"actual":[{"id":"cr1","bool":true},{"id":"cr2","bool":false},{"id":"cr3","bool":null}]}},{"result":{"passed":true,"expected":[{"id":"o1","bool":null},{"id":"o2","bool":null},{"id":"o3","bool":null},{"id":"o4","bool":true},{"id":"o5","bool":false}],"actual":[{"id":"o1","bool":null},{"id":"o2","bool":null},{"id":"o3","bool":null},{"id":"o4","bool":true},{"id":"o5","bool":false}]}},{"result":{"passed":true,"expected":[{"id":"is1","bool":true},{"id":"is2","bool":false},{"id":"is3","bool":null}],"actual":[{"id":"is1","bool":true},{"id":"is2","bool":false},{"id":"is3","bool":null}]}},{"result":{"passed":true,"expected":[{"id":"m1","bool":true},{"id":"m2","bool":false},{"id":"m3","bool":null}],"actual":[{"id":"m1","bool":true},{"id":"m2","bool":false},{"id":"m3","bool":null}]}},{"result":{"passed":true,"expected":[{"id":"t1","bool":true},{"id":"t2","bool":false},{"id":"t3","bool":null},{"id":"t4","bool":null},{"id":"t5","bool":null},{"id":"t6","bool":null},{"id":"t7","bool":null},{"id":"t8","bool":null},{"id":"t9","bool":null}],"actual":[{"id":"t1","bool":true},{"id":"t2","bool":false},{"id":"t3","bool":null},{"id":"t4","bool":null},{"id":"t5","bool":null},{"id":"t6","bool":null},{"id":"t7","bool":null},{"id":"t8","bool":null},{"id":"t9","bool":null}]}},{"result":{"passed":true,"expected":[{"id":"t1","bool":null},{"id":"t2","bool":null},{"id":"t3","bool":null},{"id":"t4","bool":null},{"id":"t5","bool":null},{"id":"t6","bool":true},{"id":"t7","bool":false},{"id":"t8","bool":null},{"id":"t9","bool":null}],"actual":[{"id":"t1","bool":null},{"id":"t2","bool":null},{"id":"t3","bool":null},{"id":"t4","bool":null},{"id":"t5","bool":null},{"id":"t6","bool":true},{"id":"t7","bool":false},{"id":"t8","bool":null},{"id":"t9","bool":null}]}}]},"view_resource.json":{"tests":[{"result":{"passed":true}}]},"fn_oftype.json":{"tests":[]},"validate.json":{"tests":[{"result":{"passed":true}},{"result":{"passed":true}},{"result":{"passed":true}},{"result":{"passed":true}},{"result":{"passed":true}}]},"constant.json":{"tests":[{"result":{"passed":true}},{"result":{"passed":true}}]},"union.json":{"tests":[{"result":{"passed":true}},{"result":{"passed":true}}]}} \ No newline at end of file diff --git a/tests/constant_types.json b/tests/constant_types.json new file mode 100644 index 0000000..cbfbe5a --- /dev/null +++ b/tests/constant_types.json @@ -0,0 +1,1018 @@ +{ + "title": "constant types", + "description": "tests for all types of constants", + "resources": [ + { + "resourceType": "Organization", + "name": "o1", + "id": "o1" + }, + { + "resourceType": "Device", + "id": "d1", + "udiCarrier": [ + { + "carrierAIDC": "aGVsbG8K" + } + ] + }, + { + "resourceType": "Device", + "id": "d2", + "udiCarrier": [ + { + "carrierAIDC": "YnllCg==" + } + ] + }, + { + "resourceType": "Device", + "id": "d3" + }, + { + "resourceType": "Patient", + "id": "pt1", + "gender": "female", + "birthDate": "1978-03-12" + }, + { + "resourceType": "Patient", + "id": "pt2", + "gender": "male", + "birthDate": "1941-09-09" + }, + { + "resourceType": "Patient", + "id": "pt3" + }, + { + "resourceType": "ClaimResponse", + "id": "cr1", + "use": "claim", + "patient": { "reference": "Patient/p1" }, + "created": "2021-09-02", + "insurer": { "reference": "Organization/o1" }, + "type": { "text": "type" }, + "outcome": "complete", + "status": "active", + "item": [ + { + "itemSequence": 1, + "adjudication": [ + { + "category": { "text": "category" } + } + ] + } + ] + }, + { + "resourceType": "ClaimResponse", + "id": "cr2", + "use": "claim", + "patient": { "reference": "Patient/p1" }, + "created": "2021-09-02", + "insurer": { "reference": "Organization/o1" }, + "type": { "text": "type" }, + "outcome": "complete", + "status": "active", + "item": [ + { + "itemSequence": 2, + "adjudication": [ + { + "category": { "text": "category" } + } + ] + } + ] + }, + { + "resourceType": "ClaimResponse", + "id": "cr3", + "use": "claim", + "patient": { "reference": "Patient/p1" }, + "created": "2021-09-02", + "insurer": { "reference": "Organization/o1" }, + "type": { "text": "type" }, + "outcome": "complete", + "status": "active" + }, + { + "resourceType": "DetectedIssue", + "id": "di1", + "status": "final", + "identifiedDateTime": "2023-02-08" + }, + { + "resourceType": "DetectedIssue", + "id": "di2", + "status": "final", + "identifiedDateTime": "2016-11-12" + }, + { + "resourceType": "DetectedIssue", + "id": "di3", + "status": "final" + }, + { + "resourceType": "Observation", + "id": "o1", + "status": "final", + "code": { "text": "code" }, + "valueQuantity": { "value": 1.0 }, + "effectiveInstant": "2015-02-07T13:28:17.239+02:00" + }, + { + "resourceType": "Observation", + "id": "o2", + "status": "final", + "code": { "text": "code" }, + "valueQuantity": { "value": 1.8 }, + "effectiveInstant": "2022-02-07T13:28:17.239+02:00" + }, + { + "resourceType": "Observation", + "id": "o3", + "status": "final", + "code": { "text": "code" } + }, + { + "resourceType": "Observation", + "id": "o4", + "status": "final", + "code": { "text": "code" }, + "valueTime": "18:12:00" + }, + { + "resourceType": "Observation", + "id": "o5", + "status": "final", + "code": { "text": "code" }, + "valueTime": "18:32:00" + }, + { + "resourceType": "ImagingStudy", + "id": "is1", + "status": "available", + "subject": { "reference": "Patient/p1" }, + "numberOfSeries": 9 + }, + { + "resourceType": "ImagingStudy", + "id": "is2", + "status": "available", + "subject": { "reference": "Patient/p1" }, + "numberOfSeries": 12 + }, + { + "resourceType": "ImagingStudy", + "id": "is3", + "status": "available", + "subject": { "reference": "Patient/p1" } + }, + { + "resourceType": "Measure", + "id": "m1", + "url": "urn:uuid:53fefa32-fcbb-4ff8-8a92-55ee120877b7", + "status": "active" + }, + { + "resourceType": "Measure", + "id": "m2", + "url": "urn:uuid:c4669fc3-0d14-4e54-a77f-525f6d4e8385", + "status": "active" + }, + { + "resourceType": "Measure", + "id": "m3", + "status": "active" + }, + { + "resourceType": "Task", + "id": "t1", + "intent": "order", + "status": "requested", + "output": [ + { + "type": { "text": "type" }, + "valueUrl": "http://example.org" + } + ] + }, + { + "resourceType": "Task", + "id": "t2", + "intent": "order", + "status": "requested", + "output": [ + { + "type": { "text": "type" }, + "valueUrl": "http://another.example.org" + } + ] + }, + { + "resourceType": "Task", + "id": "t3", + "intent": "order", + "status": "requested" + }, + { + "resourceType": "Task", + "id": "t4", + "intent": "order", + "status": "requested", + "output": [ + { + "type": { "text": "type" }, + "valueOid": "urn:oid:1.0" + } + ] + }, + { + "resourceType": "Task", + "id": "t5", + "intent": "order", + "status": "requested", + "output": [ + { + "type": { "text": "type" }, + "valueOid": "urn:oid:1.2.3" + } + ] + }, + { + "resourceType": "Task", + "id": "t6", + "intent": "order", + "status": "requested", + "output": [ + { + "type": { "text": "type" }, + "valueUuid": "urn:uuid:53fefa32-fcbb-4ff8-8a92-55ee120877b7" + } + ] + }, + { + "resourceType": "Task", + "id": "t7", + "intent": "order", + "status": "requested", + "output": [ + { + "type": { "text": "type" }, + "valueUuid": "urn:uuid:c4669fc3-0d14-4e54-a77f-525f6d4e8385" + } + ] + }, + { + "resourceType": "Task", + "id": "t8", + "intent": "order", + "status": "requested", + "output": [ + { + "type": { "text": "type" }, + "valueId": "id1" + } + ] + }, + { + "resourceType": "Task", + "id": "t9", + "intent": "order", + "status": "requested", + "output": [ + { + "type": { "text": "type" }, + "valueId": "id2" + } + ] + } + ], + "tests": [ + { + "title": "base64Binary", + "view": { + "resource": "Device", + "status": "active", + "constant": [ + { + "name": "aidc", + "valueBase64Binary": "aGVsbG8K" + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "aidc", + "path": "udiCarrier.first().carrierAIDC = %aidc", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "d1", + "aidc": true + }, + { + "id": "d2", + "aidc": false + }, + { + "id": "d3", + "aidc": null + } + ] + }, + { + "title": "code", + "view": { + "resource": "Patient", + "status": "active", + "constant": [ + { + "name": "gender", + "valueCode": "female" + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "gender = %gender", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "pt1", + "bool": true + }, + { + "id": "pt2", + "bool": false + }, + { + "id": "pt3", + "bool": null + } + ] + }, + { + "title": "date", + "view": { + "resource": "Patient", + "status": "active", + "constant": [ + { + "name": "bd", + "valueDate": "1978-03-12" + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "birthDate = %bd", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "pt1", + "bool": true + }, + { + "id": "pt2", + "bool": false + }, + { + "id": "pt3", + "bool": null + } + ] + }, + { + "title": "dateTime", + "view": { + "resource": "DetectedIssue", + "status": "active", + "constant": [ + { + "name": "id_time", + "valueDate": "2016-11-12" + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "identified.ofType(DateTime) = %id_time", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "di1", + "bool": false + }, + { + "id": "di2", + "bool": true + }, + { + "id": "di3", + "bool": null + } + ] + }, + { + "title": "decimal", + "view": { + "resource": "Observation", + "status": "active", + "constant": [ + { + "name": "v", + "valueDecimal": 1.2 + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "value.ofType(Quantity).value < %v", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "o1", + "bool": true + }, + { + "id": "o2", + "bool": false + }, + { + "id": "o3", + "bool": null + }, + { + "id": "o4", + "bool": null + }, + { + "id": "o5", + "bool": null + } + ] + }, + { + "title": "id", + "view": { + "resource": "Task", + "status": "active", + "constant": [ + { + "name": "id", + "valueUuid": "id1" + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "output.first().value.ofType(id) = %id", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "t1", + "bool": null + }, + { + "id": "t2", + "bool": null + }, + { + "id": "t3", + "bool": null + }, + { + "id": "t4", + "bool": null + }, + { + "id": "t5", + "bool": null + }, + { + "id": "t6", + "bool": null + }, + { + "id": "t7", + "bool": null + }, + { + "id": "t8", + "bool": true + }, + { + "id": "t9", + "bool": false + } + ] + }, + { + "title": "instant", + "view": { + "resource": "Observation", + "status": "active", + "constant": [ + { + "name": "eff", + "valueInstant": "2015-02-07T13:28:17.239+02:00" + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "effective.ofType(Instant) = %eff", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "o1", + "bool": true + }, + { + "id": "o2", + "bool": false + }, + { + "id": "o3", + "bool": null + }, + { + "id": "o4", + "bool": null + }, + { + "id": "o5", + "bool": null + } + ] + }, + { + "title": "oid", + "view": { + "resource": "Task", + "status": "active", + "constant": [ + { + "name": "oid", + "valueUrl": "urn:oid:1.0" + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "output.first().value.ofType(oid) = %oid", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "t1", + "bool": null + }, + { + "id": "t2", + "bool": null + }, + { + "id": "t3", + "bool": null + }, + { + "id": "t4", + "bool": true + }, + { + "id": "t5", + "bool": false + }, + { + "id": "t6", + "bool": null + }, + { + "id": "t7", + "bool": null + }, + { + "id": "t8", + "bool": null + }, + { + "id": "t9", + "bool": null + } + ] + }, + { + "title": "positiveInt", + "view": { + "resource": "ClaimResponse", + "status": "active", + "constant": [ + { + "name": "seq", + "valuePositiveInt": 1 + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "item.first().itemSequence = %seq", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "cr1", + "bool": true + }, + { + "id": "cr2", + "bool": false + }, + { + "id": "cr3", + "bool": null + } + ] + }, + { + "title": "time", + "view": { + "resource": "Observation", + "status": "active", + "constant": [ + { + "name": "t", + "valueTime": "18:12:00" + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "value.ofType(Time) = %t", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "o1", + "bool": null + }, + { + "id": "o2", + "bool": null + }, + { + "id": "o3", + "bool": null + }, + { + "id": "o4", + "bool": true + }, + { + "id": "o5", + "bool": false + } + ] + }, + { + "title": "unsignedInt", + "view": { + "resource": "ImagingStudy", + "status": "active", + "constant": [ + { + "name": "series", + "valueUnsignedInt": 9 + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "numberOfSeries = %series", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "is1", + "bool": true + }, + { + "id": "is2", + "bool": false + }, + { + "id": "is3", + "bool": null + } + ] + }, + { + "title": "uri", + "view": { + "resource": "Measure", + "status": "active", + "constant": [ + { + "name": "uri", + "valueUri": "urn:uuid:53fefa32-fcbb-4ff8-8a92-55ee120877b7" + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "url = %uri", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "m1", + "bool": true + }, + { + "id": "m2", + "bool": false + }, + { + "id": "m3", + "bool": null + } + ] + }, + { + "title": "url", + "view": { + "resource": "Task", + "status": "active", + "constant": [ + { + "name": "url", + "valueUrl": "http://example.org" + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "output.first().value.ofType(url) = %url", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "t1", + "bool": true + }, + { + "id": "t2", + "bool": false + }, + { + "id": "t3", + "bool": null + }, + { + "id": "t4", + "bool": null + }, + { + "id": "t5", + "bool": null + }, + { + "id": "t6", + "bool": null + }, + { + "id": "t7", + "bool": null + }, + { + "id": "t8", + "bool": null + }, + { + "id": "t9", + "bool": null + } + ] + }, + { + "title": "uuid", + "view": { + "resource": "Task", + "status": "active", + "constant": [ + { + "name": "uuid", + "valueUuid": "urn:uuid:53fefa32-fcbb-4ff8-8a92-55ee120877b7" + } + ], + "select": [ + { + "column": [ + { + "name": "id", + "path": "id", + "type": "id" + }, + { + "name": "bool", + "path": "output.first().value.ofType(uuid) = %uuid", + "type": "boolean" + } + ] + } + ] + }, + "expect": [ + { + "id": "t1", + "bool": null + }, + { + "id": "t2", + "bool": null + }, + { + "id": "t3", + "bool": null + }, + { + "id": "t4", + "bool": null + }, + { + "id": "t5", + "bool": null + }, + { + "id": "t6", + "bool": true + }, + { + "id": "t7", + "bool": false + }, + { + "id": "t8", + "bool": null + }, + { + "id": "t9", + "bool": null + } + ] + } + ] +}