(form)
return {
        "id": "registry",
        "uri": "jr://instance/remote",
        "name": "registry_case",
        "path": "/results/case",
        "structure": {},
        "subsets": subsets,
    }
Get registry database schema definition for vellum to display as an external data source.

    This lists all case types and their properties for the given app.
Get registry database schema definition for vellum to display as an external data source.
Get registry database schema definition for vellum to display as an external data source .
def get_registry_schema(form):
    """Get registry database schema definition for vellum to display as an external data source.

    This lists all case types and their properties for the given app.
    """
    app = form.get_app()
    module = form.get_module()
    data_registry = module.search_config.data_registry

    subsets = []
    if form.requires_case() and data_registry:
        subsets.extend(_get_case_schema_subsets(app, module.case_type, hashtag='#registry_case/'))

    return {
        "id": "registry",
        "uri": "jr://instance/remote",
        "name": "registry_case",
        "path": "/results/case",
        "structure": {},
        "subsets": subsets,
    }
def get_registry_schema ( form ) : app = form . get_app ( ) module = form . get_module ( ) data_registry = module . search_config . data_registry subsets = [ ] if form . requires_case ( ) and data_registry : subsets . extend ( _get_case_schema_subsets ( app , module . case_type , hashtag = '#registry_case/' ) ) return { "id" : "registry" , "uri" : "jr://instance/remote" , "name" : "registry_case" , "path" : "/results/case" , "structure" : { } , "subsets" : subsets , }