SDES2 GET PATIENT REG 2 (5247)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 GET PATIENT REG 2
TAG GETPATINFO
ROUTINE SDES2GETREGS2
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
CLIENT MANAGER YES
APP PROXY ALLOWED Yes
DESCRIPTION
 Given a Patient IEN (DFN) returns patient registration information in 
 JSON format to match the ISS API. 
  
 Can only be invoked by Acheron
INPUT PARAMETER
  • SDCONTEXT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
      SDCONTEXT("ACHERON AUDIT ID")
     SDCONTEXT("USER SECID")
      - The SECID of the user taking action in the calling application.
     SDCONTEXT("PATIENT DFN")
      - The DFN/IEN of the target patient from the calling application.
     SDCONTEXT("PATIENT ICN")
      - The ICN of the target patient from the calling application.
      - Up to 40 Character unique ID number. 
      - Ex: 11d9dcc6-c6a2-4785-8031-8261576fca37
     SDCONTEXT("APPID") 
     - The registered DHAPI APP-ID  
     - Up to 40 Character unique ID number. 
     - Ex: 11d9dcc6-c6a2-4785-8031-8261576fca37
     SDCONTEXT("USER DUZ")
      - The DUZ of the user taking action in the calling application.
    
  • SDINPUT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
     SDINPUT("PATIENT IEN")=Patient DFN from the PATIENT file (#2)
    
RETURN PARAMETER DESCRIPTION
Example of Successful Return:
    "dateOfDeath": "",
      "name": "GOODBOOY,SPOT",
      "phone": "",
      "relationship": ""
    },
    "security": 0,
    "serviceConnected": "YES",
    "serviceConnectedPercentage": "",
    "sex": "M",
    "similarPatients": "|",
    "socialSecurityNumber": "0150P",
    "email": "",
    "temporaryAddress": {
      "addressLine1": "555 TEST",
      "addressLine2": "",
      "addressLine3": "",
      "cityName": "",
      "countryCode": "ESP",
      "countryName": "Spain",
      "countyName": "",
      "stateName": "",
      "zipCode4": "",
    "emergencyContact": {
      "zipCode5": ""
    },
    "temporaryAddressActive": 0,
    "temporaryAddressEnd": "2027-09-01",
    "temporaryAddressStart": "2026-07-29",
    "temporaryPhone": "",
    "timeStamp": "",
    "veteranCatastrophicallyDisabled": "",
    "ward": ""
  }
      "address": {
}
  
 Example Error:
 {
   "Error": [
     "Invalid Patient ID."
   ],
   "patient": ""
 }
        "addressLine1": "",
        "addressLine2": "",
        "addressLine3": "",
        "cityName": "",
        "stateName": "",
        "zipCode4": "",
{
        "zipCode5": 99501
      },
      "name": "CONTACT,EMERGENCY",
      "phone": "",
      "relationship": "",
      "workPhone": ""
    },
    "enrollmentSubgroup": "",
    "ethnicity": {
      "Name": "",
  "patient": {
      "iEN": ""
    },
    "fugitiveFlag": "",
    "gAFRequired": "New GAF Required",
    "healthRecordNumber": "808010150P",
    "homePhone": "",
    "homePhoneExt": "",
    "iCN": "4420062657V346316",
    "localFlag": "",
    "mailingAddress": {
    "addressIndicator": 0,
      "addressLine1": "123 TEST",
      "addressLine2": "TST 123 LINE2",
      "addressLine3": "",
      "cityName": "",
      "country": "CAN",
      "countryName": "Canada",
      "countyName": "",
      "stateName": "",
      "zipCode4": "",
      "zipCode5": ""
    "category8GFlag": 0,
    },
    "marital": "NEVER MARRIED",
    "mentalHealthProvider": "",
    "name": "VSETEST,VSE",
    "nationalFlag": "",
    "officePhone": "",
    "officePhoneExt": "",
    "primaryCareProvider": "",
    "primaryNextOfKin": {
      "address": {
    "cell": "",
        "addressLine1": "",
        "addressLine2": "TEST",
        "addressLine3": "TESTE3",
        "cityName": "",
        "stateName": "",
        "zipCode4": "",
        "zipCode5": ""
      },
      "name": "TEST,MRS",
      "phone": "",
    "cellExt": "",
      "relationship": ""
    },
    "priorityGroup": "",
    "race": {
      "iEN": "",
      "name": ""
    },
    "religion": "",
    "residentialAddress": {
      "addressLine1": "123 TEST",
    "dataFileNumber": 7242684,
      "addressLine2": "",
      "addressLine3": "",
      "cityName": "WRIGHTWOOD",
      "countryCode": "JAM",
      "countryName": "Jamaica",
      "countyName": "",
      "stateName": "",
      "zipCode4": "",
      "zipCode5": ""
    },
    "dateOfBirth": "1950-01-01",
    "secondaryNextOfKin": {
      "address": {
        "addressLine1": "TEST 123",
        "addressLine2": "",
        "addressLine3": "",
        "cityName": "",
        "stateName": "",
        "zipCode4": "",
        "zipCode5": 99502
      },