Developers
Medical forms and an AI scribe you can embed
Two script tags from cdn.clara.care: Clara Form renders and exports the form, Clara Widget fills it by voice.
<script src="https://cdn.clara.care/form/latest.js"></script> <clara-form lang="en" submit-label="Save visit"></clara-form>const form = document.querySelector('clara-form'); // A template: sections and fields, the same JSON Clara Platform stores. form.template = { sections: [ { key: 'visit', label: 'Visit', fields: [ { id: 'reason', type: 'text', label: 'Reason for visit', required: true }, { id: 'blood_pressure', type: 'text', label: 'Blood pressure', placeholder: '120/80', pattern: '\\d{2,3}/\\d{2,3}' }, { id: 'smoker', type: 'checkbox', label: 'Smoker' }, ] }, ],
Loading the preview…
Examples you can run and edit
Each one runs here with synthetic data. Open it in the playground and change it.
-
Clara Form
Dental chart (odontogram)
Click teeth, mark conditions, export JSON and FHIR.
-
Clara FormSimulation
Voice to form
A scripted consultation fills the form field by field.
-
Clara Form
Medical history form
Identification, history, exam and plan; print or copy as text.
-
Clara Form
Patient intake form
Contact, reason, history and consent, with autosaved drafts.
-
Clara Form
Informed consent form
Procedure, declarations and signature, exported as FHIR.
-
Clara Form
FHIR QuestionnaireResponse example
Typed answers, one group per section, subject and encounter.
-
Clara WidgetSimulation
EHR integration
The widget fills your own EHR fields by id; replay included.
-
Clara Form
React medical form
ClaraForm + useClaraForm, controlled values and FHIR on submit.
-
Clara Form
Medical form web component
One CDN script, attributes, custom events and Shadow DOM.
How an integration works
Install
Load the CDN script or the npm package. No build step.
Template
Describe sections and fields in JSON, inline or by id.
Events
Listen to clara-change, clara-submit and the clara:* events.
Export
Save JSON or FHIR QuestionnaireResponse, or post to your server.
GuidesClara FormClara Widget
Frequently asked questions
Do I need an API key to try Clara Form?
No. With an inline template the form renders without any network call besides the script itself. A publishable key is only needed to load templates by id or to connect a live consultation.
Which frameworks does Clara Form support?
React 18 or newer through the npm package, and any other stack through the <clara-form> web component or the CDN script. The README includes Vue and Angular notes.
How does the widget write into my existing EHR fields?
Each field of the template has an htmlFieldId. The widget looks for an input with that id or name on the page and fills it as the clinician speaks. It also dispatches clara:field-filled on window so your app can react.
Is the data in these examples real?
No. Every name, value and transcript is synthetic. The playground keeps nothing: the code you edit lives in the page address when you share it.
Can I export to FHIR?
Yes. toFhirQuestionnaireResponse builds a FHIR R4 QuestionnaireResponse from the template and the values, with one group item per section. The form also exposes toFhir() and includes the resource in the submit event.
Where do I get a publishable key?
In Clara Platform, under Integrate. The key belongs to your organization, and the pages where you embed Clara must be registered there as widget sites so the API answers them.
Planning an integration?
Tell us about your system and your forms. We run small pilots with technology partners.