Skip to content

Commit

Permalink
VACMS-15686: Swaps mental health phone fields (#17161)
Browse files Browse the repository at this point in the history
* VACMS-15686: Removes the temp field from everywhere

* VACMS-15868: Move old mental health phone field in form display

* VACMS-15686: Updates the migration to not overwrite mental health phone number

* VACMS-15686: Revision looooog! -- In the voice of Kirk yelling "Kahn!"

---------

Co-authored-by: Jill Adams <[email protected]>
  • Loading branch information
omahane and jilladams authored Feb 28, 2024
1 parent d1393f1 commit 9a691ce
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ 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 @@ -93,7 +92,7 @@ third_party_settings:
label: 'VAMC system'
region: content
parent_name: ''
weight: 2
weight: 3
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -107,7 +106,7 @@ third_party_settings:
label: 'Title and summary'
region: content
parent_name: ''
weight: 3
weight: 4
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -133,7 +132,7 @@ third_party_settings:
label: 'Operating status'
region: content
parent_name: ''
weight: 1
weight: 2
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -148,7 +147,7 @@ third_party_settings:
label: 'Meta Tags'
region: content
parent_name: ''
weight: 4
weight: 5
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -158,7 +157,6 @@ third_party_settings:
group_locations_and_contact_info:
children:
- group_facility_data_from_vast
- field_mental_health_contact_phon
label: 'Locations and contact information'
region: content
parent_name: ''
Expand All @@ -179,7 +177,6 @@ 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 @@ -318,16 +315,9 @@ content:
settings:
media_types: { }
third_party_settings: { }
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
weight: 1
region: content
settings:
placeholder: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ 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 @@ -151,7 +150,6 @@ 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,7 +15,6 @@ 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 @@ -95,7 +94,6 @@ third_party_settings:
group_locations_and_contact_info:
children:
- group_facility_data_from_vast
- field_mental_health_contact_phon
label: 'Locations and contact information'
parent_name: ''
region: content
Expand Down Expand Up @@ -202,14 +200,6 @@ content:
third_party_settings: { }
weight: 0
region: content
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ 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 @@ -43,7 +42,7 @@ third_party_settings:
label: Meta
parent_name: ''
region: hidden
weight: 13
weight: 22
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -56,7 +55,7 @@ third_party_settings:
label: 'Operating status'
parent_name: ''
region: hidden
weight: 11
weight: 20
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -67,7 +66,7 @@ third_party_settings:
label: 'Social media'
parent_name: ''
region: hidden
weight: 17
weight: 26
format_type: details
format_settings:
classes: ''
Expand All @@ -81,7 +80,7 @@ third_party_settings:
label: 'Prepare for your visit'
parent_name: ''
region: hidden
weight: 14
weight: 23
format_type: details
format_settings:
classes: ''
Expand All @@ -94,7 +93,6 @@ 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 @@ -133,7 +131,7 @@ third_party_settings:
label: 'Title and summary'
parent_name: ''
region: hidden
weight: 12
weight: 21
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -146,7 +144,7 @@ third_party_settings:
label: 'Section settings'
parent_name: ''
region: hidden
weight: 15
weight: 24
format_type: details_sidebar
format_settings:
classes: ''
Expand All @@ -162,7 +160,7 @@ third_party_settings:
label: 'Editorial workflow'
parent_name: ''
region: hidden
weight: 16
weight: 25
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -192,14 +190,6 @@ 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 @@ -220,6 +210,7 @@ content:
grouped: false
show_closed: all
closed_format: Closed
all_day_format: 'All day open'
separator:
days: '<br />'
grouped_days: ' - '
Expand All @@ -230,6 +221,11 @@ 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 @@ -268,7 +264,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_meta_title: true
field_operating_status_facility: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ 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 @@ -120,7 +119,6 @@ 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,7 +16,6 @@ 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 @@ -96,7 +95,6 @@ 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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ field_name: field_mental_health_phone
entity_type: node
bundle: health_care_local_facility
label: 'Mental health phone number'
description: ''
description: 'Enter the number Veterans should call to access mental health services at your facility, for example 202-555-1234, ext. 23. 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: { }
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ source:
name: phone-main
label: phone-main
selector: properties/phone/main
-
name: phone-mental-health
label: phone-mental-health
selector: properties/phone/mental_health_clinic
-
name: state
label: state
Expand Down Expand Up @@ -179,29 +175,6 @@ process:
'Other Outpatient Services (OOS)': 6
'Extended Care Site (Community Living Center) (Stand-Alone)': 7
'Residential Care Site (MH RRTP/DRRTP) (Stand-Alone)': 8
field_mental_health_phone:
plugin: str_replace
search:
- (
- )
- X
- ' '
- ext
- Ext
- .
- ','
- x
replace:
- ''
- '-'
- x
- ''
- x
- x
- ''
- ''
- ', ext. '
source: phone-mental-health
field_phone_number:
plugin: str_replace
search:
Expand Down Expand Up @@ -284,7 +257,6 @@ destination:
- field_timezone
- changed
- field_facility_classification
- field_mental_health_phone
- field_phone_number
- field_mobile
- new_revision
Expand Down
Loading

0 comments on commit 9a691ce

Please sign in to comment.