Class FindDocumentsQuery
java.lang.Object
org.projecthusky.communication.xd.storedquery.AbstractStoredQuery
org.projecthusky.communication.xd.storedquery.FindDocumentsQuery
- All Implemented Interfaces:
StoredQueryInterface
- Direct Known Subclasses:
FindDocumentsQueryAt
Represents a query to find documents in an XDS Registry (XDS
FindDocumentsQuery)
-
Constructor Summary
ConstructorDescriptionFindDocumentsQuery
(Identificator patientId, List<Code> classCodes, List<DateTimeRange> dateTimeRanges, List<Code> practiceSettingCodes, List<Code> healthCareFacilityCodes, List<Code> confidentialityCodes, List<Code> formatCodes, Person authorPerson, org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus status) Constructs a FindDocuments QueryFindDocumentsQuery
(Identificator patientId, org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus status) Constructs a FindDocuments QueryFindDocumentsQuery
(Identificator patientId, org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus status, Code typeCode, Code classCode, Code formatCode) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfidentialityCodes
(List<Code> confidentialityCodes) Adds an additional disjunctive clause of confidentiality codes to the query.Methods inherited from class org.projecthusky.communication.xd.storedquery.AbstractStoredQuery
getIpfQuery, setIpfStoredQuery
-
Constructor Details
-
FindDocumentsQuery
public FindDocumentsQuery(Identificator patientId, org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus status) Constructs a FindDocuments Query- Parameters:
patientId
- ID of the patientstatus
- Status of the document
-
FindDocumentsQuery
public FindDocumentsQuery(Identificator patientId, org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus status, Code typeCode, Code classCode, Code formatCode) -
FindDocumentsQuery
public FindDocumentsQuery(Identificator patientId, List<Code> classCodes, List<DateTimeRange> dateTimeRanges, List<Code> practiceSettingCodes, List<Code> healthCareFacilityCodes, List<Code> confidentialityCodes, List<Code> formatCodes, Person 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 codes, which classify the document (can be null)dateTimeRanges
- an array of DateTimeRange objects (can be null)practiceSettingCodes
- an array of codes, which classify the institution, where the document was created (can be null)healthCareFacilityCodes
- an array of codes, which classify the type of healthcare facility, where the document was created (can be null)confidentialityCodes
- an array of codes, which classify the confidentiality of the document (can be null)formatCodes
- an array of codes, 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
-