Kill the Clipboard - SMART Health Cards Library - v0.0.1
    Preparing search index...

    Interface SmartHealthCardConfigParams

    Configuration parameters for SmartHealthCardIssuer.

    interface SmartHealthCardConfigParams {
        enableQROptimization?: boolean;
        expirationTime?: null | number;
        issuer: string;
        privateKey: string | Uint8Array<ArrayBufferLike> | CryptoKey;
        publicKey: string | Uint8Array<ArrayBufferLike> | CryptoKey;
        strictReferences?: boolean;
    }
    Index

    Properties

    enableQROptimization?: boolean

    Whether to optimize FHIR Bundle for QR codes by using short resource-scheme URIs (resource:0, resource:1, etc.) and removing unnecessary fields.

    true

    expirationTime?: null | number

    Optional expiration time in seconds from now. If null, health cards will not have an expiration (exp claim).

    null

    issuer: string

    Issuer URL identifying the organization issuing the health card. This value appears in the JWT iss claim.

    privateKey: string | Uint8Array<ArrayBufferLike> | CryptoKey

    ES256 private key for signing health cards. Can be a WebCrypto CryptoKey, raw bytes as Uint8Array, or PEM-formatted string.

    publicKey: string | Uint8Array<ArrayBufferLike> | CryptoKey

    ES256 public key corresponding to the private key. Used for key ID (kid) derivation per SMART Health Cards specification.

    strictReferences?: boolean

    Whether to enforce strict reference validation during QR optimization. If true, throws error for missing bundle references. If false, preserves original references when target resource is not found.

    true