infants_in_gc — Ensure that the (biological or adopted) young infants of a mom are the group composition data
BOOLEAN
infants_in_gc
(
|
chimpid, | |
| rgid, | ||
date); |
VARCHAR(5)
chimpid
;
BIGINT
rgid
;
DATE
date
;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.
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.
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.