Module: ODDB::FiParse::FachinfoWriterMethods

Included in:
FachinfoPDFWriter, FachinfoWriter
Defined in:
ext/fiparse/src/fachinfo_writer.rb

Instance Method Summary collapse

Instance Method Details

#to_fachinfoObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'ext/fiparse/src/fachinfo_writer.rb', line 10

def to_fachinfo
	fi = if(@amzv)
		fi = FachinfoDocument2001.new
		fi.amzv = @amzv
		fi.contra_indications = @contra_indications
		fi.pregnancy = @pregnancy
		fi.driving_ability = @driving_ability
		fi.preclinic = @preclinic
		fi.registration_owner = @registration_owner
		fi
	else
		fi = FachinfoDocument.new
		fi.delivery = @delivery
		fi.distribution = @distribution
		fi.fabrication = @fabrication
		fi.reference = @reference
		fi
	end
	fi.name = @name.gsub(/\?/u, '')
	fi.galenic_form = @galenic_form
	fi.composition = @composition
	fi.effects = @effects 
	fi.kinetic = @kinetic
	fi.indications = @indications
	fi.usage = @usage

	fi.restrictions = @restrictions
	fi.unwanted_effects = @unwanted_effects
	fi.interactions = @interactions
	fi.overdose = @overdose
	fi.other_advice = @other_advice
	fi.iksnrs = @iksnrs
     fi.packages = @packages
	fi.date = @date
	fi
end