RORICR PATIENT SAVE (1804)    REMOTE PROCEDURE (8994)

Name Value
NAME RORICR PATIENT SAVE
TAG SAVE
ROUTINE RORRP034
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
WORD WRAP ON TRUE
VERSION 1
DESCRIPTION
The RORICR PATIENT SAVE remote procedure updates the patient's record in
the registry (or creates one).
INPUT PARAMETER
  • REGIEN
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    The REGIEN parameter should contain a valid registry IEN (IEN of the
    registry parameters record in the ROR REGISTRY PARAMETERS file #798.1).
    
  • PATIEN
    PARAMETER TYPE:   LITERAL
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    A valid patient IEN (DFN) should be assigned to the PATIEN parameter.
    
  • DATA
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    A list that contains the data in the same format as the output of the
          Param[0].Value := RegistryIEN;
          Param[0].PType := literal;
          Param[1].Value := DFN;
          Param[1].PType := literal;
          lstCall(PatientData);     // Load the data
     
          ...                       // Edit the data
     
          RemoteProcedure:= 'RORICR PATIENT SAVE';
          Param[0].Value := RegistryIEN;
    RORICR PATIENT LOAD remote procedure. Only PH and ICR segments are
          Param[0].PType := literal;
          Param[1].Value := DFN;
          Param[1].PType := literal;
          Param[2].PType := list;
          Param[2].Mult.Assign(PatientData);
          Call;                     // Save the data
       end;
     
    NOTE: Only those items of the list are processed
          that have numeric subscripts greater than 0;
    processed; the others are ignored.
          all others are ignored.
     
    Example:
     
      with RPCBroker do
        begin
          RemoteProcedure:= 'RORICR PATIENT LOAD';
    
  • CANCEL
    PARAMETER TYPE:   LITERAL
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    Cancel the update and unlock the patient's registry data.
    
RETURN PARAMETER DESCRIPTION
A negative value of the first "^"-piece of the Results[0] indicates that
  Results[i]            Error Descriptor
                          ^01: Error code
                          ^02: Message
                          ^03: Place of the error
 
A positive value of the first "^"-piece of the Results[0] indicates an
error in the data. The value is the number of the erroneous piece of the
data segment whose name is returned in the second piece of the Results[0].
For example, the "16^PH" means that the 16th piece of the PH data segment
(DATE OF FIRST TRANSFUSION) contains an invalid value.
an error occurred during the execution of the remote procedure. In this
    
Otherwise, zero is returned in the Results[0].
case, the second piece of the Results[0] will contain number of the error
descriptors returned in the subsequent nodes of the Results array:
   
  Results[0]            Result Descriptor
                          ^01: The last error code
                          ^02: Number of the error descriptors