Class: HQMF::Util::CodeSystemHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/util/code_system_helper.rb

Overview

General helpers for working with codes and code systems

Constant Summary collapse

CODE_SYSTEMS =
{
  '2.16.840.1.113883.6.1' =>    'LOINC',
  '2.16.840.1.113883.6.96' =>   'SNOMEDCT',
  '2.16.840.1.113883.6.12' =>   'CPT',
  '2.16.840.1.113883.6.88' =>   'RXNORM',
  '2.16.840.1.113883.6.103' =>  'ICD9CM',
  '2.16.840.1.113883.6.104' =>  'ICD9CM',
  '2.16.840.1.113883.6.4' =>   'ICD10PCS',
  '2.16.840.1.113883.6.90' =>   'ICD10CM',
  '2.16.840.1.113883.6.14' =>   'HCP',
  '2.16.840.1.113883.6.285' =>   'HCPCS',
  '2.16.840.1.113883.5.2' => "HL7 Marital Status",
  '2.16.840.1.113883.12.292' => 'CVX',
  '2.16.840.1.113883.5.83' => 'HITSP C80 Observation Status',
  '2.16.840.1.113883.3.26.1.1' => 'NCI Thesaurus',
  '2.16.840.1.113883.3.88.12.80.20' => 'FDA',
  "2.16.840.1.113883.4.9" => "UNII",
  "2.16.840.1.113883.6.69" => "NDC",
  '2.16.840.1.113883.5.14' => 'HL7 ActStatus',
  '2.16.840.1.113883.6.259' => 'HL7 Healthcare Service Location',
  '2.16.840.1.113883.12.112' => 'DischargeDisposition',
  '2.16.840.1.113883.5.4' => 'HL7 Act Code',
  '2.16.840.1.113883.1.11.18877' => 'HL7 Relationship Code',
  '2.16.840.1.113883.6.238' => 'CDCREC',
  '2.16.840.1.113883.6.177' => 'NLM MeSH',
  '2.16.840.1.113883.5.1076' => "Religious Affiliation",
  '2.16.840.1.113883.1.11.19717' => "HL7 ActNoImmunicationReason",
  '2.16.840.1.113883.3.88.12.80.33' => "NUBC",
  '2.16.840.1.113883.1.11.78' => "HL7 Observation Interpretation",
  '2.16.840.1.113883.3.221.5' => "Source of Payment Typology",
  '2.16.840.1.113883.6.13' => 'CDT',
  '2.16.840.1.113883.18.2' => 'AdministrativeSex',
  '2.16.840.1.113883.5.1' => 'AdministrativeGender',
  '1.2.3.4.5.6.7.8.9.10' => 'NA_VALUESET'
}.freeze

Class Method Summary collapse

Class Method Details

.code_system_for(oid) ⇒ String

Returns the name of a code system given an oid

Parameters:

  • oid (String)

    of a code system

Returns:

  • (String)

    the name of the code system as described in the measure definition JSON



44
45
46
# File 'lib/util/code_system_helper.rb', line 44

def self.code_system_for(oid)
  CODE_SYSTEMS[oid] || "Unknown"
end

.code_systemsObject

Returns the whole map of OIDs to code systems



50
51
52
# File 'lib/util/code_system_helper.rb', line 50

def self.code_systems
  CODE_SYSTEMS
end