Skip to content

Commit

Permalink
VACMS-15647 Add new vamc mental health field. (#15679)
Browse files Browse the repository at this point in the history
* Revert "VACMS-14213 Make CMS the source of truth for VAMC mental health phone number (#15468)"

This reverts commit 2575fc3.
in order to restore the field location in the api data and its place in the migration.

* VACMS-15647 Add editable mental health contact field to VAMC facility
  • Loading branch information
swirtSJW authored Oct 15, 2023
1 parent 91ed556 commit cbe6272
Show file tree
Hide file tree
Showing 12 changed files with 145 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand Down Expand Up @@ -92,7 +93,7 @@ third_party_settings:
label: 'VAMC system'
region: content
parent_name: ''
weight: 3
weight: 2
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -106,7 +107,7 @@ third_party_settings:
label: 'Title and summary'
region: content
parent_name: ''
weight: 4
weight: 3
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -132,7 +133,7 @@ third_party_settings:
label: 'Operating status'
region: content
parent_name: ''
weight: 2
weight: 1
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -147,7 +148,7 @@ third_party_settings:
label: 'Meta Tags'
region: content
parent_name: ''
weight: 5
weight: 4
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -157,7 +158,7 @@ third_party_settings:
group_locations_and_contact_info:
children:
- group_facility_data_from_vast
- field_mental_health_phone
- field_mental_health_contact_phon
label: 'Locations and contact information'
region: content
parent_name: ''
Expand All @@ -178,6 +179,7 @@ third_party_settings:
- field_geolocation
- field_mobile
- field_phone_number
- field_mental_health_phone
- field_office_hours
- field_timezone
label: 'Facility data'
Expand Down Expand Up @@ -304,7 +306,7 @@ content:
third_party_settings: { }
field_main_location:
type: boolean_checkbox
weight: 3
weight: 21
region: content
settings:
display_label: true
Expand All @@ -316,13 +318,20 @@ content:
settings:
media_types: { }
third_party_settings: { }
field_mental_health_phone:
field_mental_health_contact_phon:
type: telephone_default
weight: 21
region: content
settings:
placeholder: ''
third_party_settings: { }
field_mental_health_phone:
type: telephone_default
weight: 28
region: content
settings:
placeholder: ''
third_party_settings: { }
field_mobile:
type: boolean_checkbox
weight: 26
Expand Down Expand Up @@ -366,7 +375,7 @@ content:
third_party_settings: { }
field_region_page:
type: options_select
weight: 2
weight: 20
region: content
settings: { }
third_party_settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand Down Expand Up @@ -150,6 +151,7 @@ hidden:
field_location_services: true
field_main_location: true
field_media: true
field_mental_health_contact_phon: true
field_mental_health_phone: true
field_meta_tags: true
field_mobile: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand Down Expand Up @@ -94,7 +95,7 @@ third_party_settings:
group_locations_and_contact_info:
children:
- group_facility_data_from_vast
- field_mental_health_phone
- field_mental_health_contact_phon
label: 'Locations and contact information'
parent_name: ''
region: content
Expand All @@ -111,6 +112,7 @@ third_party_settings:
- field_address
- field_phone_number
- field_mobile
- field_mental_health_phone
- field_office_hours
- field_timezone
label: 'Facility data'
Expand Down Expand Up @@ -200,14 +202,22 @@ content:
third_party_settings: { }
weight: 0
region: content
field_mental_health_phone:
field_mental_health_contact_phon:
type: telephone_link
label: inline
settings:
title: ''
third_party_settings: { }
weight: 20
region: content
field_mental_health_phone:
type: telephone_link
label: inline
settings:
title: ''
third_party_settings: { }
weight: 19
region: content
field_mobile:
type: boolean
label: inline
Expand Down Expand Up @@ -248,7 +258,7 @@ content:
schema:
enabled: false
third_party_settings: { }
weight: 19
weight: 20
region: content
field_operating_status_facility:
type: list_default
Expand Down Expand Up @@ -277,7 +287,7 @@ content:
label: above
settings: { }
third_party_settings: { }
weight: 20
weight: 21
region: content
flag_email_node:
settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand All @@ -42,7 +43,7 @@ third_party_settings:
label: Meta
parent_name: ''
region: hidden
weight: 21
weight: 13
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -55,7 +56,7 @@ third_party_settings:
label: 'Operating status'
parent_name: ''
region: hidden
weight: 19
weight: 11
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -66,7 +67,7 @@ third_party_settings:
label: 'Social media'
parent_name: ''
region: hidden
weight: 25
weight: 17
format_type: details
format_settings:
classes: ''
Expand All @@ -80,7 +81,7 @@ third_party_settings:
label: 'Prepare for your visit'
parent_name: ''
region: hidden
weight: 22
weight: 14
format_type: details
format_settings:
classes: ''
Expand All @@ -93,6 +94,7 @@ third_party_settings:
- field_address
- field_mobile
- field_phone_number
- field_mental_health_phone
- field_office_hours
label: 'Location Information'
parent_name: ''
Expand Down Expand Up @@ -131,7 +133,7 @@ third_party_settings:
label: 'Title and summary'
parent_name: ''
region: hidden
weight: 20
weight: 12
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -144,7 +146,7 @@ third_party_settings:
label: 'Section settings'
parent_name: ''
region: hidden
weight: 23
weight: 15
format_type: details_sidebar
format_settings:
classes: ''
Expand All @@ -160,7 +162,7 @@ third_party_settings:
label: 'Editorial workflow'
parent_name: ''
region: hidden
weight: 24
weight: 16
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -190,6 +192,14 @@ content:
third_party_settings: { }
weight: 17
region: content
field_mental_health_phone:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 21
region: content
field_mobile:
type: boolean
label: above
Expand All @@ -210,7 +220,6 @@ content:
grouped: false
show_closed: all
closed_format: Closed
all_day_format: 'All day open'
separator:
days: '<br />'
grouped_days: ' - '
Expand All @@ -221,11 +230,6 @@ content:
position: ''
open_text: 'Currently open!'
closed_text: 'Currently closed'
exceptions:
title: 'Exception hours'
restrict_exceptions_to_num_days: 7
date_format: long
all_day_format: 'All day open'
timezone_field: ''
office_hours_first_day: ''
schema:
Expand Down Expand Up @@ -263,7 +267,7 @@ hidden:
field_location_services: true
field_main_location: true
field_media: true
field_mental_health_phone: true
field_mental_health_contact_phon: true
field_meta_tags: true
field_meta_title: true
field_operating_status_facility: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand Down Expand Up @@ -118,6 +119,7 @@ hidden:
field_local_health_care_service_: true
field_location_services: true
field_main_location: true
field_mental_health_contact_phon: true
field_mental_health_phone: true
field_meta_tags: true
field_mobile: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- field.field.node.health_care_local_facility.field_location_services
- field.field.node.health_care_local_facility.field_main_location
- field.field.node.health_care_local_facility.field_media
- field.field.node.health_care_local_facility.field_mental_health_contact_phon
- field.field.node.health_care_local_facility.field_mental_health_phone
- field.field.node.health_care_local_facility.field_meta_tags
- field.field.node.health_care_local_facility.field_mobile
Expand Down Expand Up @@ -94,6 +95,7 @@ hidden:
field_location_services: true
field_main_location: true
field_media: true
field_mental_health_contact_phon: true
field_mental_health_phone: true
field_meta_tags: true
field_mobile: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: 85b46732-b695-42f5-be09-413287698196
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_mental_health_contact_phon
- node.type.health_care_local_facility
module:
- telephone
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: node.health_care_local_facility.field_mental_health_contact_phon
field_name: field_mental_health_contact_phon
entity_type: node
bundle: health_care_local_facility
label: 'Mental health contact phone number'
description: 'Enter the number Veterans should call to access mental health services at your facility. If your facility doesn''t offer these services, enter the most appropriate system number. This number will be displayed everywhere your facility appears across VA.gov. <a href="/help/va-medical-centers-vamcs/about-locations-content-for-vamcs/how-to-edit-a-vamc-facility" target="_blank">View guidelines for editing VAMC facilities (opens in a new tab)</a>'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: telephone
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ id: node.health_care_local_facility.field_mental_health_phone
field_name: field_mental_health_phone
entity_type: node
bundle: health_care_local_facility
label: 'Mental health phone'
description: 'Enter the number Veterans should call to access mental health services at your facility. If your facility doesn''t offer these services, enter the most appropriate system number. This number will be displayed everywhere your facility appears across VA.gov. <a href="/help/va-medical-centers-vamcs/about-locations-content-for-vamcs/how-to-edit-a-vamc-facility" target="_blank">View guidelines for editing VAMC facilities (opens in a new tab)</a>'
label: 'Mental health phone number'
description: ''
required: false
translatable: false
default_value: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ dependencies:
- node.type.health_care_local_facility
module:
- telephone
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: node.health_care_local_facility.field_phone_number
field_name: field_phone_number
entity_type: node
Expand Down
Loading

0 comments on commit cbe6272

Please sign in to comment.