Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
histream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Raphael
histream
Commits
087768fb
Commit
087768fb
authored
Nov 19, 2015
by
R.W.Majeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed validation bug reporting same concepts for different patients as duplicates
parent
e133de42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
histream-import/src/main/java/de/sekmi/histream/etl/validation/Validator.java
...main/java/de/sekmi/histream/etl/validation/Validator.java
+9
-2
No files found.
histream-import/src/main/java/de/sekmi/histream/etl/validation/Validator.java
View file @
087768fb
...
...
@@ -64,14 +64,18 @@ public class Validator extends AbstractObservationHandler implements Transformat
String
patid
=
t
.
getPatientId
();
String
encid
=
t
.
getEncounterId
();
// check if patient already known
if
(
prevPatient
==
null
||
!
prevPatient
.
equals
(
patid
)
){
//
check if patient already known
//
new patient
// clear visit
visits
.
clear
();
prevVisit
=
encid
;
visits
.
add
(
encid
);
// clear concepts
concepts
.
clear
();
prevPatient
=
patid
;
// remember patient to suppress errors for the same patient
if
(
patients
.
contains
(
patid
)
){
...
...
@@ -90,6 +94,9 @@ public class Validator extends AbstractObservationHandler implements Transformat
}
else
{
visits
.
add
(
encid
);
}
// clear concepts
concepts
.
clear
();
}
// check for duplicate non-repeating start+concept tuples
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment