| | |
| | | import { tryConvertToInt, deepClone } from "@/utils/utils"; |
| | | import cache from "@/utils/cache"; |
| | | import { Local } from "@/utils/storage"; |
| | | export interface IotInfo { |
| | | 属性历史列表: any[]; |
| | | 床号: string; |
| | |
| | | weightAfterLastDialysis: number | null; // 上次透后称重 |
| | | weightIncrease: number | null; // 体重增加 |
| | | weightIncreaseRate: number | null; // 体重增长率 |
| | | maximumDehydrationDuration: string; |
| | | } |
| | | |
| | | export const defaultSignedIn = (): SignedIn => { |
| | |
| | | weightAfterLastDialysis: null, // 上次透后称重 |
| | | weightIncrease: null, // 体重增加 |
| | | weightIncreaseRate: null, // 体重增长率 |
| | | maximumDehydrationDuration: '', |
| | | }; |
| | | }; |
| | | |
| | |
| | | }; |
| | | |
| | | export const defaultDeviceData = (): BedsideAuxiliaryScreen => { |
| | | const pageType = cache.get("devcieCode") |
| | | const pageType = Local.get("devcieCode") |
| | | ? EPageType.LOADING |
| | | : EPatForm.OUTPATIENT_SERVICE; |
| | | return { |
| | |
| | | seeMsg.透析状态?.上次透后称重 ?? null; |
| | | signedIn.weightIncrease = seeMsg.透析状态?.体重增加 ?? null; |
| | | signedIn.weightIncreaseRate = seeMsg.透析状态?.体重增长率 ?? null; |
| | | signedIn.maximumDehydrationDuration = |
| | | seeMsg.透析状态?.最近最大脱水量透析时长 ?? ""; |
| | | |
| | | result.signedIn = signedIn; |
| | | } |