This tutorial verifies that a Patient Access API request is published to Kafka with the member and application values. It assumes the modules described in the How-to Guides are running.
Sign in to the payer's IdP as a test member through a registered test application, using the SMART App Launch authorization code flow. Decode the access token and confirm that it contains the claims the callback script reads:
{
"iss": "https://idp.example.com/realms/patient-access",
"sub": "d749550c-2f63-4c5a-9bf2-696b3af9d328",
"azp": "insure-pay",
"patient": "patient-005",
"scope": "openid patient/*.read"
}
Read the member's Patient resource from the Patient Access API endpoint:
GET https://example.com/patient-access-fhir/Patient/patient-005
Headers:
Authorization: Bearer <access_token>
Accept: application/fhir+json
The server returns 200 OK with the Patient resource. A request for another member's Patient resource returns 403 Forbidden.
Read the most recent message from the Patient Access API topic, for example with the Kafka console consumer:
kafka-console-consumer.sh --bootstrap-server <broker> \
--topic channel_patient_access_txlog --from-beginning
Notes:
"endpointModuleId": "http_patient_access" and an additionalJson object with the patient_id, client_id, and subject values from the token. See Usage Event Format.additionalJson is missing, check the Smile CDR log for warnings from the callback script or the interceptor, and confirm the interceptor is registered on the Patient Access API endpoint.event_whitelist module ID matches the endpoint's module ID.You are about to leave the Smile Digital Health documentation and navigate to the Open Source HAPI-FHIR Documentation.