|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elexis.extdoc.util.MatchPatientToPath
public class MatchPatientToPath
Constructor Summary | |
---|---|
MatchPatientToPath(Patient patient)
Constructor: Create a new object for this patient |
Method Summary | |
---|---|
static java.lang.String |
cleanName(java.lang.String name)
|
static Patient |
filenameBelongsToSomePatient(java.lang.String fullPathname)
Global: Checks whether the pathname matches an existing patient |
static boolean |
filenameIsValid(java.lang.String fullPathname,
java.lang.String familyName,
java.lang.String firstName)
Global: Checks whether the pathname, first and lastname match our conventions Checks basename and parent directory |
static java.lang.String |
firstToken(java.lang.String fullPathName)
|
static java.lang.String |
geburtsDatumToCanonical(java.lang.String geburtsDatum)
|
static java.util.List<java.io.File> |
getAllOldConventionFiles()
Get all files corresponding to the old convention |
static java.lang.Object |
getFilesForPatient(Patient actPatient,
java.lang.String[] activePaths)
Return a list of files which belong to this patient |
static java.lang.String[] |
getFirstAndFamilyNameFromPathOldConvention(java.lang.String fullPathname)
|
static java.lang.String |
getSubDirPath(Patient pat)
|
static boolean |
MoveIntoSubDir(java.lang.String path)
|
java.lang.String |
ShouldBeMovedToThisSubDir(java.lang.String oldPathname,
java.lang.String geburtsDatum)
Returns a pathname where the file should be stored according to the new convention |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatchPatientToPath(Patient patient)
patient
- Method Detail |
---|
public static java.lang.String[] getFirstAndFamilyNameFromPathOldConvention(java.lang.String fullPathname)
public static boolean MoveIntoSubDir(java.lang.String path)
public static boolean filenameIsValid(java.lang.String fullPathname, java.lang.String familyName, java.lang.String firstName)
fullPathname
- familyName
- firstName
-
public static Patient filenameBelongsToSomePatient(java.lang.String fullPathname)
fullPathname
-
public static java.lang.Object getFilesForPatient(Patient actPatient, java.lang.String[] activePaths)
actPatient
- activePaths
- or null to search on all
public static java.lang.String cleanName(java.lang.String name)
name
-
public static java.lang.String firstToken(java.lang.String fullPathName)
fullPathName
-
public static java.lang.String getSubDirPath(Patient pat)
public static java.lang.String geburtsDatumToCanonical(java.lang.String geburtsDatum)
public java.lang.String ShouldBeMovedToThisSubDir(java.lang.String oldPathname, java.lang.String geburtsDatum)
fullPathname
-
public static java.util.List<java.io.File> getAllOldConventionFiles()
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |