Skip to content

Commit

Permalink
Fix heirarchy of 270 transaction set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Jackson committed Jul 6, 2012
1 parent 6575a8d commit a50f851
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 33 deletions.
11 changes: 11 additions & 0 deletions lib/hippo/transaction_sets/HIPAA_270/L2000A.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ class L2000A < Hippo::TransactionSets::Base
'NM1.NM108' => ["24", "46", "FI", "NI", "PI", "XV", "XX"]
}

#Information Receiver Level
loop Hippo::TransactionSets::HIPAA_270::L2000B,
:name => 'Information Receiver Level',
:minimum => 1,
:maximum => 99999,
:position => 100,
:identified_by => {
'HL.HL03' => '21',
'HL.HL04' => '1'
}

end
end
end
10 changes: 10 additions & 0 deletions lib/hippo/transaction_sets/HIPAA_270/L2000B.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ class L2000B < Hippo::TransactionSets::Base
'NM1.NM108' => ["24", "34", "FI", "PI", "PP", "SV", "XV", "XX"]
}

#Subscriber Level
loop Hippo::TransactionSets::HIPAA_270::L2000C,
:name => 'Subscriber Level',
:minimum => 1,
:maximum => 99999,
:position => 100,
:identified_by => {
'HL.HL03' => '22',
'HL.HL04' => ["0", "1"]
}
end
end
end
11 changes: 11 additions & 0 deletions lib/hippo/transaction_sets/HIPAA_270/L2000C.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ class L2000C < Hippo::TransactionSets::Base
'NM1.NM102' => ["1", "2"]
}

#Dependent Level
loop Hippo::TransactionSets::HIPAA_270::L2000D,
:name => 'Dependent Level',
:minimum => 0,
:maximum => 99999,
:position => 100,
:identified_by => {
'HL.HL03' => '23',
'HL.HL04' => '0'
}

end
end
end
33 changes: 0 additions & 33 deletions lib/hippo/transaction_sets/HIPAA_270/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,39 +35,6 @@ class Base < Hippo::TransactionSets::Base
'HL.HL04' => '1'
}

#Information Receiver Level
loop Hippo::TransactionSets::HIPAA_270::L2000B,
:name => 'Information Receiver Level',
:minimum => 1,
:maximum => 99999,
:position => 100,
:identified_by => {
'HL.HL03' => '21',
'HL.HL04' => '1'
}

#Subscriber Level
loop Hippo::TransactionSets::HIPAA_270::L2000C,
:name => 'Subscriber Level',
:minimum => 1,
:maximum => 99999,
:position => 100,
:identified_by => {
'HL.HL03' => '22',
'HL.HL04' => ["0", "1"]
}

#Dependent Level
loop Hippo::TransactionSets::HIPAA_270::L2000D,
:name => 'Dependent Level',
:minimum => 0,
:maximum => 99999,
:position => 100,
:identified_by => {
'HL.HL03' => '23',
'HL.HL04' => '0'
}

#Transaction Set Trailer
segment Hippo::Segments::SE,
:name => 'Transaction Set Trailer',
Expand Down

0 comments on commit a50f851

Please sign in to comment.