Apply Data Quality Fix
curatr_apply_fixApply patient-approved fixes to a FHIR resource with full attribution via a linked Provenance record. Requires step-up authorization and human confirmation for clinical data.
Instructions
Apply patient-approved data quality fixes to a FHIR resource. Creates a linked Provenance record with full attribution. Requires step-up authorization (X-Step-Up-Token) and human confirmation (X-Human-Confirmed: true) for clinical resources like Condition.
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). | |
| 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). |