mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 04:30:43 +00:00
Drag some ASV notes of of git stash
This commit is contained in:
parent
9b51e2ecd3
commit
65540d1b51
@ -478,8 +478,46 @@ bool PRS1Loader::ParseSummary(Machine *mach, qint32 sequence, quint32 timestamp,
|
||||
session->really_set_first(qint64(timestamp)*1000L);
|
||||
EventDataType max,min;
|
||||
|
||||
min=float(data[0x03])/10.0;
|
||||
max=float(data[0x04])/10.0;
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// ASV Codes (Family 5) Recheck 17/10/2013
|
||||
// These are all confirmed off Encore reports
|
||||
|
||||
//cpapmax=EventDataType(data[0x02])/10.0; // Max Pressure in ASV machines
|
||||
//minepap=EventDataType(data[0x03])/10.0; // Min EPAP
|
||||
//maxepap=EventDataType(data[0x04])/10.0; // Max EPAP
|
||||
//minps=EventDataType(data[0x05])/10.0 // Min Pressure Support
|
||||
//maxps=EventDataType(data[0x06])/10.0 // Max Pressure Support
|
||||
|
||||
//duration=data[0x1B] | data[0x1C] << 8) // Session length in seconds
|
||||
|
||||
//epap90=EventDataType(data[0x21])/10.0; // EPAP 90%
|
||||
//epapavg=EventDataType(data[0x22])/10.0; // EPAP Average
|
||||
//ps90=EventDataType(data[0x23])/10.0; // Pressure Support 90%
|
||||
//psavg=EventDataType(data[0x24])/10.0; // Pressure Support Average
|
||||
|
||||
//TODO: minpb=data[0x] | data[0x] << 8; // Minutes in PB
|
||||
//TODO: minleak=data[0x] | data[0x] << 8; // Minutes in Large Leak
|
||||
//TODO: oa_cnt=data[0x] | data[0x] << 8; // Obstructive events count
|
||||
|
||||
//ca_cnt=data[0x2d] | data[0x2e] << 8; // Clear Airway Events count
|
||||
//h_cnt=data[0x2f] | data[0x30] << 8; // Hypopnea events count
|
||||
//fl_cnt=data[0x33] | data[0x34] << 8; // Flow Limitation events count
|
||||
|
||||
//avg_leak=EventDataType(data[0x35]); // Average Leak
|
||||
//avgptb=EventDataType(data[0x36]); // Average Patient Triggered Breaths %
|
||||
//avgbreathrate=EventDataType(data[0x37]); // Average Breaths Per Minute
|
||||
//avgminvent=EventDataType(data[0x38]); // Average Minute Ventilation
|
||||
//avg_tidalvol=EventDataType(data[0x39])*10.0; // Average Tidal Volume
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
min=float(data[0x03])/10.0; // Min EPAP
|
||||
max=float(data[0x04])/10.0; // Max EPAP
|
||||
int offset=0;
|
||||
|
||||
if (family==5) { //data[0x05]!=0) { // This is a time value for ASV stuff
|
||||
@ -558,10 +596,11 @@ bool PRS1Loader::ParseSummary(Machine *mach, qint32 sequence, quint32 timestamp,
|
||||
//session->setWavg(CPAP_Pressure,min);
|
||||
}
|
||||
} else {
|
||||
// 0X28 & 0X29 is length on r5
|
||||
|
||||
// 0X28 & 0X29 is length on r5
|
||||
if (family == 0 && familyVersion >= 4)
|
||||
offset += 12;
|
||||
|
||||
duration=data[offset+0x14] | (data[offset+0x15] << 8);
|
||||
if (!duration) {
|
||||
qDebug() << "!duration exit";
|
||||
|
@ -338,7 +338,7 @@ QToolButton:pressed {
|
||||
|
||||
#qt_calendar_monthbutton {
|
||||
background: transparent;
|
||||
border: 2px solid transparent;
|
||||
border: 2px solid transparent;
|
||||
border-radius: 8px;
|
||||
width: 6em;
|
||||
}
|
||||
@ -364,7 +364,9 @@ QToolButton:pressed {
|
||||
#qt_calendar_yearbutton:pressed {
|
||||
border: 2px solid #456789;
|
||||
background: #89abcd;
|
||||
}</string>
|
||||
}
|
||||
|
||||
</string>
|
||||
</property>
|
||||
<property name="firstDayOfWeek">
|
||||
<enum>Qt::Monday</enum>
|
||||
@ -493,121 +495,144 @@ QToolButton:pressed {
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
<widget class="QFrame" name="frame_3">
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Journal</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="JournalNotesFontsize">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>85</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maxVisibleItems">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="sizeAdjustPolicy">
|
||||
<enum>QComboBox::AdjustToContents</enum>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Small</string>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<property name="spacing">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>4</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Medium</string>
|
||||
<string>Journal</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>342</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="JournalNotesItalic">
|
||||
<property name="font">
|
||||
<font>
|
||||
<italic>true</italic>
|
||||
</font>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Big</string>
|
||||
<string> i </string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="JournalNotesColour">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 0, 0, 255), stop:0.166 rgba(255, 255, 0, 255), stop:0.333 rgba(0, 255, 0, 255), stop:0.5 rgba(0, 255, 255, 255), stop:0.666 rgba(0, 0, 255, 255), stop:0.833 rgba(255, 0, 255, 255), stop:1 rgba(255, 0, 0, 255))</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="JournalNotesItalic">
|
||||
<property name="font">
|
||||
<font>
|
||||
<italic>true</italic>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string> i </string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+I</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="JournalNotesUnderline">
|
||||
<property name="font">
|
||||
<font>
|
||||
<underline>true</underline>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>u</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="JournalNotesBold">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>B</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+B</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+I</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="JournalNotesBold">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>B</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+B</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="JournalNotesUnderline">
|
||||
<property name="font">
|
||||
<font>
|
||||
<underline>true</underline>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>u</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="JournalNotesColour">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 0, 0, 255), stop:0.166 rgba(255, 255, 0, 255), stop:0.333 rgba(0, 255, 0, 255), stop:0.5 rgba(0, 255, 255, 255), stop:0.666 rgba(0, 0, 255, 255), stop:0.833 rgba(255, 0, 255, 255), stop:1 rgba(255, 0, 0, 255))</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="JournalNotesFontsize">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>85</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maxVisibleItems">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="sizeAdjustPolicy">
|
||||
<enum>QComboBox::AdjustToContents</enum>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Small</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Medium</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Big</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTextEdit" name="JournalNotes">
|
||||
|
Loading…
Reference in New Issue
Block a user