FindBlob

Find all blobs that satisfy the specified constraints.

Parameters

  • [optional] _ref: reference to be used within the transaction.
  • [optional] unique: Indicates whether a single object is expected to satisfy the constraints.
  • [optional] blobs: indicates whether the blobs will be returned as part of the response (Default: true).
  • [optional] constraints
  • [optional] is_connected_to
  • [optional] results

Details

At least one of results, _ref, or blobs = true must be specified. If neither is specified, the command is render useless, and will return an error.

The properties that will be retrieved for the found objects can be specified using results.

Examples

Find all blob objects where its “start_year” property is on or after 1990, and retrieve certain properties of the object:

[ {
    "FindBlob": {
        "constraints" : {
            "start_year": [ ">=", 1990 ],
        },
        "results": {
            "list": ["start_year", "end_year", "billing_id"]
        }
    }
} ]

Find all blob objects where its “start_year” property is on or after 1990 that are associated with a “Patient” with a “unique_id” equal to 4325, and retrieve other properties of the visit:

[ {
    "FindEntity": {
        "with_class": "Patient",
        "_ref": 1,
        "unique": true,     // Make sure we only find a single patient.
        "constraints" {
            "unique_id": ["==", 4325]
        }
        // There is no need to specify in "results",
        // because we just use a reference to the found entity
    }
}, {
    "FindBlob": {
        "constraints" : {
            "start_year": [ ">=", 1990 ],
        },
        "is_connected_to": {
            "ref": 1,
            "direction": "in",
            "connection_class": "patient_has_study,
        },
        "blobs": false,      // Do not return binary objects as blobs
        "results": {
            "list": ["start_year", "end_year", "billing_id"]
        }
    }
} ]