Propose Data Quality Fix
curatr_apply_fixPropose FHIR data quality fixes as a patient-approved draft. Returns an action ID; on approval, applies the fix once with linked Provenance, rejecting if the record changed.
Instructions
Propose data quality fixes to a FHIR resource as a 'curatr-fix' action on the action rail. Nothing changes when this is called: it returns a draft (action id) the patient must submit with action_commit and then approve out of band on their own review page; only that approval carries the fix out, once, with a linked Provenance record. The proposal is pinned to the record's current meta.versionId — pass record_version from the record you read, or omit it and the tool reads it for you — and is refused at execution if the record has changed since. Only fields the Curatr evaluator can propose are accepted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixes | Yes | List of field fixes to apply. Each fix has 'field_path' (dot-notation, e.g. 'Condition.code.coding[0].system') and 'new_value' (the corrected value). | |
| reason | No | What the fix does, in words the patient will read on the approval page. Defaults to a description built from the field paths. | |
| resource_id | Yes | ID of the resource to fix | |
| resource_type | Yes | FHIR resource type to fix (e.g. 'Condition') | |
| patient_intent | Yes | Plain-language reason for the fix, provided by the patient (recorded in Provenance). | |
| record_version | No | The record's meta.versionId as you read it. Omit to have the tool read the current version before proposing. |