UNPKG

terra-clinical-result

Version:

The Terra Clinical Result package is a collection of standardized views for presenting clinical results documented to a Patient's Medical Chart, such as Vital Signs, Laboratory Results, and Discretely Documented Values

69 lines (64 loc) 1.88 kB
import React from 'react'; import { FlowsheetResultCell } from 'terra-clinical-result/lib/index'; import classNamesBind from 'classnames/bind'; import Table, { Header, Row, Body, HeaderCell, } from 'terra-html-table'; import styles from '../Examples.module.scss'; const cx = classNamesBind.bind(styles); const partialResultValueWithNoDataPropSystolic = [ { id: '111', systolic: { eventId: '111.1', resultNoData: true, }, diastolic: { eventId: '111.2', result: { value: '77', unit: 'mmHg', }, interpretation: 'critical', }, }, ]; const partialResultValueWithNoDataPropDiastolic = [ { id: '222', systolic: { eventId: '222.1', result: { value: '140', unit: 'mmHg', }, interpretation: 'high', }, diastolic: { eventId: '222.2', resultNoData: true, }, }, ]; export default () => ( <Table className={cx('mock-flowsheet-table')}> <Header> <HeaderCell className={cx('mock-flowsheet-resultcolumn')} /> <HeaderCell className={cx('mock-flowsheet-resultcolumn')} /> <HeaderCell className={cx('mock-flowsheet-resultcolumn')} /> </Header> <Body> <Row> {/* This example cell shows a standard result with the `hasResultNoData` prop or `result: { value: null, }` */} <FlowsheetResultCell hasResultNoData /> {/* This example cell shows a partial Blood Pressure no data display using the `resultNoData` property name */} <FlowsheetResultCell resultDataSet={partialResultValueWithNoDataPropSystolic} hideUnit /> {/* This example cell shows a partial Blood Pressure no data display using `result: { value: null, }` */} <FlowsheetResultCell resultDataSet={partialResultValueWithNoDataPropDiastolic} hideUnit /> </Row> </Body> </Table> );