<!-- file: wfdb.dtd   G. Moody <george@mit.edu>    25 August 2010 (v1.0) -->
<!ELEMENT wfdbrecord (info*, start?, length?,
	  samplingfrequency, counterfrequency?, signals, signalfile*, segment*)>
<!ATTLIST wfdbrecord name CDATA #REQUIRED>
<!ELEMENT start (year?, month?, day?, hour, minute, second?)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT month (#PCDATA)>
<!ELEMENT day (#PCDATA)>
<!ELEMENT hour (#PCDATA)>
<!ELEMENT minute (#PCDATA)>
<!ELEMENT second (#PCDATA)>
<!ATTLIST length units CDATA "sample intervals">
<!ELEMENT length (#PCDATA)>
<!ATTLIST samplingfrequency units CDATA "Hz">
<!ELEMENT samplingfrequency (#PCDATA)>
<!ATTLIST counterfrequency basecount CDATA "0">
<!ATTLIST counterfrequency units CDATA "Hz">
<!ELEMENT counterfrequency (#PCDATA)>
<!ELEMENT signals (#PCDATA)>
<!ELEMENT signalfile (filename, preamblelength?, signal*)>
<!ELEMENT filename (#PCDATA)>
<!ELEMENT preamblelength (#PCDATA)>
<!ELEMENT signal (description?, gain?, units?, initialvalue?, storageformat,
	  samplesperframe?, skew?, blocksize?, adcresolution?, adczero?,
	  baseline?, checksum?)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT gain (#PCDATA)>
<!ELEMENT units (#PCDATA)>
<!ELEMENT initialvalue (#PCDATA)>
<!ELEMENT storageformat (#PCDATA)>
<!ELEMENT samplesperframe (#PCDATA)>
<!ELEMENT skew (#PCDATA)>
<!ELEMENT blocksize (#PCDATA)>
<!ELEMENT adcresolution (#PCDATA)>
<!ELEMENT adczero (#PCDATA)>
<!ELEMENT baseline (#PCDATA)>
<!ELEMENT checksum (#PCDATA)>
<!ELEMENT info (age?, sex?, extra?, diagnosis*, medication*, other*)>
<!ELEMENT age (#PCDATA)>
<!ELEMENT sex (#PCDATA)>
<!ELEMENT extra (#PCDATA)>
<!ELEMENT diagnosis (#PCDATA)>
<!ATTLIST medication dosage CDATA #IMPLIED>
<!ELEMENT medication (#PCDATA)>
<!ELEMENT other (#PCDATA)>
<!ELEMENT segment (info*, start?, length?, gap?,
	  samplingfrequency?, counterfrequency?, signals?, signalfile*)>
<!ATTLIST segment name CDATA #REQUIRED>
<!ELEMENT gap (start?, length)>
<!ATTLIST gap name CDATA #IMPLIED>
<!ELEMENT wfdbannotationset (start?, length?, samplingfrequency?, annotation*,
	  anntab?)>
<!ATTLIST wfdbannotationset annotator CDATA #REQUIRED
	  record CDATA #REQUIRED>
<!ELEMENT anntab (anntabentry*)>
<!ELEMENT anntabentry (anntype, anncode, anndescription, anncount?)>
<!ELEMENT annotation (time, anncode, subtype?, chan?, num?, aux?, dur?, url?)>
<!ELEMENT anntype (#PCDATA)>
<!ELEMENT anncode (#PCDATA)>
<!ELEMENT anndescription (#PCDATA)>
<!ELEMENT anncount (#PCDATA)>
<!ELEMENT time (#PCDATA)>
<!ELEMENT subtype (#PCDATA)>
<!ELEMENT chan (#PCDATA)>
<!ELEMENT num (#PCDATA)>
<!ELEMENT aux (#PCDATA)>
<!ELEMENT url (#PCDATA)>
<!ELEMENT dur (#PCDATA)>
<!ELEMENT wfdbsampleset (start?, samplingfrequency?, signals?,
	  description, units?, samplevectors*)>
<!ELEMENT samplevectors (#PCDATA)>
