public class PatientLevelSmokingStatus extends Object
Constructor and Description |
---|
PatientLevelSmokingStatus() |
Modifier and Type | Method and Description |
---|---|
static void |
assignPatientLevelSmokingStatus()
performs the patient-level smoking status classification based on document-level classification
each patient is assigned only one final smoking status
RULE:
If exists only U assign U
Else if exist N and there is no PCS assign N
Else if exist S and there is no PC assign S
Else if exist P or C (can be both)
If exists either P or C assign P or C respectively
Else if exist both P and C
If(C freq >= P freq) assign C
Else assign P
|
static void |
collectCounts(String delim) |
static void |
main(String[] args) |
static void |
printToFile() |
void |
setInputFile(String fileName) |
void |
setOutputFile(String fileName) |
public static void main(String[] args)
public void setInputFile(String fileName)
public void setOutputFile(String fileName)
public static void collectCounts(String delim)
public static void assignPatientLevelSmokingStatus()
public static void printToFile()
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.