|
81 | 81 |
|
82 | 82 | (testing "eval" |
83 | 83 | (given (expr/eval (eval-context db) expr patient) |
84 | | - [0 fhir-spec/fhir-type] := :fhir/Patient |
| 84 | + [0 :fhir/type] := :fhir/Patient |
85 | 85 | [0 :id] := "0")) |
86 | 86 |
|
87 | 87 | (testing "expression is dynamic" |
|
104 | 104 | (with-system-data [{:blaze.db/keys [node]} mem-node-config] |
105 | 105 | [[[:put {:fhir/type :fhir/Patient :id "0"}] |
106 | 106 | [:put {:fhir/type :fhir/Observation :id "1" |
107 | | - :subject #fhir/Reference{:reference "Patient/0"}}]]] |
| 107 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}]]] |
108 | 108 |
|
109 | 109 | (let [context |
110 | 110 | {:node node |
|
116 | 116 |
|
117 | 117 | (testing "eval" |
118 | 118 | (given (expr/eval (eval-context db) expr patient) |
119 | | - [0 fhir-spec/fhir-type] := :fhir/Observation |
| 119 | + [0 :fhir/type] := :fhir/Observation |
120 | 120 | [0 :id] := "1")) |
121 | 121 |
|
122 | 122 | (testing "expression is dynamic" |
|
139 | 139 | (with-system-data [{:blaze.db/keys [node]} mem-node-config] |
140 | 140 | [[[:put {:fhir/type :fhir/Patient :id "0"}] |
141 | 141 | [:put {:fhir/type :fhir/Observation :id "0" |
142 | | - :subject #fhir/Reference{:reference "Patient/0"}}] |
| 142 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}] |
143 | 143 | [:put {:fhir/type :fhir/Observation :id "1" |
144 | 144 | :code |
145 | 145 | #fhir/CodeableConcept |
146 | 146 | {:coding |
147 | 147 | [#fhir/Coding |
148 | 148 | {:system #fhir/uri"system-192253" |
149 | 149 | :code #fhir/code"code-192300"}]} |
150 | | - :subject #fhir/Reference{:reference "Patient/0"}}]]] |
| 150 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}]]] |
151 | 151 |
|
152 | 152 | (let [context |
153 | 153 | {:node node |
|
168 | 168 | (testing "eval" |
169 | 169 | (given (expr/eval (eval-context db) expr patient) |
170 | 170 | count := 1 |
171 | | - [0 fhir-spec/fhir-type] := :fhir/Observation |
| 171 | + [0 :fhir/type] := :fhir/Observation |
172 | 172 | [0 :id] := "1")) |
173 | 173 |
|
174 | 174 | (testing "expression is dynamic" |
|
212 | 212 | (with-system-data [{:blaze.db/keys [node]} mem-node-config] |
213 | 213 | [[[:put {:fhir/type :fhir/Patient :id "0"}] |
214 | 214 | [:put {:fhir/type :fhir/Observation :id "0" |
215 | | - :subject #fhir/Reference{:reference "Patient/0"}}] |
| 215 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}] |
216 | 216 | [:put {:fhir/type :fhir/Observation :id "1" |
217 | 217 | :code |
218 | 218 | #fhir/CodeableConcept |
219 | 219 | {:coding |
220 | 220 | [#fhir/Coding |
221 | 221 | {:system #fhir/uri"system-192253" |
222 | 222 | :code #fhir/code"code-192300"}]} |
223 | | - :subject #fhir/Reference{:reference "Patient/0"}}] |
| 223 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}] |
224 | 224 | [:put {:fhir/type :fhir/Observation :id "2" |
225 | 225 | :code |
226 | 226 | #fhir/CodeableConcept |
227 | 227 | {:coding |
228 | 228 | [#fhir/Coding |
229 | 229 | {:system #fhir/uri"system-192253" |
230 | 230 | :code #fhir/code"code-140541"}]} |
231 | | - :subject #fhir/Reference{:reference "Patient/0"}}]]] |
| 231 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}]]] |
232 | 232 |
|
233 | 233 | (let [context |
234 | 234 | {:node node |
|
250 | 250 | (testing "eval" |
251 | 251 | (given (expr/eval (eval-context db) expr patient) |
252 | 252 | count := 2 |
253 | | - [0 fhir-spec/fhir-type] := :fhir/Observation |
| 253 | + [0 :fhir/type] := :fhir/Observation |
254 | 254 | [0 :id] := "1" |
255 | | - [1 fhir-spec/fhir-type] := :fhir/Observation |
| 255 | + [1 :fhir/type] := :fhir/Observation |
256 | 256 | [1 :id] := "2")) |
257 | 257 |
|
258 | 258 | (testing "expression is dynamic" |
|
281 | 281 | (with-system-data [{:blaze.db/keys [node]} mem-node-config] |
282 | 282 | [[[:put {:fhir/type :fhir/Patient :id "0"}] |
283 | 283 | [:put {:fhir/type :fhir/Observation :id "0" |
284 | | - :subject #fhir/Reference{:reference "Patient/0"}}] |
| 284 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}] |
285 | 285 | [:put {:fhir/type :fhir/Observation :id "1" |
286 | 286 | :code |
287 | 287 | #fhir/CodeableConcept |
288 | 288 | {:coding |
289 | 289 | [#fhir/Coding |
290 | 290 | {:system #fhir/uri"system-192253" |
291 | 291 | :code #fhir/code"code-192300"}]} |
292 | | - :subject #fhir/Reference{:reference "Patient/0"}}] |
| 292 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}] |
293 | 293 | [:put {:fhir/type :fhir/Observation :id "2" |
294 | 294 | :code |
295 | 295 | #fhir/CodeableConcept |
296 | 296 | {:coding |
297 | 297 | [#fhir/Coding |
298 | 298 | {:system #fhir/uri"system-192253" |
299 | 299 | :code #fhir/code"code-140541"}]} |
300 | | - :subject #fhir/Reference{:reference "Patient/0"}}]]] |
| 300 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}]]] |
301 | 301 |
|
302 | 302 | (let [context |
303 | 303 | {:node node |
|
322 | 322 | (testing "eval" |
323 | 323 | (given (expr/eval (eval-context db) expr patient) |
324 | 324 | count := 2 |
325 | | - [0 fhir-spec/fhir-type] := :fhir/Observation |
| 325 | + [0 :fhir/type] := :fhir/Observation |
326 | 326 | [0 :id] := "1" |
327 | | - [1 fhir-spec/fhir-type] := :fhir/Observation |
| 327 | + [1 :fhir/type] := :fhir/Observation |
328 | 328 | [1 :id] := "2")) |
329 | 329 |
|
330 | 330 | (testing "expression is dynamic" |
|
374 | 374 | (with-system-data [{:blaze.db/keys [node]} mem-node-config] |
375 | 375 | [[[:put {:fhir/type :fhir/Patient :id "0"}] |
376 | 376 | [:put {:fhir/type :fhir/Specimen :id "0" |
377 | | - :subject #fhir/Reference{:reference "Patient/0"}}]]] |
| 377 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}]]] |
378 | 378 |
|
379 | 379 | (let [context |
380 | 380 | {:node node |
|
387 | 387 | (testing "eval" |
388 | 388 | (given (expr/eval (eval-context db) expr specimen) |
389 | 389 | count := 1 |
390 | | - [0 fhir-spec/fhir-type] := :fhir/Patient |
| 390 | + [0 :fhir/type] := :fhir/Patient |
391 | 391 | [0 :id] := "0")) |
392 | 392 |
|
393 | 393 | (testing "expression is dynamic" |
|
436 | 436 | (testing "eval" |
437 | 437 | (given (expr/eval (eval-context db) expr nil) |
438 | 438 | count := 1 |
439 | | - [0 fhir-spec/fhir-type] := :fhir/Medication |
| 439 | + [0 :fhir/type] := :fhir/Medication |
440 | 440 | [0 :id] := "0")) |
441 | 441 |
|
442 | 442 | (testing "expression is dynamic" |
|
486 | 486 | (with-system-data [{:blaze.db/keys [node]} mem-node-config] |
487 | 487 | [[[:put {:fhir/type :fhir/Patient :id "0"}] |
488 | 488 | [:put {:fhir/type :fhir/Observation :id "0" |
489 | | - :subject #fhir/Reference{:reference "Patient/0"}}]]] |
| 489 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}]]] |
490 | 490 |
|
491 | 491 | (let [library (t/translate |
492 | 492 | "library test |
|
510 | 510 | (testing "eval" |
511 | 511 | (given (expr/eval eval-context expr patient) |
512 | 512 | count := 1 |
513 | | - [0 fhir-spec/fhir-type] := :fhir/Observation |
| 513 | + [0 :fhir/type] := :fhir/Observation |
514 | 514 | [0 :id] := "0")) |
515 | 515 |
|
516 | 516 | (testing "expression is dynamic" |
|
540 | 540 | [#fhir/Coding |
541 | 541 | {:system #fhir/uri"system-133620" |
542 | 542 | :code #fhir/code"code-133657"}]} |
543 | | - :subject #fhir/Reference{:reference "Patient/0"}}]]] |
| 543 | + :subject #fhir/Reference{:reference #fhir/string"Patient/0"}}]]] |
544 | 544 |
|
545 | 545 | (let [library (t/translate |
546 | 546 | "library test |
|
566 | 566 | (testing "eval" |
567 | 567 | (given (expr/eval eval-context expr patient) |
568 | 568 | count := 1 |
569 | | - [0 fhir-spec/fhir-type] := :fhir/Observation |
| 569 | + [0 :fhir/type] := :fhir/Observation |
570 | 570 | [0 :id] := "0")) |
571 | 571 |
|
572 | 572 | (testing "expression is dynamic" |
|
0 commit comments