Skip to content

Commit

Permalink
support for places (ie PV1 assigned location)
Browse files Browse the repository at this point in the history
  • Loading branch information
continuouslee committed Jul 1, 2011
1 parent 2f22efa commit 3a0ef12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/segments/data_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module HL7::Message::DataTypes
attr_reader :XCN #Extended Composite ID number and name
attr_reader :MSG_TYPE #MSH Segment - Message Type (009)
attr_reader :CX #Extended Composite ID with Check Digit
attr_reader :PL #Place

def self.XPN #for HL7 v2.3
["family_name", "given_name", "middle_name", "suffix", "prefix", "degree", "name_type_code", "name_representation_code"]
Expand All @@ -30,4 +31,8 @@ def self.CX
["id", "check_digit", "code_scheme", "assigning_authority", "id_type_code", "assigning_facility"]
end

def self.PL
["point_of_care", "room", "bed", "facility", "location_status", "person_location_type", "building", "floor", "location_description"]
end

end
2 changes: 1 addition & 1 deletion lib/segments/pv1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class HL7::Message::Segment::PV1 < HL7::Message::Segment
weight 2
add_field :set_id
add_field :patient_class
add_field :assigned_location
add_field :assigned_location, {:format => HL7::Message::DataTypes.PL}
add_field :admission_type
add_field :preadmit_number
add_field :prior_location
Expand Down

0 comments on commit 3a0ef12

Please sign in to comment.