Skip to content

Commit

Permalink
import api: fix incorrect permission of patient request (#5311)
Browse files Browse the repository at this point in the history
We should be permitting the nested `"text"` attribute inside the
`"name"` attribute. We also fix incorrect permission of the address
line.
  • Loading branch information
tfidfwastaken authored Oct 23, 2023
1 parent 3f289dd commit 7a8d027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/api/v4/imports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ def permit_patient_resource(resource)
:birthDate,
:deceasedBoolean,
:telecom,
:name,
:active,
name: [:text],
meta: [:lastUpdated, :createdAt],
identifier: [:value],
managingOrganization: [:value],
registrationOrganization: [:value],
address: [:line, :district, :city, :postalCode]
address: [:district, :city, :postalCode, line: []]
)
end

Expand Down

0 comments on commit 7a8d027

Please sign in to comment.