Class FindDocumentsQuery
java.lang.Object
org.projecthusky.communication.xd.storedquery.AbstractStoredQuery
org.projecthusky.communication.ch.xd.storedquery.FindDocumentsQuery
- All Implemented Interfaces:
StoredQueryInterface
Represents a query to find documents in an XDS Registry (XDS
FindDocumentsQuery). This class uses only enums for XDS metadata which are
specified by eHealth Suisse for the usage in Switzerland.
-
Constructor Summary
ConstructorsConstructorDescriptionFindDocumentsQuery
(Identificator patientId, AvailabilityStatus status) Constructs a FindDocuments QueryFindDocumentsQuery
(Identificator patientId, ClassCode[] classCodes, DateTimeRange[] dateTimeRanges, PracticeSettingCode[] practiceSettingCodes, HealthcareFacilityTypeCode[] healthCareFacilityCodes, ConfidentialityCode[] confidentialityCodes, FormatCode[] formatCodes, Author authorPerson, AvailabilityStatus status) Constructs a FindDocuments Query -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfidentialityCodes
(ConfidentialityCode[] confidentialityCodes) Adds an additional disjunctive clause of confidentiality codes to the query.org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus
getAsIpfAvailabilityStatusType
(AvailabilityStatus availabilityStatus) Gets the AvailabilityStatus as IPF AvailabilityStatusType Object. Liefert AvailabilityStatus als IPF AvailabilityStatusType Objekt.org.openehealth.ipf.commons.ihe.xds.core.requests.query.StoredQuery
Gets the IPF StoredQuery object, which is being wrapped by this classMethods inherited from class org.projecthusky.communication.xd.storedquery.AbstractStoredQuery
setIpfStoredQuery
-
Constructor Details
-
FindDocumentsQuery
Constructs a FindDocuments Query- Parameters:
patientId
- ID of the patientstatus
- Status of the document
-
FindDocumentsQuery
public FindDocumentsQuery(Identificator patientId, ClassCode[] classCodes, DateTimeRange[] dateTimeRanges, PracticeSettingCode[] practiceSettingCodes, HealthcareFacilityTypeCode[] healthCareFacilityCodes, ConfidentialityCode[] confidentialityCodes, FormatCode[] formatCodes, Author authorPerson, AvailabilityStatus status) Constructs a FindDocuments Query- Parameters:
patientId
- ID of the patient (required)classCodes
- an array of enums, which classify the document (can be null)dateTimeRanges
- an array of DateTimeRange objects (can be null)practiceSettingCodes
- an array of enums, which classify the institution, where the document was created (can be null)healthCareFacilityCodes
- an array of enums, which classify the type of healthcare facility, where the document was created (can be null)confidentialityCodes
- an array of enums, which classify the confidentiality of the document (can be null)formatCodes
- an array of enums, which classify the format of the document (can be null)authorPerson
- information about the author of the document (can be null)status
- the availability status of the document (required)
-
-
Method Details
-
addConfidentialityCodes
Adds an additional disjunctive clause of confidentiality codes to the query. Per IHE 2008-2009 ITI CP 228, codes with in the parameter will be interpreted with OR semantics. The resultant disjunctive clause will be AND-ed together with any confidentialityCode clauses previously added. Calling this method sequentially will result in the AND-ing of multiple clauses.- Parameters:
confidentialityCodes
- array of confidentiality codes
-
getAsIpfAvailabilityStatusType
public org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus getAsIpfAvailabilityStatusType(AvailabilityStatus availabilityStatus) Gets the AvailabilityStatus as IPF AvailabilityStatusType Object.Liefert AvailabilityStatus als IPF AvailabilityStatusType Objekt.- Returns:
- the address use as postal address use
-
getIpfQuery
public org.openehealth.ipf.commons.ihe.xds.core.requests.query.StoredQuery getIpfQuery()Gets the IPF StoredQuery object, which is being wrapped by this class- Specified by:
getIpfQuery
in interfaceStoredQueryInterface
- Overrides:
getIpfQuery
in classAbstractStoredQuery
- Returns:
- the IPF StoredQuery
-