SDES2 GET LAST SELECTED PAT (4965)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 GET LAST SELECTED PAT
TAG GETSTOREDPATIENT
ROUTINE SDES2GETSTORDPAT
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
WORD WRAP ON FALSE
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC returns the last selected patient by the user as well as 
associated data.
INPUT PARAMETER
  • SDCONTEXT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
  • PARAM
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   NO
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    This Parameter is a placeholder for now.  It is not currently being used.
    
RETURN PARAMETER DESCRIPTION
 
             "Eligibility": [
                 "SecondaryEligibilityCode": "COLLATERAL OF VET.",
                 "SecondaryEligibilityCodeType": "NON-VETERAN"
             },
             {
                 "SecondaryEligibilityCode": "TRICARE",
                 "SecondaryEligibilityCodeType": "NON-VETERAN"
             }
         ],
         "Flag": [
             {
                 {
                 "AssignedDate": "2016-11-07T11":53:37-0500,
                 "Category": "I (NATIONAL)",
                 "FlagName": "HIGH RISK FOR SUICIDE",
                 "Narrative": [This is a test account.  The actual record 
 text wa
 s removed Feb 14, 2018.]
                 "OriginatingSiteID": "442",
                 "OriginatingSiteName": "CHEYENNE VA MEDICAL",
                 "OwnerSiteID": "442",
                 "OwnerSiteName": "CHEYENNE VA MEDICAL",
                     "PrimaryEligibilityCode": "SERVICE CONNECTED 50% to 
                 "ReviewDate": "2018-04-25",
                 "Type": "CLINICAL"
             }
         ],
         "FugitiveFelon": "",
         "Gender": "FEMALE",
         "GenderIdentity": "Does not wish to disclose",
         "ICNNumber": "1002001927V385494",
         "Last4SSN": "",
         "MentalHealthProvider": "VSETEST,PROVIDERONE",
 100%",
         "Name": "VSE,TEST",
         ,MORGAN J
         "PatientType": "NSC VETERAN",
         "PreferredName": "BATMAN",
         "PrimaryCarePractitioner": "VSE,TEST",
         "RatedDisabilities": [
             {
                 "CurrentEffectiveDate": "",
                 "DisabilityPercent": "",
                 "ExtremityAffected": "",
                     "PrimaryEligibilityCodeType": "VETERAN"
                 "OriginalEffectiveDate": "",
                 "RatedDisability": "",
                 "ServiceConnected": ""
             }
         ],
         "SensitivePatientRestrictedRecord": "1",
         "ServiceConnected": "YES (50%)",
         "ServiceConnectedCondition": [
             {
                 "Condition": "STUBBED HIS TOE"
                 },
             },
             {
                 "Condition": "TRIPPED ON LAUNDRY"
             },
             {
                 "Condition": "CUT HIMSELF SHAVING"
             },
             {
                 "Condition": "HIT FUNNYBONE"
             },
                 {
             {
                 "Condition": "ATE TOO MUCH MEXICAN FOOD"
             }
         ],
         "Ward": "C MEDICINE"
         }
     ]
  }
                     "SecondaryEligibilityCode": "ALLIED VETERAN",
                     "SecondaryEligibilityCodeType": "NON-VETERAN"
                 },
 {
                 {
                     "SecondaryEligibilityCode": "HUMANITARIAN EMERGENCY",
                     "SecondaryEligibilityCodeType": "NON-VETERAN"
                 },
                 {
                     "SecondaryEligibilityCode": "COLLATERAL OF VET.",
                     "SecondaryEligibilityCodeType": "NON-VETERAN"
                 },
                 {
                     "SecondaryEligibilityCode": "TRICARE",
     "Patient": [
                     "SecondaryEligibilityCodeType": "NON-VETERAN"
                 }
             ],
             "Flag": [
                 {
                     "AssignedDate": "2016-11-07T11":53:37-0500,
                     "Category": "I (NATIONAL)",
                     "FlagName": "HIGH RISK FOR SUICIDE",
                     "Narrative": [This is a test account.  The actual 
 record tex
         {
 t was removed Feb 14, 2018.]
                     "OriginatingSiteID": "442",
                     "OriginatingSiteName": "CHEYENNE VA MEDICAL",
                     "OwnerSiteID": "442",
                     "OwnerSiteName": "CHEYENNE VA MEDICAL",
                     "ReviewDate": "2018-04-25",
                     "Type": "CLINICAL"
                 }
             ],
             "FugitiveFelon": "",
             "DFN": "38281",
             "Gender": "FEMALE",
             "GenderIdentity": "Does not wish to disclose",
             "ICNNumber": "1002001927V385494",
             "MentalHealthProvider": "VSETEST,PROVIDERONE",
             "Name": "VSE,TEST",
             ,MORGAN J
             "PatientType": "NSC VETERAN",
             "PreferredName": "BATMAN",
             "PrimaryCarePractitioner": "VSE,TEST",
             "SensitivePatientRestrictedRecord": "1",
             "DateOfBirth": "1947-11-15",
             "ServiceConnected": "YES (50%)",
             "ServiceConnectedCondition": [
                 {
                     "Condition": "STUBBED HIS TOE"
                 },
                 {
                     "Condition": "TRIPPED ON LAUNDRY"
                 },
                 {
                     "Condition": "CUT HIMSELF SHAVING"
             "DateOfDeath": "2023-02-23",
                 },
                 {
                     "Condition": "HIT FUNNYBONE"
                 },
                 {
                     "Condition": "ATE TOO MUCH MEXICAN FOOD"
                 }
             ],
             "Ward": "C MEDICINE"
             }
             "DemographicsNeedUpdate": "1",
         "DFN": "38281",
         "DateOfBirth": "1947-11-15",
         "DateOfDeath": "2023-02-23",
         "DemographicsNeedUpdate": "1",
         "DemographicsUpdated": "2018-01-18",
         "Eligibility": [
             {
                 "PrimaryEligibilityCode": "SERVICE CONNECTED 50% to 
100%",
                 "PrimaryEligibilityCodeType": "VETERAN"
             "DemographicsUpdated": "2018-01-18",
             },
             {
                 "SecondaryEligibilityCode": "ALLIED VETERAN",
                 "SecondaryEligibilityCodeType": "NON-VETERAN"
             },
             {
                 "SecondaryEligibilityCode": "HUMANITARIAN EMERGENCY",
                 "SecondaryEligibilityCodeType": "NON-VETERAN"
             },
             {