5.1.7 • Published 7 months ago

@iehr/react v5.1.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

iEHR React Component Library

The iEHR React Component Library provides many helpful components to quickly build your healthcare web app.

The iEHR SDK can be used with any compliant FHIR server. However, some advanced features are only available when paired with a iEHR server.

Check out a live demo: https://storybook.iehr.ai/

Installation

Add as a dependency:

npm install @iehr/react

Note the following peer dependencies:

Note the following optional peer dependencies:

Basic Usage

import { IEHRClient } from '@iehr/core';
import { IEHRProvider } from '@iehr/react';

const iehr = new IEHRClient();

export function App() {
  return (
    <IEHRProvider iehr={iehr}>
      <MyPage1 />
      <MyPage2 />
      <Etc />
    </IEHRProvider>
  );
}

For more details on how to setup IEHRClient, refer to the docs for iehr.

Sign In

export function SignInPage() {
  const auth = useIEHRContext();
  return (
    <Document>
      {auth.user ? (
        <div>
          <pre>User: {JSON.stringify(auth.user)}</pre>
          <Button onClick={() => auth.iehr.signOut().then(() => alert('Signed out!'))}>Sign out</Button>
        </div>
      ) : (
        <SignInForm onSuccess={() => alert('Signed in!')} />
      )}
    </Document>
  );
}

Chat

export function ChatPage() {
  return (
    <Document>
      <ChatControl criteria="Communication?encounter=123" {...args} />
    </Document>
  );
}

About iEHR

iEHR is a FHIR®-native, AI-infused, API-first, interoperable EHR. iEHR makes it easy to build healthcare apps quickly with less code.

License

Apache 2.0.

Copyright © Medplum 2025 (HL7® FHIR® US)

Copyright © iEHR.ai 2025 (HL7® FHIR® International, AI & Data platform)

5.1.5

8 months ago

5.1.4

8 months ago

5.1.3

8 months ago

5.1.2

8 months ago

5.1.1

8 months ago

5.1.0

9 months ago

4.3.179

1 year ago

4.3.184

1 year ago

4.3.185

1 year ago

4.3.186

1 year ago

4.3.187

1 year ago

4.3.188

1 year ago

4.3.189

1 year ago

4.3.180

1 year ago

4.3.181

1 year ago

4.3.182

1 year ago

4.3.183

1 year ago

4.4.0

10 months ago

4.3.195

12 months ago

5.0.5

9 months ago

4.3.196

12 months ago

5.0.4

9 months ago

4.3.197

12 months ago

5.0.3

10 months ago

4.3.198

11 months ago

5.0.2

10 months ago

4.3.199

11 months ago

5.0.1

10 months ago

5.0.0

10 months ago

4.3.190

1 year ago

4.3.191

1 year ago

4.3.192

1 year ago

4.3.193

1 year ago

4.3.194

12 months ago

4.3.200

11 months ago

4.3.201

11 months ago

4.3.202

11 months ago

5.1.7

7 months ago

5.1.6

8 months ago

4.3.176

1 year ago

4.3.177

1 year ago

4.3.178

1 year ago

4.3.175

1 year ago

4.3.174

1 year ago

4.3.151

1 year ago

4.3.170

1 year ago

4.3.150

1 year ago

4.3.160

1 year ago

4.3.141

1 year ago

4.3.110

1 year ago

4.3.91

1 year ago

4.3.90

1 year ago

4.3.140

1 year ago

4.3.120

1 year ago

4.3.82

1 year ago

4.3.81

1 year ago

4.3.80

1 year ago

4.3.84

1 year ago

4.3.83

1 year ago

3.2.2

1 year ago

3.2.1

1 year ago

3.1.11

2 years ago

3.2.0

1 year ago

4.3.60

1 year ago

4.3.70

1 year ago

3.1.10

2 years ago

4.3.63

1 year ago

4.3.52

1 year ago

4.3.62

1 year ago

4.3.51

1 year ago

4.3.40

1 year ago

4.3.61

1 year ago

4.3.50

1 year ago

3.1.3

2 years ago

3.1.1

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.4

2 years ago