From 83ec2fb053d6ba60ce64f08f351524aea3ecb1c2 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc kop@karlpinc.com" Date: Sat, 6 Jun 2026 21:15:25 +0000 Subject: [PATCH] Create REPRO_STATE_CHANGE_SOURCES code table --- db/schemas/codes/tables/Makefile | 1 + .../create/repro_state_change_sources.m4 | 29 +++++++++++++ doc/src/code_tables.m4 | 43 +++++++++++++++++++ doc/src/epilog.inc.m4 | 5 +++ 4 files changed, 78 insertions(+) create mode 100644 db/schemas/codes/tables/create/repro_state_change_sources.m4 diff --git a/db/schemas/codes/tables/Makefile b/db/schemas/codes/tables/Makefile index 76aa36f..42e9909 100644 --- a/db/schemas/codes/tables/Makefile +++ b/db/schemas/codes/tables/Makefile @@ -36,6 +36,7 @@ ORDER := agg_severities \ parities \ people \ obs_periods \ + repro_state_change_sources \ role_codes \ sighting_records \ species \ diff --git a/db/schemas/codes/tables/create/repro_state_change_sources.m4 b/db/schemas/codes/tables/create/repro_state_change_sources.m4 new file mode 100644 index 0000000..9574ac2 --- /dev/null +++ b/db/schemas/codes/tables/create/repro_state_change_sources.m4 @@ -0,0 +1,29 @@ +dnl Copyright (C) 2026 The Meme Factory, Inc., http://www.karlpinc.com/ +dnl +dnl This program is free software: you can redistribute it and/or modify +dnl it under the terms of the GNU Affero General Public License as published +dnl by the Free Software Foundation, either version 3 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU Affero General Public License for more details. +dnl +dnl You should have received a copy of the GNU Affero General Public License +dnl along with this program. If not, see . +dnl +dnl Karl O. Pinc +dnl +dnl +dnl m4 includes +include(`copyright.m4')dnl +include(`constants.m4')dnl +include(`tablemacros.m4')dnl +include(`grants.m4')dnl +dnl + +support_table(`REPRO_STATE_CHANGE_SOURCES', `Code', `TEXT', ` + emptytext_check(`Code') + uppercase_check(`Code')' +) diff --git a/doc/src/code_tables.m4 b/doc/src/code_tables.m4 index 007985d..5fafc8d 100644 --- a/doc/src/code_tables.m4 +++ b/doc/src/code_tables.m4 @@ -899,6 +899,49 @@ existing data to be cleaned while preventing undesirable values from appearing in new data. +.. _REPRO_STATE_CHANGE_SOURCES: + +REPRO_STATE_CHANGE_SOURCES +-------------------------- + +.. |REPRO_STATE_CHANGE_SOURCES_summary| replace:: + Contains one row for each female reproductive state, for each + analysis source used in reproductive state analysis. + +|REPRO_STATE_CHANGE_SOURCES_summary| + + +Special Values +`````````````` + +None. + + +Column Descriptions +``````````````````` + +.. _REPRO_STATE_CHANGE_SOURCES.Code: + +Code +'''' + +.. |REPRO_STATE_CHANGE_SOURCES.Code_summary| replace:: + A code identifying the categorization. + +|REPRO_STATE_CHANGE_SOURCES.Code_summary| |keycol| |uppercase| + + +.. _REPRO_STATE_CHANGE_SOURCES.Description: + +Description +''''''''''' + +.. |REPRO_STATE_CHANGE_SOURCES.Description_summary| replace:: + A description of the code. + +|REPRO_STATE_CHANGE_SOURCES.Description_summary| |emptytext| |notnull| + + .. _ROLE_CODES: ROLE_CODES diff --git a/doc/src/epilog.inc.m4 b/doc/src/epilog.inc.m4 index 588c199..b9bb668 100644 --- a/doc/src/epilog.inc.m4 +++ b/doc/src/epilog.inc.m4 @@ -489,6 +489,11 @@ sdb_generated_rst()dnl .. |PEOPLE.Description| replace:: :ref:`Description ` .. |PEOPLE.Active| replace:: :ref:`Active ` +.. |REPRO_STATE_CHANGE_SOURCES| replace:: + :ref:`REPRO_STATE_CHANGE_SOURCES ` +.. |REPRO_STATE_CHANGE_SOURCES.Code| replace:: + :ref:`Code ` + .. |ROLES| replace:: :ref:`ROLES ` .. |ROLES.PID| replace:: :ref:`PID ` -- 2.34.1