Skip to main content

HS.FHIR.DTL.Util.Element.TypeCast

class HS.FHIR.DTL.Util.Element.TypeCast

Method Inventory

Methods

classmethod Base64Decode(source As %String) as %String
Base64 decode the source string
classmethod Base64Encode(source As %String) as %String
Base64 encode the source string.
classmethod DateToFHIR(fromVal As %String, toType As %String) as %String
Convert an SDA3 date format to a valid FHIR date. Can convert to any of the FHIR date types - date, dateTime, time, instant. fromVal - the SDA3 date toType - the FHIR data type, used to determine which format to output the date in.
classmethod FHIRDateToSDA3(fromVal As %String) as %String
Convert a FHIR date back to an SDA3 date. Any of the FHIR date data types can be used as inputs. If the input is detected as invalid, then this method will Throw an error.
classmethod FromDiv(source As %String) as %String
Convert a valid div element in FHIR to a text string.
classmethod ToDiv(source As %String) as %String
Convert a standard text string to a format that is a valid div element in FHIR.
classmethod booleanTOcode(value As %String) as %String
classmethod codeTOboolean(value As %String) as %Boolean
classmethod codeTOkeyword(value As %String) as %String
classmethod codeTOuri(value As %String) as %String
classmethod dateTimeTOdate(value As %Integer) as %Integer
classmethod idTOstring(value As %String) as %String
classmethod integerTOpositiveInt(value As %Integer) as %Integer
classmethod integerTOunsignedInt(value As %Integer) as %Integer
classmethod keywordTOcode(value As %String) as %String
classmethod markdownTOstring(value As %String) as %String
classmethod positiveIntTOinteger(value As %Integer) as %Integer
classmethod positiveIntTOstring(value As %Integer) as %String
classmethod stringTOid(value As %String) as %String
classmethod stringTOmarkdown(value As %String) as %String
classmethod stringTOpositiveInt(value As %String) as %String
classmethod stringTOuri(value As %String) as %String
classmethod unsignedIntTOinteger(value As %Integer) as %Integer
classmethod uriTOcode(value As %String) as %String
classmethod uriTOstring(value As %String) as %String
FeedbackOpens in a new tab