Class FindDocumentsQueryAt
java.lang.Object
org.projecthusky.communication.xd.storedquery.AbstractStoredQuery
org.projecthusky.communication.xd.storedquery.FindDocumentsQuery
org.projecthusky.communication.at.xd.storedquery.FindDocumentsQueryAt
- 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
ConstructorsConstructorDescriptionFindDocumentsQueryAt
(Identificator patientId, ClassCode[] classCodes, DateTimeRange[] dateTimeRanges, PracticeSettingCode[] practiceSettingCodes, HealthcareFacilityTypeCode[] healthCareFacilityCodes, ConfidentialityCode[] confidentialityCodes, FormatCode[] formatCodes, Author authorPerson, org.openehealth.ipf.commons.ihe.xds.core.metadata.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.Methods inherited from class org.projecthusky.communication.xd.storedquery.FindDocumentsQuery
addConfidentialityCodes
Methods inherited from class org.projecthusky.communication.xd.storedquery.AbstractStoredQuery
getIpfQuery, setIpfStoredQuery
-
Constructor Details
-
FindDocumentsQueryAt
public FindDocumentsQueryAt(Identificator patientId, ClassCode[] classCodes, DateTimeRange[] dateTimeRanges, PracticeSettingCode[] practiceSettingCodes, HealthcareFacilityTypeCode[] healthCareFacilityCodes, ConfidentialityCode[] confidentialityCodes, FormatCode[] formatCodes, Author authorPerson, org.openehealth.ipf.commons.ihe.xds.core.metadata.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
-