grmcreate
This creates a new GRM handle for a record format.
grmcreate ?-msg msgId? ?-warn var? type args
args
parsing is based on type:
- FRL
frlname
frlname
is the name of FRL to use - VRL
vrlname
vrlname
is the name of VRL to use - HRL
hrlname
hrlname
is the name of HRL to use - HL7
vers variant msgType
vers
is the version (example, 2.1)variant
is the variant name (example, var1 or {})msgType
is the HL7 message type (example, ADT_A01) - XML
package ocmname ?rootnode?
package
is the XML packageocmname
is the name of OCM to userootnode
is the root node of OCMOCM (optional) - X12
vers variant msgType
vers
is the version (example, 004030variant
is the variant name (example, var1 or {})msgType
is the X12 message type (example, 835) - NCPDP
vers variant msgType
vers
is the version (example, NCPDP5.1)variant
is the variant name (example, var1 or {})msgType
is the NCPDP message type (example, P4-RESPONSE) - NCPDPSCRIPT
vers variant msgType
vers
is the version (example, 4.2)variant
is the variant name (example, var1 or {})msgType
is the NCPDPSCRIPT message type (example, GETMSG) - NCPDBFAB
vers variant msgType
vers
is the version (example, 1.0)variant
is the variant name (example, var1 or {})msgType
is the NCPDBFAB message type (example, XHD) - UN/EDIFACT
vers variant msgType
vers
is the version (example, 97B)variant
is the variant name (example, var1or {})msgType
is the UN/EDIFACT message type (example, AUTHOR) - HPRIM
vers variant msgType
vers
is the version (example, 2.2)variant
is the variant name (example, var1 or {})msgType
is the HPRM message type (example, ADM) - LDL
vers variant msgType
vers
is the version (example, 2014)variant
is the variant name (example, var1)msgType
is the LDL message (example, C_MOVE) - DB
dbconnection tableschema ?tableschema ...?
dbconnection
is the name of database connectiontableschema
is the name of tableschema
If you supply a valid msgId
, then that
message is available to the GRM handle for parsing and data retrieves.
If you specify a warning variable name, then var, any warning messages generated during the operation are collected in the named variable.
This command returns a new GRM handle for use in other commands. Use multiple GRM handles to access the same definition in separate messages without interfering with each other.