Last change
on this file since 415 was 415, checked in by KOBAYASHI, Shinji, 14 years ago |
developing around terminology
|
File size:
688 bytes
|
Rev | Line | |
---|
[415] | 1 | require 'rubygems'
|
---|
| 2 | require 'xmlsimple'
|
---|
| 3 |
|
---|
| 4 | module OpenEHR
|
---|
| 5 | module Terminology
|
---|
| 6 | class OpenEHRTerminology
|
---|
| 7 | def initialize
|
---|
| 8 | @terms = XmlSimple.xml_in(File.open('doc/openehr_terminology.xml'))
|
---|
| 9 | end
|
---|
| 10 |
|
---|
| 11 | def languages
|
---|
| 12 | @terms['Language']
|
---|
| 13 | end
|
---|
| 14 |
|
---|
| 15 | def primary_rubrics
|
---|
| 16 | @terms['PrimaryRubric']
|
---|
| 17 | end
|
---|
| 18 |
|
---|
| 19 | def concepts
|
---|
| 20 | @terms['Concept']
|
---|
| 21 | end
|
---|
| 22 |
|
---|
| 23 | def groupers
|
---|
| 24 | @terms['Grouper']
|
---|
| 25 | end
|
---|
| 26 |
|
---|
| 27 | def grouped_concepts
|
---|
| 28 | @terms['GroupedConcept']
|
---|
| 29 | end
|
---|
| 30 |
|
---|
| 31 | def terminology_identifiers
|
---|
| 32 | @terms['TerminologyIdentifiers']
|
---|
| 33 | end
|
---|
| 34 |
|
---|
| 35 | def territories
|
---|
| 36 | @terms['Territory']
|
---|
| 37 | end
|
---|
| 38 | end
|
---|
| 39 | end
|
---|
| 40 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.