Skip to content

Commit b3b8769

Browse files
committed
Merge pull request segfault#5 from drtoast/master
Added ZCF and IN1 segments
2 parents 5f80a87 + d592947 commit b3b8769

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

lib/segments/in1.rb

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# encoding: UTF-8
2+
# via https://github.com/bbhoss/ruby-hl7/blob/master/lib/segments/in1.rb
3+
require 'ruby-hl7'
4+
class HL7::Message::Segment::IN1 < HL7::Message::Segment
5+
add_field :set_id
6+
add_field :insurance_plan_id
7+
add_field :insurance_company_id
8+
add_field :insurance_company_name
9+
add_field :insurance_company_address
10+
add_field :insurance_company_contact_person
11+
add_field :insurance_company_phone_number
12+
add_field :group_number
13+
add_field :group_name
14+
add_field :insureds_group_employee_id
15+
add_field :insureds_group_employee_name
16+
add_field :plan_effective_date
17+
add_field :plan_expiration_date
18+
add_field :authorization_information
19+
add_field :plan_type
20+
add_field :name_of_insured
21+
add_field :insureds_relationship_to_patient
22+
add_field :insureds_date_of_birth
23+
add_field :insureds_address
24+
add_field :assignment_of_benefits
25+
add_field :coordination_of_benefits
26+
add_field :coordination_of_benefits_priority
27+
add_field :notice_of_admission_flag
28+
add_field :notice_of_admission_date
29+
add_field :report_of_eligibility_flag
30+
add_field :report_of_eligibility_date
31+
add_field :release_information_code
32+
add_field :pre_admit_cert
33+
add_field :verification_date_time
34+
add_field :verification_by
35+
add_field :type_of_agreement_code
36+
add_field :billing_status
37+
add_field :lifetime_reserve_days
38+
add_field :delay_before_lr_day
39+
add_field :company_plan_code
40+
add_field :policy_number
41+
add_field :policy_deductible
42+
add_field :policy_limit_amount
43+
add_field :policy_limit_days
44+
add_field :room_rate_semi_private
45+
add_field :room_rate_private
46+
add_field :insureds_employment_status
47+
add_field :insureds_sex
48+
add_field :insureds_employer_address
49+
add_field :verification_status
50+
add_field :prior_insurance_plan_id
51+
add_field :coverage_type
52+
add_field :handicap
53+
add_field :insureds_id_number
54+
end

lib/segments/zcf.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
require 'ruby-hl7'
2+
class HL7::Message::Segment::ZCF < HL7::Message::Segment
3+
add_field :custom_field_1
4+
add_field :custom_field_2
5+
add_field :custom_field_3
6+
add_field :custom_field_4
7+
add_field :custom_field_5
8+
add_field :custom_field_6
9+
add_field :custom_field_7
10+
add_field :custom_field_8
11+
add_field :custom_field_9
12+
add_field :custom_field_10
13+
add_field :custom_field_11
14+
add_field :custom_field_12
15+
add_field :custom_field_13
16+
add_field :custom_field_14
17+
add_field :custom_field_15
18+
add_field :custom_field_16
19+
add_field :custom_field_17
20+
add_field :custom_field_18
21+
add_field :custom_field_19
22+
add_field :custom_field_20
23+
end

0 commit comments

Comments
 (0)