MD TMDENCOUNTER (2351)    REMOTE PROCEDURE (8994)

Name Value
NAME MD TMDENCOUNTER
TAG GETENC
ROUTINE MDRPCW1
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY RESTRICTED
WORD WRAP ON TRUE
VERSION 1
DESCRIPTION
This remote procedure will return the existing data in an encounter.
INPUT PARAMETER
  • STUDY
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    This is the CP Study internal entry number.
    
RETURN PARAMETER DESCRIPTION
The result is returned in ^TMP("MDENC",$J) global.
     P4 = first "^" piece 1 if the condition can be answered
                      0 if the condition should be null not asked
          second "^" piece - If Scheduling has the answer, 1 = yes 0 = no
     P5 = "IR" - Ionizing Radiation Exposure
     P6 = first "^" piece 1 if the condition can be answered
                      0 if the condition should be null not asked
          second "^" piece - If Scheduling has the answer, 1 = yes 0 = no
     P7 = "EC" - Environmental Contaminants
     P8 = first "^" piece 1 if the condition can be answered
                      0 if the condition should be null not asked
 
          second "^" piece - If Scheduling has the answer, 1 = yes 0 = no
     P9 = "HNC" - Head and/or Neck Cancer
    P10 = first "^" piece 1 if the condition can be answered
                      0 if the condition should be null not asked
          second "^" piece - If Scheduling has the answer, 1 = yes 0 = no
    P11 = "MST" - Military Sexual Trauma
    P12 = first "^" piece 1 if the condition can be answered
                      0 if the condition should be null not asked
          second "^" piece - If Scheduling has the answer, 1 = yes 0 = no
    P13 = "CV" - Combat Veteran
^TMP("MDENC",$J,1)="SC";0/1^0/1;"AO";0/1^0/1;"IR";0/1^0/1;"EC";0/1^0/
    P14 = first "^" piece 1 if the condition can be answered
                          0 if the condition should be null not asked
          second "^" piece - If Scheduling has the answer, 1 = yes 0 = no
  
^TMP("MDENC",$J,n)="PRV"^CODE^^NARR^^Primary (1=Yes,0=No)
     P1 = "PRV"- Provider segment
     P2 = CODE - New Person internal Entry Number
     P3 = Null
     P4 = NARR - Provider name
     P5 = Null
1;"MST";0/1^0/1;"HNC";0/1^0/1;"CV";0/1^0/1
     P6 = Primary - 1/0/null (1=Yes,0/Null=No)
 
                  ="POV"^ICD9 IEN^ICD9 CODE^provider narrative category^
provider narrative (Short Description)^Primary (1=Yes,0/Null=No)
     P1 = "POV" - ICD segment
     P2 = ICD internal entry number
     P3 = ICD9 Code
     P4 = Provider Narrative Category
     P5 = Short Description
     P6 = Primary - 1/0/null (1=Yes,0/Null=No)
     P1 = "SC" - Service Connected
 
                  ="CPT"^CPT IEN^CPT CODE^provider narrative category^
provider narrative (Short Description)^^Quantity
     P1 = "CPT" - CPT segment
     P2 = CPT internal entry number
     P3 = CPT Code
     P4 = Provider Narrative Category (CPT Category Grouping)
     P5 = Short Description
     P6 = null
     P7 = Quantity
     P2 = first "^" piece 1 if the condition can be answered
                      0 if the condition should be null not asked
          second "^" piece - If Scheduling has the answer, 1 = yes 0 = no
     P3 = "AO" - Agent Orange Exposure