Class SchemaSupport
- java.lang.Object
-
- org.linuxforhealth.fhir.schema.app.util.SchemaSupport
-
public class SchemaSupport extends java.lang.Object
Support functions for the FHIR DB schema
-
-
Constructor Summary
Constructors Constructor Description SchemaSupport()
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getParamTableType(java.lang.String tableName)
Convert the parameter table name to a string value describing its type.java.lang.String
getResourceTypeFromTableName(java.lang.String tableName)
Obtain the resource type associated with the given tableboolean
isParamTable(java.lang.String tableName)
Is the named table one of the search parameter tables
-
-
-
Method Detail
-
getResourceTypeFromTableName
public java.lang.String getResourceTypeFromTableName(java.lang.String tableName)
Obtain the resource type associated with the given table- Parameters:
tableName
-- Returns:
- the associated resource type or null if the table is known but not associated with a resource
-
isParamTable
public boolean isParamTable(java.lang.String tableName)
Is the named table one of the search parameter tables- Parameters:
tableName
-- Returns:
-
getParamTableType
public java.lang.String getParamTableType(java.lang.String tableName)
Convert the parameter table name to a string value describing its type. For example:PATIENT_STR_VALUES: STRING PATIENT_DATE_VALUES: DATE PATIENT_RESOURCE_TOKEN_REFS: TOKEN etc.
- Parameters:
tableName
-- Returns:
-
-