GuidesComponentsApp UI components

ManualEntryForm

Collect and validate a numeric measurement for app-owned saving

  • Stable unknown
  • Release candidate since 1.16.1-rc.3
  • Development since 1.16.1-dev.2111+9796905

ManualEntryForm builds numeric inputs from the SDK's measurementFieldCatalog for one MeasurementTypeKey. It validates required fields and catalog ranges, then passes a typed value to the app's async save callback.

import { MeasurementTypeKey } from "@ovok/core/next";
import { ManualEntryForm, type ManualEntrySaveInput } from "@ovok/native/ui";

const saveMeasurement = async (input: ManualEntrySaveInput) => {
  await measurementRepository.save({ patientId: activePatient.id, ...input });
};

<ManualEntryForm
  measurementTypeKey={MeasurementTypeKey.bodyWeight}
  saveMeasurement={saveMeasurement}
  labelForField={(field) => fieldLabels[field] ?? field}
  onSaved={() => navigation.goBack()}
/>

The form does not select a patient, construct a FHIR resource, choose offline behavior, or navigate. Those decisions stay in the app's callback and screen.

Props

Every prop, with its type and description, is listed in the @ovok/native/ui API reference.

Last updated on

On this page