sq2cql should be extended to support referenced criteria.
These are defined as one criterion referencing another criterion which can include all the elements of a normal criterion except the attribute filter of type "reference".
=> Only one level of nesting should be supported, so that:
A criterion can have an attribute filter of the type "reference" which is a criterion, but the referenced criterion cannot have an attribute filter of the type "reference".
Example: Specimen with diagnosis
Assumption: Given the Structured Query (SQ) and mapping below.
Example Structured Query (SQ) with attributeFilter of type 'reference':
sq2cql should be extended to support referenced criteria.
These are defined as one criterion referencing another criterion which can include all the elements of a normal criterion except the attribute filter of type "reference". => Only one level of nesting should be supported, so that: A criterion can have an attribute filter of the type "reference" which is a criterion, but the referenced criterion cannot have an attribute filter of the type "reference".
Example: Specimen with diagnosis Assumption: Given the Structured Query (SQ) and mapping below.
Example Structured Query (SQ) with attributeFilter of type 'reference':
Example Mapping for referenced criterion:
@geloro94 : Add example mapping here