-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCqlStringOperatorsTest.xml
More file actions
571 lines (571 loc) · 22.6 KB
/
Copy pathCqlStringOperatorsTest.xml
File metadata and controls
571 lines (571 loc) · 22.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
<?xml version="1.0" encoding="utf-8"?>
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://hl7.org/fhirpath/tests" xsi:schemaLocation="http://hl7.org/fhirpath/tests ../../testSchema/testSchema.xsd"
name="CqlStringOperatorsTest" reference="https://cql.hl7.org/09-b-cqlreference.html#string-operators-3" version="1.0">
<capability code="string-operators" />
<group name="Combine" version="1.0">
<capability code="string-operators" />
<test name="CombineNull" version="1.0">
<capability code="string-operators" />
<expression>Combine(null)</expression>
<output>null</output>
</test>
<test name="CombineEmptyList" version="1.0">
<capability code="string-operators" />
<expression>Combine({})</expression>
<output>null</output>
</test>
<test name="CombineABC" version="1.0">
<capability code="string-operators" />
<expression>Combine({'a', 'b', 'c'})</expression>
<output>'abc'</output>
</test>
<test name="CombineABCSepDash" version="1.0">
<capability code="string-operators" />
<expression>Combine({'a', 'b', 'c'}, '-')</expression>
<output>'a-b-c'</output>
</test>
<test name="CombineWithNulls" version="1.0">
<capability code="string-operators" />
<!-- null elements in the input list are ignored; per CQL spec "Combine" (https://cql.hl7.org/09-b-cqlreference.html#combine) -->
<expression>Combine({'a', 'b', 'c', null})</expression>
<output>'abc'</output>
</test>
<test name="CombineNullSeparator" version="1.0">
<capability code="string-operators" />
<!-- a null separator is ignored; per CQL spec "Combine" (https://cql.hl7.org/09-b-cqlreference.html#combine) -->
<expression>Combine({'a', 'b', 'c'}, null)</expression>
<output>'abc'</output>
</test>
</group>
<group name="Concatenate" version="1.0">
<capability code="string-operators" />
<test name="ConcatenateNullNull" version="1.0">
<capability code="string-operators" />
<expression>Concatenate(null, null)</expression>
<output>null</output>
</test>
<test name="ConcatenateANull" version="1.0">
<capability code="string-operators" />
<expression>Concatenate('a', null)</expression>
<output>null</output>
</test>
<test name="ConcatenateNullB" version="1.0">
<capability code="string-operators" />
<expression>Concatenate(null, 'b')</expression>
<output>null</output>
</test>
<test name="ConcatenateAB" version="1.0">
<capability code="string-operators" />
<expression>Concatenate('a', 'b')</expression>
<output>'ab'</output>
</test>
<test name="ConcatenateABWithAdd" version="1.0">
<capability code="string-operators" />
<expression>'a' + 'b'</expression>
<output>'ab'</output>
</test>
<test name="ConcatenatePlusNull" version="1.0">
<capability code="string-operators" />
<!-- when using +, if either argument is null the result is null; per CQL spec "Concatenate" (https://cql.hl7.org/09-b-cqlreference.html#concatenate) -->
<expression>'a' + null</expression>
<output>null</output>
</test>
<test name="ConcatenateAndNull" version="1.0">
<capability code="string-operators" />
<!-- when using &, null arguments are treated as an empty string; per CQL spec "Concatenate" (https://cql.hl7.org/09-b-cqlreference.html#concatenate) -->
<expression>'a' & null</expression>
<output>'a'</output>
</test>
<test name="ConcatenateAndWithNull" version="1.0">
<capability code="string-operators" />
<!-- & treats nulls as empty string; per CQL spec "Concatenate" (https://cql.hl7.org/09-b-cqlreference.html#concatenate) -->
<expression>'John' & null & ' Doe'</expression>
<output>'John Doe'</output>
</test>
</group>
<group name="EndsWith" version="1.0">
<capability code="string-operators" />
<test name="EndsWithNull" version="1.0">
<capability code="string-operators" />
<expression>EndsWith(null, null)</expression>
<output>null</output>
</test>
<test name="EndsWithTrue" version="1.0">
<capability code="string-operators" />
<expression>EndsWith('Chris Schuler is the man!!', 'n!!')</expression>
<output>true</output>
</test>
<test name="EndsWithFalse" version="1.0">
<capability code="string-operators" />
<expression>EndsWith('Chris Schuler is the man!!', 'n!')</expression>
<output>false</output>
</test>
<test name="EndsWithEmpty" version="1.0">
<capability code="string-operators" />
<!-- if the suffix is the empty string, the result is true; per CQL spec "EndsWith" (https://cql.hl7.org/09-b-cqlreference.html#endswith) -->
<expression>EndsWith('ABC', '')</expression>
<output>true</output>
</test>
</group>
<group name="Indexer" version="1.0">
<capability code="string-operators" />
<test name="IndexerNullNull" version="1.0">
<capability code="string-operators" />
<expression>Indexer(null as String, null)</expression>
<output>null</output>
<!-- cast is required due to ambiguity with Indexer(String) and Indexer(List<Any>) -->
</test>
<test name="IndexerANull" version="1.0">
<capability code="string-operators" />
<expression>Indexer('a', null)</expression>
<output>null</output>
</test>
<test name="IndexerNull1String" version="1.0">
<capability code="string-operators" />
<expression>Indexer(null as String, 1)</expression>
<output>null</output>
<!-- cast is required due to ambiguity with Indexer(String) and Indexer(List<Any>) -->
</test>
<test name="IndexerAB0" version="1.0">
<capability code="string-operators" />
<expression>Indexer('ab', 0)</expression>
<output>'a'</output>
</test>
<test name="IndexerAB1" version="1.0">
<capability code="string-operators" />
<expression>Indexer('ab', 1)</expression>
<output>'b'</output>
</test>
<test name="IndexerAB2" version="1.0">
<capability code="string-operators" />
<expression>Indexer('ab', 2)</expression>
<output>null</output>
</test>
<test name="IndexerABNeg1" version="1.0">
<capability code="string-operators" />
<expression>Indexer('ab', -1)</expression>
<output>null</output>
</test>
</group>
<group name="LastPositionOf" version="1.0">
<capability code="string-operators" />
<test name="LastPositionOfNull" version="1.0">
<capability code="string-operators" />
<expression>LastPositionOf(null, null)</expression>
<output>null</output>
</test>
<test name="LastPositionOfNull1" version="1.0">
<capability code="string-operators" />
<expression>LastPositionOf(null, 'hi')</expression>
<output>null</output>
</test>
<test name="LastPositionOfNull2" version="1.0">
<capability code="string-operators" />
<expression>LastPositionOf('hi', null)</expression>
<output>null</output>
</test>
<test name="LastPositionOf1" version="1.0">
<capability code="string-operators" />
<expression>LastPositionOf('hi', 'Ohio is the place to be!')</expression>
<output>1</output>
</test>
<test name="LastPositionOf2" version="1.0">
<capability code="string-operators" />
<expression>LastPositionOf('hi', 'Say hi to Ohio!')</expression>
<output>11</output>
</test>
<test name="LastPositionOfEmpty" version="1.0">
<capability code="string-operators" />
<!-- empty pattern matches after the final character, so the result is the length of the argument; per CQL spec "LastPositionOf" (https://cql.hl7.org/09-b-cqlreference.html#lastpositionof) -->
<expression>LastPositionOf('', 'ABCDE')</expression>
<output>5</output>
</test>
</group>
<group name="Length" version="1.0">
<capability code="string-operators" />
<test name="LengthNullString" version="1.0">
<capability code="string-operators" />
<expression>Length(null as String)</expression>
<output>null</output>
<!-- cast is required due to ambiguity with Length(String) and Length(List<Any>) -->
</test>
<test name="LengthEmptyString" version="1.0">
<capability code="string-operators" />
<expression>Length('')</expression>
<output>0</output>
</test>
<test name="LengthA" version="1.0">
<capability code="string-operators" />
<expression>Length('a')</expression>
<output>1</output>
</test>
<test name="LengthAB" version="1.0">
<capability code="string-operators" />
<expression>Length('ab')</expression>
<output>2</output>
</test>
</group>
<group name="Lower" version="1.0">
<capability code="string-operators" />
<test name="LowerNull" version="1.0">
<capability code="string-operators" />
<expression>Lower(null)</expression>
<output>null</output>
</test>
<test name="LowerEmpty" version="1.0">
<capability code="string-operators" />
<expression>Lower('')</expression>
<output>''</output>
</test>
<test name="LowerA" version="1.0">
<capability code="string-operators" />
<expression>Lower('A')</expression>
<output>'a'</output>
</test>
<test name="LowerB" version="1.0">
<capability code="string-operators" />
<expression>Lower('b')</expression>
<output>'b'</output>
</test>
<test name="LowerAB" version="1.0">
<capability code="string-operators" />
<expression>Lower('Ab')</expression>
<output>'ab'</output>
</test>
</group>
<group name="Matches" version="1.0">
<capability code="string-operators" />
<test name="MatchesNull" version="1.0">
<capability code="string-operators" />
<expression>Matches('Not all who wander are lost', null)</expression>
<output>null</output>
</test>
<test name="MatchesNumberFalse" version="1.0">
<capability code="string-operators" />
<expression>Matches('Not all who wander are lost', '.*\\d+')</expression>
<output>false</output>
</test>
<test name="MatchesNumberTrue" version="1.0">
<capability code="string-operators" />
<expression>Matches('Not all who wander are lost - circa 2017', '.*\\d+')</expression>
<output>true</output>
</test>
<test name="MatchesAllTrue" version="1.0">
<capability code="string-operators" />
<expression>Matches('Not all who wander are lost', '.*')</expression>
<output>true</output>
</test>
<test name="MatchesWordsAndSpacesTrue" version="1.0">
<capability code="string-operators" />
<expression>Matches('Not all who wander are lost', '[\\w|\\s]+')</expression>
<output>true</output>
</test>
<test name="MatchesWordsAndSpacesFalse" version="1.0">
<capability code="string-operators" />
<expression>Matches('Not all who wander are lost - circa 2017', '^[\\w\\s]+$')</expression>
<output>false</output>
</test>
<test name="MatchesNotWords" version="1.0">
<capability code="string-operators" />
<expression>Matches(' ', '\\W+')</expression>
<output>true</output>
</test>
<test name="MatchesWhiteSpace" version="1.0">
<capability code="string-operators" />
<expression>Matches(' \n\t', '\\s+')</expression>
<output>true</output>
</test>
</group>
<group name="MatchesFull" version="2.0" reference="https://cql.hl7.org/09-b-cqlreference.html#matchesfull">
<!-- MatchesFull was introduced in CQL 2.0 with trial-use status -->
<capability code="string-operators" />
<test name="MatchesFullTrue" version="2.0">
<capability code="string-operators" />
<!-- full match: N followed by exactly 10 digits; per CQL spec "MatchesFull" (https://cql.hl7.org/09-b-cqlreference.html#matchesfull) -->
<expression>MatchesFull('N8000123123', 'N[0-9]{10}')</expression>
<output>true</output>
</test>
<test name="MatchesFullFalse" version="2.0">
<capability code="string-operators" />
<!-- not a full match: string has 10 digits but pattern requires exactly 8; per CQL spec "MatchesFull" (https://cql.hl7.org/09-b-cqlreference.html#matchesfull) -->
<expression>MatchesFull('N8000123123', 'N[0-9]{8}')</expression>
<output>false</output>
</test>
<test name="MatchesFullNull" version="2.0">
<capability code="string-operators" />
<!-- if either argument is null, the result is null; per CQL spec "MatchesFull" (https://cql.hl7.org/09-b-cqlreference.html#matchesfull) -->
<expression>MatchesFull('ABC', null)</expression>
<output>null</output>
</test>
</group>
<group name="PositionOf" version="1.0">
<capability code="string-operators" />
<test name="PositionOfNullNull" version="1.0">
<capability code="string-operators" />
<expression>PositionOf(null, null)</expression>
<output>null</output>
</test>
<test name="PositionOfANull" version="1.0">
<capability code="string-operators" />
<expression>PositionOf('a', null)</expression>
<output>null</output>
</test>
<test name="PositionOfNullA" version="1.0">
<capability code="string-operators" />
<expression>PositionOf(null, 'a')</expression>
<output>null</output>
</test>
<test name="PositionOfAInAB" version="1.0">
<capability code="string-operators" />
<expression>PositionOf('a', 'ab')</expression>
<output>0</output>
</test>
<test name="PositionOfBInAB" version="1.0">
<capability code="string-operators" />
<expression>PositionOf('b', 'ab')</expression>
<output>1</output>
</test>
<test name="PositionOfCInAB" version="1.0">
<capability code="string-operators" />
<expression>PositionOf('c', 'ab')</expression>
<output>-1</output>
</test>
<test name="PositionOfEmpty" version="1.0">
<capability code="string-operators" />
<!-- empty pattern matches at the beginning, so the result is 0; per CQL spec "PositionOf" (https://cql.hl7.org/09-b-cqlreference.html#positionof) -->
<expression>PositionOf('', 'ABCDE')</expression>
<output>0</output>
</test>
</group>
<group name="ReplaceMatches" version="1.0">
<capability code="string-operators" />
<test name="ReplaceMatchesNull" version="1.0">
<capability code="string-operators" />
<expression>ReplaceMatches('Not all who wander are lost', null, 'But I am...')</expression>
<output>null</output>
</test>
<test name="ReplaceMatchesAll" version="1.0">
<capability code="string-operators" />
<expression>ReplaceMatches('Not all who wander are lost', 'Not all who wander are lost', 'But still waters run deep')</expression>
<output>'But still waters run deep'</output>
</test>
<test name="ReplaceMatchesMany" version="1.0">
<capability code="string-operators" />
<expression>ReplaceMatches('Who put the bop in the bop she bop she bop?', 'bop', 'bang')</expression>
<output>'Who put the bang in the bang she bang she bang?'</output>
</test>
<test name="ReplaceMatchesSpaces" version="1.0">
<capability code="string-operators" />
<expression>ReplaceMatches('All that glitters is not gold', '\\s', '\\$')</expression>
<output>'All$that$glitters$is$not$gold'</output>
</test>
</group>
<group name="Split" version="1.0">
<capability code="string-operators" />
<test name="SplitNullNull" version="1.0">
<capability code="string-operators" />
<expression>Split(null, null)</expression>
<output>null</output>
</test>
<test name="SplitNullComma" version="1.0">
<capability code="string-operators" />
<expression>Split(null, ',')</expression>
<output>null</output>
</test>
<test name="SplitABNull" version="1.0">
<capability code="string-operators" />
<expression>Split('a,b', null)</expression>
<output>{'a,b'}</output>
</test>
<test name="SplitABDash" version="1.0">
<capability code="string-operators" />
<expression>Split('a,b', '-')</expression>
<output>{'a,b'}</output>
</test>
<test name="SplitABComma" version="1.0">
<capability code="string-operators" />
<expression>Split('a,b', ',')</expression>
<output>{'a','b'}</output>
</test>
</group>
<group name="SplitOnMatches" version="1.0" reference="https://cql.hl7.org/09-b-cqlreference.html#splitonmatches">
<capability code="string-operators" />
<test name="SplitOnMatchesNull" version="1.0">
<capability code="string-operators" />
<!-- if the stringToSplit argument is null, the result is null; per CQL spec "SplitOnMatches" (https://cql.hl7.org/09-b-cqlreference.html#splitonmatches) -->
<expression>SplitOnMatches(null, ',')</expression>
<output>null</output>
</test>
<test name="SplitOnMatchesComma" version="1.0">
<capability code="string-operators" />
<!-- separatorPattern is a regular expression; per CQL spec "SplitOnMatches" (https://cql.hl7.org/09-b-cqlreference.html#splitonmatches) -->
<expression>SplitOnMatches('A,B,C', ',')</expression>
<output>{'A', 'B', 'C'}</output>
</test>
<test name="SplitOnMatchesRegex" version="1.0">
<capability code="string-operators" />
<!-- split using a regular-expression separator (any digit); per CQL spec "SplitOnMatches" (https://cql.hl7.org/09-b-cqlreference.html#splitonmatches) -->
<expression>SplitOnMatches('A1B2C', '[0-9]')</expression>
<output>{'A', 'B', 'C'}</output>
</test>
<test name="SplitOnMatchesNotFound" version="1.0">
<capability code="string-operators" />
<!-- no match for the separatorPattern => single-element list containing the input; per CQL spec "SplitOnMatches" (https://cql.hl7.org/09-b-cqlreference.html#splitonmatches) -->
<expression>SplitOnMatches('ABC', ',')</expression>
<output>{'ABC'}</output>
</test>
</group>
<group name="StartsWith" version="1.0">
<capability code="string-operators" />
<test name="StartsWithNull" version="1.0">
<capability code="string-operators" />
<expression>StartsWith(null, null)</expression>
<output>null</output>
</test>
<test name="StartsWithNull1" version="1.0">
<capability code="string-operators" />
<expression>StartsWith('hi', null)</expression>
<output>null</output>
</test>
<test name="StartsWithNull2" version="1.0">
<capability code="string-operators" />
<expression>StartsWith(null, 'hi')</expression>
<output>null</output>
</test>
<test name="StartsWithTrue1" version="1.0">
<capability code="string-operators" />
<expression>StartsWith('Breathe deep the gathering gloom', 'Bre')</expression>
<output>true</output>
</test>
<test name="StartsWithFalse1" version="1.0">
<capability code="string-operators" />
<expression>StartsWith('Breathe deep the gathering gloom', 'bre')</expression>
<output>false</output>
</test>
<test name="StartsWithEmpty" version="1.0">
<capability code="string-operators" />
<!-- if the prefix is the empty string, the result is true; per CQL spec "StartsWith" (https://cql.hl7.org/09-b-cqlreference.html#startswith) -->
<expression>StartsWith('ABCDE', '')</expression>
<output>true</output>
</test>
</group>
<group name="Substring" version="1.0">
<capability code="string-operators" />
<test name="SubstringNullNull" version="1.0">
<capability code="string-operators" />
<expression>Substring(null, null)</expression>
<output>null</output>
</test>
<test name="SubstringANull" version="1.0">
<capability code="string-operators" />
<expression>Substring('a', null)</expression>
<output>null</output>
</test>
<test name="SubstringNull1" version="1.0">
<capability code="string-operators" />
<expression>Substring(null, 1)</expression>
<output>null</output>
</test>
<test name="SubstringAB0" version="1.0">
<capability code="string-operators" />
<expression>Substring('ab', 0)</expression>
<output>'ab'</output>
</test>
<test name="SubstringAB1" version="1.0">
<capability code="string-operators" />
<expression>Substring('ab', 1)</expression>
<output>'b'</output>
</test>
<test name="SubstringAB2" version="1.0">
<capability code="string-operators" />
<expression>Substring('ab', 2)</expression>
<output>null</output>
</test>
<test name="SubstringABNeg1" version="1.0">
<capability code="string-operators" />
<expression>Substring('ab', -1)</expression>
<output>null</output>
</test>
<test name="SubstringEmptyAnd0" version="1.0">
<capability code="string-operators" />
<expression>Substring('', 0)</expression>
<output>''</output>
</test>
<test name="SubstringAB0To1" version="1.0">
<capability code="string-operators" />
<expression>Substring('ab', 0, 1)</expression>
<output>'a'</output>
</test>
<test name="SubstringABC1To1" version="1.0">
<capability code="string-operators" />
<expression>Substring('abc', 1, 1)</expression>
<output>'b'</output>
</test>
<test name="SubstringAB0To3" version="1.0">
<capability code="string-operators" />
<expression>Substring('ab', 0, 3)</expression>
<output>'ab'</output>
</test>
</group>
<group name="Upper" version="1.0">
<capability code="string-operators" />
<test name="UpperNull" version="1.0">
<capability code="string-operators" />
<expression>Upper(null)</expression>
<output>null</output>
</test>
<test name="UpperEmpty" version="1.0">
<capability code="string-operators" />
<expression>Upper('')</expression>
<output>''</output>
</test>
<test name="UpperA" version="1.0">
<capability code="string-operators" />
<expression>Upper('a')</expression>
<output>'A'</output>
</test>
<test name="UpperB" version="1.0">
<capability code="string-operators" />
<expression>Upper('B')</expression>
<output>'B'</output>
</test>
<test name="UpperAB" version="1.0">
<capability code="string-operators" />
<expression>Upper('aB')</expression>
<output>'AB'</output>
</test>
</group>
<group name="toString tests" version="1.0">
<capability code="string-operators" />
<test name="QuantityToString" version="1.0">
<capability code="string-operators" />
<expression>ToString(125 'cm')</expression>
<output>'125 \'cm\''</output>
</test>
<test name="DateTimeToString1" version="1.0">
<capability code="string-operators" />
<expression>ToString(DateTime(2000, 1, 1))</expression>
<output>'2000-01-01'</output>
</test>
<test name="DateTimeToString2" version="1.0">
<capability code="string-operators" />
<expression>ToString(DateTime(2000, 1, 1, 15, 25, 25, 300))</expression>
<output>'2000-01-01T15:25:25.300'</output>
</test>
<test name="DateTimeToString3" version="1.0">
<capability code="string-operators" />
<expression>ToString(DateTime(2000, 1, 1, 8, 25, 25, 300, -7))</expression>
<output>'2000-01-01T08:25:25.300-07:00'</output>
</test>
<test name="TimeToString1" version="1.0">
<capability code="string-operators" />
<expression>ToString(@T09:30:01.003)</expression>
<output>'09:30:01.003'</output>
</test>
<!-- OBSOLETE: define TupleToString: Tuple { this: 'is', a: 123, test: 25 'g' } -->
<!-- OBSOLETE: define IntervalToString: Interval [ DateTime(1999, 12, 31), DateTime(2000, 1, 1) ] -->
<!-- OBSOLETE: define UncertaintyToString: difference in months between DateTime(2005) and DateTime(2006, 7) -->
<!-- OBSOLETE: define CodeToString: Code { code: '4225-6', system: 'http://loinc.org', version: '2.1', display: 'loinc' } -->
<!-- OBSOLETE: define ConceptToString: Concept { Code '66071002' from "LOINC", Code 'B18.1' from "LOINC"} display 'Type B viral hepatitis' -->
</group>
</tests>