Verifiable Health Link
0.0.2-current - ci-build
Verifiable Health Link, published by IHE IT Infrastructure Technical Committee. This guide is not an authorized publication; it is the continuous build for version 0.0.2-current built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/IHE/ITI.VHL/ and changes regularly. See the Directory of published versions
| Official URL: http://example.org/fhir/OperationDefinition/generate-vhl | Version: 0.0.2-current | |||
| Active as of 2026-03-13 | Computable Name: GenerateVHL | |||
This operation generates a QR code containing a Verifiable Health Link (VHL) for transmission or display.
Input Parameters:
Output Generation:
| Use | Name | Scope | Cardinality | Type | Binding | Documentation |
| IN | sourceIdentifier | 1..1 | Identifier | An identifier for the patient. Required if 'bundle' is not provided. | ||
| IN | exp | 0..1 | integer | Optional. Number representing expiration time in Epoch seconds, as a hint to help the SHL Receiving Application determine if this QR is stale. | ||
| IN | flag | 0..1 | string | Optional. String created by concatenating single-character flags in alphabetical order. L (long-term use), P (Passcode required) | ||
| IN | label | 0..1 | string | Optional. String no longer than 80 characters that provides a short description of the data behind the SHLink. | ||
| IN | passcode | 0..1 | string | Optional. User-supplied passcode for passcode-protected VHLs. If provided, the VHL Sharer SHALL securely hash and store this passcode for validation during manifest retrieval (ITI-YY5). The 'P' flag SHALL be included in the flag parameter when a passcode is set. | ||
| OUT | qrcode | 1..1 | Binary | A Binary resource containing the QR code image (PNG or SVG format) that encodes the VHL as an HCERT/CWT structure. VHL Payload Construction:
QR Code Generation (HCERT/CWT Encoding): The VHL Sharer SHALL encode the VHL payload within an HCERT structure as per the [WHO SMART TRUST specification] (https://smart.who.int/trust/). The HCERT claim key SHALL be 5 for VHL. The QR code is then generated per the HCERT Specification. For complete HCERT specification, see: https://smart.who.int/trust/hcert_spec.html For HCERT logical model, see: https://smart.who.int/trust/StructureDefinition-HCert.html For SHL payload details, see: https://build.fhir.org/ig/HL7/smart-health-cards-and-links/links-specification.html#construct-a-smart-health-link-payload |