Create codetable from scratch         Contact
Hypersomnia (organic) G47.10
    due to
        alcohol
            abuse F10.182
            dependence F10.282
            use F10.982
        amphetamines
            abuse F15.182
            dependence F15.282
            use F15.982
        caffeine
            abuse F15.182
            dependence F15.282
            use F15.982
        cocaine
            abuse F14.182
            dependence F14.282
            use F14.982
        drug NEC
            abuse F19.182
            dependence F19.282
            use F19.982
        medical condition G47.14
        mental disorder F51.13
        opioid
            abuse F11.182
            dependence F11.282
            use F11.982
        psychoactive substance NEC
            abuse F19.182
            dependence F19.282
            use F19.982
        sedative, hypnotic, or anxiolytic
            abuse F13.182
            dependence F13.282
            use F13.982
        stimulant NEC
            abuse F15.182
            dependence F15.282
            use F15.982
    idiopathic G47.11
        with long sleep time G47.11
        without long sleep time G47.12
    menstrual related G47.13
    nonorganic origin F51.11
        specified NEC F51.19
    not due to a substance or known physiological condition F51.11
        specified NEC F51.19
    primary F51.11
    recurrent G47.13
    specified NEC G47.19