Last change
on this file since 421 was 421, checked in by KOBAYASHI, Shinji, 14 years ago |
implementing terminology related tables
|
File size:
692 bytes
|
Rev | Line | |
---|
[420] | 1 | terminology = OpenEHR::Terminology::OpenEHRTerminology.new
|
---|
| 2 |
|
---|
| 3 | terminology.languages.each do |lang|
|
---|
| 4 | Language.create!(:code => lang['code'], :description => lang['Description'])
|
---|
| 5 | end
|
---|
| 6 |
|
---|
| 7 | terminology.territories.each do |territory|
|
---|
| 8 | Territory.create!(:text => territory['Text'],
|
---|
| 9 | :three_letter => territory['ThreeLetter'],
|
---|
| 10 | :numeric_code => territory['NumericCode'],
|
---|
| 11 | :two_letter => territory['TwoLetter'])
|
---|
| 12 | end
|
---|
[421] | 13 |
|
---|
| 14 | terminology.terminology_identifiers do |ti|
|
---|
| 15 | TerminologyIdentifier.create!(:vsab => ti['VSAB'],
|
---|
| 16 | :authority => ti['Authority'],
|
---|
| 17 | :source_name => ti['SouceName'])
|
---|
| 18 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.