lib/segments/pid.rb in ruby-hl7-1.2.3 vs lib/segments/pid.rb in ruby-hl7-1.3.0
- old
+ new
@@ -19,11 +19,11 @@
sex
end
add_field :patient_alias
add_field :race
add_field :address
- add_field :country_code
+ add_field :county_code
add_field :phone_home
add_field :phone_business
add_field :primary_language
add_field :marital_status
add_field :religion
@@ -51,6 +51,18 @@
add_field :species_code
add_field :breed_code
add_field :strain
add_field :production_class_code
add_field :tribal_citizenship
+
+ def country_code
+ warn "DEPRECATION WARNING: PID-12 is defined as 'county_code'; "+
+ "the 'country_code' alias is retained for backwards compatibility only."
+ county_code
+ end
+
+ def country_code=(country_code)
+ warn "DEPRECATION WARNING: PID-12 is defined as 'county_code'; "+
+ "the 'country_code' alias is retained for backwards compatibility only."
+ self.county_code = country_code
+ end
end