Class: PreparationsEntry
- Inherits:
-
Object
- Object
- PreparationsEntry
- Includes:
- SAXMachine
- Defined in:
- lib/oddb2xml/fhir_support.rb,
lib/oddb2xml/xml_definitions.rb
Overview
Extend PreparationsEntry to handle both XML and FHIR
Class Method Summary collapse
Class Method Details
.original_parse ⇒ Object
926 |
# File 'lib/oddb2xml/fhir_support.rb', line 926 alias_method :original_parse, :parse |
.parse(input, **kwargs) ⇒ Object
928 929 930 931 932 933 934 935 936 937 |
# File 'lib/oddb2xml/fhir_support.rb', line 928 def parse(input, **kwargs) # Check if input is a file path ending in .ndjson if input.is_a?(String) && File.exist?(input) && input.end_with?(".ndjson") # Parse as FHIR FhirPreparationsEntry.parse(input) else # Parse as XML (original behavior) original_parse(input, **kwargs) end end |