Ignore:
Timestamp:
Jul 3, 2009, 2:17:43 AM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #62, #47, #65

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/models/rm/data_types/time_specification.rb

    r152 r153  
    3030        end
    3131
     32# I have not implemented two classes bellow,
     33# because I could not obtain HL7 specification related them.
     34
    3235
    3336        class DV_General_Time_Specification < DV_Time_Specification
     
    5558              raise ArgumentError, "value is not valid"
    5659            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
    6966          end
    7067
    7168          def institution_specified?
    7269
    73           end
    74           def period
    7570          end
    7671        end
Note: See TracChangeset for help on using the changeset viewer.