Add Enums and formtypes

This commit is contained in:
2024-12-08 17:07:54 -05:00
parent 1f82c8006f
commit 6bde369bcd
8 changed files with 383 additions and 0 deletions

11
src/Enums/GenderType.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
namespace App\Enums;
enum GenderType: string
{
case MALE = 'male';
case FEMALE = 'female';
case OTHER = 'other';
case TRANSGENDER = 'transgender';
}

20
src/Enums/RaceType.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
namespace App\Enums;
enum RaceType: string
{
case AFRICAN_AMERICAN = 'African American';
case AMERICAN_INDIANA = 'American Indian';
case ASIAN = 'Asian';
case ASIAN_PACIFIC = 'Asian/Pacific Islander';
case BIRACIAL = 'Biracial, Non-Hispanic';
case BLACK = 'Black, Non-Hispanic';
case CAUCASIAN = 'Caucasian';
case HISPANIC = 'Hispanic';
case MISSING_DATA = 'Missing Data';
case MULTIRACIAL = 'Multi-racial';
case NATIVE_AMERICAN = 'Native American';
case OTHER = 'Other';
case UNKNOWN = 'Unknown';
}

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Enums;
enum RelationshipType: string
{
case ADULT_CHILD = 'Adult Child';
case AUNT = 'Aunt';
case SO_OF_PARENT = 'Boy/Girlfriend of Parent';
case CAREGIVER = 'Caregiver';
case CHILD = 'Child';
case FATHER = 'Father';
case FOSTER_FATHER = 'Foster Father';
case FOSTER_MOTHER = 'Foster Mother';
case FOSTER_SIBLING = 'Foster Sibling';
case GRANDFATHER = 'Grandfather';
case GRANDMOTHER = 'Grandmother';
case HALF_SIBLING = 'Half Sibling';
case HOMESTUDY_PREPARATION = 'Homestudy Preparation';
case MOTHER = 'Mother';
case OTHER_RELATIVE = 'Other Relative';
case PARENT_PARAMOUR = 'Parent Paramour';
case SIBLING = 'Sibling';
case STEP_SIBLING = 'Step Sibling';
case STEP_FATHER = 'Stepfather';
case STEP_MOTHER = 'Stepmother';
case UNCLE = 'Uncle';
}