|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ohf.ihe.xds.consumer.storedquery.StoredQueryBuilderUtils
public class StoredQueryBuilderUtils
Static utilites to aid in building XDS consumer stored query parameters and for use by developers wishing to extends query capabilites of the IHE XDS Consumer (Transaction ITI-18: Registry Stored Query)
for example use,
for example use| Constructor Summary | |
|---|---|
StoredQueryBuilderUtils()
|
|
| Method Summary | |
|---|---|
static void |
addCodedParameters(java.util.HashMap queryParameters,
java.lang.String codeUUID,
CodedMetadataType[] codes)
Adds the codes given as query parameters for the metadata attribute specifide by codeUUID to the given HashMap of StoredQuery parameters. |
static void |
addDateTimeParameters(java.util.HashMap queryParameters,
DateTimeRange range)
Builds the date/time range query sub clause (included the lower time bound, but excludes the upper time bound). |
static void |
addPatientIdParameter(java.util.HashMap queryParameters,
CX patientId)
Adds the patientId list given as query parameters for the metadata attribute to the given HashMap of StoredQuery parameters. |
static void |
addStatusParameter(java.util.HashMap queryParameters,
AvailabilityStatusType[] status)
Adds the status list given as query parameters for the metadata attribute to the given HashMap of StoredQuery parameters. |
static java.lang.String |
buildListArgs(java.lang.String[] args)
Builds coma separade list of arguments |
static java.lang.String |
checkForSingleQuote(java.lang.String s)
In Stored Query, any query parameter value that happens to contain a single quote (') must "escape" the single quote with another (''). |
static int |
validCodeList(CodedMetadataType[] codes)
Checks to see if the code list provided has one coding scheme documented for each code, or none at all |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StoredQueryBuilderUtils()
| Method Detail |
|---|
public static java.lang.String buildListArgs(java.lang.String[] args)
public static java.lang.String checkForSingleQuote(java.lang.String s)
s - the string to check.
public static void addPatientIdParameter(java.util.HashMap queryParameters,
CX patientId)
throws MalformedStoredQueryException
queryParameters - HashMap of stored query parameters, non nullpatientId - patient id to add to the query parameters, non null
MalformedStoredQueryException
public static void addStatusParameter(java.util.HashMap queryParameters,
AvailabilityStatusType[] status)
throws MalformedStoredQueryException
queryParameters - HashMap of stored query parameters, non nullstatus - list of status to add to the query parameters, non null
MalformedStoredQueryException
public static void addCodedParameters(java.util.HashMap queryParameters,
java.lang.String codeUUID,
CodedMetadataType[] codes)
throws MalformedStoredQueryException
queryParameters - HashMap of stored query parameters, non nullcodeUUID - codeSchemeParameterName of metadata code element (see UUIDs),
non nullcodes - list of codes to add to the query parameters, non null
MalformedStoredQueryException
public static void addDateTimeParameters(java.util.HashMap queryParameters,
DateTimeRange range)
throws MalformedStoredQueryException
queryParameters - HashMap of stored query parameters, non nullrange - DateTimeRange object in which range.range.getSlotName() is the metadata attribute name to
be selected among metadata time slot name constants provided in DocumentEntryConstants,
SubmissionSetConstants or
FolderConstants , non null
MalformedStoredQueryException
MalformedStoredQueryException - if null parameters were given or the range.getSlotName() could not be identifiedpublic static int validCodeList(CodedMetadataType[] codes)
codes - array of CodedMetadataTypes to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||