Index: sources/gui/qml/pages/pretreatment/create/PreTreatmentCreateContent.qml =================================================================== diff -u -r56381aae237db191956aff493907cd1f0801216b -r4a7dd11138d2321f1ab8d324b3bd25f02eaefe84 --- sources/gui/qml/pages/pretreatment/create/PreTreatmentCreateContent.qml (.../PreTreatmentCreateContent.qml) (revision 56381aae237db191956aff493907cd1f0801216b) +++ sources/gui/qml/pages/pretreatment/create/PreTreatmentCreateContent.qml (.../PreTreatmentCreateContent.qml) (revision 4a7dd11138d2321f1ab8d324b3bd25f02eaefe84) @@ -25,12 +25,11 @@ import "qrc:/pages/pretreatment" Item { id: _root - readonly property int cellWidth : width / 2 - ( rowSpacing / 2 ) - readonly property int cellHeight : ( _contentGrid.height ) / 7 - ( columnSpacing ) - readonly property int rowSpacing : Variables.defaultMargin * 3 - readonly property int columnSpacing : 15 +// readonly property int cellWidth : Variables.createRxLabelUnitContainerWidth +// readonly property int cellHeight : Variables.createRxLabelUnitContainerHeight +// readonly property int rowSpacing : Variables.defaultMargin * 3 +// readonly property int columnSpacing : 15 readonly property bool isValidated : vTreatmentCreate.parametersValidated - readonly property bool heparinFeatured: vSettings.heparinSyringePump readonly property string editRx : qsTr( "Edit Rx" ) readonly property string selectRx : qsTr( "Select Rx" ) @@ -50,6 +49,8 @@ function activateAndRefresh() { refreshAll () // needs to be first + + vTreatmentCreate.bloodFlowRateSet = true vTreatmentCreate.dialysateFlowRateSet = true vTreatmentCreate.treatmentDurationSet = true @@ -65,31 +66,37 @@ } function refreshAll () { - _bloodFlowRateControl .refresh() - _dialysateFlowRateControl .refresh() - _durationControl .refresh() - _heparinDispensingRateControl .refresh() - _heparinBolusVolumeControl .refresh() - _heparinDeliveryDurationControl .refresh() - _dialysateTemperatureControl .refresh() - _fluidBolusVolumeControl .refresh() - _bpMeasurementIntervalControl .refresh() + _preTreatmentCreateTreatmentSettings.refreshAll () + + +// _bloodFlowRateControl .refresh() +// _dialysateFlowRateControl .refresh() +// _durationControl .refresh() +// _heparinDispensingRateControl .refresh() +// _heparinBolusVolumeControl .refresh() +// _heparinDeliveryDurationControl .refresh() +// _dialysateTemperatureControl .refresh() +// _fluidBolusVolumeControl .refresh() +// _bpMeasurementIntervalControl .refresh() } function clear () { - vTreatmentCreate.patientID = "" - _bloodFlowRateControl .clear() - _dialysateFlowRateControl .clear() - _durationControl .clear() - _heparinDispensingRateControl .clear() - _heparinBolusVolumeControl .clear() - _heparinDeliveryDurationControl .clear() - _acidConcentrateComboBox .clear() - _bicarbonateConcentrateComboBox .clear() - _dialyzerTypeComboBox .clear() - _dialysateTemperatureControl .clear() - _fluidBolusVolumeControl .clear() - _bpMeasurementIntervalControl .clear() + _preTreatmentCreateTreatmentSettings.clear () + + +// vTreatmentCreate.patientID = "" +// _bloodFlowRateControl .clear() +// _dialysateFlowRateControl .clear() +// _durationControl .clear() +// _heparinDispensingRateControl .clear() +// _heparinBolusVolumeControl .clear() +// _heparinDeliveryDurationControl .clear() +// _acidConcentrateComboBox .clear() +// _bicarbonateConcentrateComboBox .clear() +// _dialyzerTypeComboBox .clear() +// _dialysateTemperatureControl .clear() +// _fluidBolusVolumeControl .clear() +// _bpMeasurementIntervalControl .clear() clearErrors() canEdit (true) } @@ -115,32 +122,39 @@ vTreatmentCreate.heparinBolusVolumeRejectReason = Variables.noRejectReason vTreatmentCreate.heparinDispensingRateRejectReason = Variables.noRejectReason vTreatmentCreate.dialysateTempRejectReason = Variables.noRejectReason - vTreatmentCreate.potassiumRejectReason = Variables.noRejectReason - vTreatmentCreate.calciumRejectReason = Variables.noRejectReason + vTreatmentCreate.acidConcentrateConversionFactor = Variables.noRejectReason + vTreatmentCreate.ultrafiltrationVolume = Variables.noRejectReason + vTreatmentCreate.ufPreWeight = Variables.noRejectReason + vTreatmentCreate.ufEstimatedTargetWeight = Variables.noRejectReason } function confirmReady () { - return _bloodFlowRateControl .isActive && _bloodFlowRate .valid && - _dialysateFlowRateControl .isActive && _dialysateFlowRate .valid && - _durationControl .isActive && _duration .valid && - ( _root.heparinFeatured ? _heparinDispensingRateControl .isActive && _heparinDispensingRate .valid && - _heparinBolusVolumeControl .isActive && _heparinBolusVolume .valid && - _heparinDeliveryDurationControl .isActive && _heparinDeliveryDuration .valid : true ) && - _acidConcentrateComboBox .isActive && - _bicarbonateConcentrateComboBox .isActive && - _dialyzerTypeComboBox .isActive && - _dialysateTemperatureControl .isActive && _dialysateTemperature .valid && - _fluidBolusVolumeControl .isActive && _fluidBolusVolume .valid && - _bpMeasurementIntervalControl .isActive + return _preTreatmentCreateTreatmentSettings.ready() + +// return _bloodFlowRateControl .isActive && _bloodFlowRate .valid && +// _dialysateFlowRateControl .isActive && _dialysateFlowRate .valid && +// _durationControl .isActive && _duration .valid && +// ( _root.heparinFeatured ? _heparinDispensingRateControl .isActive && _heparinDispensingRate .valid && +// _heparinBolusVolumeControl .isActive && _heparinBolusVolume .valid && +// _heparinDeliveryDurationControl .isActive && _heparinDeliveryDuration .valid : true ) && +// _acidConcentrateComboBox .isActive && +// _bicarbonateConcentrateComboBox .isActive && +// _dialyzerTypeComboBox .isActive && +// _dialysateTemperatureControl .isActive && _dialysateTemperature .valid && +// _fluidBolusVolumeControl .isActive && _fluidBolusVolume .valid && +// _bpMeasurementIntervalControl .isActive } function validate () { - vTreatmentCreate .patientID = _pretreatmentPatientIDEntry.text - vPostTreatmentAdjustmentTreatmentLog.patientID = _pretreatmentPatientIDEntry.text // store for the TreatmentLog + vTreatmentCreate .patientID = _preTreatmentCreateTreatmentSettings.patientID + vPostTreatmentAdjustmentTreatmentLog.patientID = _preTreatmentCreateTreatmentSettings.patientID // store for the TreatmentLog + + + vTreatmentCreate.doValidation ( ) } - function confirm () { vTreatmentCreate.doConfirm() } + function confirm () { vTreatmentCreate.doConfirm() } /// TODO: Remove later.. keeping for now (only in popup) to get into main tx on device Connections{ target: vTreatmentCreate function onDidValidationPass ( ) { @@ -237,7 +251,7 @@ spacing : Variables.defaultMargin anchors { left : parent.left - leftMargin : (_root.width / 2) + (_root.columnSpacing * 2) + leftMargin : (_root.width / 2) + (30) verticalCenter : _prescriptionMenu.verticalCenter verticalCenterOffset: -10 } @@ -264,363 +278,295 @@ bottom : parent.bottom } - PreTreatmentCreateTreatmentSettings { id: _preTreatmentCreateTreatmentSettings; visible: _root.currentIndex === PreTreatmentCreateContent.PatientPrescription } - PreTreatmentCreatePatientPrescription { id: _preTreatmentCreatePatientPrescription; visible: _root.currentIndex === PreTreatmentCreateContent.TreatmentSettings } - } - - Grid { id: _contentGrid - anchors { - top : _prescriptionMenu.bottom - topMargin : Variables.defaultMargin * 2 - left : _root.left - right : _root.right - bottom : parent.bottom + PreTreatmentCreateTreatmentSettings { id: _preTreatmentCreateTreatmentSettings + visible : _root.currentIndex === PreTreatmentCreateContent.PatientPrescription + editingEnabled : _root.editingEnabled } - // Flow intentially set o keep top row aligned. To organize with Heparin Defeature - flow : Grid.LeftToRight - rows : _root.heparinFeatured ? 7 : 6 - columns : 2 - rowSpacing : _root.columnSpacing - columnSpacing : _root.rowSpacing + PreTreatmentCreatePatientPrescription { id: _preTreatmentCreatePatientPrescription; + visible : _root.currentIndex === PreTreatmentCreateContent.TreatmentSettings + editingEnabled : _root.editingEnabled - Item { id: _patientIDItem - height : _root.cellHeight - width : _root.cellWidth - - LabelUnitContainer { id: _patientID - anchors.verticalCenter : parent.verticalCenter - text : qsTr("Patient ID") - height : cellHeight - Variables.defaultMargin - contentArea.anchors.leftMargin : 120 - - contentItem : TextEntry { id: _pretreatmentPatientIDEntry - clip : true - textInput.width : parent.width - Variables.defaultMargin * 4 - text : vTreatmentCreate.patientID - anchors.centerIn : parent - textInput.maximumLength : 20 // LEAHI-PRS-236 - textInput.rightPadding : Variables.defaultMargin - textInput.leftPadding : Variables.defaultMargin * 14 - textInput.inputMethodHints : Qt.ImhPreferLowercase - textInput.echoMode : TextInput.Normal - textInput.validator : RegExpValidator { regExp: Variables.regExp_PatientID } - line.visible : false - enabled : _root.editingEnabled - onEditingFinished : vTreatmentCreate.patientID = text - - Text { id: _patientIDPlaceHolderText - text : Variables.emptyEntry - anchors.fill : parent - rightPadding : 125 - horizontalAlignment : Text.AlignRight - font.pixelSize : Fonts.fontPixelValueControl - color : Colors.offWhite - visible : _pretreatmentPatientIDEntry.textInput.text.length === 0 && - ! _pretreatmentPatientIDEntry.textInput.activeFocus - } - } - } } + } +// LabelUnitContainer { id: _acidConcentrate +// text : qsTr("Acid Concentrate") +//// showEdit : _root.editingEnabled // Hide 👋📋 TODO Phase 2 +// onEditClicked : _acidConcentrateAdjustment.open() +// valid : ! vTreatmentCreate.acidConcentrateRejectReason - LabelUnitContainer { id: _bloodFlowRate - text : qsTr("Blood Flow Rate") - unitText : Variables.unitTextFlowRate - valid : ! vTreatmentCreate.bloodFlowRateRejectReason +// contentItem : BaseComboBox { id: _acidConcentrateComboBox +// anchors.rightMargin : Variables.defaultMargin * 2 +// anchors.leftMargin : anchors.rightMargin +// anchors.topMargin : Variables.defaultMargin / 2 +// anchors.bottomMargin: anchors.topMargin +// isActive : vTreatmentCreate.acidConcentrateSet +// enabled : _root.editingEnabled +// currentIndex : vTreatmentCreate.acidConcentrate +// model : vTreatmentRanges.acidConcentrateOptions +// onClear : { +// vTreatmentRanges.doClearAcidConcentrate(vTreatmentCreate.acidConcentrateSet) +// vTreatmentCreate.acidConcentrateSet = false +// } - contentItem : ValueAdjuster { id: _bloodFlowRateControl - editable : _root.editingEnabled - minimum : vTreatmentRanges.bloodFlowRateMin - maximum : vTreatmentRanges.bloodFlowRateMax - step : vTreatmentRanges.bloodFlowRateRes - defaultValue : vTreatmentRanges.bloodFlowRateDef - value : vTreatmentCreate.bloodFlowRate - isActive : vTreatmentCreate.bloodFlowRateSet - onDidActiveChange: function(vState) { vTreatmentCreate.bloodFlowRateSet = vState } - onDidChange : function(vValue) { - if ( ! _bloodFlowRate.valid ) { vTreatmentCreate.bloodFlowRateRejectReason = Variables.noRejectReason } - vTreatmentCreate.bloodFlowRate = vValue - } - } - } +// onActivated : { +// if ( ! _acidConcentrate.valid ) { vTreatmentCreate.acidConcentrateRejectReason = Variables.noRejectReason } +// vTreatmentCreate.acidConcentrate = _acidConcentrateComboBox.currentIndex +// vTreatmentCreate.acidConcentrateSet = true +//// vTreatmentCreate.acidConcentrateConversionFactor = vTreatmentRanges.acidConcentrateValues[vTreatmentCreate.acidConcentrate] - LabelUnitContainer { id: _acidConcentrate - text : qsTr("Acid Concentrate") -// showEdit : _root.editingEnabled // Hide 👋📋 TODO Phase 2 - onEditClicked : _acidConcentrateAdjustment.open() - valid : ! vTreatmentCreate.acidConcentrateRejectReason +// print( vTreatmentRanges.acidConcentrateModel.get(vTreatmentCreate.acidConcentrate).value ) - contentItem : BaseComboBox { id: _acidConcentrateComboBox - anchors.rightMargin : Variables.defaultMargin * 2 - anchors.leftMargin : anchors.rightMargin - anchors.topMargin : Variables.defaultMargin / 2 - anchors.bottomMargin: anchors.topMargin - isActive : vTreatmentCreate.acidConcentrateSet - enabled : _root.editingEnabled - currentIndex : vTreatmentCreate.acidConcentrate - model : vTreatmentRanges.acidConcentrateOptions - onClear : { - vTreatmentRanges.doClearAcidConcentrate(vTreatmentCreate.acidConcentrateSet) - vTreatmentCreate.acidConcentrateSet = false - } +// } +// } +// } - onActivated : { - if ( ! _acidConcentrate.valid ) { vTreatmentCreate.acidConcentrateRejectReason = Variables.noRejectReason } - vTreatmentCreate.acidConcentrate = _acidConcentrateComboBox.currentIndex - vTreatmentCreate.acidConcentrateSet = true -// vTreatmentCreate.acidConcentrateConversionFactor = vTreatmentRanges.acidConcentrateValues[vTreatmentCreate.acidConcentrate] +// LabelUnitContainer { id: _dialysateFlowRate +// text : qsTr("Dialysate Flow Rate") +// unitText : Variables.unitTextFlowRate +// valid : ! vTreatmentCreate.dialysateFlowRateRejectReason - print( vTreatmentRanges.acidConcentrateModel.get(vTreatmentCreate.acidConcentrate).value ) +// contentItem : ValueAdjuster { id: _dialysateFlowRateControl +// editable : _root.editingEnabled +// minimum : vTreatmentRanges.dialysateFlowRateMin +// maximum : vTreatmentRanges.dialysateFlowRateMax +// step : vTreatmentRanges.dialysateFlowRateRes +// defaultValue : vTreatmentRanges.dialysateFlowRateDef +// value : vTreatmentCreate.dialysateFlowRate +// isActive : vTreatmentCreate.dialysateFlowRateSet +// onDidActiveChange: function(vState) { vTreatmentCreate.dialysateFlowRateSet = vState } +// onDidChange : function(vValue) { +// if ( ! _dialysateFlowRate.valid ) { vTreatmentCreate.dialysateFlowRateRejectReason = Variables.noRejectReason } +// vTreatmentCreate.dialysateFlowRate = vValue +// } +// } +// } - } - } - } +// LabelUnitContainer { id: _bicarbonateConcentrate +// text : qsTr("Bicarbonate Concentrate Size") +// valid : ! vTreatmentCreate.dryBicarbCartSizeRejectReason - LabelUnitContainer { id: _dialysateFlowRate - text : qsTr("Dialysate Flow Rate") - unitText : Variables.unitTextFlowRate - valid : ! vTreatmentCreate.dialysateFlowRateRejectReason +// contentItem : BaseComboBox { id: _bicarbonateConcentrateComboBox +// anchors.rightMargin : Variables.defaultMargin * 2 +// anchors.leftMargin : anchors.rightMargin +// anchors.topMargin : Variables.defaultMargin / 2 +// anchors.bottomMargin: anchors.topMargin +// isActive : vTreatmentCreate.dryBicarbCartSizeSet +// enabled : _root.editingEnabled +// currentIndex : vTreatmentCreate.dryBicarbCartSize +// model : vTreatmentRanges.dryBicabCartridgeSizeOptions +// onClear : vTreatmentCreate.dryBicarbCartSizeSet = false +// onActivated : { +// if ( ! _bicarbonateConcentrate.valid ) { vTreatmentCreate.dryBicarbCartSizeRejectReason = Variables.noRejectReason } +// vTreatmentCreate.dryBicarbCartSize = _bicarbonateConcentrateComboBox.currentIndex +// vTreatmentCreate.dryBicarbCartSizeSet = true +// } +// } +// } - contentItem : ValueAdjuster { id: _dialysateFlowRateControl - editable : _root.editingEnabled - minimum : vTreatmentRanges.dialysateFlowRateMin - maximum : vTreatmentRanges.dialysateFlowRateMax - step : vTreatmentRanges.dialysateFlowRateRes - defaultValue : vTreatmentRanges.dialysateFlowRateDef - value : vTreatmentCreate.dialysateFlowRate - isActive : vTreatmentCreate.dialysateFlowRateSet - onDidActiveChange: function(vState) { vTreatmentCreate.dialysateFlowRateSet = vState } - onDidChange : function(vValue) { - if ( ! _dialysateFlowRate.valid ) { vTreatmentCreate.dialysateFlowRateRejectReason = Variables.noRejectReason } - vTreatmentCreate.dialysateFlowRate = vValue - } - } - } +// LabelUnitContainer { id: _duration +// text : qsTr("Duration") +// unitText : Variables.unitTextDuration +// valid : ! vTreatmentCreate.treatmentDurationRejectReason - LabelUnitContainer { id: _bicarbonateConcentrate - text : qsTr("Bicarbonate Concentrate Size") - valid : ! vTreatmentCreate.dryBicarbCartSizeRejectReason +// contentItem : ValueAdjuster { id: _durationControl +// editable : _root.editingEnabled +// minimum : vTreatmentRanges.treatmentDurationMin +// maximum : vTreatmentRanges.treatmentDurationMax +// step : vTreatmentRanges.treatmentDurationRes +// defaultValue : vTreatmentRanges.treatmentDurationDef +// value : vTreatmentCreate.treatmentDuration +// isActive : vTreatmentCreate.treatmentDurationSet +// onDidActiveChange: function(vState) { vTreatmentCreate.treatmentDurationSet = vState } +// onDidChange : function(vValue) { +// if ( ! _duration.valid ) { vTreatmentCreate.treatmentDurationRejectReason = Variables.noRejectReason } +// vTreatmentCreate.treatmentDuration = vValue - contentItem : BaseComboBox { id: _bicarbonateConcentrateComboBox - anchors.rightMargin : Variables.defaultMargin * 2 - anchors.leftMargin : anchors.rightMargin - anchors.topMargin : Variables.defaultMargin / 2 - anchors.bottomMargin: anchors.topMargin - isActive : vTreatmentCreate.dryBicarbCartSizeSet - enabled : _root.editingEnabled - currentIndex : vTreatmentCreate.dryBicarbCartSize - model : vTreatmentRanges.dryBicabCartridgeSizeOptions - onClear : vTreatmentCreate.dryBicarbCartSizeSet = false - onActivated : { - if ( ! _bicarbonateConcentrate.valid ) { vTreatmentCreate.dryBicarbCartSizeRejectReason = Variables.noRejectReason } - vTreatmentCreate.dryBicarbCartSize = _bicarbonateConcentrateComboBox.currentIndex - vTreatmentCreate.dryBicarbCartSizeSet = true - } - } - } +// // set heparin time to clear when set +// if ( _heparinDeliveryDurationControl.enabled ) { _heparinDeliveryDurationControl.clear() } +// } +// } +// } - LabelUnitContainer { id: _duration - text : qsTr("Duration") - unitText : Variables.unitTextDuration - valid : ! vTreatmentCreate.treatmentDurationRejectReason +// LabelUnitContainer { id: _dialyzerType +// text : qsTr("Dialyzer Type") +// valid : ! vTreatmentCreate.dialyzerTypeRejectReason - contentItem : ValueAdjuster { id: _durationControl - editable : _root.editingEnabled - minimum : vTreatmentRanges.treatmentDurationMin - maximum : vTreatmentRanges.treatmentDurationMax - step : vTreatmentRanges.treatmentDurationRes - defaultValue : vTreatmentRanges.treatmentDurationDef - value : vTreatmentCreate.treatmentDuration - isActive : vTreatmentCreate.treatmentDurationSet - onDidActiveChange: function(vState) { vTreatmentCreate.treatmentDurationSet = vState } - onDidChange : function(vValue) { - if ( ! _duration.valid ) { vTreatmentCreate.treatmentDurationRejectReason = Variables.noRejectReason } - vTreatmentCreate.treatmentDuration = vValue +// contentItem : BaseComboBox { id: _dialyzerTypeComboBox +// anchors.rightMargin : Variables.defaultMargin * 2 +// anchors.leftMargin : anchors.rightMargin +// anchors.topMargin : Variables.defaultMargin / 2 +// anchors.bottomMargin: anchors.topMargin +// isActive : vTreatmentCreate.dialyzerTypeSet +// enabled : _root.editingEnabled +// currentIndex : vTreatmentCreate.dialyzerType +// model : vTreatmentRanges.dialyzerTypeOptions +// onClear : vTreatmentCreate.dialyzerTypeSet = false +// onActivated : { +// if ( ! _dialyzerType.valid ) { vTreatmentCreate.dialyzerTypeRejectReason = Variables.noRejectReason } +// vTreatmentCreate.dialyzerType = _dialyzerTypeComboBox.currentIndex +// vTreatmentCreate.dialyzerTypeSet = true +// } +// } +// } - // set heparin time to clear when set - if ( _heparinDeliveryDurationControl.enabled ) { _heparinDeliveryDurationControl.clear() } - } - } - } +// LabelUnitContainer { id: _heparinBolusVolume +// text : qsTr("Heparin Bolus Volume") +// unitText : Variables.unitTextFluid +// valid : ! vTreatmentCreate.heparinBolusVolumeRejectReason +// visible : _root.heparinFeatured - LabelUnitContainer { id: _dialyzerType - text : qsTr("Dialyzer Type") - valid : ! vTreatmentCreate.dialyzerTypeRejectReason +// contentItem : ValueAdjuster { id: _heparinBolusVolumeControl +// editable : _root.editingEnabled +// minimum : vTreatmentRanges.heparinBolusVolumeMin +// maximum : vTreatmentRanges.heparinBolusVolumeMax +// step : vTreatmentRanges.heparinBolusVolumeRes +// defaultValue : vTreatmentRanges.heparinBolusVolumeDef +// value : vTreatmentCreate.heparinBolusVolume +// decimal : Variables.heparinPrecision +// canOff : true +// isActive : vTreatmentCreate.heparinBolusVolumeSet +// onDidActiveChange: function(vState) { vTreatmentCreate.heparinBolusVolumeSet = vState } +// onDidChange : function(vValue) { +// if ( ! _heparinBolusVolume.valid ) { vTreatmentCreate.heparinBolusVolumeRejectReason = Variables.noRejectReason } +// vTreatmentCreate.heparinBolusVolume = vValue +// } +// } +// } - contentItem : BaseComboBox { id: _dialyzerTypeComboBox - anchors.rightMargin : Variables.defaultMargin * 2 - anchors.leftMargin : anchors.rightMargin - anchors.topMargin : Variables.defaultMargin / 2 - anchors.bottomMargin: anchors.topMargin - isActive : vTreatmentCreate.dialyzerTypeSet - enabled : _root.editingEnabled - currentIndex : vTreatmentCreate.dialyzerType - model : vTreatmentRanges.dialyzerTypeOptions - onClear : vTreatmentCreate.dialyzerTypeSet = false - onActivated : { - if ( ! _dialyzerType.valid ) { vTreatmentCreate.dialyzerTypeRejectReason = Variables.noRejectReason } - vTreatmentCreate.dialyzerType = _dialyzerTypeComboBox.currentIndex - vTreatmentCreate.dialyzerTypeSet = true - } - } - } +// LabelUnitContainer { id: _bpMeasurementInterval +// text : qsTr("Vitals Interval") +// unitText : Variables.unitTextDuration +// valid : ! vTreatmentCreate.bloodPressureMeasureIntervalRejectReason - LabelUnitContainer { id: _heparinBolusVolume - text : qsTr("Heparin Bolus Volume") - unitText : Variables.unitTextFluid - valid : ! vTreatmentCreate.heparinBolusVolumeRejectReason - visible : _root.heparinFeatured +// contentItem : ValueAdjusterCustom { id: _bpMeasurementIntervalControl +// editable : _root.editingEnabled +// isActive : vTreatmentCreate.bloodPressureMeasureIntervalSet +// defaultValue : vTreatmentRanges.vitalsInterval +// value : vTreatmentRanges.bloodPressureMeasureInterval.indexOf(vTreatmentCreate.bloodPressureMeasureInterval.toString()) +// model : vTreatmentRanges.bloodPressureMeasureInterval +// canOff : true - contentItem : ValueAdjuster { id: _heparinBolusVolumeControl - editable : _root.editingEnabled - minimum : vTreatmentRanges.heparinBolusVolumeMin - maximum : vTreatmentRanges.heparinBolusVolumeMax - step : vTreatmentRanges.heparinBolusVolumeRes - defaultValue : vTreatmentRanges.heparinBolusVolumeDef - value : vTreatmentCreate.heparinBolusVolume - decimal : Variables.heparinPrecision - canOff : true - isActive : vTreatmentCreate.heparinBolusVolumeSet - onDidActiveChange: function(vState) { vTreatmentCreate.heparinBolusVolumeSet = vState } - onDidChange : function(vValue) { - if ( ! _heparinBolusVolume.valid ) { vTreatmentCreate.heparinBolusVolumeRejectReason = Variables.noRejectReason } - vTreatmentCreate.heparinBolusVolume = vValue - } - } - } +// onDidActiveChange: function(vState) { vTreatmentCreate.bloodPressureMeasureIntervalSet = vState } - LabelUnitContainer { id: _bpMeasurementInterval - text : qsTr("Vitals Interval") - unitText : Variables.unitTextDuration - valid : ! vTreatmentCreate.bloodPressureMeasureIntervalRejectReason +// onDidChange : function(vValue) { +// if ( ! _bpMeasurementInterval.valid ) { +// vTreatmentCreate.bloodPressureMeasureIntervalRejectReason = Variables.noRejectReason +// } - contentItem : ValueAdjusterCustom { id: _bpMeasurementIntervalControl - editable : _root.editingEnabled - isActive : vTreatmentCreate.bloodPressureMeasureIntervalSet - defaultValue : vTreatmentRanges.vitalsInterval - value : vTreatmentRanges.bloodPressureMeasureInterval.indexOf(vTreatmentCreate.bloodPressureMeasureInterval.toString()) - model : vTreatmentRanges.bloodPressureMeasureInterval - canOff : true +// vTreatmentCreate.bloodPressureMeasureInterval = vTreatmentRanges.bloodPressureMeasureInterval[vValue] +// vTreatmentCreate.bloodPressureMeasureIntervalSet = true +// } +// } +// } - onDidActiveChange: function(vState) { vTreatmentCreate.bloodPressureMeasureIntervalSet = vState } +// LabelUnitContainer { id: _heparinDispensingRate +// text : qsTr("Heparin Dispensing Rate") +// unitText : Variables.unitTextDispensingRate +// valid : ! vTreatmentCreate.heparinDispensingRateRejectReason +// visible : _root.heparinFeatured - onDidChange : function(vValue) { - if ( ! _bpMeasurementInterval.valid ) { - vTreatmentCreate.bloodPressureMeasureIntervalRejectReason = Variables.noRejectReason - } +// contentItem : ValueAdjuster { id: _heparinDispensingRateControl +// editable : _root.editingEnabled +// minimum : vTreatmentRanges.heparinDispensingRateMin +// maximum : vTreatmentRanges.heparinDispensingRateMax +// step : vTreatmentRanges.heparinDispensingRateRes +// defaultValue : vTreatmentRanges.heparinDispensingRateDef +// value : vTreatmentCreate.heparinDispensingRate +// decimal : Variables.heparinPrecision +// canOff : true +// isActive : vTreatmentCreate.heparinDispensingRateSet +// onDidActiveChange: function(vState) { vTreatmentCreate.heparinDispensingRateSet = vState } +// onDidChange : function(vValue) { +// if ( ! _heparinDispensingRate.valid ) { vTreatmentCreate.heparinDispensingRateRejectReason = Variables.noRejectReason } +// // set heparin time to clear when set OFF to value +// if ( ! vTreatmentCreate.heparinDispensingRate && vValue ) { _heparinDeliveryDurationControl.clear() } - vTreatmentCreate.bloodPressureMeasureInterval = vTreatmentRanges.bloodPressureMeasureInterval[vValue] - vTreatmentCreate.bloodPressureMeasureIntervalSet = true - } - } - } +// vTreatmentCreate.heparinDispensingRate = vValue - LabelUnitContainer { id: _heparinDispensingRate - text : qsTr("Heparin Dispensing Rate") - unitText : Variables.unitTextDispensingRate - valid : ! vTreatmentCreate.heparinDispensingRateRejectReason - visible : _root.heparinFeatured +// // if set to OFF set heparin stop time 0 +// if ( ! vTreatmentCreate.heparinDispensingRate ) { +// vTreatmentCreate.heparinDeliveryDurationSet = true +// vTreatmentCreate.heparinDeliveryDuration = 0 +// } +// } - contentItem : ValueAdjuster { id: _heparinDispensingRateControl - editable : _root.editingEnabled - minimum : vTreatmentRanges.heparinDispensingRateMin - maximum : vTreatmentRanges.heparinDispensingRateMax - step : vTreatmentRanges.heparinDispensingRateRes - defaultValue : vTreatmentRanges.heparinDispensingRateDef - value : vTreatmentCreate.heparinDispensingRate - decimal : Variables.heparinPrecision - canOff : true - isActive : vTreatmentCreate.heparinDispensingRateSet - onDidActiveChange: function(vState) { vTreatmentCreate.heparinDispensingRateSet = vState } - onDidChange : function(vValue) { - if ( ! _heparinDispensingRate.valid ) { vTreatmentCreate.heparinDispensingRateRejectReason = Variables.noRejectReason } - // set heparin time to clear when set OFF to value - if ( ! vTreatmentCreate.heparinDispensingRate && vValue ) { _heparinDeliveryDurationControl.clear() } +// onIsActiveChanged: { +// if ( ! vTreatmentCreate.heparinDispensingRate && isActive ) { +// vTreatmentCreate.heparinDeliveryDurationSet = true +// vTreatmentCreate.heparinDeliveryDuration = 0 +// } +// } +// } +// } - vTreatmentCreate.heparinDispensingRate = vValue +// LabelUnitContainer { id: _dialysateTemperature +// text : qsTr("Dialysate Temperature") +// unitText : Variables.unitTextTemperature +// valid : ! vTreatmentCreate.dialysateTempRejectReason - // if set to OFF set heparin stop time 0 - if ( ! vTreatmentCreate.heparinDispensingRate ) { - vTreatmentCreate.heparinDeliveryDurationSet = true - vTreatmentCreate.heparinDeliveryDuration = 0 - } - } +// contentItem : ValueAdjuster { id: _dialysateTemperatureControl +// editable : _root.editingEnabled +// minimum : vTreatmentRanges.dialysateTempMin +// maximum : vTreatmentRanges.dialysateTempMax +// step : vTreatmentRanges.dialysateTempRes +// defaultValue : vTreatmentRanges.dialysateTempDef +// value : vTreatmentCreate.dialysateTemp +// decimal : Variables.dialysateTempPrecision +// isActive : vTreatmentCreate.dialysateTempSet +// onDidActiveChange: function(vState) { vTreatmentCreate.dialysateTempSet = vState } +// onDidChange : function(vValue) { +// if ( ! _dialysateTemperature.valid ) { vTreatmentCreate.dialysateTempRejectReason = Variables.noRejectReason } +// vTreatmentCreate.dialysateTemp = vValue +// } +// } +// } - onIsActiveChanged: { - if ( ! vTreatmentCreate.heparinDispensingRate && isActive ) { - vTreatmentCreate.heparinDeliveryDurationSet = true - vTreatmentCreate.heparinDeliveryDuration = 0 - } - } - } - } +// LabelUnitContainer { id: _heparinDeliveryDuration +// text : qsTr("Heparin Delivery Duration") +// unitText : Variables.unitTextDuration +// valid : ! vTreatmentCreate.heparinDeliveryDurationRejectReason +// visible : _root.heparinFeatured - LabelUnitContainer { id: _dialysateTemperature - text : qsTr("Dialysate Temperature") - unitText : Variables.unitTextTemperature - valid : ! vTreatmentCreate.dialysateTempRejectReason +// contentItem : ValueAdjuster { id: _heparinDeliveryDurationControl +// editable : _root.editingEnabled +// minimum : vTreatmentRanges.heparinStopTimeMin +// maximum : _durationControl.value +// step : _durationControl.step +// defaultValue : _durationControl.value +// value : vTreatmentCreate.heparinDeliveryDuration +// enabled : vTreatmentCreate.heparinDispensingRate +// canOff : true +// isActive : vTreatmentCreate.heparinDeliveryDurationSet +// onDidActiveChange: function(vState) { vTreatmentCreate.heparinDeliveryDurationSet = vState } +// onDidChange : function(vValue) { +// if ( ! _heparinDeliveryDuration.valid ) { vTreatmentCreate.heparinDeliveryDurationRejectReason = Variables.noRejectReason } +// vTreatmentCreate.heparinDeliveryDuration = vValue +// } +// } +// } - contentItem : ValueAdjuster { id: _dialysateTemperatureControl - editable : _root.editingEnabled - minimum : vTreatmentRanges.dialysateTempMin - maximum : vTreatmentRanges.dialysateTempMax - step : vTreatmentRanges.dialysateTempRes - defaultValue : vTreatmentRanges.dialysateTempDef - value : vTreatmentCreate.dialysateTemp - decimal : Variables.dialysateTempPrecision - isActive : vTreatmentCreate.dialysateTempSet - onDidActiveChange: function(vState) { vTreatmentCreate.dialysateTempSet = vState } - onDidChange : function(vValue) { - if ( ! _dialysateTemperature.valid ) { vTreatmentCreate.dialysateTempRejectReason = Variables.noRejectReason } - vTreatmentCreate.dialysateTemp = vValue - } - } - } +// LabelUnitContainer { id: _fluidBolusVolume +// text : qsTr("Fluid Bolus Volume") +// unitText : Variables.unitTextFluid +// valid : ! vTreatmentCreate.fluidBolusVolumeRejectReason - LabelUnitContainer { id: _heparinDeliveryDuration - text : qsTr("Heparin Delivery Duration") - unitText : Variables.unitTextDuration - valid : ! vTreatmentCreate.heparinDeliveryDurationRejectReason - visible : _root.heparinFeatured +// contentItem : ValueAdjuster { id: _fluidBolusVolumeControl +// editable : _root.editingEnabled +// minimum : vTreatmentRanges.salineBolusVolumeMin +// maximum : vTreatmentRanges.salineBolusVolumeMax +// step : vTreatmentRanges.salineBolusVolumeRes +// defaultValue : vTreatmentRanges.salineBolusVolumeDef +// value : vTreatmentCreate.fluidBolusVolume +// isActive : vTreatmentCreate.fluidBolusVolumeSet +// onDidActiveChange: function(vState) { vTreatmentCreate.fluidBolusVolumeSet = vState } +// onDidChange : function(vValue) { +// if ( ! _fluidBolusVolume.valid ) { vTreatmentCreate.fluidBolusVolumeRejectReason = Variables.noRejectReason } +// vTreatmentCreate.fluidBolusVolume = vValue +// } +// } +// } +// } - contentItem : ValueAdjuster { id: _heparinDeliveryDurationControl - editable : _root.editingEnabled - minimum : vTreatmentRanges.heparinStopTimeMin - maximum : _durationControl.value - step : _durationControl.step - defaultValue : _durationControl.value - value : vTreatmentCreate.heparinDeliveryDuration - enabled : vTreatmentCreate.heparinDispensingRate - canOff : true - isActive : vTreatmentCreate.heparinDeliveryDurationSet - onDidActiveChange: function(vState) { vTreatmentCreate.heparinDeliveryDurationSet = vState } - onDidChange : function(vValue) { - if ( ! _heparinDeliveryDuration.valid ) { vTreatmentCreate.heparinDeliveryDurationRejectReason = Variables.noRejectReason } - vTreatmentCreate.heparinDeliveryDuration = vValue - } - } - } - - LabelUnitContainer { id: _fluidBolusVolume - text : qsTr("Fluid Bolus Volume") - unitText : Variables.unitTextFluid - valid : ! vTreatmentCreate.fluidBolusVolumeRejectReason - - contentItem : ValueAdjuster { id: _fluidBolusVolumeControl - editable : _root.editingEnabled - minimum : vTreatmentRanges.salineBolusVolumeMin - maximum : vTreatmentRanges.salineBolusVolumeMax - step : vTreatmentRanges.salineBolusVolumeRes - defaultValue : vTreatmentRanges.salineBolusVolumeDef - value : vTreatmentCreate.fluidBolusVolume - isActive : vTreatmentCreate.fluidBolusVolumeSet - onDidActiveChange: function(vState) { vTreatmentCreate.fluidBolusVolumeSet = vState } - onDidChange : function(vValue) { - if ( ! _fluidBolusVolume.valid ) { vTreatmentCreate.fluidBolusVolumeRejectReason = Variables.noRejectReason } - vTreatmentCreate.fluidBolusVolume = vValue - } - } - } - } }