Print Page as PDF
GMVGETQL ICR (5048)

GMVGETQL    ICR (5048)

Name Value
NUMBER 5048
IA # 5048
DATE CREATED 2007/11/14
CUSTODIAL PACKAGE GEN. MED. REC. - VITALS
USAGE Supported
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE GMVGETQL
NAME GMVGETQL
GENERAL DESCRIPTION
APIs that return values for qualifiers (FILE 120.52).
STATUS Active
DURATION Till Otherwise Agreed
ID GMVGETQL
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
FIELD(IEN,FIELD,FORMAT)
Returns the value for the record and field in the
format specified.

Example:
>W $$FIELD^GMVGETQL(1,1,"E")
>R ARM
VARIABLES TYPE VARIABLES DESCRIPTION
IEN Input
The FILE 120.52 internal entry number. (Required)
FIELD Input
A set of codes to indicate which field value to
return. (Required)
Where:
1=name(.01)
2=Synonym (.02)
3=VUID (99.99)
4=Master Entry For VUID
FORMAT Input
A set of codes to indicate if the internal or
external value of the field should be returned. (Optional)
Where:
I=Internal
E=External (the default)
GETIEN(VALUE,TYPE)
Returns the qualifier (FILE 120.52) pointer value.
Returns null if not found. Returns -1 if there is an error.

Example:
>W $$GETIEN^GMVGETQL("L ARM",1)
>2
VARIABLES TYPE VARIABLES DESCRIPTION
VALUE Input
The value to use to do the lookup. (Required)
TYPE Input
A set of codes to indicate the type of value it
returns. (Required)
Where:
1=name (.01)
2=VUID (99.99)
VT(ARRAY,IEN)
Returns the vital types and category values for the
specified qualifier.

Output format:
ARRAY(0)=piece1
ARRAY(n)=piece2^piece3^piece4^piece5
where:
n=sequential number starting with 1
piece1=number of entries found or -1 if an error
piece2=File 120.51 entry number
piece3=File 120.51 .01  field value
piece4=File 120.53 entry number
piece5=File 120.53 .01 field value

Example:
>D VT^GMVGETQL(.ARRAY,1)
>ZW ARRAY
>ARRAY(0)=1
>ARRAY(1)="1^BLOOD PRESSURE^1^LOCATION"
VARIABLES TYPE VARIABLES DESCRIPTION
ARRAY Input
The name of the array to return the values in.
(Required)
IEN Input
The FILE 120.52 internal entry number. (Required)
DATE ACTIVATED 2008/03/19