Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AKTIN
dwh-import
Commits
fe518e54
Commit
fe518e54
authored
Nov 29, 2017
by
R.W.Majeed
Browse files
sysout changed to logging
parent
19aaf491
Changes
1
Hide whitespace changes
Inline
Side-by-side
cda-import/src/test/java/org/aktin/cda/etl/CDAImporterMockUp.java
View file @
fe518e54
...
...
@@ -4,6 +4,7 @@ import java.io.IOException;
import
java.time.ZoneId
;
import
java.util.Iterator
;
import
java.util.function.Consumer
;
import
java.util.logging.Logger
;
import
javax.annotation.PreDestroy
;
import
javax.inject.Singleton
;
...
...
@@ -20,12 +21,13 @@ import de.sekmi.histream.impl.SimpleVisitExtension;
@Singleton
public
class
CDAImporterMockUp
extends
AbstractCDAImporter
implements
Consumer
<
Observation
>,
AutoCloseable
{
private
static
final
Logger
log
=
Logger
.
getLogger
(
CDAImporterMockUp
.
class
.
getName
());
private
ObservationFactory
factory
;
private
int
insertCount
;
public
CDAImporterMockUp
()
throws
IOException
{
super
(
new
ConcatAnonymizer
());
System
.
out
.
println
(
"CONSTRUCT CDAImporterMockUp"
);
log
.
info
(
"CONSTRUCT CDAImporterMockUp"
);
factory
=
new
ObservationFactoryImpl
(
new
SimplePatientExtension
(),
new
SimpleVisitExtension
());
insertCount
=
0
;
}
...
...
@@ -33,7 +35,7 @@ public class CDAImporterMockUp extends AbstractCDAImporter implements Consumer<O
@PreDestroy
@Override
public
void
close
()
{
System
.
out
.
println
(
"CLOSE CDAImporterMockUp (insertCount="
+
insertCount
+
")"
);
log
.
info
(
"CLOSE CDAImporterMockUp (insertCount="
+
insertCount
+
")"
);
}
@Override
...
...
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