Skip to content

Instantly share code, notes, and snippets.

@rtirrell
Created June 28, 2010 23:36
Show Gist options
  • Save rtirrell/456552 to your computer and use it in GitHub Desktop.
Save rtirrell/456552 to your computer and use it in GitHub Desktop.
class MRCONSO
include DataMapper::Resource
def self.default_repository_name; UMLS_REPOSITORY_NAME; end
# storage_names[UMLS_REPOSITORY_NAME] = "MRCONSO"
def self.storage_name(repository)
"MRCONSO"
end
property :CUI, String
property :LAT, String
property :ISPREF, String
property :AUI, String, :key => true
property :SAB, String
property :STR, String
has n, :MRHIERs, :child_key => [:AUI]
has 1, :STY, :model => "MRSTY", :parent_key => [:CUI], :child_key => [:CUI]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment