| |
| <?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| if (!defined('ABSPATH')) {
|
| exit;
|
| }
|
|
|
| add_action('acf/init', 'mst_add_outcomes_discharge_tab', 17);
|
|
|
| function mst_add_outcomes_discharge_tab() {
|
|
|
| if (!function_exists('acf_add_local_field')) {
|
| return;
|
| }
|
|
|
|
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_tab_outcomes_discharge',
|
| 'label' => '🎯 Outcomes & Discharge',
|
| 'name' => '',
|
| 'type' => 'tab',
|
| 'parent' => 'group_mst_case_master',
|
| 'placement' => 'top',
|
| ));
|
|
|
|
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_section_discharge_status',
|
| 'label' => 'Discharge Status & Planning',
|
| 'name' => '',
|
| 'type' => 'message',
|
| 'parent' => 'group_mst_case_master',
|
| 'message' => '<strong style="color: #0073aa;">📋 DISCHARGE PLANNING & STATUS</strong><br>Track discharge planning timeline and status',
|
| 'new_lines' => '',
|
| 'esc_html' => 0,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_discharge_status',
|
| 'label' => 'Discharge Status',
|
| 'name' => 'discharge_status',
|
| 'type' => 'select',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Current discharge status',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '33'),
|
| 'choices' => array(
|
| 'active' => 'Active Treatment',
|
| 'planning' => 'Planning Discharge',
|
| 'scheduled' => 'Discharge Scheduled',
|
| 'complete' => 'Discharge Complete',
|
| ),
|
| 'default_value' => 'active',
|
| 'ui' => 1,
|
| 'return_format' => 'value',
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_discharge_date_planned',
|
| 'label' => 'Planned Discharge Date',
|
| 'name' => 'discharge_date_planned',
|
| 'type' => 'date_picker',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Target discharge date',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '33'),
|
| 'display_format' => 'm/d/Y',
|
| 'return_format' => 'Y-m-d',
|
| 'first_day' => 0,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_discharge_date_actual',
|
| 'label' => 'Actual Discharge Date',
|
| 'name' => 'discharge_date_actual',
|
| 'type' => 'date_picker',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Actual discharge date (when complete)',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '34'),
|
| 'display_format' => 'm/d/Y',
|
| 'return_format' => 'Y-m-d',
|
| 'first_day' => 0,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_discharge_reason',
|
| 'label' => 'Discharge Reason',
|
| 'name' => 'discharge_reason',
|
| 'type' => 'select',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Primary reason for discharge',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '50'),
|
| 'choices' => array(
|
| 'goals_achieved' => 'Goals Achieved - Successful Completion',
|
| 'family_request' => 'Family Request',
|
| 'non_compliance' => 'Non-Compliance / Engagement Issues',
|
| 'safety_concerns' => 'Safety Concerns',
|
| 'transfer' => 'Transfer to Other Services',
|
| 'moved' => 'Family Moved',
|
| 'other' => 'Other (See Notes)',
|
| ),
|
| 'default_value' => '',
|
| 'ui' => 1,
|
| 'return_format' => 'value',
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_total_treatment_days',
|
| 'label' => 'Total Treatment Days',
|
| 'name' => 'total_treatment_days',
|
| 'type' => 'number',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Total days from first contact to discharge',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '25'),
|
| 'default_value' => '',
|
| 'placeholder' => '',
|
| 'prepend' => '',
|
| 'append' => 'days',
|
| 'min' => 0,
|
| 'step' => 1,
|
| 'readonly' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_total_contact_hours_final',
|
| 'label' => 'Total Contact Hours',
|
| 'name' => 'total_contact_hours_final',
|
| 'type' => 'number',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Cumulative contact hours over treatment',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '25'),
|
| 'default_value' => '',
|
| 'placeholder' => '',
|
| 'prepend' => '',
|
| 'append' => 'hours',
|
| 'min' => 0,
|
| 'step' => 0.5,
|
| 'readonly' => 1,
|
| ));
|
|
|
|
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_section_outcome_measurements',
|
| 'label' => 'Outcome Measurements (vs Baseline)',
|
| 'name' => '',
|
| 'type' => 'message',
|
| 'parent' => 'group_mst_case_master',
|
| 'message' => '<strong style="color: #2c7a3e;">📊 COMPARE TO TAB 7: BASELINE MEASUREMENTS</strong><br>Document improvements in key behavioral indicators',
|
| 'new_lines' => '',
|
| 'esc_html' => 0,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_outcome_school_attendance',
|
| 'label' => 'School Attendance % (Outcome)',
|
| 'name' => 'outcome_school_attendance',
|
| 'type' => 'number',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Final school attendance percentage (compare to baseline)',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '33'),
|
| 'default_value' => '',
|
| 'placeholder' => 'e.g., 95',
|
| 'prepend' => '',
|
| 'append' => '%',
|
| 'min' => 0,
|
| 'max' => 100,
|
| 'step' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_outcome_school_suspensions',
|
| 'label' => 'School Suspensions (Outcome)',
|
| 'name' => 'outcome_school_suspensions',
|
| 'type' => 'number',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Total suspensions during treatment',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '33'),
|
| 'default_value' => '',
|
| 'placeholder' => '',
|
| 'prepend' => '',
|
| 'append' => 'incidents',
|
| 'min' => 0,
|
| 'step' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_outcome_arrests_total',
|
| 'label' => 'Total Arrests (During Treatment)',
|
| 'name' => 'outcome_arrests_total',
|
| 'type' => 'number',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Total arrests during MST treatment',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '34'),
|
| 'default_value' => '',
|
| 'placeholder' => '',
|
| 'prepend' => '',
|
| 'append' => 'arrests',
|
| 'min' => 0,
|
| 'step' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_outcome_family_communication',
|
| 'label' => 'Family Communication (Outcome)',
|
| 'name' => 'outcome_family_communication',
|
| 'type' => 'number',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Final rating (1-10 scale, compare to baseline)',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '33'),
|
| 'default_value' => '',
|
| 'placeholder' => '',
|
| 'prepend' => '',
|
| 'append' => '/ 10',
|
| 'min' => 1,
|
| 'max' => 10,
|
| 'step' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_outcome_family_cohesion',
|
| 'label' => 'Family Cohesion (Outcome)',
|
| 'name' => 'outcome_family_cohesion',
|
| 'type' => 'number',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Final rating (1-10 scale)',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '33'),
|
| 'default_value' => '',
|
| 'placeholder' => '',
|
| 'prepend' => '',
|
| 'append' => '/ 10',
|
| 'min' => 1,
|
| 'max' => 10,
|
| 'step' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_outcome_family_conflict',
|
| 'label' => 'Family Conflict (Outcome)',
|
| 'name' => 'outcome_family_conflict',
|
| 'type' => 'number',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Final rating (1-10 scale, lower is better)',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '34'),
|
| 'default_value' => '',
|
| 'placeholder' => '',
|
| 'prepend' => '',
|
| 'append' => '/ 10',
|
| 'min' => 1,
|
| 'max' => 10,
|
| 'step' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_outcome_youth_mood',
|
| 'label' => 'Youth Mood/Mental Health (Outcome)',
|
| 'name' => 'outcome_youth_mood',
|
| 'type' => 'select',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Final mental health status',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '50'),
|
| 'choices' => array(
|
| 'stable_positive' => 'Stable & Positive',
|
| 'improved' => 'Significantly Improved',
|
| 'stable_concerns' => 'Stable with Ongoing Concerns',
|
| 'declining' => 'Declining / Needs Continued Support',
|
| ),
|
| 'default_value' => '',
|
| 'ui' => 1,
|
| 'return_format' => 'value',
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_outcome_goal_achievement_percentage',
|
| 'label' => 'Overall Goal Achievement',
|
| 'name' => 'outcome_goal_achievement_percentage',
|
| 'type' => 'number',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Percentage of treatment goals achieved',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '50'),
|
| 'default_value' => '',
|
| 'placeholder' => 'e.g., 85',
|
| 'prepend' => '',
|
| 'append' => '%',
|
| 'min' => 0,
|
| 'max' => 100,
|
| 'step' => 5,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_outcome_behaviors_summary',
|
| 'label' => 'Responsible Behaviors Change',
|
| 'name' => 'outcome_behaviors_summary',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Summary of behavioral improvements (compare to baseline Tab 7)',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '100'),
|
| 'rows' => 3,
|
| 'placeholder' => 'Document changes in youth responsible behaviors from baseline to discharge',
|
| ));
|
|
|
|
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_section_discharge_planning',
|
| 'label' => 'Discharge Planning & Sustainability',
|
| 'name' => '',
|
| 'type' => 'message',
|
| 'parent' => 'group_mst_case_master',
|
| 'message' => '<strong style="color: #d97706;">🔄 MST PRINCIPLE #9: GENERALIZATION</strong><br>Ensure family has sustainable supports in place',
|
| 'new_lines' => '',
|
| 'esc_html' => 0,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_natural_supports_identified',
|
| 'label' => 'Natural Supports Identified',
|
| 'name' => 'natural_supports_identified',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Family, friends, community resources identified for ongoing support',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '100'),
|
| 'rows' => 3,
|
| 'placeholder' => 'List all natural supports family will use after discharge (extended family, church, community groups, etc.)',
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_referrals_made',
|
| 'label' => 'Professional Supports / Referrals Made',
|
| 'name' => 'referrals_made',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Professional services and referrals arranged',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '100'),
|
| 'rows' => 3,
|
| 'placeholder' => 'Mental health services, outpatient therapy, support groups, etc.',
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_family_maintenance_plan',
|
| 'label' => 'Family Maintenance Plan',
|
| 'name' => 'family_maintenance_plan',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'How family will maintain gains after discharge',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '100'),
|
| 'rows' => 4,
|
| 'placeholder' => 'Specific strategies family will use to maintain treatment gains (e.g., weekly family meetings, continued use of point chart, etc.)',
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_sustainability_plan',
|
| 'label' => 'Sustainability Plan',
|
| 'name' => 'sustainability_plan',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Long-term sustainability strategy',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '100'),
|
| 'rows' => 3,
|
| 'placeholder' => 'Systems/structures in place to ensure long-term success',
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_crisis_plan_post_discharge',
|
| 'label' => 'Crisis Plan (Post-Discharge)',
|
| 'name' => 'crisis_plan_post_discharge',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'What family should do if problems re-emerge',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '100'),
|
| 'rows' => 3,
|
| 'placeholder' => 'Crisis contacts, warning signs to watch for, immediate action steps',
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_booster_sessions_scheduled',
|
| 'label' => 'Booster Sessions Scheduled',
|
| 'name' => 'booster_sessions_scheduled',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Any planned follow-up/booster sessions',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '100'),
|
| 'rows' => 2,
|
| 'placeholder' => 'Dates and focus of any booster sessions',
|
| ));
|
|
|
|
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_section_follow_up',
|
| 'label' => 'Follow-Up Tracking',
|
| 'name' => '',
|
| 'type' => 'message',
|
| 'parent' => 'group_mst_case_master',
|
| 'message' => '<strong>📞 POST-DISCHARGE FOLLOW-UP</strong><br>Track required follow-up contacts',
|
| 'new_lines' => '',
|
| 'esc_html' => 0,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_follow_up_30day_scheduled',
|
| 'label' => '30-Day Follow-Up Scheduled',
|
| 'name' => 'follow_up_30day_scheduled',
|
| 'type' => 'true_false',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => '30-day post-discharge check-in scheduled',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '25'),
|
| 'message' => 'Scheduled',
|
| 'default_value' => 0,
|
| 'ui' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_follow_up_30day_date',
|
| 'label' => '30-Day Follow-Up Date',
|
| 'name' => 'follow_up_30day_date',
|
| 'type' => 'date_picker',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Scheduled date for 30-day follow-up',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '25'),
|
| 'display_format' => 'm/d/Y',
|
| 'return_format' => 'Y-m-d',
|
| 'first_day' => 0,
|
| 'conditional_logic' => array(
|
| array(
|
| array(
|
| 'field' => 'field_follow_up_30day_scheduled',
|
| 'operator' => '==',
|
| 'value' => '1',
|
| ),
|
| ),
|
| ),
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_follow_up_30day_complete',
|
| 'label' => '30-Day Follow-Up Complete',
|
| 'name' => 'follow_up_30day_complete',
|
| 'type' => 'true_false',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Follow-up completed',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '25'),
|
| 'message' => 'Complete',
|
| 'default_value' => 0,
|
| 'ui' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_follow_up_30day_notes',
|
| 'label' => '30-Day Follow-Up Notes',
|
| 'name' => 'follow_up_30day_notes',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Summary of 30-day follow-up contact',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '25'),
|
| 'rows' => 2,
|
| 'placeholder' => 'How is family doing?',
|
| 'conditional_logic' => array(
|
| array(
|
| array(
|
| 'field' => 'field_follow_up_30day_complete',
|
| 'operator' => '==',
|
| 'value' => '1',
|
| ),
|
| ),
|
| ),
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_follow_up_90day_scheduled',
|
| 'label' => '90-Day Follow-Up Scheduled',
|
| 'name' => 'follow_up_90day_scheduled',
|
| 'type' => 'true_false',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => '90-day post-discharge check-in scheduled',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '25'),
|
| 'message' => 'Scheduled',
|
| 'default_value' => 0,
|
| 'ui' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_follow_up_90day_date',
|
| 'label' => '90-Day Follow-Up Date',
|
| 'name' => 'follow_up_90day_date',
|
| 'type' => 'date_picker',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Scheduled date for 90-day follow-up',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '25'),
|
| 'display_format' => 'm/d/Y',
|
| 'return_format' => 'Y-m-d',
|
| 'first_day' => 0,
|
| 'conditional_logic' => array(
|
| array(
|
| array(
|
| 'field' => 'field_follow_up_90day_scheduled',
|
| 'operator' => '==',
|
| 'value' => '1',
|
| ),
|
| ),
|
| ),
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_follow_up_90day_complete',
|
| 'label' => '90-Day Follow-Up Complete',
|
| 'name' => 'follow_up_90day_complete',
|
| 'type' => 'true_false',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Follow-up completed',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '25'),
|
| 'message' => 'Complete',
|
| 'default_value' => 0,
|
| 'ui' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_follow_up_90day_notes',
|
| 'label' => '90-Day Follow-Up Notes',
|
| 'name' => 'follow_up_90day_notes',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Summary of 90-day follow-up contact',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '25'),
|
| 'rows' => 2,
|
| 'placeholder' => 'Long-term outcomes',
|
| 'conditional_logic' => array(
|
| array(
|
| array(
|
| 'field' => 'field_follow_up_90day_complete',
|
| 'operator' => '==',
|
| 'value' => '1',
|
| ),
|
| ),
|
| ),
|
| ));
|
|
|
|
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_section_discharge_summary_final',
|
| 'label' => 'Final Discharge Summary',
|
| 'name' => '',
|
| 'type' => 'message',
|
| 'parent' => 'group_mst_case_master',
|
| 'message' => '<strong>📝 FINAL DISCHARGE DOCUMENTATION</strong><br>Comprehensive summary of treatment and outcomes',
|
| 'new_lines' => '',
|
| 'esc_html' => 0,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_discharge_summary',
|
| 'label' => 'Discharge Summary',
|
| 'name' => 'discharge_summary',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Comprehensive summary of treatment, outcomes, and discharge',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '100'),
|
| 'rows' => 6,
|
| 'placeholder' => 'Complete discharge summary including: treatment duration, goals achieved, behavioral improvements, family engagement, sustainability plan, and recommendations',
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_lessons_learned',
|
| 'label' => 'Lessons Learned / Reflections',
|
| 'name' => 'lessons_learned',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'What worked well, what could be improved, insights for future cases',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '100'),
|
| 'rows' => 4,
|
| 'placeholder' => 'Clinical insights and learning from this case',
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_discharge_packet_provided',
|
| 'label' => 'Discharge Packet Provided',
|
| 'name' => 'discharge_packet_provided',
|
| 'type' => 'true_false',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Family received complete discharge packet',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '33'),
|
| 'message' => 'Yes - Provided to family',
|
| 'default_value' => 0,
|
| 'ui' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_family_satisfaction_rating',
|
| 'label' => 'Family Satisfaction Rating',
|
| 'name' => 'family_satisfaction_rating',
|
| 'type' => 'number',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Family satisfaction with MST services (1-10)',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '33'),
|
| 'default_value' => '',
|
| 'placeholder' => '',
|
| 'prepend' => '',
|
| 'append' => '/ 10',
|
| 'min' => 1,
|
| 'max' => 10,
|
| 'step' => 1,
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_would_recommend_mst',
|
| 'label' => 'Would Family Recommend MST?',
|
| 'name' => 'would_recommend_mst',
|
| 'type' => 'select',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Would family recommend MST to others?',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '34'),
|
| 'choices' => array(
|
| 'yes' => 'Yes - Definitely',
|
| 'probably' => 'Probably',
|
| 'maybe' => 'Maybe',
|
| 'probably_not' => 'Probably Not',
|
| 'no' => 'No',
|
| ),
|
| 'default_value' => '',
|
| 'ui' => 1,
|
| 'return_format' => 'value',
|
| ));
|
|
|
|
|
| acf_add_local_field(array(
|
| 'key' => 'field_discharge_admin_notes',
|
| 'label' => 'Administrative Notes',
|
| 'name' => 'discharge_admin_notes',
|
| 'type' => 'textarea',
|
| 'parent' => 'group_mst_case_master',
|
| 'instructions' => 'Internal administrative notes about discharge',
|
| 'required' => 0,
|
| 'wrapper' => array('width' => '100'),
|
| 'rows' => 2,
|
| 'placeholder' => 'Billing notes, insurance, case closing documentation, etc.',
|
| ));
|
| }
|
| |
| |
Comments