public static void updateParticipants ( Encounter encounter ) { if ( encounter == null || encounter . getParticipant ( ) . isEmpty ( ) ) { return ; } RPCParameter params = new RPCParameter ( ) ; for ( EncounterParticipantComponent participant : encounter . getParticipant ( ) ) { String partId = getParticipantId ( participant ) ; params . put ( partId , "+" ) ; } String dfn = PatientContext . getActivePatient ( ) . getIdElement ( ) . getIdPart ( ) ; VistAUtil . getBrokerSession ( ) . callRPC ( "RGCWENCX UPDPRV" , dfn , encode ( encounter ) , params , true ) ; }
Updates the participants associated with an encounter .