Skip to contents

Creates an approved state from the current revision.

Usage

approve(.data, activity = "approval", agent = NULL, comment = NULL)

Arguments

.data

A claims_df.

activity

Optional approval activity.

agent

Optional approving person or software agent.

comment

Optional approval comment.

Value

A reviewed_df.

Details

approve() closes a completed review by copying the most recent revision of each reviewable variable into a corresponding _approved column. The original candidate values, intermediate revisions, review labels, and review provenance are preserved.

Approval records a separate provenance activity describing the editorial or curatorial decision to approve the reviewed values. The approving agent is typically different from the reviewer who created and explained the revision.

An approved review becomes a reviewed_df, which may subsequently be converted into a publication-ready object, for example with dataset_df().