DENTV TP ADD ENCOUNTER (1895)    REMOTE PROCEDURE (8994)

Name Value
NAME DENTV TP ADD ENCOUNTER
TAG ADD
ROUTINE DENTVTP2
RETURN VALUE TYPE ARRAY
AVAILABILITY AGREEMENT
WORD WRAP ON TRUE
DESCRIPTION
This will add a new record to the dental encounter file, 228.1
INPUT PARAMETER
  • DATA
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   255
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    DATA(sub) = value  where
     "PROV"          primary provider - pointer to NEW PERSON file
                     if not passed then use DUZ of existing user
     "PATTYPE"       I:inpatient; O:outpatient
                        if not passed, then determine from MAS records
     "DAS CAT"   x   POINTER TO DENTAL CLASSIFICATION FILE (#220.2)
     "DAS BED"       POINTER TO DENTAL BED SECTION FILE (#220.4)
                        required if patient an inpatient
     "DAS DIV"   x   station number
     "DAS DIS"   x   1:In progress; 2:Completed; 3:Terminated;
     "FLAGS"         3 bytes - each byte 0 or 1 - <das><des><pce>
        sub     Req  Description
     
      DATA(1)   = $$START$$
     
      DATA(2)   = p1^p2^p3
         Where
             p1 = A unique numerical identifier preceeded by a "+"
             p2 = Complication Type (see field description for full list)
             p3 = Complication Status
     
      DATA(2+n) = Word Processing Line
     ---------  ---  -------------------------------------------------
     
      DATA(m)   = $$END$$
     
      DATA(m+1) = $$START$$
        etc...
     "PAT"       x   DFN - pointer to patient file
     "VISIT"         pointer to visit file (#9000010)
     "APPT"          scheduled appointment Fileman date.time
     "NEWAPPT"       create visit, no scheduled appt or existing visit
                     NOTE: VISIT supercedes APPT which supercedes NEWAPPT
     "LOC"       x   pointer to HOSPITAL LOCATION file (#44)
    
RETURN PARAMETER DESCRIPTION
If successfully add a new record, return ien to file 228.1^message
Else return -1^message
 
If complications were also added, a seperate message will be returned 
regarding its status as well.