ObservationDetail
A scrollable container component designed for displaying healthcare observation data with automatic safe area handling and theme-based spacing. Serves as the main container for compound observation detail components.
- Stable unknown
- Release candidate since 1.16.1-rc.3
- Development since 1.16.1-dev.2111+9796905
A scrollable container component designed for displaying healthcare observation data with automatic safe area handling and theme-based spacing. Serves as the main container for compound observation detail components.
Basic Example
import { ObservationDetail } from "@ovok/native";
import * as React from "react";
const mappedData = {
effectiveDateTime: "2021-01-01",
systolic: 120,
diastolic: 80,
heartRate: 70,
deviceName: "Blood Pressure Monitor",
};
const MedicalObservation = () => {
return (
<ObservationDetail>
<ObservationDetail.DateTime dateTime={mappedData.effectiveDateTime} />
<ObservationDetail.DataContainer>
<ObservationDetail.SingleCardDataRow
label="Systolic (mmHg)"
value={mappedData.systolic.toString()}
/>
<ObservationDetail.SingleCardDataRow
label="Diastolic (mmHg)"
value={mappedData.diastolic.toString()}
/>
<ObservationDetail.SingleCardDataRow
label="Heart Rate (bpm)"
value={mappedData.heartRate.toString()}
/>
<ObservationDetail.Resource title={mappedData.deviceName} />
</ObservationDetail.DataContainer>
</ObservationDetail>
);
};
export default MedicalObservation;Props
Every prop, with its type and description, is listed in the @ovok/native/observation-detail API reference.
Styling
Theme Colors Used
theme.spacing(4)- Container padding (16px default)theme.spacing(3)- Gap between child elements (12px default)- Safe area bottom inset - Additional bottom padding
Last updated on
ObservationDetail.DateTime
A date and time display component with flexible formatting options and fallback content support. Designed for healthcare observation timestamps with localization and conditional rendering capabilities.
ObservationDetail.PhotoPreview
An advanced photo gallery component with thumbnail navigation and full-screen modal preview. Built on FlashList for high performance with large photo sets and includes rotation, navigation, and zoom capabilities.