get_codelist function

Read in the code list from the specification for a specific domain