Kill the Clipboard - SMART Health Cards Library - v1.0.0
    Preparing search index...

    Interface SHLResolvedContent

    Resolved SHL content containing the manifest and all decrypted files.

    This is the final result of SHL resolution, containing both the raw manifest and the parsed, decrypted content organized by type. Applications can use this structured data without needing to handle JWE decryption or content type parsing themselves.

    The SMART Health Cards are fully parsed and ready for verification/display, while FHIR resources are parsed JSON objects ready for processing.

    const resolved = await viewer.resolveSHL({ recipient: 'Dr. Smith' });

    // Process SMART Health Cards
    for (const shc of resolved.smartHealthCards) {
    console.log('Issuer:', shc.issuer);
    console.log('Patient:', shc.fhirBundle.entry[0].resource);
    }

    // Process FHIR resources
    for (const resource of resolved.fhirResources) {
    if (resource.resourceType === 'Bundle') {
    console.log('Bundle with', resource.entry?.length, 'entries');
    }
    }
    interface SHLResolvedContent {
        fhirResources: Resource[];
        manifest: undefined | SHLManifestV1;
        smartHealthCards: SHC[];
    }
    Index

    Properties

    fhirResources: Resource[]

    FHIR resources extracted from application/fhir+json files. Each resource is a parsed JSON object conforming to FHIR R4 specification.

    manifest: undefined | SHLManifestV1

    The fetched manifest response. Contains the raw manifest structure with file descriptors. undefined if the SHL is a direct file (has U flag).

    smartHealthCards: SHC[]

    SMART Health Cards extracted from application/smart-health-card files. Each card is fully parsed and ready for verification or display.