> ## Documentation Index
> Fetch the complete documentation index at: https://docs.connect.fastenhealth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Install and render the `<fasten-stitch-element>` inside any web runtime.

> [!WARNING]
>
> You are looking at the documentation for an older version of the Stitch SDK
>
> [Stitch.js (v5)](https://docs.connect.fastenhealth.com/stitch/v5/) was recently released and is now the recommended version of the SDK.
>
> This version includes compatibility with additional runtime environments (Web, React Native, React etc), improved performance, and additional features.
>
> v5 is backwards compatible with v4 and v3 -- there are no breaking changes to the public API, but we have made significant improvements to the underlying codebase and architecture.
> If you are currently using v4 or v3, you can upgrade to v5 without making any changes to your code.
>
> Older versions of the SDK are in maintenance mode and will no longer receive updates (outside of security fixes).
> Please update your code to use the new version.

![](https://mintcdn.com/fastenhealth/A1Yj8CwIWNvOJiz5/images/stitch-v3-hero.png?fit=max\&auto=format\&n=A1Yj8CwIWNvOJiz5\&q=85\&s=d7ed6f62bff22054b4cf2ebcff6957c7)

## Installation

```md stitch.js theme={null}
<html>
<head>
    <link href="https://cdn.fastenhealth.com/connect/v4/fasten-stitch-element.css" rel="stylesheet">
    <script src="https://cdn.fastenhealth.com/connect/v4/fasten-stitch-element.js" type="module"></script>
</head>
<body>
    <!-- The fasten-stitch element has multiple options,
    see Web Component page for more information -->
    <fasten-stitch-element public-id="pub_live_123456324234234"></fasten-stitch-element>

    <script type="application/javascript">
        const el = document.querySelector('fasten-stitch-element');
        el.addEventListener('eventBus', (event) => console.log(JSON.parse(event.detail.data)));
    </script>
</body>
</html>
```

## Installation (TEFCA Mode)

> [card] [TEFCA IAS Developer Guide](https://docs.connect.fastenhealth.com/guides/tefca-ias.md)
>
> When TEFCA mode is enabled, developers can access medical records without requiring the patient to search for their healthcare providers, or login to multiple portal logins.
>
> Instead the patient is prompted to verify their identity and Fasten Connect will automatically retrieve their medical records from any healthcare institution that participates in the TEFCA network.

![](https://mintcdn.com/fastenhealth/0qIgAwZeDyqRV2pG/images/stitch-v3-tefca-mode.png?fit=max\&auto=format\&n=0qIgAwZeDyqRV2pG\&q=85\&s=70e0e68ff3b78249fb94b30edbc695cb)

If you would like to enable TEFCA IAS mode, you can do so by adding the `tefca-mode="true"` attribute to the `<fasten-stitch-element>` tag.
The remaining installation steps are the same as above, just with the additional attribute.
This is intentionally designed to be as simple as possible to get started with TEFCA IAS.

```md stitch.js theme={null}
<html>
<head>
    <link href="https://cdn.fastenhealth.com/connect/v4/fasten-stitch-element.css" rel="stylesheet">
    <script src="https://cdn.fastenhealth.com/connect/v4/fasten-stitch-element.js" type="module"></script>
</head>
<body>
    <!-- The fasten-stitch element has multiple options,
    see Web Component page for more information -->
    <fasten-stitch-element public-id="pub_live_123456324234234" tefca-mode="true"></fasten-stitch-element>

    <script type="application/javascript">
        const el = document.querySelector('fasten-stitch-element');
        el.addEventListener('eventBus', (event) => console.log(JSON.parse(event.detail.data)));
    </script>
</body>
</html>
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.