Name | Value |
---|---|
NAME | VAFC VOA ADD PATIENT |
TAG | ADD |
ROUTINE | VAFCPTAD |
RETURN VALUE TYPE | ARRAY |
AVAILABILITY | RESTRICTED |
INACTIVE | ACTIVE |
WORD WRAP ON | TRUE |
VERSION | 1 |
DESCRIPTION | This Remote Procedure Call allows the remote creation of a VistA PATIENT (#2) record at the Preferred Facility for the Veteran On-Line Application (VOA) project. |
INPUT PARAMETER |
|
RETURN PARAMETER DESCRIPTION | This RPC will return a string with up to 4 ^-pieces. If the NAME COMPONENTS FLAG is set to 1 at this site, this piece contains a 1 to indicate that name components passed in PARAM("LONGNAME") (if passed) or PARAM("NAME") were filed into the NAME COMPONENTS (#20) file for this patient. If an entry already exists in the PATIENT (#2) file that has an ICN equal to the ICN passed in PARAM("FULLICN"), then the following is returned. (Note that the Patient record is not updated with any of the data passed in the PARAM input array.) 1^DFN of the existing PATIENT with an ICN equal to PARAM("FULLICN") If the patient could not be added to the PATIENT file the following is returned: -1^<error text> Example output: If a PATIENT (#2) file entry was created successfully, 1^<dfn> 1^<dfn>^^1 1^<dfn>^<error text about alias failing to update> 1^<dfn>^<error text about alias failing to update>^1 -1^<error text> 1st ^-piece = 1 2nd ^-piece = DFN of the PATIENT created 3rd ^-piece = if the patient was created but ALIAS data failed to update, this piece contains an error message 4th ^-piece = 1 or null |