Skip to content

Commit

Permalink
Merge pull request #564 from ychen-doj/WS-439-Add-field-to-NIH-form
Browse files Browse the repository at this point in the history
FOIA-439: Add field to NIH form.
  • Loading branch information
brockfanning authored Oct 24, 2023
2 parents 1819ed0 + 4746df2 commit 59149b2
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
39 changes: 38 additions & 1 deletion config/default/webform.webform.hhs_nih_form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ id: hhs_nih_form
title: 'HHS-NIH Form'
description: ''
category: ''
elements: |
elements: |-
name_first:
'#type': textfield
'#title': 'First name'
Expand Down Expand Up @@ -105,6 +105,43 @@ elements: |
'#options':
'no': 'No'
'yes': 'Yes'
select_the_nih_institute:
'#type': select
'#title': 'Select the NIH institute'
'#help_title': 'Selection of the NIH institute'
'#help': 'You may find useful information on the NIH FOIA page that could assist you with your request. We encourage you to visit the NIH FOIA webpage for instructions on how to file a request. Alternatively, you can select the NIH institute that is most relevant to your inquiry from the drop-down menu below. This will help NIH process your request faster and more efficiently. If unsure, please select “Office of the Director”. Thank you for your interest in the NIH.'
'#options':
OD: 'Office of the Director '
NCI: 'National Cancer Institute'
NEI: 'National Eye Institute '
NHLBI: 'National Heart, Lung, and Blood Institute'
NHGRI: 'National Human Genome Research Institute'
NIA: 'National Institute on Aging'
NIAAA: 'National Institute on Alcohol Abuse and Alcoholism'
NIAID: 'National Institute of Allergy and Infectious Diseases'
NIAMS: 'National Institute of Arthritis and Musculoskeletal and Skin Diseases'
NIBIB: 'National Institute of Biomedical Imaging and Bioengineering'
NICHD: 'Eunice Kennedy Shriver National Institute of Child Health and Human Development'
NIDCD: 'National Institute on Deafness and Other Communication Disorders'
NIDCR: 'National Institute of Dental and Craniofacial Research'
NIDDK: 'National Institute of Diabetes and Digestive and Kidney Diseases'
NIDA: 'National Institute on Drug Abuse'
NIEHS: 'National Institute of Environmental Health Sciences'
NIGMS: 'National Institute of General Medical Sciences'
NIMH: 'National Institute of Mental Health'
NIMHD: 'National Institute on Minority Health and Health Disparities'
NINDS: 'National Institute of Neurological Disorders and Stroke'
NINR: 'National Institute of Nursing Research'
NLM: 'National Library of Medicine'
CC: 'NIH Clinical Center'
CIT: 'Center for Information Technology'
CSR: 'Center for Scientific Review'
FIC: 'Fogarty International Center'
NCATS: 'National Center for Advancing Translational Sciences'
NCCIH: 'National Center for Complementary and Integrative Health'
'#empty_option': '- None -'
'#empty_value': NONE
'#sort_options': true
expedited_processing_explanation:
'#type': textarea
'#maxlength': 10000
Expand Down
2 changes: 1 addition & 1 deletion config/default/webform_template.webform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ hhs_cms_form: 1
hhs_fda_form: 1
hhs_hrsa_form: 1
hhs_ihs_form: 1
hhs_nih_form: 1
hhs_nih_form: 0
hhs_oash_form: 1
hhs_oig_form: 1
hhs_samhsa_form: 1
Expand Down
11 changes: 11 additions & 0 deletions tests/behat/features/Administrator.feature
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,14 @@ Feature: Agency Administrator role
And I am on "/node/add/agency_component"
Then I should see "Report Start Date"
And I should see "Report Expiration Date"

@api @javascript
Scenario: Verify NIH webform has Select the NIH institute drop down selection
Given users:
| name | mail | roles |
| Mini | mini@example.com | Administrator |
| Angus | angus@example.com | Agency Administrator |
When I am logged in as a user with the 'Agency Administrator' role
And I am at 'form/hhs-nih-form'
And I select "Office of the Director" from "Select the NIH institute"

0 comments on commit 59149b2

Please sign in to comment.