public FamilyMemberHistory getByUniqueId(IdDt id) {
   FamilyMemberHistoryService familyHistoryService =
       Context.getService(FamilyMemberHistoryService.class);
   FamilyMemberHistory familyHistory = familyHistoryService.getRelationshipById(id.getIdPart());
   if (familyHistory == null) {
     throw new ResourceNotFoundException(
         "Family history is not found for the given Id " + id.getIdPart());
   }
   return familyHistory;
 }
 public List<FamilyMemberHistory> searchFamilyHistoryByPerson(ReferenceParam id) {
   FamilyMemberHistoryService familyHistoryService =
       Context.getService(FamilyMemberHistoryService.class);
   return familyHistoryService.searchFamilyHistoryByPersonId(id.getIdPart());
 }
 public List<FamilyMemberHistory> searchFamilyHistoryByUniqueId(TokenParam id) {
   FamilyMemberHistoryService familyHistoryService =
       Context.getService(FamilyMemberHistoryService.class);
   return familyHistoryService.searchRelationshipsById(id.getValue());
 }