Generate SMART Health Link
shl_generateCreate a SMART Health Link to share a patient's record with a clinic while keeping data confidential. Encrypts the share-bundle client-side and returns a shlink URI, viewer link, and patient-only manage link.
Instructions
Generate a SMART Health Link (shlink:/ QR payload) sharing the patient's record with a clinic. Fetches the guardrailed share-bundle from HealthClaw (step-up required — supplied by the deployment as an X-Step-Up-Token header), encrypts it client-side (the SHL server never sees plaintext), uploads ciphertext, and returns the shlink URI, viewer link, and the patient's private manage link. ALWAYS get the patient's explicit consent before generating, and deliver the manage link ONLY to the patient.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Short label shown in SHL viewers (<=80 chars), e.g. 'Records for Winters Healthcare'. No PHI beyond what the patient approves. | |
| profile | No | intake = identified record for clinic check-in (default); deidentified = strips name/contact/institutional IDs | |
| patient_id | No | Optional patient id filter for multi-patient tenants | |
| expires_in_days | No | Link lifetime in days (default 7, max 90) |