|
|
Reference Type: Supported, Category: Date Functions, Integration Agreement: 10103
This extrinsic function converts an HL7 formatted input date/time into a VA FileMan formatted date/time.
$$HL7TFM^XLFDT(hl7_date_time[,local_uct][,time_flag])
| hl7_date_time: |
(required) HL7 formatted date and time. |
| local_uct: |
(optional) This parameter controls if any time offset is applied to
the time. If a time offset is included, then time offset can be
applied to give Local time or Coordinated Universal Time (UTC,
a.k.a. GMT, or Greenwich Mean Time) time offset from the MAILMAN
TIME ZONE file (#4.4). The default is to return Local time. Valid
values are:
|
| time_flag: |
(optional) This parameter is set to 1 if the value in the hl7_date_time input parameter is just a time value. The default assumes that the hl7_date_time input parameter is a date and time value. |
| returns: |
Returns the converted date in VA FileMan format. |
|
To get date with no offset:
>S X=$$HL7TFM^XLFDT("200011271525-0700")
>W X
3001127.1525
To get UCT time offset:
>S X=$$HL7TFM^XLFDT("200011271525-0700","U")
>W X
3001127.2225
To get Local time in PST offset:
>S X=$$HL7TFM^XLFDT("200011271525-0700","L")
>W X
3001127.1425
To get Local time when only providing a time (no date) as the input parameter:
>S X=$$HL7TFM^XLFDT("1525-0700","L",1)
>W X
.1525
|
VA (Internet) / VA (Intranet) / OI / HSD&D / Site Map / Terms of Use / VA Privacy Policy / Accessibility Reviewed/Updated:
December 14, 2005
|