pass in a resourceType or a resource, and db will delete all resources of
that type - Note: will NOT delete any _historical stores (must pass in
_history as the type for this to happen)
searches for a specific Resource. That resource can be defined by
passing a full Resource object, you may pass a resourceType and id
or you can pass a search field - which can be nested, and the value
you're looking for in that field
From the sembast documentation:
https://github.com/tekartik/sembast.dart/blob/master/sembast/doc/queries.md
Assuming you have the following record:
{
"resourceType": "Immunization",
"patient": {
"reference": "Patient/12345"
}
}
You can search for the nested value using a Finder
Finder(filter: Filter.equals('patient.reference', 'Patient/12345'));
Saves a Resource to the local Db, password is optional (but after set,
it must always be used everytime), will update the meta fields of the
Resource and adds an id if none is already given.