50
ODS, EDF, EAV & GlobalTypes Christoph Fuchs 12.02.2014

Ods, edf, eav & global types

Embed Size (px)

Citation preview

Page 1: Ods, edf, eav & global types

ODS, EDF, EAV& GlobalTypes

Christoph Fuchs12.02.2014

Page 2: Ods, edf, eav & global types

Operational Data StoreEuropean Data Format

Entity-attribute-value modelGlobalTypes

Christoph Fuchs12.02.2014

Page 3: Ods, edf, eav & global types

ODSOperational Data Store

Page 4: Ods, edf, eav & global types

Operational Data Store

● integrates data from multiple sources

Page 5: Ods, edf, eav & global types

Operational Data Store

“An operational data store is a subject-oriented, integrated, volatile, current-valued, detailed-only collection of data in support of an

organization's need for up-to-the-second, operational, integrated, collective information.”

Page 6: Ods, edf, eav & global types

Operational Data Store

“An operational data store is a subject-oriented, integrated, volatile, current-valued, detailed-only collection of data in support of an

organization's need for up-to-the-second, operational, integrated, collective information.”

Bill Inmon

Page 7: Ods, edf, eav & global types

Operational Data Store

● integrates data from multiple sources

● “on-thy-fly”

Page 8: Ods, edf, eav & global types

Operational Data Store

● integrates data from multiple sources

● “on-thy-fly”

● implemented in Data Warehouses

Page 9: Ods, edf, eav & global types

ODS / Data Warehouse

Page 10: Ods, edf, eav & global types

Operational Data Store

● integrates data from multiple sources

● “on-thy-fly”

● implemented in Data Warehouses

Page 11: Ods, edf, eav & global types

ODS - Software?

● Eclipse BIRT Project● RapidMiner● SpagoBI● R● KNIME● TACTIC

Source: http://en.wikipedia.org/wiki/Business_intelligence_tools#Open_source_free_products

Page 12: Ods, edf, eav & global types

ODS - Software?

● Eclipse BIRT Project● RapidMiner● SpagoBI● R● KNIME● TACTIC

Source: http://en.wikipedia.org/wiki/Business_intelligence_tools#Open_source_free_products

Page 13: Ods, edf, eav & global types

EDFEuropean Data Format

Page 14: Ods, edf, eav & global types

European Data Format

● standard file format for exchange and storage of medical time series

Page 15: Ods, edf, eav & global types

European Data Format

● standard file format for exchange and storage of medical time series

● open and non-proprietary

Page 16: Ods, edf, eav & global types

Source: https://groups.yahoo.com/neo/groups/EDF/info

Page 17: Ods, edf, eav & global types

European Data Format

● standard file format for exchange and storage of medical time series

● open and non-proprietary

● published in 1992 Electroencephalography and Clinical Neurophysiology (82: 391-393)Full specification: http://www.edfplus.info/specs/edf.html

Page 18: Ods, edf, eav & global types

European Data Format+

● extension published in 2003

● a few additional specifications

● only minor changes

Full specification: http://www.edfplus.info/specs/edfplus.html

Page 19: Ods, edf, eav & global types

European Data Format+

● “Any space inside the hospital code [...] must be replaced by a different character … ”

● 'Digital maximum' must be larger than 'Digital minimum'

Full specification: http://www.edfplus.info/specs/edfplus.html

Page 20: Ods, edf, eav & global types

EDF Example (Hypnogram)

Page 21: Ods, edf, eav & global types

EDF Example (Hypnogram)● Header contains:

○ startdate○ enddate○ patient data

(age, etc.)● Body contains:

○ binary readings

Source: B van Sweden, B Kemp, HAC Kamphuisen, EA van der Velde. Alternative electrode placement in (automatic) sleep scoring (Fpz-Cz / Pz-Oz versus C4-A1 / C3-A2). Sleep 13(3):279-283 (1990).

Page 22: Ods, edf, eav & global types

EDF Example (Reading)● Header contains:

○ startdate○ enddate○ patient data

EEG/EOG/EMG information

○ body temp, electrodes, ...

Source: B van Sweden, B Kemp, HAC Kamphuisen, EA van der Velde. Alternative electrode placement in (automatic) sleep scoring (Fpz-Cz / Pz-Oz versus C4-A1 / C3-A2). Sleep 13(3):279-283 (1990).

Page 23: Ods, edf, eav & global types

EDF Example (Reading)● Body again contains

binary information

Source: B van Sweden, B Kemp, HAC Kamphuisen, EA van der Velde. Alternative electrode placement in (automatic) sleep scoring (Fpz-Cz / Pz-Oz versus C4-A1 / C3-A2). Sleep 13(3):279-283 (1990).

Page 24: Ods, edf, eav & global types

Companies using EDF

● 92 companies listed, from all over the world

Page 25: Ods, edf, eav & global types

Companies using EDF

● 92 companies listed, from all over the world

○ Guger Technologies, Austria, Europe. Their EEG software reads EDF.

○ The Siesta Group, Austria, Europe. Their web-based sleep scoring and multi-center research reads and writes EDF and EDF+.

Page 26: Ods, edf, eav & global types
Page 27: Ods, edf, eav & global types
Page 28: Ods, edf, eav & global types

EAVEntity-attribute-value model

Page 29: Ods, edf, eav & global types

Entity-attribute-value model

“data model to describe entities where the number of attributes [...] is potentially vast, but the number that will actually apply to a

given entity is relatively modest”

Page 30: Ods, edf, eav & global types

Entity-attribute-value model

“data model to describe entities where the number of attributes [...] is potentially vast, but the number that will actually apply to a

given entity is relatively modest”=

“Sparse Matrix”

Page 31: Ods, edf, eav & global types

Entity-attribute-value model

● Also known as:

○ object-attribute-value model

○ vertical database model

○ open schema

Page 32: Ods, edf, eav & global types

Entity-attribute-value model

Caution!

● can be an anti-pattern

Page 33: Ods, edf, eav & global types

Entity-attribute-value model

Caution!

● can be an anti-pattern

● longer development times● poor use of DB resources● more complex queries

Page 34: Ods, edf, eav & global types

Entity-attribute-value model

Data is recorded as three columns:

● entity

● attribute (or parameter)

● value

Page 35: Ods, edf, eav & global types

Entity-attribute-value model

Example

(<patient XYZ, 1/5/98 9:30 AM>, <Temperature in degrees Fahrenheit>, "102" )

(<patient XYZ, 1/5/98 9:30 AM>, <Presence of Cough>, "True" )

(<patient XYZ, 1/5/98 9:30 AM>, <Type of Cough>, "With phlegm, yellowish,

streaks of blood" )

(<patient XYZ, 1/5/98 9:30 AM>, <Heart Rate in beats per minute>, "98" )

...

Page 36: Ods, edf, eav & global types

Entity-attribute-value model

Looks familiar?

Page 37: Ods, edf, eav & global types

Entity-attribute-value model

Data is recorded as three columns:

● subject

● predicate

● object

Page 38: Ods, edf, eav & global types

Entity-attribute-value model

RDF is an EAV

Page 39: Ods, edf, eav & global types

Entity-attribute-value model

● medical data is a good use-case

○ many possible data points

○ every patient only “uses” a few of these data points

Page 40: Ods, edf, eav & global types

Entity-attribute-value model

● medical data is a good use-case

● However, EDF and EDF+ don’t seem to be an EAV model per se

Page 41: Ods, edf, eav & global types
Page 42: Ods, edf, eav & global types

GlobalTypesaka complexType

Page 43: Ods, edf, eav & global types

GlobalTypes (complexType)

● complex types in XSD(XML Schema definition language)

● A complex type element is an XML element that contains other elements and/or attributes.

Page 44: Ods, edf, eav & global types

GlobalTypes (complexType)<complexType

id=IDname=NCNameabstract=true|falsemixed=true|falseblock=(#all|list of (extension|restriction))final=(#all|list of (extension|restriction))any attributes

>

(annotation?,(simpleContent|complexContent|((group|all|choice|sequence)?,((attribute|attributeGroup)*,anyAttribute?))))

</complexType>

Page 45: Ods, edf, eav & global types

GlobalTypes (complexType)

Source: http://www.w3schools.com/schema/el_complextype.asp

Page 46: Ods, edf, eav & global types

complexType Example

Page 47: Ods, edf, eav & global types

GlobalTypes (complexType)

● complexType in XSD

● can be used for modeling medical data

● the problem is, as always, agreeing on an ontology

Page 48: Ods, edf, eav & global types

SummaryODS, EDF, EAV, GlobalTypes

Page 49: Ods, edf, eav & global types

Summary● ODS Operational Data Store

○ business data integration “on-thy-fly”

● EDF European Data Format○ standard for medical data

● EAV Entity-attribute-value model○ e.g. RDF (subject-predicate-object)

● GlobalTypes aka XSD complexType○ define complex types in XSD

Page 50: Ods, edf, eav & global types

Thank youQuestions?