Execute P2P Exchanges
This is a custom operation Smile created to streamline the $member-match and $export process as a single operation for the Requesting Payer. The $sdh.s2s.invoke-export endpoint kicks off a server-to-server exchange of patient records between two PDex compliant servers. This operation initiates from the requesting system side.
This Smile CDR operation executes the following activities:
$member-match to locate patient record.$export operation.POST {base}/Patient/$sdh.s2s.invoke-export
Parameters resource containing:
| Parameter | Type | Required | Description |
|---|---|---|---|
localPatient | reference | Yes | Reference to local Patient resource |
sourceIssuerUrl | string | Yes | Issuer URL from OIDC Server Definition |
memberMatch | Parameter | Yes | Contains MemberPatient, Coverage, Consent |
export | Parameter | Optional | Export parameters (_type, _since, etc.) |
POST https://requesting-payer.example.com/Patient/$sdh.s2s.invoke-export
Content-Type: application/fhir+json
{
"resourceType": "Parameters",
"parameter": [
{
"name": "localPatient",
"valueReference": {
"reference": "Patient/local-123"
}
},
{
"name": "sourceIssuerUrl",
"valueString": "https://source-payer.example.com"
},
{
"name": "memberMatch",
"part": [
{
"name": "MemberPatient",
"resource": {
"resourceType": "Patient",
"name": [{"family": "Smith", "given": ["John"]}],
"birthDate": "1980-01-01"
}
},
{
"name": "CoverageToMatch",
"resource": {
"resourceType": "Coverage",
"identifier": [{
"system": "http://source-payer.example.com/member-id",
"value": "MEM-98765"
}]
}
},
{
"name": "Consent",
"resource": {
"resourceType": "Consent",
"policy": [{
"uri": "hrex-consent.html#regular"
}]
}
}
]
}
]
}
Status: 200 OK
Headers:
Content-Location: Task/p2p-task-ab123
Body:
{
"resourceType": "Task",
"id": "p2p-task-ab123",
"status": "requested",
"code": {
"coding": [{
"system": "http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp",
"code": "data-request"
}]
},
"for": {
"reference": "Patient/local-123"
}
}
Note: Export jobs can take time to process.
You are about to leave the Smile Digital Health documentation and navigate to the Open Source HAPI-FHIR Documentation.