Class Common
- java.lang.Object
-
- org.hl7.fhir.validation.cli.utils.Common
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_TX_SERVER
-
Constructor Summary
Constructors Constructor Description Common()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValidationEnginegetValidationEngine(String version, String txServer, String definitions, String txLog, org.hl7.fhir.utilities.TimeTracker tt)static ValidationEnginegetValidationEngine(String version, String definitions, String txLog, org.hl7.fhir.utilities.TimeTracker tt)Default validation engine will point to "http://tx.fhir.org" terminology server.static StringgetVersion(String[] args)static StringgetVersionFromIGName(String defaultValue, String igFileName)Evaluates the current implementation guide file name and sets the current version accordingly.static booleanisNetworkPath(String path)static booleanisWildcardPath(String name)static voidrunValidationEngineTests()Triggers the validation engine tests to run.
-
-
-
Field Detail
-
DEFAULT_TX_SERVER
public static final String DEFAULT_TX_SERVER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Common
public Common()
-
-
Method Detail
-
getVersion
public static String getVersion(String[] args)
-
getVersionFromIGName
public static String getVersionFromIGName(String defaultValue, String igFileName)
Evaluates the current implementation guide file name and sets the current version accordingly.If igFileName is not one of the known patterns, will return whatever value is passed in as default.
- Parameters:
defaultValue- Version to return if no associated version can be determined from passed in igFileNameigFileName- Name of the implementation guide- Returns:
-
runValidationEngineTests
public static void runValidationEngineTests()
Triggers the validation engine tests to run.
-
getValidationEngine
public static ValidationEngine getValidationEngine(String version, String definitions, String txLog, org.hl7.fhir.utilities.TimeTracker tt) throws Exception
Default validation engine will point to "http://tx.fhir.org" terminology server.- Throws:
Exception
-
getValidationEngine
public static ValidationEngine getValidationEngine(String version, String txServer, String definitions, String txLog, org.hl7.fhir.utilities.TimeTracker tt) throws Exception
- Throws:
Exception
-
isNetworkPath
public static boolean isNetworkPath(String path)
-
isWildcardPath
public static boolean isWildcardPath(String name)
-
-