Skip to main content

view_definition_run

Function view_definition_run 

Source
pub async fn view_definition_run<CTX: Send + Sync + Clone + 'static, Client: FHIRClient<CTX, OperationOutcomeError> + Send + Sync + 'static>(
    context: CTX,
    client: Arc<Client>,
    read_many: &ReadMany<CTX>,
    input: &Input,
    limits: RunLimits,
) -> Result<Output, OperationOutcomeError>
Expand description

Runs a FHIR ViewDefinition and returns the generated result in the requested output format.

The output format is read from the _format input parameter. If _format is absent or does not contain a recognized [OutputFormatCodes] value, ndjson is used, the specification’s default.

A run that would pass limits is refused with too-costly.

The view is read through client; the patient and group resources that scope the run through read_many, in one batch.

§Errors

Returns [OperationOutcomeError] if a parameter is refused, the view definition cannot be resolved, the run would pass limits, or processing the view definition fails.