SDES GET LAST SELECTED PAT (4894)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES GET LAST SELECTED PAT
TAG GETSTOREDPATIENT
ROUTINE SDESGETSTOREDPAT
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
WORD WRAP ON FALSE
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC will return the patient that was last selected by a user. 
 
Can only be invoked by Acheron
INPUT PARAMETER
  • DUZ
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    This is the DUZ of the user associated with the selected patient. The DUZ 
    represents the IEN of the user in File #200.
    
RETURN PARAMETER DESCRIPTION
{
                 {
                 "SecondaryEligibilityCodeType": "NON-VETERAN"
             },
             {
                 "SecondaryEligibilityCode": "HUMANITARIAN EMERGENCY",
                 "SecondaryEligibilityCodeType": "NON-VETERAN"
             },
             {
                 "SecondaryEligibilityCode": "COLLATERAL OF VET.",
                 "SecondaryEligibilityCodeType": "NON-VETERAN"
             },
                     "PrimaryEligibilityCode": "SERVICE CONNECTED 50% to 
             {
                 "SecondaryEligibilityCode": "TRICARE",
                 "SecondaryEligibilityCodeType": "NON-VETERAN"
             }
 
Type <Enter> to continue or '^' to exit: 
         ],
         "Flag": [
             {
                 "AssignedDate": "2016-11-07T11":53:37-0500,
 100%",
                 "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",
                 "ReviewDate": "2018-04-25",
                     "PrimaryEligibilityCodeType": "VETERAN"
                 "Type": "CLINICAL"
             }
         ],
         "FugitiveFelon": "",
         "Gender": "FEMALE",
         "GenderIdentity": "Does not wish to disclose",
         "ICNNumber": "1002001927V385494",
 
Type <Enter> to continue or '^' to exit: 
         "Last4SSN": "",
                 },
         "MentalHealthProvider": "VSETEST,PROVIDERONE",
         "Name": "CHAPPLE,M",
         ,MORGAN J
         "PatientType": "NSC VETERAN",
         "PreferredName": "BATMAN",
         "PrimaryCarePractitioner": "MCGAW,ELLIOTT D",
         "RatedDisabilities": [
             {
                 "CurrentEffectiveDate": "",
                 "DisabilityPercent": "",
                 {
                 "ExtremityAffected": "",
                 "OriginalEffectiveDate": "",
                 "RatedDisability": "",
                 "ServiceConnected": ""
             }
         ],
         "SensitivePatientRestrictedRecord": "1",
         "ServiceConnected": "YES (50%)",
         "ServiceConnectedCondition": [
             {
                     "SecondaryEligibilityCode": "ALLIED VETERAN",
 
Type <Enter> to continue or '^' to exit: 
                 "Condition": "STUBBED HIS TOE"
             },
             {
                 "Condition": "TRIPPED ON LAUNDRY"
             },
             {
                 "Condition": "CUT HIMSELF SHAVING"
             },
                     "SecondaryEligibilityCodeType": "NON-VETERAN"
             {
                 "Condition": "HIT FUNNYBONE"
             },
             {
                 "Condition": "ATE TOO MUCH MEXICAN FOOD"
             }
         ],
         "Ward": "C MEDICINE"
         }
     ]
                 },
  }
                 {
        "PatientIEN": "7242620",
                     "SecondaryEligibilityCode": "HUMANITARIAN EMERGENCY",
 
Type <Enter> to continue or '^' to exit: 
                     "SecondaryEligibilityCodeType": "NON-VETERAN"
                 },
                 {
                     "SecondaryEligibilityCode": "COLLATERAL OF VET.",
                     "SecondaryEligibilityCodeType": "NON-VETERAN"
                 },
                 {
        "PatientName": "TEST,PATIENT"
                     "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 tex
 t was removed Feb 14, 2018.]
                     "OriginatingSiteID": "442",
                     "OriginatingSiteName": "CHEYENNE VA MEDICAL",
 
Type <Enter> to continue or '^' to exit: 
                     "OwnerSiteID": "442",
                     "OwnerSiteName": "CHEYENNE VA MEDICAL",
                     "ReviewDate": "2018-04-25",
                     "Type": "CLINICAL"
             "DateOfBirth": "1947-11-15",
                 }
             ],
             "FugitiveFelon": "",
             "Gender": "FEMALE",
             "GenderIdentity": "Does not wish to disclose",
             "ICNNumber": "1002001927V385494",
             "MentalHealthProvider": "VSETEST,PROVIDERONE",
             "Name": "CHAPPLE,M",
             ,MORGAN J
             "PatientType": "NSC VETERAN",
             "DateOfDeath": "2023-02-23",
             "PreferredName": "BATMAN",
             "PrimaryCarePractitioner": "MCGAW,ELLIOTT D",
             "SensitivePatientRestrictedRecord": "1",
             "ServiceConnected": "YES (50%)",
             "ServiceConnectedCondition": [
                 {
                     "Condition": "STUBBED HIS TOE"
 
Type <Enter> to continue or '^' to exit: 
                 },
             "DemographicsNeedUpdate": "1",
                 {
                     "Condition": "TRIPPED ON LAUNDRY"
                 },
                 {
                     "Condition": "CUT HIMSELF SHAVING"
                 },
                 {
                     "Condition": "HIT FUNNYBONE"
                 },
                 {
             "DemographicsUpdated": "2018-01-18",
                     "Condition": "ATE TOO MUCH MEXICAN FOOD"
                 }
             ],
             "Ward": "C MEDICINE"
             }
         "DFN": "38281",
         "DateOfBirth": "1947-11-15",
         "DateOfDeath": "2023-02-23",
         "DemographicsNeedUpdate": "1",
         "DemographicsUpdated": "2018-01-18",
             "Eligibility": [
 
Type <Enter> to continue or '^' to exit: 
         "Eligibility": [
             {
                 "PrimaryEligibilityCode": "SERVICE CONNECTED 50% to 
100%",
                 "PrimaryEligibilityCodeType": "VETERAN"
             },
             {
                 "SecondaryEligibilityCode": "ALLIED VETERAN",