Print Page as PDF
GMVGETC ICR (5050)

GMVGETC    ICR (5050)

Name Value
NUMBER 5050
IA # 5050
DATE CREATED 2007/11/14
CUSTODIAL PACKAGE GEN. MED. REC. - VITALS
USAGE Supported
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE GMVGETC
NAME GMVGETC
GENERAL DESCRIPTION
APIs that return values for categories (FILE 120.53).
STATUS Active
DURATION Till Otherwise Agreed
ID GMVGETC
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. Returns -1 if there is an error.

Example:
>W $$FIELD^GMVGETC(1,1,"E")
>LOCATION
VARIABLES TYPE VARIABLES DESCRIPTION
IEN Input
The FILE 120.53 internal entry number. (Required)
FIELD Input
A set of codes to indicate which field value to
return. (Required)

Where:
1=Name (.01)
2=VUID (99.99)
3=Master Entry For VUID (99.98)
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 category (FILE 120.53) pointer value.
Returns null if not found. Returns -1 if there is an error.

Example:
>W $$GETIEN^GMVGETC("METHOD",1)
>2
VARIABLES TYPE VARIABLES DESCRIPTION
VALUE Input
The FILE 120.53 value to lookup. (Required)
TYPE Input
A set of codes to indicate what kind of value is
being used for the lookup. (Required)
Where:
1=Name (.01)
2=VUID (99.99)
VT(ARRAY,IEN)
Returns the vital types associated with the category.

Output format:
ARRAY(0)=piece1
ARRAY(n)=piece2^piece3
where:
n=a 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, Field .01 external value

Example:
>D VT^GMVGETC(.ARRAY,1)
>ZW ARRAY
>ARRAY(0)=4
>ARRAY(1)="1^BLOOD PRESSURE"
>ARRAY(2)="2^TEMPERATURE"
>ARRAY(3)="5^PULSE"
>ARRAY(4)="20^CIRCUMFERENCE/GIRTH"
VARIABLES TYPE VARIABLES DESCRIPTION
ARRAY Input
The name of the array to return the values in.
(Required)
IEN Input
The FILE 120.53 internal entry number. (Required)
DATE ACTIVATED 2008/03/19