forked from zdavatz/oddb.org
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
336 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Definitions for the sax-machine to parse the Aips*.xml | ||
# Preparations.xml | ||
|
||
require 'sax-machine' | ||
|
||
class SectionContent | ||
include SAXMachine | ||
attribute :id | ||
element :title | ||
end | ||
|
||
class SectionsContent | ||
include SAXMachine | ||
elements :section, :class => SectionContent | ||
end | ||
|
||
class MedicalInformationContent | ||
include SAXMachine | ||
attribute :type | ||
attribute :version | ||
attribute :lang | ||
attribute :safetyRelevant | ||
element :title | ||
element :authHolder | ||
element :atcCode | ||
element :substances | ||
element :authNrs | ||
element :remark | ||
element :style | ||
element :content | ||
element :sections, :class => SectionsContent | ||
end | ||
|
||
class MedicalInformationsEntry | ||
include SAXMachine | ||
elements :medicalInformation, :lazy => true, :as => :medicalInformations, :class => MedicalInformationContent | ||
end |
Oops, something went wrong.