Changeset 153 for ruby/trunk/lib/models/rm/data_types/time_specification.rb
- Timestamp:
- Jul 3, 2009, 2:17:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/models/rm/data_types/time_specification.rb
r152 r153 30 30 end 31 31 32 # I have not implemented two classes bellow, 33 # because I could not obtain HL7 specification related them. 34 32 35 33 36 class DV_General_Time_Specification < DV_Time_Specification … … 55 58 raise ArgumentError, "value is not valid" 56 59 end 57 /^\[(\d+)\;?(\d+)?\]\/\((\d+\w+)\)(@(\w+?))?(IST)?$/ =~ value 58 interval1, interval2, difference, allignment = $1, $2, $3, $5 59 # not implemented because of unknown HL7 specification 60 61 end 62 63 def calender_alignment 64 65 end 66 67 def event_alignment 68 60 if value.formalism('HL7:PIVL') 61 /^\[(\d+)\;?(\d+)?\]\/\((\d+\w+)\)(@(\w+?))?(IST)?$/ =~ value 62 interval1, interval2, difference, allignment = $1, $2, $3, $5 63 end 64 if value 65 end 69 66 end 70 67 71 68 def institution_specified? 72 69 73 end74 def period75 70 end 76 71 end
Note:
See TracChangeset
for help on using the changeset viewer.