Skip to content

Commit

Permalink
Fixes for SD exports (#1141)
Browse files Browse the repository at this point in the history
* filter suppressed attributes for export

* update visit attribute for condition

* update filter condition
  • Loading branch information
dolbeew authored Jan 24, 2025
1 parent c5c8cc8 commit 3a7ab75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ public String generateSqlForPrimaryEntity(
List<ValueDisplayField> selectedAttributeFields = new ArrayList<>();
exportRequest.getUnderlay().getPrimaryEntity().getAttributes().stream()
.filter(
attribute -> attributeNames.isEmpty() || attributeNames.contains(attribute.getName()))
attribute ->
(attributeNames.isEmpty() || attributeNames.contains(attribute.getName()))
&& !attribute.isSuppressedForExport())
.forEach(
attribute ->
selectedAttributeFields.add(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
{ "name": "visit_type", "dataType": "INT64", "valueFieldName": "visit_concept_id", "displayFieldName": "visit_concept_name", "isComputeDisplayHint": true,
"sourceQuery": {
"displayFieldName": "concept_name",
"displayFieldTable": "${omopDataset}.concept",
"displayFieldTableJoinFieldName": "concept_id"
"displayFieldTable": "${omopDataset}.visit_occurrence",
"displayFieldTableJoinFieldName": "visit_occurrence_id"
}
}
],
Expand Down

0 comments on commit 3a7ab75

Please sign in to comment.