Skip to content

Commit

Permalink
Add component descriptor to all transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
qqndrew committed Oct 30, 2023
1 parent 8a749ce commit 53e3b32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.ohnlp.medxn</groupId>
<artifactId>medxn</artifactId>
<version>1.0.7</version>
<version>1.0.8</version>
<description>The MedXN medication Information extraction pipeline</description>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.apache.beam.sdk.values.Row;
import org.joda.time.Instant;
import org.ohnlp.backbone.api.Transform;
import org.ohnlp.backbone.api.annotations.ComponentDescription;
import org.ohnlp.backbone.api.components.OneToOneTransform;
import org.ohnlp.backbone.api.exceptions.ComponentInitializationException;

Expand All @@ -32,6 +33,10 @@
* <b>Important:</b> Requires that the OHDSI vocabulary load query first be run and loaded into backbone resources folder
* as ohdsi_rxnorm_map.csv. Please refer to documentation for further details
*/
@ComponentDescription(
name = "MedXN OHDSI Converter",
desc = "Converts MedXN Output to the OHDSI Format for NOTE_NLP Table"
)
public class MedXNOutputToOHDSIFormatTransform extends OneToOneTransform {
private static ThreadLocal<SimpleDateFormat> sdf = ThreadLocal.withInitial(() -> new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX"));
private Schema schema;
Expand Down

0 comments on commit 53e3b32

Please sign in to comment.