Name

infants_in_gc — Ensure that the (biological or adopted) young infants of a mom are the group composition data

Synopsis

BOOLEAN infants_in_gc ( chimpid,  
  rgid,  
  date);  
VARCHAR(5) chimpid ;
BIGINT rgid ;
DATE date ;
 

Input

chimpid

A CHIMPIDS.ChimpID value of a possible (biological or adoptive) mother.

There are no restrictions regards sex or age of the given chimp.[66]

rgid

A RAW_GROUPS.RGID value identifying a group composition.

date

The date of the group composition.

Description

infants_in_gc adds the (biological or adopted) infants of a possible mother identified by chimpid to the group composition data identified by the rgid when the infant is less than 5 years old as of the date supplied in the date argument and in the study population and the possible mom is either the biological mother or an adoptive mother and the adoption occurred on or before the given date and the infant has not been adopted subsequently (but before the given date). The group composition is unchanged when the infant is already in the group composition.

Caution

Because adoptions can happen at any time during a day, when the given group composition date is the date of adoption the infant is added to all group compositions where either mother is found.

Caution

This function does not check it's arguments. It assumes that the supplied date is the date of the supplied group composition and that the supplied chimpid is in the supplied group composition.

When inserting a RAW_GROUPMEMBERS row the ChimpID value used is the BIOGRAPHY_DATA.AnimID of the (biological or adopted) infant [67], the Origin value used is always A, and the Uncertain value always FALSE

A TRUE value is returned if a row for any infant is added to RAW_GROUPMEMBERS, FALSE is returned if not.



[66] In theory, any individual can adopt. Regardless, the caller should not need to worry about such details.

[67] This matters in the case of twins.


Page generated: 2018-08-25T22:19:28-04:00.