Types


Variables


Global Functions

IncomingMessage: THL7V2Message; Get the incoming HL7 v2 message for the event - if one exists. false if one doesn't

IncomingDocument: String; Get the incoming CDA Document for the event - if one exists. false if one doesn't

IncomingXml: TXmlElement; Get the incoming xml element for the event - if one exists. false if one doesn't

CreateDBDSN(Name : String, DSN : String, Username : String, Password : String, ConnectionLimit : Integer); Create a database connection using a (system) DSN. The database goes into the global pool of databases (names must be unique)

CreateDBODBC(Name : String, Driver : String, Server : String, Database : String, Username : String, Password : String, ConnectionLimit : Integer); Create an ODBC database connection to a database. The database goes into the global pool of databases (names must be unique)

CreateDBInterbase(Name : String, Server : String, Database : String, Username : String, Password : String, ConnectionLimit : Integer); Create a database connection to a interbase/firebird database. The database goes into the global pool of databases (names must be unique)

CreateDBMySQL(Name : String, Server : String, Database : String, Username : String, Password : String, ConnectionLimit : Integer); Create a database connection to a mysql database. The database goes into the global pool of databases (names must be unique)

CloseDB(Name : String); Close a database connection from the global pool

GetSQL(Name : String): TSQL; Get a working SQL object from a connection in the global pool. Each SQL object consumes a connection to the database. How many you can have is usually limited by the number of connections allowed to the database

Log(Level : Integer, Content : String); Write to the HL7Connect log.

YieldSQL(Connection : TSQL); Yield a working SQL object back to the global pool. Each SQL object consumes a connection to the database. How many you can have is usually limited by the number of connections allowed to the database. All remaining SQL objects are automatically yielded once the script stops executing.

LoadMessage: THL7V2Message; Load a message from the HL7Connect database by it's primary key

GetNextKey(Name : String): Integer; Get a key. The name identifies a series of sequentially issued keys. You can use any name - no need to register it in advance. Note: in the IDE the series is rest to 0 each time the IDE starts (no persistent storage - keep production and testing apart).

LoincName(Name : String): String; Look up a loinc code in the LOINC cache, and return the common name or "" if not found

UcumCheck(code : String): String; Check a UCUM code - blank if code is ok, string if there is an error


© Kestral Computing P/L 2000 - 2003. HL7Connect v2.00-063 generated on 30-Nov 2015.
Keywords: HL7Connect (KScript Module)