/** Creates an object of a SAHouseholdUnitMember. */ public SAHouseholdUnitMember createASAHouseholdUnitMember( final CaseParticipantRole caseParticipantRole) { final Number participantRoleID1 = caseParticipantRole.participantRoleID().getValue(); final curam.util.type.Date relationshipStartDate = curam.util.type.Date.fromISO8601("20000101"); final SAHouseholdUnitMember saHouseholdUnitMember1 = SAHouseholdUnitMember_Factory.getFactory() .newInstance( getSession(), caseParticipantRole.caseID().getValue(), caseParticipantRole); return saHouseholdUnitMember1; }
/** * Creates the CaseParticipantRole record. * * @param caseID CaseId of case to which the case participant belongs * @param caseParticipantRoleID Case participant Role ID * @param participantRoleID Participant Role ID * @param caseParticipantRoleType Case Participant Role Type * @return CaseParticipantRole */ public CaseParticipantRole createCaseParticipantRoleRecord( final Number caseID, final Number caseParticipantRoleID, final Number participantRoleID, final String caseParticipantRoleType) { final CaseParticipantRole caseParticipantRoleRecord = CaseParticipantRole_Factory.getFactory().newInstance(this.getSession()); caseParticipantRoleRecord.caseID().specifyValue(caseID); caseParticipantRoleRecord.caseParticipantRoleID().specifyValue(caseParticipantRoleID); caseParticipantRoleRecord.participantRoleID().specifyValue(participantRoleID); caseParticipantRoleRecord .typeCode() .specifyValue( new CodeTableItem(CASEPARTICIPANTROLETYPE.TABLENAME, caseParticipantRoleType)); return caseParticipantRoleRecord; }