Skip to content

Commit

Permalink
4824 update gender identity values (#11849)
Browse files Browse the repository at this point in the history
* updated gender identity values in GI schema

* updated gender identity values in VAProfile models

* updated gender identity models specs

* updated GI models specs

* regenerated docs
  • Loading branch information
cadibemma authored Feb 24, 2023
1 parent 275e8e0 commit 4d7c6bf
Show file tree
Hide file tree
Showing 4 changed files with 1,526 additions and 1,510 deletions.
10 changes: 5 additions & 5 deletions lib/va_profile/models/gender_identity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ class GenderIdentity < Base

CODES = %w[M F TM TF B N O].freeze
OPTIONS = {
'M' => 'Male',
'F' => 'Female',
'M' => 'Man',
'F' => 'Woman',
'TM' => 'Transgender Man',
'TF' => 'Transgender Female',
'TF' => 'Transgender Woman',
'B' => 'Non-Binary',
'N' => 'Does not wish to disclose',
'O' => 'Other'
'N' => 'Prefer not to answer',
'O' => 'A gender not listed here'
}.freeze

attribute :code, String
Expand Down
3,012 changes: 1,514 additions & 1,498 deletions modules/mobile/docs/index.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions modules/mobile/docs/schemas/GenderIdentityEdit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ properties:
options:
type: object
example:
m: "Male"
f: "Female"
m: "Man"
f: "Woman"
tm: "Transgender Man"
tf: "Transgender Female"
tf: "Transgender Woman"
b: "Non-Binary"
n: "Does not wish to disclose"
o: "Other"
n: "Prefer not to answer"
o: "A gender not listed here"
4 changes: 2 additions & 2 deletions spec/lib/va_profile/models/gender_identity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'va_profile/models/gender_identity'

describe VAProfile::Models::GenderIdentity do
let(:model) { VAProfile::Models::GenderIdentity.new(code: 'F', name: 'Female') }
let(:model) { VAProfile::Models::GenderIdentity.new(code: 'F', name: 'Woman') }

context 'is valid' do
it 'when code is valid' do
Expand All @@ -15,7 +15,7 @@
it 'name is set from code' do
model.code = 'M'
model.valid?
expect(model.name).to eq('Male')
expect(model.name).to eq('Man')
end
end

Expand Down

0 comments on commit 4d7c6bf

Please sign in to comment.