xtk / X

The X Toolkit
http://www.goXTK.com
Other
794 stars 266 forks source link

Add missing VR types to special cases for parsing empty bytes in DICOMs #242

Open grstreet opened 3 months ago

grstreet commented 3 months ago

https://github.com/xtk/X/blob/226fdfbd8dea2eb37668d584696723ac99949a6d/io/parserDCM.js#L568 handles cases UL, SQ, UN, OW according to 7.2.1 of the DICOM standard: https://dicom.nema.org/medical/dicom/current/output/chtml/part05/chapter_7.html#table_7.1-1

However, according to the list of VR types, OB,OD,OF,OW,SQ,UN,UT,OL,OV,SV,UC,UR,UV need to be treated this way. The list of cases needs to be updated for each of these. UL, in the original list, is not listed here in the standard.

    case 16975://OB
    case 17487://OD
    case 17999://OF
    case 19535://OL
    case 22095://OV
    case 22099://SV
    case 17237://UC
    case 21077://UR
    case 21589://UT
    case 22101://UV
    //DEFAULT included with xtk_edge.js
    //case 16975://UL is included here in xtk_edge.js, but listed in the DICOM standard as NOT parsed this way
    case 20819://SQ
    case 20053://UN
    case 22351://OW