Sha256: f927d5d81cd3cfdfd32c13c904bd297de66027e5596f384f16b71a7afffb0a88
Contents?: true
Size: 533 Bytes
Versions: 29
Compression:
Stored size: 533 Bytes
Contents
# codelist methods # for ADIwg readers and writers # History: # Stan Smith 2019-03-22 original script require 'adiwg-mdcodes' module CodelistFun def self.validateItem(codeList, codeName) # get requested codelist from the adiwg-mdcodes gem mdCodelist = ADIWG::Mdcodes.getCodelistDetail(codeList) aCodes = mdCodelist['codelist'] # search the codelist for a matching codeName aCodes.each do |hCode| return true if hCode['codeName'] == codeName end return false end end
Version data entries
29 entries across 29 versions & 1 rubygems