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

    Class FHIRBundleProcessor

    Processes and validates FHIR R4 Bundles according to SMART Health Cards specification.

    Index

    Constructors

    Methods

    • Processes a FHIR Bundle with QR code optimizations (short resource-scheme URIs, removes unnecessary fields).

      Parameters

      • bundle: FHIRBundle

        FHIR Bundle to process

      • config: { strictReferences?: boolean } = {}
        • OptionalstrictReferences?: boolean

          When strictReferences is true, missing Reference.reference targets throw InvalidBundleReferenceError; when false, original references are preserved when no target resource is found in bundle.

      Returns FHIRBundle

      Processed FHIR Bundle optimized for QR codes

      InvalidBundleReferenceError When strictReferences is true and a reference cannot be resolved