Skip to main content

HS.Gateway.SDA3.SDA3ToHL7.TransformUtil

class HS.Gateway.SDA3.SDA3ToHL7.TransformUtil extends Ens.Util.FunctionSet

Common MU2 Tranform Utilities

Method Inventory

Methods

classmethod DateTime(pHorolog As %String = $H, pNoSecs As %Boolean = 0) as %String
Return Date time in YYYYMMDDhhmmss format
classmethod PhonePart(pType As %String = "Local", pNumber As %String = "") as %String
Get Part of a phone number
classmethod StructuredNumeric(pOrigVal As %String, pSeparator As %String = "^") as %String
Given a string value that originated as an HL7 structured numeric (SN)
type, return the original SN value. The format of the SN structure is:
SEQ  LEN  DT  OPT  TBL#  COMPONENT NAME  COMMENTS  SEC.REF.
1    2    ST  O          Comparator                2.A.74
2    15   NM  O          Num1                      2.A.47
3    1    ST  O          Separator/Suffix          2.A.74
4    15   NM  O          Num2                      2.A.47

As per the HL7 spec, the comparator, if populated, must be one of >, <, >=,
<=, =, or <>. The separator/suffix, if populated, must be one of -, +, /,
or :. The HL7 spec lists "." as a possible separator, however this method
cannot parse that correctly since Num1 and Num2 are both numeric fields and
therefore can contain decimals. Note that a positive or negative sign (+ or
-) at the beginning of either Num1 or Num2 will be handled correctly.
classmethod StructuredResultValue(pResultValue As %String) as %String
DEPRECATED - Use StructuredNumeric() instead.
classmethod XMLTimeStampToDate(pDate As %String = "") as %String
Get date in format YYYYMMDD from XML Date Stamp (yyyy-mm-ddThh:mm:ssZ)
classmethod XMLTimeStampToDateTime(pDateTime As %String = "") as %String
Get date in format YYYYMMDDHHMMSS from XML Date Stamp (yyyy-mm-ddThh:mm:ssZ)

Inherited Members

Inherited Methods

FeedbackOpens in a new tab