use of gov.ca.cwds.data.legacy.cms.entity.Client in project cals-api by ca-cwds.
the class FacilityChildService method find.
@Override
public Response find(Serializable params) {
FacilityChildParameterObject parameterObject = (FacilityChildParameterObject) params;
Client client = null;
if (parameterObject.getUnitOfWork().equals(UnitOfWork.CMS)) {
client = clientService.getClientByFacilityIdAndChildId(parameterObject.getFacilityId(), parameterObject.getChildId());
} else {
client = clientService.getClientByLicNumAndChildId(parameterObject.getFacilityId(), parameterObject.getChildId());
}
return facilityChildMapper.toFacilityChildDTO(client);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00742Test method testValidListofEthnicities.
@Test
public void testValidListofEthnicities() throws Exception {
Client client = new Client();
client.setIdentifier(CLIENT_IDENTIFIER);
client.setPrimaryEthnicityCode((short) 1);
clientEntityAwareDTO.setEntity(client);
List<ClientOtherEthnicity> clientScpEthnicityList = createListOfDifferentClientOtherEthnicities(client);
clientEntityAwareDTO.getOtherEthnicities().addAll(clientScpEthnicityList);
checkRuleSatisfied(RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00742Test method testEmptyListOfOtherEthnicitiesWhenPrimaryPresent.
@Test
public void testEmptyListOfOtherEthnicitiesWhenPrimaryPresent() throws Exception {
Client client = new Client();
client.setIdentifier(CLIENT_IDENTIFIER);
client.setPrimaryEthnicityCode((short) 1);
clientEntityAwareDTO.setEntity(client);
checkRuleSatisfied(RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00756Test method testPrimaryRelationshipStartDateGtBirthDate.
@Test
public void testPrimaryRelationshipStartDateGtBirthDate() throws Exception {
Client client = client(SOME_DATE);
checkRuleSatisfied(dto(client, primaryRelationship("Aaqj06L00h", client, "AapJGAU04Z", SOME_DATE.plusDays(1))), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00756Test method otherClient.
public static Client otherClient(String id) {
Client client = new Client();
client.setIdentifier(id);
return client;
}
Aggregations