Class QuerySlotHelper
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.transform.requests.query.QuerySlotHelper
Wrapper class for ebXML query request to simplify access to slots.
This class ensures that the various encoding rules of query parameter values are met.
Note that this class is only used for ebXML 3.0!
- Author:
- Jens Riemschneider, Dmytro Rud
-
Constructor Summary
ConstructorDescriptionConstructs the wrapper. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
decodeString
(String value) decodeStringList
(String list) static String
encodeAsString
(String value) static String
encodeAsStringList
(String value) void
fromAssociationType
(QueryParameter param, List<AssociationType> associationTypes) Stores an association parameter into a slot.void
fromCode
(QueryParameter param, List<Code> codes) Stores a list of codes into a slot.void
fromCode
(QueryParameter param, QueryList<Code> queryList) Stores a code list with AND/OR semantics into a set of slots with the same name.void
fromDocumentAvailability
(QueryParameter param, List<DocumentAvailability> status) Stores a status parameter into a slot.void
fromDocumentEntryType
(QueryParameter param, List<DocumentEntryType> documentEntryTypes) void
fromInteger
(QueryParameter param, Integer value) Stores a numbered parameter into a slot.void
fromPatientIdList
(QueryParameter param, List<Identifiable> values) Stores a list of patient IDs into a slot.void
fromStatus
(QueryParameter param, List<AvailabilityStatus> status) Stores a status parameter into a slot.void
fromString
(QueryParameter param, String value) Stores a string-valued parameter into a slot.void
fromStringList
(String slotName, List<String> values) Stores a list of strings into a slot.void
fromStringList
(String slotName, QueryList<String> queryList) Stores a string list with AND/OR semantics into a set of slots with the same name.void
fromStringList
(QueryParameter param, List<String> values) Stores a list of strings into a slot.void
fromStringList
(QueryParameter param, QueryList<String> queryList) Stores a string list with AND/OR semantics into a set of slots with the same name.void
fromTimestamp
(QueryParameter param, Timestamp value) Stores a timestamp parameter into a slot.getSlots()
static <C extends Composite,
T extends Hl7v2Based<C>>
List<T>static <C extends Composite,
T extends Hl7v2Based<C>>
QueryList<T>static <T extends Hl7v2Based<?>>
List<String>static <T extends Hl7v2Based<?>>
QueryList<String>toAssociationType
(QueryParameter param) Retrieves an association parameter from a slot.toCodeList
(QueryParameter param) Retrieves a list of codes from a slot.toCodeQueryList
(QueryParameter param, QueryParameter schemeParam) Retrieves a code list with AND/OR semantics from a set of slots with the same name.Retrieves a status parameter from a slot.toInteger
(QueryParameter param) Retrieves a numbered parameter from a slot.toPatientIdList
(QueryParameter param) Retrieves a list of patient IDs from a slot.toStatus
(QueryParameter param) Retrieves a status parameter from a slot.toString
(QueryParameter param) Retrieves a string-valued parameter from a slot.toStringList
(QueryParameter param) Retrieves a list of strings from a slot.toStringQueryList
(String slotName) Retrieves a string list with AND/OR semantics from a set of slots with the same name.toStringQueryList
(QueryParameter param) Retrieves a string list with AND/OR semantics from a set of slots with the same name.toTimestamp
(QueryParameter param) Retrieves a timestamp parameter from a slot.
-
Constructor Details
-
QuerySlotHelper
Constructs the wrapper.- Parameters:
ebXML
- the wrapped object.
-
-
Method Details
-
getSlots
-
toString
Retrieves a string-valued parameter from a slot.- Parameters:
param
- the parameter.- Returns:
- the string value.
-
fromString
Stores a string-valued parameter into a slot.- Parameters:
param
- the parameter.value
- the string value.
-
fromCode
Stores a list of codes into a slot.- Parameters:
param
- the parameter.codes
- the list of codes.
-
fromCode
Stores a code list with AND/OR semantics into a set of slots with the same name.- Parameters:
param
- standard query parameter (implies the name of the slots).queryList
- the list of codes.
-
toStringQueryList
Retrieves a string list with AND/OR semantics from a set of slots with the same name.- Parameters:
param
- standard query parameter (implies the name of the slots).- Returns:
- the string list.
-
toStringQueryList
Retrieves a string list with AND/OR semantics from a set of slots with the same name.- Parameters:
slotName
- name of the source slots, may correspond to either a standard query parameter or an extra parameter.- Returns:
- the string list.
-
fromStringList
Stores a list of strings into a slot.- Parameters:
param
- standard query parameter (implies the name of the slots).values
- the string list.
-
fromStringList
Stores a list of strings into a slot.- Parameters:
slotName
- name of the target slot, may correspond to either a standard query parameter or an extra parameter.values
- the string list.
-
fromStringList
Stores a string list with AND/OR semantics into a set of slots with the same name.- Parameters:
param
- standard query parameter (implies the name of the slots).queryList
- the list of strings.
-
fromStringList
Stores a string list with AND/OR semantics into a set of slots with the same name.- Parameters:
slotName
- name of the target slots, may correspond to either a standard query parameter or an extra parameter.queryList
- the list of strings.
-
toStringList
Retrieves a list of strings from a slot.- Parameters:
param
- the parameter.- Returns:
- the string list.
-
fromPatientIdList
Stores a list of patient IDs into a slot.- Parameters:
param
- the parameter.values
- the patient ID list.
-
toPatientIdList
Retrieves a list of patient IDs from a slot.- Parameters:
param
- the parameter.- Returns:
- the patient ID list.
-
toCodeList
Retrieves a list of codes from a slot.- Parameters:
param
- the parameter.- Returns:
- the codes.
-
toCodeQueryList
Retrieves a code list with AND/OR semantics from a set of slots with the same name.- Parameters:
param
- standard query parameter (implies the name of the slots).schemeParam
- the code scheme parameter.- Returns:
- the codes.
-
fromTimestamp
Stores a timestamp parameter into a slot.- Parameters:
param
- the parameter.value
- the value.
-
toTimestamp
Retrieves a timestamp parameter from a slot. According to CP-ITI-1260, a timestamp parameter may be enclosed in single quotes.- Parameters:
param
- the parameter.- Returns:
- the value.
-
fromStatus
Stores a status parameter into a slot.- Parameters:
param
- the parameter.status
- the list of status values.
-
toStatus
Retrieves a status parameter from a slot.- Parameters:
param
- the parameter.- Returns:
- the list of status values.
-
fromAssociationType
Stores an association parameter into a slot.- Parameters:
param
- the parameter.associationTypes
- the list of association types.
-
toAssociationType
Retrieves an association parameter from a slot.- Parameters:
param
- the parameter.- Returns:
- the list of association types.
-
fromDocumentEntryType
-
toDocumentEntryType
-
toCode
-
fromDocumentAvailability
Stores a status parameter into a slot.- Parameters:
param
- the parameter.status
- the list of documentAvailability values.
-
toDocumentAvailability
Retrieves a status parameter from a slot.- Parameters:
param
- the parameter.- Returns:
- the list of documentAvailability values.
-
fromInteger
Stores a numbered parameter into a slot.- Parameters:
param
- the parameter.value
- the value.
-
toInteger
Retrieves a numbered parameter from a slot.- Parameters:
param
- the parameter.- Returns:
- the value.
-
encodeAsString
-
decodeString
-
encodeAsStringList
-
decodeStringList
-
render
-
render
-
parse
-
parse
-