NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: For HPCDATAMGM-1671: Added the new example provided by Udit.

...

Code Block
              {
                 "compoundQuery":    {
                    "operator": "OR",
                    "compoundQueries":       [
                                {
                          "operator": "OR",
                          "queries":             [
                                            {
                                "attribute": "registered_by",
                                "value": "jane_doe",
                                "operator": "EQUAL"
                             },
                                            {
                                "attribute": "registered_by",
                                "value": "john_doe",
                                "operator": "EQUAL"
                             }
                          ]
                       }
                    ]
                 },
              }

The following example contains multiple nested compound queries:

Code Block
{
    "compoundQuery": {
        "compoundQueries": [{
                "operator": "AND",
                "queries": [{
                    "attribute": "sample_name",
                    "value": "%Sample1a%",
                    "operator": "LIKE"
                }, {
                    "attribute": "data_generator",
                    "value": "%Jane Doe",
                    "operator": "EQUAL"
                }]
            },
            {
                "operator": "OR",
                "queries": [{
                    "attribute": "initial_sample_volume_ul",
                    "value": "%1000%",
                    "operator": "NOT_EQUAL"
                }, {
                    "attribute": "source_file_size",
                    "value": "%90000000%",
                    "operator": "NUM_LESS_THAN"
                }]
            }, {
                "operator": "OR",
                "queries": [{
                    "attribute": "source_file_size",
                    "value": "%80000000000000&",
                    "operator": "NUM_LESS_OR_EQUAL"
                }, {
                    "attribute": "source_file_size",
                    "value": "%3715000%",
                    "operator": "NUM_GREATER_OR_EQUAL"
                }]
            }, {
                "operator": "OR",
                "queries": [{
                    "attribute": "source_file_size",
                    "value": "%3715000&",
                    "operator": "NUM_GREATER_THAN"
                }]
            }
        ],
        "page": 1
    }
}