SDOE GET PRIMARY DIAGNOSIS (125)    REMOTE PROCEDURE (8994)

Name Value
NAME SDOE GET PRIMARY DIAGNOSIS
TAG GETPDX
ROUTINE SDOERPC
RETURN VALUE TYPE SINGLE VALUE
AVAILABILITY PUBLIC
DESCRIPTION
This Remote Procedure Call (RPC) returns the internal entry number
of the primary diagnosis code (ICD) for an encounter.
 
Note: For encounters before 10/1/96, this RPC will always return 0.
This primary diagnosis was not retrieved nor stored by the system
for these 'old' encounters.
INPUT PARAMETER
  • ENCOUNTER IEN
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    This is the internal entry number of an entry in the OUTPATIENT
    ENCOUNTER [#409.68 - ^SCE] file.
    
RETURN PARAMETER DESCRIPTION
<pointer> - IEN to the ICD Diagnosis File (#80) for primary diagnosis.
 
   0      - no primary diagnosis found for encounter