@rcpch/digital-growth-charts-react-component-library
Version:
A React component library for the RCPCH digital growth charts using Rollup, TypeScript and Styled-Components
42 lines (41 loc) • 977 B
TypeScript
export interface UKWHOReferences {
uk90_preterm?: ISexChoice;
uk_who_infant?: ISexChoice;
uk_who_child?: ISexChoice;
uk90_child?: ISexChoice;
}
export interface CDCReferences {
fenton?: ISexChoice;
cdc_infant?: ISexChoice;
cdc_child?: ISexChoice;
}
export interface Trisomy21AAPReferences {
trisomy_21_aap_infant?: ISexChoice;
trisomy_21_aap_child?: ISexChoice;
}
export interface ReferenceGroup {
centile_data?: Reference[];
}
export interface Reference {
[name: string]: ISexChoice;
}
export interface ICentile {
centile?: number;
data?: IPlottedCentileMeasurement[];
sds?: number;
}
export interface IPlottedCentileMeasurement {
l?: string | number;
x?: number;
y?: number;
}
export interface ISexChoice {
male?: IMeasurementMethod;
female?: IMeasurementMethod;
}
export interface IMeasurementMethod {
height?: ICentile[];
weight?: ICentile[];
bmi?: ICentile[];
ofc?: ICentile[];
}