Class Pharm5SearchParameters
java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.FhirSearchAndSortParameters<org.hl7.fhir.r4.model.DocumentReference>
org.openehealth.ipf.commons.ihe.fhir.pharm5.Pharm5SearchParameters
- All Implemented Interfaces:
FhirSearchParameters
public class Pharm5SearchParameters
extends FhirSearchAndSortParameters<org.hl7.fhir.r4.model.DocumentReference>
Search parameters for CMPD PHARM-5 transaction.
- Since:
- 4.3
- Author:
- Christian Ohr, Quentin Ligier
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionPharm5SearchParameters
(TokenParam patientIdentifier, DateRangeParam date, StringParam authorFamilyName, StringParam authorGivenName, TokenParam identifier, TokenOrListParam status, TokenOrListParam setting, DateRangeParam period, TokenOrListParam facility, TokenOrListParam event, TokenOrListParam securityLabel, TokenOrListParam format, Pharm5Operations operation, SortSpec sortSpec, Set<Include> includeSpec, FhirContext fhirContext) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Optional<Comparator<org.hl7.fhir.r4.model.DocumentReference>>
comparatorFor
(String paramName) Returns aComparator
to sort resources of type T by given sort parameter name.getDate()
getEvent()
getQueryString
(FhirContext context) setAuthor
(ReferenceAndListParam author) void
setAuthorFamilyName
(StringParam authorFamilyName) void
setAuthorGivenName
(StringParam authorGivenName) void
setDate
(DateRangeParam date) void
setEvent
(TokenOrListParam event) void
setFacility
(TokenOrListParam facility) void
setFormat
(TokenOrListParam format) void
setIdentifier
(TokenParam identifier) void
setIncludeSpec
(Set<Include> includeSpec) void
setOperation
(Pharm5Operations operation) void
setPatientIdentifier
(TokenParam patientIdentifier) void
setPeriod
(DateRangeParam period) void
setSecurityLabel
(TokenOrListParam securityLabel) void
setSetting
(TokenOrListParam setting) void
setSortSpec
(SortSpec sortSpec) void
setStatus
(TokenOrListParam status) org.hl7.fhir.r4.model.Parameters
Maps thePharm5SearchParameters
to an equivalentParameters
, for the given FHIR context.toString()
Methods inherited from class org.openehealth.ipf.commons.ihe.fhir.FhirSearchAndSortParameters
noop, sort
-
Constructor Details
-
Pharm5SearchParameters
public Pharm5SearchParameters(TokenParam patientIdentifier, DateRangeParam date, StringParam authorFamilyName, StringParam authorGivenName, TokenParam identifier, TokenOrListParam status, TokenOrListParam setting, DateRangeParam period, TokenOrListParam facility, TokenOrListParam event, TokenOrListParam securityLabel, TokenOrListParam format, Pharm5Operations operation, SortSpec sortSpec, Set<Include> includeSpec, FhirContext fhirContext)
-
-
Method Details
-
getPatientIdParam
-
setAuthor
-
comparatorFor
public Optional<Comparator<org.hl7.fhir.r4.model.DocumentReference>> comparatorFor(String paramName) Description copied from class:FhirSearchAndSortParameters
Returns aComparator
to sort resources of type T by given sort parameter name. This default implementation keeps the current order, i.e. to implement actual sorting you MUST overwrite this method.- Overrides:
comparatorFor
in classFhirSearchAndSortParameters<org.hl7.fhir.r4.model.DocumentReference>
- Parameters:
paramName
- sort parameter- Returns:
- comparator
-
getQueryString
-
toParameters
public org.hl7.fhir.r4.model.Parameters toParameters()Maps thePharm5SearchParameters
to an equivalentParameters
, for the given FHIR context. -
builder
-
toString
-
getPatientIdentifier
-
setPatientIdentifier
-
getDate
-
setDate
-
getAuthorFamilyName
-
setAuthorFamilyName
-
getAuthorGivenName
-
setAuthorGivenName
-
getIdentifier
-
setIdentifier
-
getStatus
-
setStatus
-
getSetting
-
setSetting
-
getPeriod
-
setPeriod
-
getFacility
-
setFacility
-
getEvent
-
setEvent
-
getSecurityLabel
-
setSecurityLabel
-
getFormat
-
setFormat
-
getOperation
-
setOperation
-
getSortSpec
- Specified by:
getSortSpec
in classFhirSearchAndSortParameters<org.hl7.fhir.r4.model.DocumentReference>
- Returns:
- the sort specification as requested by the client
-
setSortSpec
-
getIncludeSpec
-
setIncludeSpec
-
getFhirContext
-