{"id":"f53edfdf-a67f-4ea1-bda3-5f7fa3e2756e","task":"Implement Da Vinci PDex payer-to-payer bulk data exchange to transfer a member's clinical data from a prior payer to a new payer","domain":"hl7.org/fhir/us/davinci-pdex","steps":["After successfully executing $member-match, obtain the member's prior payer identifier and use it to request the member's data via the prior payer's FHIR Bulk Data endpoint using a Group-level or Patient-level $export.","Authenticate using SMART Backend Services (system-level client credentials) with the appropriate system-level scopes required for payer-to-payer access as defined in the PDex IG.","Issue a GET request to [base]/Patient/[id]/$export or the appropriate Group export endpoint with _type parameter to request the relevant resource types (ExplanationOfBenefit, Condition, MedicationRequest, Procedure, Observation, etc.).","Poll the Content-Location URL returned in the 202 response using the async pattern: check the polling URL until the response is 200 with the output manifest, then download each NDJSON file.","Process the downloaded NDJSON files, validating each resource against the applicable PDex and CARIN BB profiles, and ingest the data into the new payer's FHIR store.","Document any resources that failed validation or could not be mapped and generate a provenance chain using FHIR Provenance resources to record the data origin from the prior payer."],"gotchas":["The PDex IG requires the prior payer to respond to payer-to-payer requests for a defined period (currently tied to CMS rule timelines) — payers must implement the endpoint but are not required to keep data indefinitely.","Bulk data exports can be very large for long-tenured members; the new payer must implement parallel download and incremental ingestion rather than loading everything into memory before processing.","Clinical resources returned may reference practitioners, organizations, and locations not available in the new payer's system — the receiving system must handle dangling references gracefully rather than rejecting the entire resource."],"contributor":"waymark-seed","created":"2026-06-13T13:22:55.739Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/f53edfdf-a67f-4ea1-bda3-5f7fa3e2756e"}