SDES GET TIU DOC BY CONTEXT (4770)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES GET TIU DOC BY CONTEXT
TAG TIUDOCBYCONTEXT
ROUTINE SDESGETTIUDOC
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC returns lists of TIU Documents that satisfy various criteria 
(e.g. All signed, unsigned by author, uncosigned notes, signed by author, 
signed by date range) to the calling application.
INPUT PARAMETER
  • CLASS
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    This is the IEN or pointer to TIU DOCUMENT DEFINITION File #8925.1
    
  • INCLUDEUND
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   10
    DESCRIPTION:   
    Boolean: Include Undictated and Untranscribed documents along with 
    Unsigned documents, when the CONTEXT is 2.
    
  • SHOWMORE
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   11
    DESCRIPTION:   
    Boolean: Return "0^SHOW MORE" in return array when additional notes
    available for context of 1 or 5 when occurrence limit prevents all notes 
    from displaying.
    
  • TIUIEN
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   12
    DESCRIPTION:   
    Starting TIU IEN for additional return when "SHOW MORE" was received in 
    previous return array (LATE date/time will be set to Reference date of 
    this TIU document).
    
  • EASTRCKNGNMBR
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   40
    REQUIRED:   NO
    SEQUENCE NUMBER:   13
    DESCRIPTION:   
    Enterprise Appointment Scheduling (EAS) Tracking Number associated to an 
    appointment.
    
  • CONTEXT
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    The integer code indicating the context of the query, as:
    1 = All Signed (by PT)
    2 = Unsigned (by PT&(AUTHOR!TRANSRIBER)
    3 = Uncosigned (by PT&EXPECTED COSIGNER)
    4 = Signed notes (by PT&selected author)
    5 = Signed notes (by PT&date range)
    
  • DFN
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    The IEN or pointer to Patient File #2
    
  • BEGINDATE
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   25
    REQUIRED:   NO
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    The beginning date/time in ISO 8601 Time Format to start for the search.
    
  • ENDDATE
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   25
    REQUIRED:   NO
    SEQUENCE NUMBER:   5
    DESCRIPTION:   
    The ending date/time in ISO 8601 Time Format to start for the search.
    
  • PERSON
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   6
    DESCRIPTION:   
    The IEN or pointer to the New Person File #200 for searches by author 
    (DUZ will be assumed if this parameter is not passed).
    
  • OCCURENCELIMIT
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   7
    DESCRIPTION:   
    The number of documents to return for the search.
    
  • SEQUENCE
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   8
    DESCRIPTION:   
    This is the sequence in which the data will be sorted in the return array.
    Acceptable input:
    A = Ascending
    D = Descending
    
  • SHOWADD
    PARAMETER TYPE:   LITERAL
    REQUIRED:   NO
    SEQUENCE NUMBER:   9
    DESCRIPTION:   
    Boolean: Include addenda in the return array, when their parent documents 
    are identified by the search.
    
RETURN PARAMETER DESCRIPTION
Returns a JSON array. Otherwise, it will return the appropriate error.
                        "EpisodeBeginDateTime": "2018-01-18",
                        "EpisodeEndDateTime": "",
                        "HasChildren": "",
                        "HospitalLocation": "C MEDICINE",
                        "HospitalLocationIEN": 77,
                        "IENOfParentDocument": 1,
                        "ImageCount": 0,
                        "Last4SSN": "0000",
                        "NoteDateTime": "2018-01-29T17:56-0500",
                        "PatientDFN": 7220027,
If successful:
                        "PatienName": "LAST,FIRST",
                        "RequestingPackageVariablePointer": "",
                        "SignatureBlockName": "AUTHOR H AUTHOR",
                        "Status": "completed",
                        "Subject": "",
                        "TypeOfLocation": "Adm",
                        "VisitLocationIEN": 2174,
                        "VisitLocationName": "STPDN-M"
                }
        ]
{
}
        "TIUDocument": [
                {
                        "Author": "AUTHOR,AUTHOR H",
                        "AuthorDUZ": 01010101010,
                        "DocumentIEN": 10819537,
                        "DocumentPrintName": "Discharge Summary",