health.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. declare namespace App.Health { }
  2. declare namespace App.Health.Index {
  3. interface Model {
  4. id: string;
  5. name: string;
  6. /** 单位 */
  7. unit: string;
  8. precision: number;
  9. /** 值 */
  10. values?: { value: number; abnormal: boolean; description?: string; date?: string }[];
  11. /** 值范围 */
  12. readonly range: [min: number, max: number],
  13. /** 标准范围 */
  14. readonly scope: [min: number, max: number],
  15. readonly defaultValue?: number;
  16. }
  17. interface Data {
  18. quotaId: string;
  19. name: string;
  20. unit: string;
  21. minVal: number;
  22. maxVal: number;
  23. inputMin?: number;
  24. inputMax?: number;
  25. inputPrecision?: number;
  26. isAuto?: 'Y' | 'N';
  27. patientQuotaRecordDTOS?: { quotaVal: string; abnormal: boolean; abnormalDesc?: string, time2?: string; }[]
  28. }
  29. interface Ruler {
  30. id: string;
  31. name: string;
  32. unit: string;
  33. min: number;
  34. max: number;
  35. precision: number;
  36. markLine: [
  37. { value: number, style: Record<string, any> },
  38. { value: number, style: Record<string, any> },
  39. ],
  40. value?: number;
  41. }
  42. interface Chart {
  43. yAxis: AnyObject;
  44. series: AnyObject;
  45. visualMap: AnyObject;
  46. }
  47. }