Generate SMART Health Link
shl_generateCreate a SMART Health Link (shlink:/ QR) to share a patient's record with a clinic. Encrypts data client-side, requires step-up auth, and returns share and patient manage links.
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 — pass _stepUpToken), 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) |