Skip to content

Commit c3b97fe

Browse files
authored
Merge pull request #28 from KainosSoftwareLtd/kainos-develop
Kainos develop
2 parents 5833c5d + 52401d3 commit c3b97fe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/fhir/search.litcoffee

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,21 @@ implementation based on searchType
336336
337337
is_nested_order = (params)->
338338
for meta in params.map((x)-> x[1])
339+
if ! meta.searchType && meta[0] && meta[0] == '$param'
340+
meta = meta[1]
341+
if ! meta.searchType
342+
throw new Error("Empty search type", params)
339343
name = meta.name
340344
if name.split(".").length > 1
341345
return true
342346
return false
343347
344348
nested_table = (params)->
345349
for meta in params.map((x)-> x[1])
350+
if ! meta.searchType && meta[0] && meta[0] == '$param'
351+
meta = meta[1]
352+
if ! meta.searchType
353+
throw new Error("Empty search type", params)
346354
name = meta.name
347355
if name.split(".").length > 1
348356
return name.split(".")[0]

0 commit comments

Comments
 (0)