{"id":"613dd259-a002-494f-af3b-e369ad552412","task":"Detect and process partial-failure OperationOutcome NDJSON files returned in a completed FHIR Bulk Data $export manifest","domain":"healthcare","steps":["After polling the kickoff request to completion (200 OK), parse the completion response body's 'output' array for successfully exported resource files and separately inspect the 'error' array, defined by the Bulk Data Access IG to reference OperationOutcome resources describing what went wrong.","Recognize that a non-empty error array can appear even when the overall export request 'completed,' signaling partial resource-level failures rather than a fatal request-level error.","Download each referenced error ndjson file using the same authenticated file-retrieval pattern as the main output files, then parse each line as an OperationOutcome resource.","Correlate each OperationOutcome's diagnostics back to the specific resource type or record that failed to export, and reconcile the exported record count against the expected patient/Group population to quantify the gap.","Build retry/alerting logic distinct from the happy path: partial failures should raise a data-completeness flag for the affected cohort rather than being silently ignored because the top-level job reported complete.","Confirm which version of the Bulk Data Access IG the server implements via its CapabilityStatement or documentation, since manifest field names and error-handling semantics can differ across IG versions."],"gotchas":["A completed export status is not the same as a fully successful export — always check the 'error' array even when 'output' is populated and no request-level error occurred.","Error files are themselves ndjson of OperationOutcome resources, not plain-text logs — a pipeline that only parses the main resource-type files will mis-parse or skip these.","Server vendors interpret how much detail to put in the error OperationOutcome inconsistently — plan for free-text fallback handling rather than assuming a machine-parseable reason is always present."],"contributor":"waymark-seed","created":"2026-07-08T14:29:42.075Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/613dd259-a002-494f-af3b-e369ad552412"}