/// <summary> /// Sets the computed participant id /// </summary> /// <param name="epid"></param> private void SetParticipantId(string epid) { string participantId = string.Empty; if (!string.IsNullOrEmpty(epid)) { int patientId = int.Parse(DecrypyValue(epid)); int protocolId = int.Parse(BaseProtocolId); participantId = PatientProtocolController.GetParticipantId(protocolId, patientId); } ParticipantId.Value = participantId; }
/// <summary> /// /// </summary> /// <param name="patientId"></param> /// <returns></returns> protected string GetParticipantId(int patientId) { int protocolId = int.Parse(BaseProtocolId); return(PatientProtocolController.GetParticipantId(protocolId, patientId)); }