Skip to content

Commit 3b0b239

Browse files
authored
fix(Sync): Fix Patient Attributes retroactively (#5717)
**Story card:** [sc-17127](https://app.shortcut.com/simpledotorg/story/17127/sync-patient-attributes-retroactively) ## Because see #5716 ## This addresses Syncing patient attributes retroactively ## Test instructions suite tests
1 parent 77e8532 commit 3b0b239

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/controllers/api/v4/patient_attributes_controller.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
class Api::V4::PatientAttributesController < Api::V4::SyncController
2+
include Api::V3::SyncEncounterObservation
3+
include Api::V3::RetroactiveDataEntry
4+
25
def sync_from_user
36
__sync_from_user__(patient_attributes_params)
47
end
@@ -19,6 +22,7 @@ def merge_if_valid(payload_attribute_params)
1922
if validator.check_invalid?
2023
{errors_hash: validator.errors_hash}
2124
else
25+
set_patient_recorded_at(payload_attribute_params)
2226
record_params = Api::V4::PatientAttributeTransformer
2327
.from_request(payload_attribute_params)
2428
.merge(metadata)

0 commit comments

Comments
 (0)