Visiting Hours (VH) -- HL7v2 composite data type.
Specifies visiting hours for a location.
4 components:
- Start Day Range (ID) -- Table 0267: SAT, SUN, MON, TUE, WED, THU, FRI
- End Day Range (ID) -- Table 0267
- Start Hour Range (TM) -- HHMM
- End Hour Range (TM) -- HHMM
Summary
Types
Functions
Encodes a VH to a list of component strings.
Examples
iex> HL7v2.Type.VH.encode(%HL7v2.Type.VH{start_day_range: "MON", end_day_range: "FRI", start_hour_range: "0800", end_hour_range: "1700"})
["MON", "FRI", "0800", "1700"]
iex> HL7v2.Type.VH.encode(nil)
[]
Parses a VH from a list of components.
Examples
iex> HL7v2.Type.VH.parse(["MON", "FRI", "0800", "1700"])
%HL7v2.Type.VH{start_day_range: "MON", end_day_range: "FRI", start_hour_range: "0800", end_hour_range: "1700"}
iex> HL7v2.Type.VH.parse(["SAT", "SUN"])
%HL7v2.Type.VH{start_day_range: "SAT", end_day_range: "SUN"}
iex> HL7v2.Type.VH.parse([])
%HL7v2.Type.VH{}