Class: ODDB::OdbaExporter::AcmedLine

Inherits:
PackageLine show all
Defined in:
ext/export/src/oddbdat.rb

Constant Summary

LENGTH =
27

Instance Method Summary (collapse)

Methods inherited from PackageLine

#initialize

Methods inherited from Line

#content, #empty?, #initialize, #to_s

Constructor Details

This class inherits a constructor from ODDB::OdbaExporter::PackageLine

Instance Method Details

- (Object) structure



433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
# File 'ext/export/src/oddbdat.rb', line 433

def structure
  atccd = if(atc = @package.sequence.atc_class)
    atc.code
  end
  gfid = if(galform = @package.galenic_forms.first)
    galform.oid
  end
  fioid = if(fachinfo = @package.fachinfo)
    fachinfo.oid
  end 
  atc = @package.sequence.atc_class
  {
    1    =>  '02',
    2    =>  @date,
    3    =>  '1',
    4    =>  @package.oid,
    5    =>  '4',
    7    =>  fioid,
    10 =>  atccd,
    12 =>  gfid,
  }
end