NCRS COSD script * use XML::LibXML & XML::Compile::Schema from xsd to allow ordered elements * alternative function to generate xml using Template - easier layout control * add xml validator * remove some invalid header text * change most nested elements to inline to match supplied (inconsistent) example * use Encoding::FixLatin 'fix_latin' on free-text entries (result summaries, clinical details) to avoid encoding problems (non-ascii characters in NBT reports) * supply -uft8 flag to IO::All to prevent 'wide character' warning * suspend TopographySNOMEDPathology item, they don't want it * replace hard-coded NHSNumberStatusIndicator with value relating to NHS number presence * only 1 of SampleCollectionDate / SampleReceiptDate * skip *EQAS records and single-character last_name's * skip anonymised clinical trials
NCRS COSD script * adapt ncrs_cosd script to use XML::LibXML & XML::Compile::Schema to create xml from xsd to allow ordered elements * add xml validator * remove some invalid header text * change most nested elements to inline to match supplied (inconsistent) example * use Encoding::FixLatin qw/fix_latin/ on result summaries to avoid uft8 warnings
NCRS COSD script * adapt ncrs_cosd script to use XML::LibXML & XML::Compile::Schema to create xml from xsd to allow defined element order * add xml validator * remove some invalid header text