Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: MDCLIO

Package: Clinical Procedures

Routine: MDCLIO


Information

MDCLIO ;HINES OIFO/DP - CliO backend driver;02 Feb 2005

Source Information

Source file <MDCLIO.m>

Entry Points

Name Comments DBIA/ICR reference
RPC(RESULTS,OPTION,P1,P2,P3,P4,P5,P6,P7,P8,P9) ; Generic RPC tag
EXECUTE ; Executes the command in P1
FLDS(MDTXT) ; Builds MDFLD() from a command wp-text
IENLIST ; Builds MDROOT from P2(0..n) as IEN list
IMPORT ; Import a record for the TDBConnection_Vista object
GETIEN ; Returns the ien of a record for generic updates **pk only**
QUERY ; Executes a standard query
STPROC ; Place holder for no routine entered into a stored procedure type
ROLES ; Temporary Role Based Query
XQUERY ; Runs the standard query after a pre-process routine has prepared the entries into @MDXROOT@(ien...)
INSERT ; Performs an insert
UPDATE ; Performs an update
; Must find an EXACT match - Need to re-evaluate later for an update where like SQL statement
DELETE ; Performs standard Delete command
; Will find records like the update but can return multiple entries
DELALL ; Used to purge entire file ** XML Import calls ONLY!!!! **
XMLREC(DD,IEN) ; Builds an XML Record based on DD, IEN & values in MDFLD(1..n)
SETACL ; Sets the ACL for an Item
; P2(0)=Item
; P2(1)=User ID (DUZ)
; P2(2)=Access Level
DELACL ; Removes and item from ACL
; P2(0)=Item
; P2(1)=User ID (DUZ) - if blank or undefined deletes all record for P2(0)
SENDMAIL ; Sends an EMail Message
; Example of the P2(0..n) array
; P2(0)="SUB:Message Subject"
; P2(1)="TEXT:THIS IS LINE 1"
; P2(2)="TEXT:THIS IS LINE 2"
; P2(3)="TO:user.one@domain.ext;user.two@domain.ext"
ID()
ROWID()
ICN()
NAME()
SNSTV()
CCOW()
VITALSID()
VSTATUS()
XMLCMT(COMMENT) ; Add a comment to a document
XMLHDR(TAG) ; Add a header tag to the global
XMLFTR(TAG) ; Add a footer tag to the global
XMLDATA(TAG,X) ; Add a data element to the global
XMLFLDS(FLDLST,DD,FLDS) ; Build FLDS into an array of FLDS
XMLDT(TAG,X) ; Add date or date/time to the global
XMLIDS(TAG,IDS,CLOSE) ; Add a data element to the global with ids
XMLADD(X) ; Add to the global
XMLSAFE(X) ; Transform X into XML safe data
; Strip off the spaces and make life easier
TAGSAFE(X) ; Transform X into XML tag
STRIP(X) ; Strip off leading and trailing spaces
NEWDOC(ROOT,COMMENT) ; Start a new document
ENDDOC(ROOT) ; End this document
QUICKDOC(TAG,VALUE) ; Builds a single record, single field document
SRVRDT ; Returns Server Date/Time
TRNSLT(X,X1,X2) ; Translate every Y to Z in X
FDA(DD,IEN) ; Construct a standard FDA
; Returns ^TMP("MDCLIO",$J,{DD},{IEN:+1})
SQLDATE(X) ; Returns SQL standard XML Date/Time string from FM
FMDT(X) ; Returns FM standard date/time from SQL style
NOW() ; Returns Date/Time
TABLE(X) ; Return file number from the name

Used in RPC

RPC Name Call Tags
MD CLIO RPC

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DIC - [#1] FIND1^DIC
^GMR(120.5 - [#120.5] GET1^DIQ
Info |  Source |  Entry Points |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call