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
211 lines (210 loc) • 8.48 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.UnverifiedResult = exports.UnverifiedBloodPressureResult2 = exports.UnverifiedBloodPressureResult1 = exports.SingleResultValue = exports.NoDataResult = exports.MixedBPResultValue = exports.ExtraDisplaysBloodPressureResult = exports.EnteredInErrorSysBPResult = exports.EnteredInErrorResult = exports.EnteredInErrorDiaBPResult = exports.EmptyStringResult = exports.EmptyArrayResult = exports.DefaultSystolicResult = exports.DefaultResultWithNoEventId = exports.DefaultDiastolicResult = exports.DefaultBloodPressureSystolicResultWithNoId = exports.DefaultBloodPressureResult = exports.DefaultBloodPressureDiastolicResultWithNoId = exports.DecoratedResult = exports.DecoratedBloodPressureResult2 = exports.DecoratedBloodPressureResult1 = exports.BadData = void 0;
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
var DefaultResultWithNoEventId = exports.DefaultResultWithNoEventId = {
id: '111',
result: {
value: '12345.678',
unit: 'mL'
}
};
var DefaultResult = {
eventId: '111',
result: {
value: '12345.678',
unit: 'mL'
}
};
var SingleResultValue = exports.SingleResultValue = _objectSpread(_objectSpread({}, DefaultResult), {}, {
conceptDisplay: 'Temperature Oral',
datetimeDisplay: 'Nov 23, 2019 13:31:31'
});
var DecoratedResult = exports.DecoratedResult = _objectSpread(_objectSpread({}, DefaultResult), {}, {
isModified: true,
hasComment: true,
isUnverified: false
});
var UnverifiedResult = exports.UnverifiedResult = _objectSpread(_objectSpread({}, DefaultResult), {}, {
isModified: false,
hasComment: false,
isUnverified: true
});
var BadData = exports.BadData = {
eventId: '111',
clinicalresult: {
value: '354.23377777758678567867856785687678567856767868678567856785678567856785678567857856785678567856785678567856785678578567856',
unit: 'mmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHgmmHg'
},
interpretation: 'critical'
};
var EnteredInErrorResult = exports.EnteredInErrorResult = _objectSpread(_objectSpread({}, DefaultResult), {}, {
interpretation: 'critical',
status: 'entered-in-error'
});
var DefaultSystolicResult = exports.DefaultSystolicResult = {
eventId: '111.1',
result: {
value: '180',
unit: 'mmHg'
}
};
var DefaultDiastolicResult = exports.DefaultDiastolicResult = {
eventId: '111.2',
result: {
value: '80',
unit: 'mmHg'
}
};
var DefaultBloodPressureSystolicResultWithNoId = exports.DefaultBloodPressureSystolicResultWithNoId = {
systolic: _objectSpread({}, DefaultSystolicResult)
};
var DefaultBloodPressureDiastolicResultWithNoId = exports.DefaultBloodPressureDiastolicResultWithNoId = {
diastolic: _objectSpread({}, DefaultDiastolicResult)
};
var DefaultBloodPressureResult = exports.DefaultBloodPressureResult = {
id: '111',
systolic: _objectSpread({}, DefaultSystolicResult),
diastolic: _objectSpread({}, DefaultDiastolicResult)
};
var DecoratedBloodPressureResult1 = exports.DecoratedBloodPressureResult1 = {
id: '111',
systolic: _objectSpread(_objectSpread({}, DefaultSystolicResult), {}, {
isModified: true,
hasComment: true,
isUnverified: false
}),
diastolic: _objectSpread(_objectSpread({}, DefaultDiastolicResult), {}, {
isModified: false,
hasComment: false,
isUnverified: false
})
};
var DecoratedBloodPressureResult2 = exports.DecoratedBloodPressureResult2 = {
id: '111',
systolic: _objectSpread(_objectSpread({}, DefaultSystolicResult), {}, {
isModified: false,
hasComment: false,
isUnverified: false
}),
diastolic: _objectSpread(_objectSpread({}, DefaultDiastolicResult), {}, {
isModified: true,
hasComment: true,
isUnverified: false
})
};
var UnverifiedBloodPressureResult1 = exports.UnverifiedBloodPressureResult1 = {
id: '111',
systolic: _objectSpread(_objectSpread({}, DefaultSystolicResult), {}, {
isModified: false,
hasComment: false,
isUnverified: true
}),
diastolic: _objectSpread(_objectSpread({}, DefaultDiastolicResult), {}, {
isModified: false,
hasComment: false,
isUnverified: false
})
};
var UnverifiedBloodPressureResult2 = exports.UnverifiedBloodPressureResult2 = {
id: '111',
systolic: _objectSpread(_objectSpread({}, DefaultSystolicResult), {}, {
isModified: false,
hasComment: false,
isUnverified: false
}),
diastolic: _objectSpread(_objectSpread({}, DefaultDiastolicResult), {}, {
isModified: false,
hasComment: false,
isUnverified: true
})
};
var ExtraDisplaysBloodPressureResult = exports.ExtraDisplaysBloodPressureResult = {
id: '111',
systolic: _objectSpread(_objectSpread({}, DefaultSystolicResult), {}, {
conceptDisplay: 'Blood Pressure Systolic',
datetimeDisplay: 'Nov 23, 2019 13:31:31'
}),
diastolic: _objectSpread(_objectSpread({}, DefaultDiastolicResult), {}, {
conceptDisplay: 'Blood Pressure Diastolic',
datetimeDisplay: 'Nov 23, 2019 13:31:44'
}),
isBloodPressureGrouped: true
};
var MixedBPResultValue = exports.MixedBPResultValue = {
id: '111',
systolic: _objectSpread(_objectSpread({}, DefaultSystolicResult), {}, {
interpretation: 'critical'
}),
diastolic: _objectSpread(_objectSpread({}, DefaultDiastolicResult), {}, {
interpretation: 'low'
})
};
var NoDataResult = exports.NoDataResult = {
eventId: '',
result: {
value: null,
unit: ''
},
interpretation: 'normal',
isModified: false,
hasComment: false,
isUnverified: false,
resultNoData: true
};
var EmptyStringResult = exports.EmptyStringResult = {
eventId: '',
result: {
value: '',
unit: ''
},
interpretation: 'normal',
isModified: false,
hasComment: false,
isUnverified: false
};
var EmptyArrayResult = exports.EmptyArrayResult = {
eventId: '',
result: {
value: [],
unit: ''
},
interpretation: 'normal',
isModified: false,
hasComment: false,
isUnverified: false
};
var EnteredInErrorSysBPResult = exports.EnteredInErrorSysBPResult = {
id: '111',
systolic: _objectSpread(_objectSpread({}, DefaultSystolicResult), {}, {
status: 'entered-in-error',
interpretation: 'critical',
isModified: false,
hasComment: false
}),
diastolic: _objectSpread(_objectSpread({}, DefaultDiastolicResult), {}, {
isModified: false,
hasComment: false
})
};
var EnteredInErrorDiaBPResult = exports.EnteredInErrorDiaBPResult = {
id: '111',
systolic: _objectSpread(_objectSpread({}, DefaultSystolicResult), {}, {
isModified: false,
hasComment: false
}),
diastolic: _objectSpread(_objectSpread({}, DefaultDiastolicResult), {}, {
status: 'entered-in-error',
interpretation: 'critical',
isModified: false,
hasComment: false
})
};
var _default = exports.default = DefaultResult;