Utility functions¶
- 
hl7apy.utils.check_date(value)¶
- Checks that the value is a valid HL7 date - Parameters: - value – the value to check - Returns: - True if the value is correct, False otherwise 
- 
hl7apy.utils.check_datetime(value)¶
- Checks that the value is a valid HL7 datetime - Parameters: - value – the value to check - Returns: - True if the value is correct, False otherwise 
- 
hl7apy.utils.check_timestamp(value)¶
- Checks that the value is a valid HL7 timestamp - Parameters: - value – the value to check - Returns: - True if the value is correct, False otherwise 
- 
hl7apy.utils.get_date_info(value)¶
- Returns the datetime object and the format of the date in input 
- 
hl7apy.utils.get_datetime_info(value)¶
- Returns the datetime object, the format, the offset and the microsecond of the datetime in input 
- 
hl7apy.utils.get_timestamp_info(value)¶
- Returns the datetime object, the format, the offset and the microsecond of the timestamp in input